ChangeLog 464 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507
  1. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Use BDE instead of Dictionary/List/Data.
  3. * src/DHTAbstractMessage.cc
  4. * src/DHTAbstractMessage.h
  5. * src/DHTAnnouncePeerMessage.cc
  6. * src/DHTAnnouncePeerMessage.h
  7. * src/DHTAnnouncePeerReplyMessage.cc
  8. * src/DHTAnnouncePeerReplyMessage.h
  9. * src/DHTFindNodeMessage.cc
  10. * src/DHTFindNodeMessage.h
  11. * src/DHTFindNodeReplyMessage.cc
  12. * src/DHTFindNodeReplyMessage.h
  13. * src/DHTGetPeersMessage.cc
  14. * src/DHTGetPeersMessage.h
  15. * src/DHTGetPeersReplyMessage.cc
  16. * src/DHTGetPeersReplyMessage.h
  17. * src/DHTMessageFactory.h
  18. * src/DHTMessageFactoryImpl.cc
  19. * src/DHTMessageFactoryImpl.h
  20. * src/DHTMessageReceiver.cc
  21. * src/DHTMessageTracker.cc
  22. * src/DHTMessageTracker.h
  23. * src/DHTPingMessage.cc
  24. * src/DHTPingMessage.h
  25. * src/DHTPingReplyMessage.cc
  26. * src/DHTPingReplyMessage.h
  27. * src/DHTQueryMessage.cc
  28. * src/DHTQueryMessage.h
  29. * src/DHTResponseMessage.cc
  30. * src/DHTResponseMessage.h
  31. * test/DHTAnnouncePeerMessageTest.cc
  32. * test/DHTAnnouncePeerReplyMessageTest.cc
  33. * test/DHTFindNodeMessageTest.cc
  34. * test/DHTFindNodeReplyMessageTest.cc
  35. * test/DHTGetPeersMessageTest.cc
  36. * test/DHTGetPeersReplyMessageTest.cc
  37. * test/DHTMessageFactoryImplTest.cc
  38. * test/DHTMessageTrackerTest.cc
  39. * test/DHTPingMessageTest.cc
  40. * test/DHTPingReplyMessageTest.cc
  41. * test/MockDHTMessageFactory.h
  42. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Added tests the case where length < 0 is specified.
  44. * test/BencodeTest.cc
  45. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Fixed memory leak in decoderawstring()
  47. * src/bencode.cc
  48. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Added missing #ifdef guard. Added uc() function for String and
  50. removeKey() for Dict.
  51. * src/bencode.cc
  52. * src/bencode.h
  53. * test/BencodeTest.cc
  54. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Use BDE instead of Dictionary/List/Data.
  56. * src/HandshakeExtensionMessage.cc
  57. * src/HandshakeExtensionMessage.h
  58. * test/HandshakeExtensionMessageTest.cc
  59. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Added --max-overall-upload-limit option. This option limits the
  61. overall upload speed. Stated in help message that the existing
  62. --max-upload-limit option limits the upload speed per each
  63. torrent. Man page is also updated.
  64. * doc/aria2c.1.txt
  65. * src/DefaultBtMessageDispatcher.cc
  66. * src/DefaultBtMessageDispatcher.h
  67. * src/OptionHandlerFactory.cc
  68. * src/PeerInteractionCommand.cc
  69. * src/option_processing.cc
  70. * src/prefs.cc
  71. * src/prefs.h
  72. * src/usage_text.h
  73. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Use BDE instead of Dictionary/List/Data classes.
  75. * src/CompactPeerListProcessor.cc
  76. * src/CompactPeerListProcessor.h
  77. * src/DefaultBtAnnounce.cc
  78. * src/DefaultBtContext.cc
  79. * src/DefaultBtContext.h
  80. * src/DefaultPeerListProcessor.cc
  81. * src/DefaultPeerListProcessor.h
  82. * src/DelegatingPeerListProcessor.cc
  83. * src/DelegatingPeerListProcessor.h
  84. * src/PeerListProcessor.h
  85. * src/UTPexExtensionMessage.cc
  86. * src/Util.h
  87. * src/message.h
  88. * test/DefaultBtContextTest.cc
  89. * test/DefaultPeerListProcessorTest.cc
  90. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Added bencode helper functions and BDE class.
  92. They will replace MetaFileUtil and Dictionary/List/Data classes.
  93. * src/Makefile.am
  94. * src/bencode.cc
  95. * src/bencode.h
  96. * test/BencodeTest.cc
  97. * test/Makefile.am
  98. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Fixed the bug that bad URI is sent to the tracker when the announe
  100. URI in torrent file includes query.
  101. * src/DefaultBtAnnounce.cc
  102. * test/DefaultBtAnnounceTest.cc
  103. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Added Option::blank().
  105. Use !Option::blank(name) instead of Option::defined(name) for
  106. the options that take filename.
  107. * src/MultiUrlRequestInfo.cc
  108. * src/Option.cc
  109. * src/Option.h
  110. * src/main.cc
  111. * src/option_processing.cc
  112. * test/OptionTest.cc
  113. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Documented the default value of --check-certificate option in man
  115. page.
  116. * doc/aria2c.1.txt
  117. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Enabled --check-certificate by default. Added compile
  119. time(configure) option --with-ca-bundle to specify CA bundle.
  120. Warn if --check-certificate=true and --ca-certificate is not
  121. specified or loading CA certificate is failed.
  122. * configure.ac
  123. * src/MultiUrlRequestInfo.cc
  124. * src/OptionHandlerFactory.cc
  125. * src/message.h
  126. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Mentioned https tag in help option.
  128. * doc/aria2c.1.txt
  129. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Added `https' tag to help option category. Added https tag to
  131. --ca-certificate, --certificate, --check-certificate and
  132. --private-key option.
  133. * src/OptionHandlerFactory.cc
  134. * src/help_tags.h
  135. * src/option_processing.cc
  136. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Changed the package name from `aria2c' to `aria2' in order to fix
  138. the packaging issue in Debian and Fedora. The name of the
  139. executable is not changed.
  140. * configure.ac
  141. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Fixed typos
  143. * src/usage_text.h
  144. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Fixed typos and updated doc.
  146. * README
  147. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Fixed typos
  149. * doc/aria2c.1.txt
  150. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Fixed typos
  152. * src/usage_text.h
  153. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Print a message when no files to download.
  155. * src/download_helper.cc
  156. * src/main.cc
  157. * src/message.h
  158. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. RFC3986 complied Percent-Encoding(urlencode).
  160. Use uppercase hexadecimal digits for encoded text instead of lowercase
  161. ones.
  162. * src/Request.cc
  163. * src/Util.cc
  164. * src/Util.h
  165. * test/BtHandshakeMessageTest.cc
  166. * test/DefaultBtAnnounceTest.cc
  167. * test/DefaultBtContextTest.cc
  168. * test/RequestTest.cc
  169. * test/UtilTest.cc
  170. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Fixed the bug that prevents aria2 from downloading 0-length files
  172. via HTTP/FTP.
  173. * src/DefaultBtContext.cc
  174. * src/DefaultBtContext.h
  175. * src/DownloadContext.h
  176. * src/FtpNegotiationCommand.cc
  177. * src/HttpResponseCommand.cc
  178. * src/HttpResponseCommand.h
  179. * src/RequestGroup.cc
  180. * src/SingleFileDownloadContext.cc
  181. * src/SingleFileDownloadContext.h
  182. * test/BtPostDownloadHandlerTest.cc
  183. * test/MetalinkPostDownloadHandlerTest.cc
  184. * test/MockBtContext.h
  185. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  187. * src/option_processing.cc
  188. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Applied aria2-1.0.1-mingw.patch.
  190. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  191. mingw.
  192. Collected 4th and 5th argument types for getsockopt and setsockopt.
  193. * src/SocketCore.cc
  194. * src/a2netcompat.h
  195. * test/SocketCoreTest.cc
  196. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. * Release 1.0.1
  198. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Updated Ukrainian and Norwegian Nynorsk translations.
  200. Thanks to all translators.
  201. * po/nn.po
  202. * po/uk.po
  203. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Don't show download result when -S option is used.
  205. * src/main.cc
  206. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Bump up version number to 1.0.1
  208. * configure.ac
  209. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Closed files after the test cases in MultiDiskWriterTest::
  211. testResetDiskWriterEntries(). This will fix the unit test error
  212. in mingw32 build.
  213. * test/MultiDiskWriterTest.cc
  214. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Use HEAD method to get file size from HTTP server for segmented
  216. downloading.
  217. The request to the BitTorrent Tracker always uses GET method because
  218. the response of the tracker is small and it doesn't need segmented
  219. download.
  220. * src/FtpNegotiationCommand.cc
  221. * src/HttpRequest.cc
  222. * src/HttpResponseCommand.cc
  223. * src/HttpSkipResponseCommand.cc
  224. * src/RequestGroup.cc
  225. * src/RequestGroup.h
  226. * src/TrackerWatcherCommand.cc
  227. * test/HttpRequestTest.cc
  228. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Fixed the bug that causes floating exception when -T option is used and
  230. no URIs are given.
  231. * src/download_helper.cc
  232. * test/DownloadHelperTest.cc
  233. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  234. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  235. errors in MinGW:
  236. Closed file after saving server stats (RequestGroupMan.cc)
  237. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  238. Ignored case & handled 2-digit years (strptime.c)
  239. Added missing suseconds_t definition (a2time.h)
  240. Fixed socket CLOSE() define (SocketCore.cc)
  241. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  242. Changed utime() test values from x000 to x00000 as MinGW failed on
  243. values less than timezone offset from Unix epoch
  244. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  245. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  246. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  247. handle negative dates (CookieParserTest.cc)
  248. * src/a2time.h
  249. * src/FtpConnection.cc
  250. * src/RequestGroupMan.cc
  251. * src/SocketCore.cc
  252. * src/strptime.c
  253. * test/CookieParserTest.cc
  254. * test/CopyDiskAdaptorTest.cc
  255. * test/FileTest.cc
  256. * test/FtpConnectionTest.cc
  257. * test/MultiDiskAdaptorTest.cc
  258. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  260. * doc/aria2c.1.txt
  261. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. * Release 1.0.0
  263. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Added '~' to reserved characters.
  265. * src/Util.cc
  266. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Do not urlencode Request::url in setUrl() because we want unmodified
  268. URL using Request::getUrl()
  269. * src/Request.cc
  270. * src/Request.h
  271. * test/RequestTest.cc
  272. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  274. Thanks to all translators.
  275. * po/bg.po
  276. * po/fr.po
  277. * po/ja.po
  278. * po/ru.po
  279. * po/uk.po
  280. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Bump up version number to 1.0.0
  282. * configure.ac
  283. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Added nosqlite3 build to build_test.sh.
  285. Renamed noxml as expat.
  286. * build_test.sh
  287. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Updated INPUT FILE section.
  289. * doc/aria2c.1.txt
  290. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  292. on big endian systems because test .aria2 files are made for little
  293. endian systems.
  294. * test/DefaultBtProgressInfoFileTest.cc
  295. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Dropped ares support.
  297. * README
  298. * configure.ac
  299. * m4/libares.m4: Removed.
  300. * src/AsyncNameResolver.cc
  301. * src/Makefile.am
  302. * test/Makefile.am
  303. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  305. Removed const qualifier from DiskWriter::size().
  306. * src/AbstractDiskWriter.cc
  307. * src/AbstractDiskWriter.h
  308. * src/ByteArrayDiskWriter.cc
  309. * src/ByteArrayDiskWriter.h
  310. * src/DiskWriter.h
  311. * test/ByteArrayDiskWriterTest.cc
  312. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Fixed the bug that causes segmentation fault/bus error during executing
  314. choking algorithm while seeding. This is caused by improper
  315. implementation of compare function which returns inconsistent results
  316. depending on the timing of last unchoke.
  317. * src/BtSeederStateChoke.cc
  318. * src/BtSeederStateChoke.h
  319. * src/DefaultPeerStorage.cc
  320. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Removed TODO
  322. * TODO
  323. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Added a section that explains how to pass argument to options that
  325. takes optional arguments with its short form.
  326. * doc/aria2c.1.txt
  327. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Added -u for the short form of --max-upload-limit option.
  329. * doc/aria2c.1.txt
  330. * src/option_processing.cc
  331. * src/usage_text.h
  332. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Added -V for the short form of --check-integrity option.
  334. Now the argument of --check-integrity option is optional:
  335. if it is omitted, it is evaluated as true.
  336. * doc/aria2c.1.txt
  337. * src/option_processing.cc
  338. * src/usage_text.h
  339. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Made the default value of --ftp-pasv option set to true and it can take
  341. true/false values.
  342. * src/OptionHandlerFactory.cc
  343. * src/option_processing.cc
  344. * src/usage_text.h
  345. * doc/aria2c.1.txt
  346. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Given custom random number generator to std::random_shuffle.
  348. * src/AnnounceList.cc
  349. * src/BtLeecherStateChoke.cc
  350. * src/BtSeederStateChoke.cc
  351. * src/DefaultBtRequestFactory.cc
  352. * src/MetalinkEntry.cc
  353. * src/RarestPieceSelector.cc
  354. * src/SimpleRandomizer.cc
  355. * src/SimpleRandomizer.h
  356. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Now the default value of --enable-direct-io is true.
  358. * src/OptionHandlerFactory.cc
  359. * doc/aria2c.1.txt
  360. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Erase peer before executing onReturningPeer and onErasingPeer
  362. because choking algorithm called from onReturningPeer doesn't
  363. like erasing peer in the active peer list.
  364. * src/DefaultPeerStorage.cc
  365. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Instead of creating special filename in createDownloadResult() if
  367. inMemoryDownload() is true, now it is done in getFilePath().
  368. * src/RequestGroup.cc
  369. * test/RequestGroupTest.cc
  370. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Print "[MEMORY]" and filename if a file is not saved in disk and just
  372. processed in memory. This is the fix for previous comment out.
  373. * src/MemoryBufferPreDownloadHandler.cc
  374. * src/RequestGroup.cc
  375. * src/RequestGroup.h
  376. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Commented out the code which sets virtual directory path "[MEMORY]"
  378. propagate directory to store to following RequestGroup.
  379. * src/MemoryBufferPreDownloadHandler.cc
  380. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Bump up version number to 1.0.0b
  382. * configure.ac
  383. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Added input_uris.txt to EXTRA_DIST
  385. * test/Makefile.am
  386. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Removed PeerObject.h from Makefile.am
  388. * src/Makefile.am
  389. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Avoid slow seeding
  391. * src/PeerInteractionCommand.cc
  392. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Updated usage for -i option.
  394. * src/usage_text.h (TEXT_INPUT_FILE)
  395. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Added INPUT FILE section to man page.
  397. Escaped fake URLs.
  398. * doc/aria2c.1.txt
  399. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Fixed wrong note position for -o option.
  401. * doc/aria2c.1.txt
  402. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Fixed compile error without SSL/XML library.
  404. * src/DefaultBtProgressInfoFile.cc
  405. * src/DefaultBtProgressInfoFile.h
  406. * src/FileMetalinkParserState.cc
  407. * src/RequestGroup.h
  408. * src/SocketCore.cc
  409. * src/SocketCore.h
  410. * src/VerificationMetalinkParserState.cc
  411. * src/download_helper.h
  412. * src/main.cc
  413. * test/DefaultBtProgressInfoFileTest.cc
  414. * test/DownloadHelperTest.cc
  415. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Rewritten URI handling functions. They are now provided as a testable
  417. functions.
  418. * src/Makefile.am
  419. * src/RequestGroup.cc
  420. * src/RequestGroup.h
  421. * src/download_helper.cc
  422. * src/download_helper.h
  423. * src/main.cc
  424. * test/DownloadHelperTest.cc
  425. * test/Makefile.am
  426. * test/input_uris.txt
  427. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Quickly terminate commands when ctrl-c is pressed.
  429. * src/DownloadEngine.cc
  430. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Quickly terminate idle commands when download finished.
  432. * src/AbstractCommand.cc
  433. * src/DownloadCommand.cc
  434. * src/DownloadEngine.cc
  435. * src/DownloadEngine.h
  436. * src/SleepCommand.cc
  437. * src/SleepCommand.h
  438. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Added the ability to specify output filename and directory in input
  440. file.
  441. Additional parameters are added in the following line of URIs
  442. with proceeding white space(s), 1 parameter in 1 line.
  443. The parameter names are the same with the command-line option name
  444. without proceeding "--". Not all the options are available here:
  445. at the moment, 'dir' and 'out' options are avialable.
  446. Please note that out option has no effect against Metalink or BitTorrent
  447. downloads.
  448. Example input file:
  449. http://host/foo-1.1.tar.bz2
  450. out=foo.tar.bz2
  451. dir=/tmp/downloads
  452. http://host/thundermonkey-2.0.tar.bz2
  453. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  454. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  455. thundermonkey-2.0.tar.bz2 is saved as
  456. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  457. * src/BtPostDownloadHandler.cc
  458. * src/Metalink2RequestGroup.cc
  459. * src/Metalink2RequestGroup.h
  460. * src/MetalinkPostDownloadHandler.cc
  461. * src/UriListParser.cc
  462. * src/UriListParser.h
  463. * src/main.cc
  464. * test/Metalink2RequestGroupTest.cc
  465. * test/UriListParserTest.cc
  466. * test/filelist1.txt
  467. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  468. Fixed error when SSL library is not found.
  469. * configure.ac
  470. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Cross referenced among -s, -C and -j options.
  472. Updated usage of -C and -s options.
  473. * src/usage_text.h
  474. * doc/aria2c.1.txt
  475. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Fixed bad cast in 32bit platforms.
  477. * test/DefaultPieceStorageTest.cc
  478. (DefaultPieceStorageTest::testGetCompletedLength)
  479. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Fixed unit test fails on 32bit platforms.
  481. * test/CookieParserTest.cc
  482. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Show an average download speed in Download results.
  484. * src/BtFileAllocationEntry.cc
  485. * src/DefaultPieceStorage.cc
  486. * src/DownloadContext.cc
  487. * src/DownloadContext.h
  488. * src/DownloadResult.h
  489. * src/RequestGroup.cc
  490. * src/RequestGroupMan.cc
  491. * src/StreamFileAllocationEntry.cc
  492. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Fixed the bug that metalink file is not processed if Content-Type
  494. field has a paramter.
  495. * src/HttpResponse.cc
  496. * src/HttpResponse.h
  497. * test/HttpResponseTest.cc
  498. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Removed unused code.
  500. * src/DefaultBtAnnounce.cc
  501. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  503. the value larger than DefaultPieceStorage::getTotalLength() when
  504. in flight pieces are involved.
  505. * src/DefaultPieceStorage.cc
  506. * test/DefaultPieceStorageTest.cc
  507. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Bump up version number to 1.0.0a.
  509. * configure.ac
  510. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Updated configure.ac
  512. * configure.ac
  513. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Added usege for proxy.
  515. * doc/aria2c.1.txt
  516. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Added usage for --ca-certificate, --certificate, --private-key and
  518. --check-certificate options.
  519. * doc/aria2c.1.txt
  520. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Updated man page
  522. * doc/aria2c.1.txt
  523. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Added --no-proxy option. It receives comman separated hostname or
  525. domains to which proxy should not be used.
  526. aria2 honors the environment variable no_proxy to override no-proxy
  527. value in configuration file. The user can override the environment
  528. variable no_proxy with --no-proxy command-line option.
  529. * src/AbstractCommand.cc
  530. * src/OptionHandlerFactory.cc
  531. * src/option_processing.cc
  532. * src/prefs.cc
  533. * src/prefs.h
  534. * src/usage_text.h
  535. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Added the ability to verify peer in SSL/TLS using given CA certificates.
  537. The CA certificates are specified in --ca-certificate option.
  538. By default, the verification is disabled. Use --check-certificate
  539. option to enable it.
  540. * src/HttpRequestCommand.cc
  541. * src/LibgnutlsTLSContext.cc
  542. * src/LibgnutlsTLSContext.h
  543. * src/LibsslTLSContext.cc
  544. * src/LibsslTLSContext.h
  545. * src/MultiUrlRequestInfo.cc
  546. * src/OptionHandlerFactory.cc
  547. * src/SocketCore.cc
  548. * src/SocketCore.h
  549. * src/a2functional.h
  550. * src/message.h
  551. * src/option_processing.cc
  552. * src/prefs.cc
  553. * src/prefs.h
  554. * src/usage_text.h
  555. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Added client certificate authentication for SSL/TLS.
  557. Currently a private key must be decrypted for use with aria2.
  558. If a user accidentally gives encrypted file to aria2 then following
  559. thing happens:
  560. If encrypted private key is given to aria2, it behaves differently
  561. depending on the ssl library it uses. If aria2 built with openssl then
  562. openssl prompts the user for password. If aria2 build with gnutls then
  563. aria2 exists with error at start up.
  564. * src/DownloadEngineFactory.cc
  565. * src/MultiUrlRequestInfo.cc
  566. * src/OptionHandlerFactory.cc
  567. * src/option_processing.cc
  568. * src/prefs.cc
  569. * src/prefs.h
  570. * src/usage_text.h
  571. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Introduced TLSContext that holds TLS related data that can be shared
  573. with multiple SSL connections.
  574. * src/DownloadEngineFactory.cc
  575. * src/LibgnutlsTLSContext.cc
  576. * src/LibgnutlsTLSContext.h
  577. * src/LibsslTLSContext.cc
  578. * src/LibsslTLSContext.h
  579. * src/Makefile.am
  580. * src/SocketCore.cc
  581. * src/SocketCore.h
  582. * src/TLSContext.h
  583. * src/message.h
  584. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Fixed the bug that the DiskWriter of the first FileEntry whose
  586. `needsFileAllocation' property is false is not created
  587. even if it shares a piece with next FileEntry which `requested' property
  588. is true.
  589. Fixed the bug that zero-length file is not created if pre file
  590. allocation is not done.
  591. * src/MultiDiskAdaptor.cc
  592. * src/MultiDiskAdaptor.h
  593. * test/MultiDiskAdaptorTest.cc
  594. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  595. Added the ability to pool proxy connection.
  596. The conneciton in FTP with proxy-method=GET is not pooled.
  597. Proxy-Connection header will not be sent when sending CONNECT method.
  598. * src/DownloadEngine.cc
  599. * src/DownloadEngine.h
  600. * src/FtpFinishDownloadCommand.cc
  601. * src/FtpInitiateConnectionCommand.cc
  602. * src/FtpNegotiationCommand.cc
  603. * src/HttpDownloadCommand.cc
  604. * src/HttpInitiateConnectionCommand.cc
  605. * src/HttpRequest.cc
  606. * src/HttpRequest.h
  607. * src/HttpResponse.cc
  608. * src/HttpSkipResponseCommand.cc
  609. * test/HttpRequestTest.cc
  610. * test/HttpResponseTest.cc
  611. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  612. Handle date before epoch.
  613. To create *bad* Time object, call Time::null().
  614. * src/CookieParser.cc
  615. * src/FtpConnection.cc
  616. * src/FtpConnection.h
  617. * src/FtpNegotiationCommand.cc
  618. * src/RequestGroup.cc
  619. * src/TimeA2.cc
  620. * src/TimeA2.h
  621. * test/CookieParserTest.cc
  622. * test/FtpConnectionTest.cc
  623. * test/TimeTest.cc
  624. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  625. Added support for following envrionment variables: http_proxy,
  626. https_proxy, ftp_proxy and all_proxy.
  627. Each variable is equivalent to the aria2 option whose name is the
  628. variable name with '_' replaced with '-'.
  629. They overrides options specified in aria2.conf file.
  630. The envrionment variables can be overrode using command-line option.
  631. * src/option_processing.cc
  632. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  633. Renamed --http-proxy-method as --proxy-method.
  634. * src/AbstractCommand.cc
  635. * src/FtpInitiateConnectionCommand.cc
  636. * src/HttpInitiateConnectionCommand.cc
  637. * src/OptionHandlerFactory.cc
  638. * src/option_processing.cc
  639. * src/prefs.cc
  640. * src/prefs.h
  641. * src/usage_text.h
  642. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  643. Deprecated --http-proxy-user and --http-proxy-passwd options.
  644. Added --https-proxy, --ftp-proxy and --all-proxy options.
  645. Above 3 options and --http-proxy option can handle proxy in URL format
  646. like: http://user:passwd@host:port.
  647. If a proxy requires user/password, they must be specified in a URL.
  648. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  649. instead.
  650. * src/AbstractCommand.cc
  651. * src/AbstractCommand.h
  652. * src/AbstractProxyRequestCommand.cc
  653. * src/AbstractProxyRequestCommand.h
  654. * src/AuthConfigFactory.cc
  655. * src/AuthConfigFactory.h
  656. * src/FtpFinishDownloadCommand.cc
  657. * src/FtpInitiateConnectionCommand.cc
  658. * src/FtpInitiateConnectionCommand.h
  659. * src/FtpNegotiationCommand.cc
  660. * src/FtpTunnelRequestCommand.cc
  661. * src/FtpTunnelRequestCommand.h
  662. * src/HttpDownloadCommand.cc
  663. * src/HttpInitiateConnectionCommand.cc
  664. * src/HttpInitiateConnectionCommand.h
  665. * src/HttpProxyRequestCommand.cc
  666. * src/HttpProxyRequestCommand.h
  667. * src/HttpRequest.cc
  668. * src/HttpRequest.h
  669. * src/HttpRequestCommand.cc
  670. * src/HttpRequestCommand.h
  671. * src/HttpSkipResponseCommand.cc
  672. * src/InitiateConnectionCommand.cc
  673. * src/InitiateConnectionCommand.h
  674. * src/OptionHandlerFactory.cc
  675. * src/OptionHandlerImpl.h
  676. * src/Request.cc
  677. * src/option_processing.cc
  678. * src/prefs.cc
  679. * src/prefs.h
  680. * src/usage_text.h
  681. * test/AuthConfigFactoryTest.cc
  682. * test/HttpRequestTest.cc
  683. * test/OptionHandlerTest.cc
  684. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  685. Execute choking algorithm when unchoked and interested peer is
  686. disconected.
  687. * src/DefaultPeerStorage.cc
  688. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  689. Added testcase for BtNotInterestedMessage from unchoked peer.
  690. * test/BtNotInterestedMessageTest.cc
  691. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  692. Execute choking algorithm when BtInterestedMessage arrives from
  693. unchoked peer.
  694. * src/BtInterestedMessage.cc
  695. * src/BtInterestedMessage.h
  696. * src/DefaultBtMessageFactory.cc
  697. * test/BtInterestedMessageTest.cc
  698. * test/MockPeerStorage.h
  699. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  700. AuthConfigFactory is now part of DownloadEngine.
  701. * src/AbstractProxyRequestCommand.cc
  702. * src/AuthConfigFactory.h
  703. * src/DownloadEngine.cc
  704. * src/DownloadEngine.h
  705. * src/FtpConnection.cc
  706. * src/FtpConnection.h
  707. * src/FtpNegotiationCommand.cc
  708. * src/HttpConnection.cc
  709. * src/HttpRequest.cc
  710. * src/HttpRequest.h
  711. * src/HttpRequestCommand.cc
  712. * src/HttpResponse.cc
  713. * src/HttpResponseCommand.cc
  714. * src/HttpSkipResponseCommand.cc
  715. * src/MultiUrlRequestInfo.cc
  716. * src/main.cc
  717. * test/FtpConnectionTest.cc
  718. * test/HttpRequestTest.cc
  719. * test/HttpResponseTest.cc
  720. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  721. Corrected catched exception type.
  722. * src/ServerStatMan.cc
  723. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  724. DNSCache is now part of DownloadEngine.
  725. * src/DNSCache.h
  726. * src/DownloadEngine.cc
  727. * src/DownloadEngine.h
  728. * src/InitiateConnectionCommand.cc
  729. * src/MultiUrlRequestInfo.cc
  730. * test/Makefile.am
  731. * test/Makefile.in
  732. * test/SimpleDNSCacheTest.cc
  733. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  734. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  735. DownloadEngine.
  736. * src/ActivePeerConnectionCommand.cc
  737. * src/BtSetup.cc
  738. * src/CUIDCounter.h
  739. * src/DHTSetup.cc
  740. * src/DownloadCommand.cc
  741. * src/DownloadEngine.cc
  742. * src/DownloadEngine.h
  743. * src/DownloadEngineFactory.cc
  744. * src/FileAllocationDispatcherCommand.cc
  745. * src/InitiatorMSEHandshakeCommand.cc
  746. * src/PeerInitiateConnectionCommand.cc
  747. * src/PeerInteractionCommand.cc
  748. * src/PeerListenCommand.cc
  749. * src/RequestGroup.cc
  750. * src/StreamFileAllocationEntry.cc
  751. * src/TrackerWatcherCommand.cc
  752. * src/main.cc
  753. * test/RequestGroupManTest.cc
  754. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  755. Implemented commented code in BtSeederStateChoke
  756. * src/BtSeederStateChoke.cc
  757. * src/Peer.cc
  758. * src/Peer.h
  759. * src/PeerInteractionCommand.cc
  760. * src/PeerSessionResource.cc
  761. * src/PeerSessionResource.h
  762. * test/MockBtMessageDispatcher.h
  763. * test/PeerSessionResourceTest.cc
  764. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  765. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  766. its object.
  767. * src/AbstractBtMessage.cc
  768. * src/ActivePeerConnectionCommand.cc
  769. * src/ActivePeerConnectionCommand.h
  770. * src/BtContextAwareCommand.cc
  771. * src/BtContextAwareCommand.h
  772. * src/BtExtendedMessage.cc
  773. * src/BtExtendedMessage.h
  774. * src/BtInterestedMessage.cc
  775. * src/BtInterestedMessage.h
  776. * src/BtNotInterestedMessage.cc
  777. * src/BtNotInterestedMessage.h
  778. * src/BtRegistry.cc
  779. * src/BtRegistry.h
  780. * src/BtSeederStateChoke.cc
  781. * src/BtSetup.cc
  782. * src/DHTGetPeersCommand.cc
  783. * src/DHTGetPeersCommand.h
  784. * src/DHTPeerAnnounceEntry.cc
  785. * src/DHTPeerAnnounceEntry.h
  786. * src/DHTPeerAnnounceStorage.cc
  787. * src/DHTPeerAnnounceStorage.h
  788. * src/DHTPeerLookupTask.cc
  789. * src/DHTPeerLookupTask.h
  790. * src/DHTSetup.cc
  791. * src/DHTSetup.h
  792. * src/DHTTaskFactory.h
  793. * src/DHTTaskFactoryImpl.cc
  794. * src/DHTTaskFactoryImpl.h
  795. * src/DefaultBtAnnounce.cc
  796. * src/DefaultBtInteractive.cc
  797. * src/DefaultBtInteractive.h
  798. * src/DefaultBtMessageDispatcher.cc
  799. * src/DefaultBtMessageDispatcher.h
  800. * src/DefaultBtMessageFactory.cc
  801. * src/DefaultBtMessageFactory.h
  802. * src/DefaultBtMessageReceiver.cc
  803. * src/DefaultBtProgressInfoFile.cc
  804. * src/DefaultBtProgressInfoFile.h
  805. * src/DefaultBtRequestFactory.cc
  806. * src/DefaultBtRequestFactory.h
  807. * src/DefaultExtensionMessageFactory.cc
  808. * src/DefaultExtensionMessageFactory.h
  809. * src/DefaultPeerStorage.cc
  810. * src/DefaultPeerStorage.h
  811. * src/DownloadEngine.cc
  812. * src/DownloadEngine.h
  813. * src/InitiatorMSEHandshakeCommand.cc
  814. * src/InitiatorMSEHandshakeCommand.h
  815. * src/MSEHandshake.cc
  816. * src/MSEHandshake.h
  817. * src/Makefile.am
  818. * src/Makefile.in
  819. * src/PeerChokeCommand.cc
  820. * src/PeerChokeCommand.h
  821. * src/PeerInitiateConnectionCommand.cc
  822. * src/PeerInitiateConnectionCommand.h
  823. * src/PeerInteractionCommand.cc
  824. * src/PeerInteractionCommand.h
  825. * src/PeerObject.h
  826. * src/PeerReceiveHandshakeCommand.cc
  827. * src/PeerReceiveHandshakeCommand.h
  828. * src/ReceiverMSEHandshakeCommand.cc
  829. * src/RequestGroup.cc
  830. * src/RequestGroup.h
  831. * src/RequestGroupMan.cc
  832. * src/RequestGroupMan.h
  833. * src/SeedCheckCommand.cc
  834. * src/SeedCheckCommand.h
  835. * src/ShareRatioSeedCriteria.h
  836. * src/SimpleBtMessage.cc
  837. * src/TrackerWatcherCommand.cc
  838. * src/TrackerWatcherCommand.h
  839. * src/UTPexExtensionMessage.cc
  840. * src/UTPexExtensionMessage.h
  841. * test/BtCancelMessageTest.cc
  842. * test/BtChokeMessageTest.cc
  843. * test/BtExtendedMessageTest.cc
  844. * test/BtInterestedMessageTest.cc
  845. * test/BtNotInterestedMessageTest.cc
  846. * test/BtPieceMessageTest.cc
  847. * test/BtPortMessageTest.cc
  848. * test/BtRegistryTest.cc
  849. * test/BtRejectMessageTest.cc
  850. * test/BtRequestMessageTest.cc
  851. * test/DHTPeerAnnounceEntryTest.cc
  852. * test/DHTPeerAnnounceStorageTest.cc
  853. * test/DefaultBtMessageDispatcherTest.cc
  854. * test/DefaultBtMessageFactoryTest.cc
  855. * test/DefaultBtProgressInfoFileTest.cc
  856. * test/DefaultBtRequestFactoryTest.cc
  857. * test/DefaultExtensionMessageFactoryTest.cc
  858. * test/MSEHandshakeTest.cc
  859. * test/MockDHTTaskFactory.h
  860. * test/ShareRatioSeedCriteriaTest.cc
  861. * test/UTPexExtensionMessageTest.cc
  862. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  863. Fixed compiler warning.
  864. * test/UtilTest.cc
  865. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  866. Treat Cookie object as session cookie if expiry = 0 is given.
  867. With this change, you can specify session scoped cookies in an external
  868. file setting expiry value to 0.
  869. * src/Cookie.cc
  870. * src/Cookie.h
  871. * test/CookieParserTest.cc
  872. * test/CookieStorageTest.cc
  873. * test/CookieTest.cc
  874. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  875. Changed signature of DHTMessageFactory::createResponseMessage().
  876. Removed unused validateIDMatch.
  877. * src/DHTMessageFactory.h
  878. * src/DHTMessageFactoryImpl.cc
  879. * src/DHTMessageFactoryImpl.h
  880. * src/DHTMessageTracker.cc
  881. * test/DHTMessageFactoryImplTest.cc
  882. * test/MockDHTMessageFactory.h
  883. Dropped DHT message coming from same ID of localhost.
  884. * src/DHTMessageReceiver.cc
  885. Rejected adding node whose ID is the same as localhost's.
  886. * src/DHTRoutingTable.cc
  887. * test/BtPortMessageTest.cc
  888. * test/DHTRoutingTableTest.cc
  889. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  890. Pool connection when redirection occurs with Content-Length = 0.
  891. * src/HttpSkipResponseCommand.cc
  892. * src/HttpSkipResponseCommand.h
  893. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  894. Fixed the bug that causes time out when redirection occurs with
  895. content-length 0.
  896. * src/HttpResponseCommand.cc
  897. * src/HttpSkipResponseCommand.cc
  898. * src/HttpSkipResponseCommand.h
  899. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  900. Now each status legends is shown only when it appears in Download
  901. Result. If Download Result has no item, then status legend will not
  902. be printed.
  903. * src/RequestGroupMan.cc
  904. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  905. Removed duplicate creation of OptionHandlers.
  906. * src/option_processing.cc
  907. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  908. Fixed the bug that causes segmentation fault when accessing files which
  909. don't exist or are not included in --select-file option while
  910. validating chunk checksum.
  911. * src/MultiDiskAdaptor.cc
  912. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  913. Fixed compiler warning.
  914. * test/UtilTest.cc
  915. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  916. Included cstdlib. This fixed the compile error with g++-4.3.2.
  917. * src/IteratableChecksumValidator.cc
  918. * src/IteratableChunkChecksumValidator.cc
  919. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  920. * Release 0.16.2
  921. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  922. Added Serbian translation. Updated Ukrainian translation.
  923. Thanks to all translators.
  924. * po/sr.po
  925. * po/uk.po
  926. * po/LINGUAS
  927. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Bump up version number to 0.16.2
  929. * configure.ac
  930. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  931. Added length equality test to operator== to drop a piece message
  932. whose length does not match to the requested one.
  933. * src/RequestSlot.cc
  934. * test/DefaultBtMessageDispatcherTest.cc
  935. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  936. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  937. recieved.
  938. In this fix, if a request larger than 16KiB length is received, aria2
  939. disconnects the peer.
  940. * src/BtConstants.h
  941. * src/PeerMessageUtil.cc
  942. * src/PeerMessageUtil.h
  943. * test/BtRequestMessageTest.cc
  944. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  945. * Release 0.16.1
  946. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  947. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  948. * doc/aria2c.1.txt
  949. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  950. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  951. Updated French, Simplified Chinese and Japanese translations.
  952. Thanks to all translators.
  953. en@quot and en@boldquot are also added.
  954. * po/LINGUAS
  955. * po/fr.po
  956. * po/ja.po
  957. * po/uk.po
  958. * po/vi.po
  959. * po/zh_CN.po
  960. * po/zh_TW.po
  961. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  962. Bump up version number to 0.16.1.
  963. * configure.ac
  964. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  965. Updated README.
  966. * README
  967. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  968. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  969. not to replace '--' with em dash character.
  970. * doc/aria2c.1.txt
  971. * doc/makeman
  972. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  973. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  974. every SEC seconds.
  975. * src/DownloadEngineFactory.cc
  976. * src/OptionHandlerFactory.cc
  977. * src/option_processing.cc
  978. * src/usage_text.h
  979. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  980. Fixed compile warning on linux-amd64
  981. * src/FtpConnection.cc
  982. * src/IteratableChunkChecksumValidator.cc
  983. * src/MultiDiskAdaptor.cc
  984. Fixed the bug that unit test fails on linux-amd64
  985. * test/UtilTest.cc
  986. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  987. Added --dht-file-path option to change the path to dht.dat, which is a
  988. serialized DHT routing table.
  989. * src/OptionHandlerFactory.cc
  990. * src/option_processing.cc
  991. * src/usage_text.h
  992. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  993. Fixed possible underflow.
  994. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  995. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  996. Fixed the bug that last character in URI is not encoded.
  997. * src/Request.cc
  998. * test/RequestTest.cc
  999. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1000. Fixed the bug that referer header field contains fragment.
  1001. Now Request class removes fragment part of URI and encodes it
  1002. in Request::setUri() and setReferer().
  1003. * src/Request.h
  1004. * src/Request.cc
  1005. * test/RequestTest.cc
  1006. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1007. Added missing m4 macros.
  1008. * m4/cppunit.m4
  1009. * m4/libgcrypt.m4
  1010. * m4/libgnutls-extra.m4
  1011. * m4/libgnutls.m4
  1012. * m4/libxml2.m4
  1013. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1014. Fixed compile error with gcc-4.4(snapshot)
  1015. * src/File.cc
  1016. * src/FtpConnection.cc
  1017. * src/OptionHandlerImpl.h
  1018. * src/Util.cc
  1019. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1020. Removed assert()
  1021. * src/SocketBuffer.cc (SocketBuffer::send)
  1022. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1023. Changed the type of _numNewConnection to unsigned int.
  1024. * src/ActivePeerConnectionCommand.cc
  1025. * src/ActivePeerConnectionCommand.h
  1026. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1027. * Release 0.16.0
  1028. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1029. Updated doc
  1030. * README
  1031. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1032. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1033. translations. Thanks to all translators.
  1034. * po/bg.po
  1035. * po/de.po
  1036. * po/fr.po
  1037. * po/ja.po
  1038. * po/zh_CN.po
  1039. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1040. Bump up version number to 0.16.0.
  1041. * configure.ac
  1042. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1043. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1044. int32_t.
  1045. Changed the type of count to int32_t.
  1046. * src/Metalink2RequestGroup.cc
  1047. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1048. Added test for Time::elapsed(time_t).
  1049. * test/TimeTest.cc
  1050. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1051. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1052. Util::difftv() should be used instead.
  1053. * src/TimeA2.cc
  1054. * src/TimeA2.h
  1055. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1056. Made socket for dht connections non-blocking
  1057. * src/DHTAbstractMessage.cc
  1058. * src/DHTAbstractMessage.h
  1059. * src/DHTConnection.h
  1060. * src/DHTConnectionImpl.cc
  1061. * src/DHTConnectionImpl.h
  1062. * src/DHTMessage.h
  1063. * src/DHTMessageDispatcherImpl.cc
  1064. * src/DHTMessageDispatcherImpl.h
  1065. * src/DHTUnknownMessage.cc
  1066. * src/DHTUnknownMessage.h
  1067. * src/SocketCore.cc
  1068. * src/SocketCore.h
  1069. * test/MockDHTMessage.h
  1070. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1071. Changed the type of offset to int.
  1072. * src/ParameterizedStringParser.cc
  1073. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1074. Made getAsInt() return int32_t
  1075. * src/Option.h
  1076. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1077. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1078. build.
  1079. * configure.ac
  1080. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1081. Use sqlite3_open if sqlite3_open_v2 is not available.
  1082. * src/Sqlite3MozCookieParser.cc
  1083. * src/Sqlite3MozCookieParser.h
  1084. * m4/sqlite3.m4
  1085. * test/Sqlite3MozCookieParserTest.cc
  1086. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1087. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1088. * src/BtPieceMessage.cc
  1089. * src/DHTPeerAnnounceStorage.cc
  1090. * src/DefaultPieceStorage.cc
  1091. * src/DownloadCommand.cc
  1092. * src/DownloadEngine.cc
  1093. * src/FtpConnection.cc
  1094. * src/PeerConnection.cc
  1095. * src/PeerMessageUtil.cc
  1096. * src/RequestGroup.cc
  1097. * src/RequestGroupMan.cc
  1098. * src/SimpleBtMessage.cc
  1099. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1100. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  1101. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  1102. * src/AbstractDiskWriter.cc
  1103. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1104. Don't set Request::supportsPersistentConnection() in HttpConnection
  1105. since this code is also used in AbstractProxyResponseCommand.
  1106. Moved those code to HttpResponse.
  1107. * src/HttpResponse.cc
  1108. * src/HttpResponse.h
  1109. * src/HttpConnection.cc
  1110. * src/HttpConnection.h
  1111. * src/HttpResponseCommand.cc
  1112. * test/HttpResponseTest.cc
  1113. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1114. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1115. The configuration is minimum: no torrent, no metalink, so there may be
  1116. other compile error on their code.
  1117. * src/a2netcompat.h
  1118. * src/File.cc
  1119. * src/File.h
  1120. * src/SocketCore.cc
  1121. * src/SocketCore.h
  1122. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1123. Made a socket of incoming peer non-blocking.
  1124. * src/PeerListenCommand.cc
  1125. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1126. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  1127. whole message data is not sent in one send() call.
  1128. * src/BtPieceMessage.cc
  1129. * src/BtPieceMessage.h
  1130. * src/PeerConnection.cc
  1131. * src/PeerConnection.h
  1132. * src/SimpleBtMessage.cc
  1133. * src/SimpleBtMessage.h
  1134. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1135. Fixed the bug that aria2 downloads faster than max-download-limit when
  1136. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  1137. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  1138. , instead of sum of them.
  1139. * src/ActivePeerConnectionCommand.cc
  1140. * src/DefaultBtInteractive.cc
  1141. * src/DownloadCommand.cc
  1142. * src/PeerInteractionCommand.cc
  1143. * src/PeerReceiveHandshakeCommand.cc
  1144. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1145. Fixed the bug that HTTPS download fails.
  1146. * src/AbstractCommand.cc
  1147. * src/AbstractCommand.h
  1148. * src/DownloadCommand.cc
  1149. * src/FtpConnection.cc
  1150. * src/HttpConnection.cc
  1151. * src/HttpRequestCommand.cc
  1152. * src/HttpResponseCommand.cc
  1153. * src/HttpSkipResponseCommand.cc
  1154. * src/MSEHandshake.cc
  1155. * src/PeerConnection.cc
  1156. * src/SocketCore.cc
  1157. * src/SocketCore.h
  1158. Fixed the bug that aria2 doesn't download whole content body and cannot
  1159. reuse connection if chunked transfer encoding and gzip content encoding
  1160. are set.
  1161. * src/DownloadCommand.cc
  1162. * src/HttpSkipResponseCommand.cc
  1163. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1164. Updated man page.
  1165. * doc/aria2c.1.txt
  1166. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1167. When error occurred while aria2 was parsing an .aria2.conf file, print
  1168. the usage of the option that caused error.
  1169. * src/option_processing.cc
  1170. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1171. Fixed compile error on OptionHandlerException
  1172. * src/Makefile.am
  1173. * src/OptionHandlerException.cc
  1174. * src/OptionHandlerException.h
  1175. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1176. Moved message of the error to OptionHandlerException.h
  1177. * src/NameMatchOptionHandler.h
  1178. * src/OptionHandlerException.h
  1179. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1180. When error occurs while aria2 is parsing an command-line option, print
  1181. the usage of the option.
  1182. * src/Makefile.am
  1183. * src/NameMatchOptionHandler.h
  1184. * src/OptionHandlerException.h
  1185. * src/option_processing.cc
  1186. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1187. Reverted previous change.
  1188. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1189. username is not in URI.
  1190. * src/HttpRequest.cc
  1191. * src/Request.cc
  1192. * test/HttpRequestTest.cc
  1193. * test/RequestTest.cc
  1194. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1195. Now colon is required for username and password in FTP URL, like:
  1196. ftp://username:password@host.
  1197. If colon is not there, aria2 don't parse it as a username. For example,
  1198. aria2 don't retrieve username from ftp://username@host.
  1199. This fix was made in order to login FTP server via non-transparent ftp
  1200. proxy.
  1201. * src/Request.cc
  1202. * test/RequestTest.cc
  1203. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1204. Use netrc for HTTP.
  1205. Now FTP user/password is sent in Authorization header when
  1206. --ftp-via-http-proxy=get is given.
  1207. * src/AuthConfigFactory.cc
  1208. * src/HttpRequest.cc
  1209. * src/HttpRequest.h
  1210. * src/NetrcAuthResolver.cc
  1211. * src/NetrcAuthResolver.h
  1212. * src/OptionHandlerFactory.cc
  1213. * src/option_processing.cc
  1214. * src/prefs.cc
  1215. * src/prefs.h
  1216. * test/AuthConfigFactoryTest.cc
  1217. * test/HttpRequestTest.cc
  1218. * test/NetrcAuthResolverTest.cc
  1219. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1220. Issue PWD command first and get working directory and use it as a prefix
  1221. for CWD command.
  1222. * src/DownloadEngine.cc
  1223. * src/DownloadEngine.h
  1224. * src/FtpConnection.cc
  1225. * src/FtpConnection.h
  1226. * src/FtpFinishDownloadCommand.cc
  1227. * src/FtpInitiateConnectionCommand.cc
  1228. * src/FtpNegotiationCommand.cc
  1229. * src/FtpNegotiationCommand.h
  1230. * test/FtpConnectionTest.cc
  1231. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1232. Removed default user/pass for FTP user/pass, since it should not have
  1233. precedence over netrc configuration by default.
  1234. * src/OptionHandlerFactory.cc
  1235. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1236. Added debug log for socket event.
  1237. * src/AbstractCommand.cc
  1238. * src/PeerAbstractCommand.cc
  1239. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1240. Log microseconds.
  1241. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1242. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1243. Replaced HelpItem.cc with OptionHandler.cc.
  1244. * po/POTFILES.in
  1245. Updated po files with 'make update-po'
  1246. * po/aria2c.pot
  1247. * po/*.po
  1248. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1249. Removed possible values from the text.
  1250. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  1251. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1252. Removed unused preferences:
  1253. PREF_NO_PREALLOCATION
  1254. PREF_STDOUT_LOG
  1255. PREF_TRACKER_MAX_TRIES
  1256. PREF_DIRECT_DOWNLOAD_TIMEOUT
  1257. PREF_MIN_SEGMENT_SIZE
  1258. * src/option_processing.cc
  1259. * src/prefs.cc
  1260. * src/prefs.h
  1261. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1262. Integrated HelpItem into OptionParser to ease the workload for adding
  1263. new options. Removed default value from usage text.
  1264. * src/HelpItem.cc: Removed.
  1265. * src/HelpItem.h: Removed.
  1266. * src/HelpItemFactory.cc: Removed.
  1267. * src/HelpItemFactory.h: Removed.
  1268. * src/Makefile.am
  1269. * src/Makefile.in
  1270. * src/NameMatchOptionHandler.h
  1271. * src/OptionHandler.cc
  1272. * src/OptionHandler.h
  1273. * src/OptionHandlerFactory.cc
  1274. * src/OptionHandlerImpl.h
  1275. * src/OptionParser.cc
  1276. * src/OptionParser.h
  1277. * src/TagContainer.cc: Removed.
  1278. * src/TagContainer.h: Removed.
  1279. * src/TaggedItem.cc: Removed.
  1280. * src/TaggedItem.h: Removed.
  1281. * src/main.cc
  1282. * src/option_processing.cc
  1283. * src/usage_text.h
  1284. * src/version_usage.cc
  1285. * test/HelpItemTest.cc: Removed.
  1286. * test/Makefile.am
  1287. * test/Makefile.in
  1288. * test/OptionHandlerTest.cc
  1289. * test/OptionParserTest.cc
  1290. * test/TagContainerTest.cc: Removed.
  1291. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1292. Moved `TransferStat stat = ...' to inside the `if' clause.
  1293. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1294. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1295. Fixed the bug that a block in a piece is requested when same block is
  1296. already requested to the same peer in end game mode.
  1297. * src/BtRequestFactory.h
  1298. * src/DefaultBtInteractive.cc
  1299. * src/DefaultBtRequestFactory.cc
  1300. * src/DefaultBtRequestFactory.h
  1301. * src/DefaultPieceStorage.cc
  1302. * src/DefaultPieceStorage.h
  1303. * src/PieceStorage.h
  1304. * src/UnknownLengthPieceStorage.cc
  1305. * src/UnknownLengthPieceStorage.h
  1306. * test/DefaultBtRequestFactoryTest.cc
  1307. * test/DefaultPieceStorageTest.cc
  1308. * test/MockBtRequestFactory.h
  1309. * test/MockPieceStorage.h
  1310. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1311. Removed _uploadLength and _downloadLength from PeerSessionResource
  1312. and use PeerStat::_sessionUploadLength and
  1313. PeerStat::_sessionDownloadLength.
  1314. * src/PeerSessionResource.cc
  1315. * src/PeerSessionResource.h
  1316. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1317. Fixed the bug that prefixLength of split bucket which doesn't include
  1318. local node ID is incremented.
  1319. * src/DHTBucket.cc
  1320. * src/DHTBucket.h
  1321. * test/DHTBucketTest.cc
  1322. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Added cookies.sqlite to EXTRA_DIST
  1324. * test/Makefile.am
  1325. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1326. Added Turkish translation. Updated French, German, Russian and
  1327. Simplified Chinese translations. Thanks to all translators.
  1328. * po/LINGUAS
  1329. * po/de.po
  1330. * po/fr.po
  1331. * po/ru.po
  1332. * po/tr.po
  1333. * po/zh_CN.po
  1334. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1335. Added deliminating text to the beginning of the log so that one can find
  1336. where the log starts easily.
  1337. * src/main.cc
  1338. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1339. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  1340. to fix compile error when async DNS is not enabled by configuration.
  1341. * src/AbstractCommand.cc
  1342. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1343. If establishing conneciton to a server is failed, then mark error on
  1344. its ServerStat.
  1345. Added the cause of error to log when error event occurred.
  1346. Moved message string to message.h for translation.
  1347. * src/AbstractCommand.cc
  1348. * src/AbstractCommand.h
  1349. * src/FtpNegotiationCommand.cc
  1350. * src/HttpRequestCommand.cc
  1351. * src/PeerAbstractCommand.cc
  1352. * src/message.h
  1353. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Added the function to get error message from socket.
  1355. * src/SocketCore.cc
  1356. * src/SocketCore.h
  1357. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1358. Added convenient method RequestGroupMan::getOrCreateServerStat()
  1359. * src/RequestGroupMan.cc
  1360. * src/RequestGroupMan.h
  1361. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1362. If error event is received in epoll, then abort download immediately.
  1363. * src/AbstractCommand.cc
  1364. * src/Command.cc
  1365. * src/Command.h
  1366. * src/DownloadEngine.cc
  1367. * src/PeerAbstractCommand.cc
  1368. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1369. Added usage message for --uri-selector, --server-stat-of,
  1370. --server-stat-in, --server-stat-timeout options.
  1371. * src/HelpItemFactory.cc
  1372. * src/usage_text.h
  1373. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1374. Added upper limit of FTP response buffer. The current implementation
  1375. uses 4096bytes as a limit.
  1376. * src/FtpConnection.cc
  1377. * src/FtpConnection.h
  1378. * test/FtpConnectionTest.cc
  1379. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1380. Use non-blocking socket for TCP communication to avoid possible
  1381. blocking due to buffer full.
  1382. * src/AbstractProxyRequestCommand.cc
  1383. * src/FtpConnection.cc
  1384. * src/FtpConnection.h
  1385. * src/FtpNegotiationCommand.cc
  1386. * src/FtpNegotiationCommand.h
  1387. * src/HttpConnection.cc
  1388. * src/HttpConnection.h
  1389. * src/HttpRequestCommand.cc
  1390. * src/InitiatorMSEHandshakeCommand.cc
  1391. * src/InitiatorMSEHandshakeCommand.h
  1392. * src/MSEHandshake.cc
  1393. * src/MSEHandshake.h
  1394. * src/Makefile.am
  1395. * src/PeerConnection.cc
  1396. * src/PeerConnection.h
  1397. * src/PeerInteractionCommand.cc
  1398. * src/PeerListenCommand.cc
  1399. * src/ReceiverMSEHandshakeCommand.cc
  1400. * src/ReceiverMSEHandshakeCommand.h
  1401. * src/SocketBuffer.cc
  1402. * src/SocketBuffer.h
  1403. * src/SocketCore.cc
  1404. * src/SocketCore.h
  1405. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1406. Call setStatusRealtime() in constructor.
  1407. * src/RealtimeCommand.cc
  1408. * src/RealtimeCommand.h
  1409. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1410. Call Download::setNoWait(true) to execute newly created command without
  1411. a pause.
  1412. * src/AbstractCommand.cc
  1413. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1414. Added --max-file-not-found=NUM option. If aria2 receives `file not
  1415. found' error from HTTP/FTP server NUM times without getting single
  1416. bytes of data, then force the download to fail.
  1417. Basically aria2 tris all URIs available. So if long list of URIs are
  1418. specified in Metalink, then aria2 will take a long time to fail
  1419. eventually if all URIs are outdated. This option eases this situation
  1420. to limit the number of servers to try.
  1421. * src/FtpNegotiationCommand.cc
  1422. * src/HelpItemFactory.cc
  1423. * src/HttpResponseCommand.cc
  1424. * src/OptionHandlerFactory.cc
  1425. * src/PeerStat.h
  1426. * src/RequestGroup.cc
  1427. * src/RequestGroup.h
  1428. * src/SegmentMan.cc
  1429. * src/SegmentMan.h
  1430. * src/option_processing.cc
  1431. * src/prefs.cc
  1432. * src/prefs.h
  1433. * src/usage_text.h
  1434. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1435. Fixed the bug that bulkReceiveResponse() reads all received data as a
  1436. response even if more than one response is in it.
  1437. * src/FtpConnection.cc
  1438. * src/FtpConnection.h
  1439. * test/FtpConnectionTest.cc
  1440. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1441. Merged from stable-0.15
  1442. * m4/libcares.m4
  1443. Use pkg-config
  1444. * m4/sqlite3.m4
  1445. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1446. Removed unnecessary if statement.
  1447. * src/DefaultPieceStorage.cc (initPieceStorage)
  1448. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1449. Added --connect-timeout option to specify connect timeout in seconds.
  1450. This option is in effect for HTTP/FTP/proxy server. The timeout for
  1451. connecting to BitTorrent peer is not controlled by this option.
  1452. * src/AbstractProxyRequestCommand.cc
  1453. * src/FtpNegotiationCommand.cc
  1454. * src/HelpItemFactory.cc
  1455. * src/HttpRequestCommand.cc
  1456. * src/OptionHandlerFactory.cc
  1457. * src/option_processing.cc
  1458. * src/prefs.cc
  1459. * src/prefs.h
  1460. * src/usage_text.h
  1461. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1462. Added help message for -R option.
  1463. * src/HelpItemFactory.cc
  1464. * src/usage_text.h
  1465. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1466. Added the message that the time is in local time zone.
  1467. * src/RequestGroup.cc
  1468. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1469. Implemented the ability to get timestamp from remote FTP server using
  1470. MDTM command described in RFC3659.
  1471. * src/FtpConnection.cc
  1472. * src/FtpConnection.h
  1473. * src/FtpNegotiationCommand.cc
  1474. * src/FtpNegotiationCommand.h
  1475. * test/FtpConnectionTest.cc
  1476. * test/Makefile.am
  1477. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1478. Implemented the ability to get timestamp from remote HTTP server and
  1479. apply it to local file. To enable this feature, --remote-time option
  1480. is added. No usage text has been written yet.
  1481. If several servers returns difference timestamp, then aria2 uses latest
  1482. one.
  1483. * src/CopyDiskAdaptor.cc
  1484. * src/CopyDiskAdaptor.h
  1485. * src/DirectDiskAdaptor.cc
  1486. * src/DirectDiskAdaptor.h
  1487. * src/DiskAdaptor.h
  1488. * src/File.cc
  1489. * src/File.h
  1490. * src/HttpHeader.cc
  1491. * src/HttpHeader.h
  1492. * src/HttpResponse.cc
  1493. * src/HttpResponse.h
  1494. * src/HttpResponseCommand.cc
  1495. * src/HttpResponseCommand.h
  1496. * src/MultiDiskAdaptor.cc
  1497. * src/MultiDiskAdaptor.h
  1498. * src/OptionHandlerFactory.cc
  1499. * src/RequestGroup.cc
  1500. * src/RequestGroup.h
  1501. * src/RequestGroupMan.cc
  1502. * src/option_processing.cc
  1503. * src/prefs.cc
  1504. * src/prefs.h
  1505. * test/CopyDiskAdaptorTest.cc
  1506. * test/FileTest.cc
  1507. * test/Makefile.am
  1508. * test/Makefile.in
  1509. * test/MultiDiskAdaptorTest.cc
  1510. * test/TestUtil.cc
  1511. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1512. Fixed the bug that DiskWriterEntry is not created when its
  1513. FileEntry.isRequested() is false and it doesn't share a piece with
  1514. other FileEntries that are requested. This bug causes segmentation fault
  1515. in the end.
  1516. * src/MultiDiskAdaptor.cc
  1517. * src/MultiDiskAdaptor.h
  1518. * src/MultiFileAllocationIterator.cc
  1519. * test/MultiDiskAdaptorTest.cc
  1520. * test/MultiFileAllocationIteratorTest.cc
  1521. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1522. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  1523. called if the number of file entries are greater than max open files.
  1524. * src/AbstractSingleDiskAdaptor.cc
  1525. * src/AbstractSingleDiskAdaptor.h
  1526. * src/DiskAdaptor.h
  1527. * src/MultiDiskAdaptor.cc
  1528. * src/MultiDiskAdaptor.h
  1529. * test/MultiDiskAdaptorTest.cc
  1530. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1531. Added a constuctor that receives struct timeval.
  1532. Added operator<.
  1533. * src/TimeA2.cc
  1534. * src/TimeA2.h
  1535. * test/TimeTest.cc
  1536. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1537. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1538. * src/CookieParser.cc
  1539. * test/CookieParserTest.cc
  1540. * test/HttpResponseTest.cc
  1541. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1542. Implmented the functions to parse date.
  1543. * src/TimeA2.cc
  1544. * src/TimeA2.h
  1545. * test/TimeTest.cc
  1546. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1547. Added "Firefox3 Cookie" feature to FeatureConfig
  1548. * src/FeatureConfig.cc
  1549. * src/FeatureConfig.h
  1550. * test/FeatureConfigTest.cc
  1551. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1552. Bump up version number to 0.16.0b
  1553. * configure.ac
  1554. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1555. Use pkg-config if is is available.
  1556. * m4/openssl.m4
  1557. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1558. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  1559. * src/BtAnnounce.h
  1560. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1561. If an error occurred with a URI, remove identical URI from remaining
  1562. URI list because it is likely that same error occurred in the end and it
  1563. is waste of time.
  1564. * src/AbstractCommand.cc
  1565. * src/RequestGroup.cc
  1566. * src/RequestGroup.h
  1567. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1568. Removed wrong comment.
  1569. * src/DefaultPeerStorage.cc
  1570. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1571. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  1572. Added return value of getpid() to argument of srand() to achieve more
  1573. randomized value.
  1574. * src/SimpleRandomizer.cc
  1575. * src/SimpleRandomizer.h
  1576. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1577. Contact tracker frequently when the number of connections are 0 and
  1578. download is not finished yet.
  1579. * src/ActivePeerConnectionCommand.cc
  1580. * src/BtAnnounce.h
  1581. * src/DefaultBtAnnounce.cc
  1582. * src/DefaultBtAnnounce.h
  1583. * test/MockBtAnnounce.h
  1584. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1585. Moved threshold values to UTPexExtensionMessage.
  1586. * src/DefaultBtInteractive.cc
  1587. * src/Peer.cc
  1588. * src/Peer.h
  1589. * src/UTPexExtensionMessage.cc
  1590. * src/UTPexExtensionMessage.h
  1591. * test/UTPexExtensionMessageTest.cc
  1592. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1593. Added _incoming member to Peer class and made it true if the peer
  1594. initiated connection. Don't add those peer to UTPex message.
  1595. If extended handshake is received, assign _incoming to false.
  1596. * src/DefaultBtInteractive.cc
  1597. * src/HandshakeExtensionMessage.cc
  1598. * src/Peer.cc
  1599. * src/Peer.h
  1600. * src/PeerListenCommand.cc
  1601. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1602. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  1603. Encoding Decoder. Removed size threshold for turning off on the fly
  1604. inflation because resulting file may or may not be inflated depending
  1605. on the file size and I think it is not expected by users.
  1606. This change fixes segmentation fault when Metalink file contains gzipped
  1607. file and its filesize is provided.
  1608. * src/HttpResponseCommand.cc
  1609. * src/HttpResponseCommand.h
  1610. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1611. Made Cookie immutable.
  1612. * src/Cookie.cc
  1613. * src/Cookie.h
  1614. * src/CookieParser.cc
  1615. * src/CookieParser.h
  1616. * src/CookieStorage.cc
  1617. * test/CookieParserTest.cc
  1618. * test/CookieStorageTest.cc
  1619. * test/NsCookieParserTest.cc
  1620. * test/Sqlite3MozCookieParserTest.cc
  1621. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1622. Removed CookieBox, CookieBoxFactory.
  1623. * src/CookieBox.cc
  1624. * src/CookieBox.h
  1625. * src/CookieBoxFactory.cc
  1626. * src/CookieBoxFactory.h
  1627. * src/Makefile.am
  1628. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1629. Use CookieStorage class instead of CookieBox class.
  1630. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  1631. * src/AbstractProxyRequestCommand.cc
  1632. * src/CookieStorage.cc
  1633. * src/DownloadEngine.cc
  1634. * src/DownloadEngine.h
  1635. * src/HttpConnection.cc
  1636. * src/HttpConnection.h
  1637. * src/HttpRequest.cc
  1638. * src/HttpRequest.h
  1639. * src/HttpRequestCommand.cc
  1640. * src/HttpResponse.cc
  1641. * src/HttpResponseCommand.cc
  1642. * src/HttpSkipResponseCommand.cc
  1643. * src/Makefile.am
  1644. * src/MultiUrlRequestInfo.cc
  1645. * src/Request.cc
  1646. * src/Request.h
  1647. * src/main.cc
  1648. * test/AllTest.cc
  1649. * test/CookieStorageTest.cc
  1650. * test/CookieTest.cc
  1651. * test/HttpRequestTest.cc
  1652. * test/HttpResponseTest.cc
  1653. * test/Makefile.am
  1654. * test/NsCookieParserTest.cc
  1655. * test/Sqlite3MozCookieParserTest.cc
  1656. * test/nscookietest.txt
  1657. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1658. Updated
  1659. * test/Cookies.sqlite
  1660. * test/nscookietest.txt
  1661. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1662. Added tests for CookieStorage::load()
  1663. * test/CookieStorageTest.cc
  1664. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1665. Added CookieStorage class which is based on RFC2109 and manages cookies
  1666. more strictly than CookieBox and CookieBoxFactory class.
  1667. * src/CookieStorage.cc
  1668. * src/CookieStorage.h
  1669. * src/Cookie.cc
  1670. * src/Cookie.h
  1671. * test/CookieStorageTest.cc
  1672. * test/CookieTest.cc
  1673. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1674. Fixed the bug that commands are created more than the number of pieces.
  1675. * src/RequestGroup.cc
  1676. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1677. Fixed infinite loop bug in FTP when SIZE command failed.
  1678. * src/FtpNegotiationCommand.cc
  1679. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1680. Removed DirectDiskAdaptorTest.h
  1681. * test/Makefile.am
  1682. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1683. Fixed chunk checksum validation cannot detect trailing garbage data.
  1684. BUG#2074141
  1685. * src/AbstractSingleDiskAdaptor.cc
  1686. * src/AbstractSingleDiskAdaptor.h
  1687. * src/CheckIntegrityEntry.cc
  1688. * src/CheckIntegrityEntry.h
  1689. * src/DiskAdaptor.h
  1690. * src/MultiDiskAdaptor.cc
  1691. * src/MultiDiskAdaptor.h
  1692. * src/RequestGroup.cc
  1693. * test/DirectDiskAdaptorTest.cc
  1694. * test/MultiDiskAdaptorTest.cc
  1695. * test/TestUtil.cc
  1696. * test/TestUtil.h
  1697. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1698. Bump up version number of dht.dat file to 3. In version 3 format, time
  1699. is stored in 64bit, network byte order.
  1700. New build can load old format(version 2) but it saves the file in new
  1701. format. It means once you used new build, your dht.dat becomes
  1702. incompatible with older build.
  1703. * src/DHTRoutingTableDeserializer.cc
  1704. * src/DHTRoutingTableSerializer.cc
  1705. * test/DHTRoutingTableSerializerTest.cc
  1706. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1707. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1708. * test/Makefile.am
  1709. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1710. Bump up version number of .aria2 control file to 0001.
  1711. New aria2 can still load version 0000 file but it saves the file in
  1712. version 0001 format. It means that new aria2 can resume download
  1713. started by old aria2 but the opposite is not true.
  1714. * src/DefaultBtProgressInfoFile.cc
  1715. * src/DefaultBtProgressInfoFile.h
  1716. * test/DefaultBtProgressInfoFileTest.cc
  1717. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1718. Added ntoh64 and hton64 as inline functions.
  1719. * src/Util.cc
  1720. * test/UtilTest.cc
  1721. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1722. Added sqlite3 depenency and Firefox3 cookie support.
  1723. * README
  1724. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1725. State that firefox3 cookie is supported explicitly in the usage.
  1726. * src/usage_text.h
  1727. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1728. Externalized message.
  1729. * src/RequestGroupMan.cc
  1730. * src/message.h
  1731. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1732. Save temporary file first and rename to the destination on success.
  1733. Added test cases.
  1734. * src/RequestGroupMan.cc
  1735. * test/RequestGroupManTest.cc
  1736. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1737. Fixed the bug that the number of connected peer is exceeding the limit
  1738. (55 by default) in seeding mode.
  1739. Multiplied 0.8 to _maxUploadSpeedLimit.
  1740. * src/ActivePeerConnectionCommand.cc
  1741. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1742. Clear table item.
  1743. * src/Dictionary.cc
  1744. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1745. Fixed error handling of lseek.
  1746. * src/AbstractDiskWriter.cc
  1747. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1748. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1749. style cookie file.
  1750. * src/usage_text.h
  1751. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1752. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1753. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1754. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1755. * src/Util.cc
  1756. * src/Util.h
  1757. * src/CookieParser.cc
  1758. * test/UtilTest.cc
  1759. * test/CookieParserTest.cc
  1760. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1761. Separate the implementation to load old mozilla format of cookie to
  1762. NsCookieParser class.
  1763. * src/CookieBoxFactory.cc
  1764. * src/CookieBoxFactory.h
  1765. * src/NsCookieParser.cc
  1766. * src/NsCookieParser.h
  1767. * test/NsCookieParserTest.cc
  1768. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1769. Made parse() const
  1770. * src/Sqlite3MozCookieParser.cc
  1771. * src/Sqlite3MozCookieParser.h
  1772. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1773. Added firefox3 cookie support based on the patch submitted by
  1774. tizianomueller.
  1775. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1776. this functionality.
  1777. * configure.ac
  1778. * m4/sqlite3.m4
  1779. * src/CookieBoxFactory.cc
  1780. * src/CookieBoxFactory.h
  1781. * src/Makefile.am
  1782. * src/Makefile.in
  1783. * src/Sqlite3MozCookieParser.cc
  1784. * src/Sqlite3MozCookieParser.h
  1785. * src/main.cc
  1786. * test/CookieBoxFactoryTest.cc
  1787. * test/Makefile.am
  1788. * test/Makefile.in
  1789. * test/Sqlite3MozCookieParserTest.cc
  1790. * test/badcookies.sqlite
  1791. * test/cookies.sqlite
  1792. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1793. Added Danish and Greek translations.
  1794. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1795. Great thanks to all translators.
  1796. * po/LINGUAS
  1797. * po/el.po
  1798. * po/da.po
  1799. * po/es.po
  1800. * po/ca.po
  1801. * po/nn.po
  1802. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Fixed man page: --follow-bittorrent should be --follow-torrent
  1804. * doc/aria2c.1.txt
  1805. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1806. Fixed: numCommand is less than the value specified in -C option.
  1807. * src/RequestGroup.cc
  1808. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1809. Fixed occasional assertion failure in PieceSegment.
  1810. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1811. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1812. creation of duplicate segments and one of the segment was finished then
  1813. assertion failure was caused.
  1814. * src/SegmentMan.cc
  1815. * test/SegmentManTest.cc
  1816. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1817. Added options to load/save the server's performance/status to a file
  1818. and the timeout to drop their data.
  1819. --server-stat-of=FILE specifies the file to which performance data
  1820. is saved.
  1821. --server-stat-if=FILE specifies the file to read previously saved
  1822. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1823. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1824. TIMEOUT is specified in seconds and the default value is 24hours.
  1825. * src/MultiUrlRequestInfo.cc
  1826. * src/OptionHandlerFactory.cc
  1827. * src/RequestGroupMan.cc
  1828. * src/RequestGroupMan.h
  1829. * src/ServerStatMan.cc
  1830. * src/ServerStatMan.h
  1831. * src/option_processing.cc
  1832. * src/prefs.cc
  1833. * src/prefs.h
  1834. * test/ServerStatManTest.cc
  1835. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1836. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1837. * src/ServerStatMan.cc
  1838. * src/ServerStatMan.h
  1839. * test/ServerStatManTest.cc
  1840. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1841. Implemented ServerStatMan::load(...) function and its test case.
  1842. * src/ServerStat.cc
  1843. * src/ServerStat.h
  1844. * src/ServerStatMan.cc
  1845. * test/ServerStatManTest.cc
  1846. * test/ServerStatTest.cc
  1847. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1848. Use time_t instead of int32_t. Use int64_t where milli second is
  1849. expected.
  1850. * src/TimeA2.cc
  1851. * src/TimeA2.h
  1852. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1853. Implemented ServerStatMan::save(...) function and its test case.
  1854. * src/ServerStat.cc
  1855. * src/ServerStat.h
  1856. * src/ServerStatMan.cc
  1857. * src/ServerStatMan.h
  1858. * test/ServerStatManTest.cc
  1859. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1860. Now aria2 uses name attribute in Metalink as local filename in
  1861. BitTorrent downloads. BUG#2033999
  1862. * src/BtContext.h
  1863. * src/BtDependency.cc
  1864. * src/DefaultBtContext.cc
  1865. * src/DefaultBtContext.h
  1866. * src/SingleFileDownloadContext.cc
  1867. * src/SingleFileDownloadContext.h
  1868. * test/BtDependencyTest.cc
  1869. * test/DefaultBtContextTest.cc
  1870. * test/MockBtContext.h
  1871. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1872. Added AC_C_BIGENDIAN
  1873. * src/configure.ac
  1874. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Limited numCommand less than or equal to the number of piece.
  1876. * src/RequestGroup.cc
  1877. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1879. directive.
  1880. * test/DefaultPieceStorageTest.cc
  1881. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Fixed memory leak in test code
  1883. * test/AnnounceListTest.cc
  1884. * test/DefaultPeerListProcessorTest.cc
  1885. * test/DefaultPeerStorageTest.cc
  1886. * test/MetaFileUtilTest.cc
  1887. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1888. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1889. * src/DefaultPieceStorage.cc
  1890. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1891. Initialized _directIOAllowed
  1892. * src/MultiDiskAdaptor.cc
  1893. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1894. Fixed memory leak
  1895. * src/GZipDecoder.cc
  1896. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1897. Fixed memory leak
  1898. * src/MetalinkParserStateMachine.cc
  1899. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1900. Fixed memory leak
  1901. * src/Dictionary.cc
  1902. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1903. Fixed memory leak
  1904. * src/IteratableChunkChecksumValidator.h
  1905. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1906. Fixed unmatched malloc/free.
  1907. * src/IteratableChunkChecksumValidator.cc
  1908. * src/IteratableChecksumValidator.cc
  1909. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1910. Removed max chunk size check. This change fixes BUG#2040169
  1911. * src/ChunkedDecoder.cc
  1912. * src/ChunkedDecoder.h
  1913. * test/ChunkedDecoderTest.cc
  1914. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1915. Implemented download speed based URI selection algorithm.
  1916. Introduced new option --uri-selector.
  1917. If --uri-selector=feedback is given, aria2 uses download speed observed
  1918. in the previous downloads and chooses fastest server in the URI list.
  1919. Currently at most 10 URIs are considered to introduce randomeness for
  1920. finding better servers. The speed is average download speed in the
  1921. downloads.
  1922. On the other hand, if --uri-selector=inorder is given, which is default,
  1923. URI is tried in order in URI list.
  1924. The usage text for the new option has not been written yet.
  1925. * src/AbstractCommand.cc
  1926. * src/DownloadCommand.cc
  1927. * src/DownloadEngine.cc
  1928. * src/DownloadEngineFactory.cc
  1929. * src/InOrderURISelector.cc
  1930. * src/InOrderURISelector.h
  1931. * src/OptionHandlerFactory.cc
  1932. * src/PeerStat.h
  1933. * src/RequestGroup.cc
  1934. * src/RequestGroup.h
  1935. * src/RequestGroupMan.cc
  1936. * src/RequestGroupMan.h
  1937. * src/SegmentMan.cc
  1938. * src/SegmentMan.h
  1939. * src/ServerStat.cc
  1940. * src/ServerStat.h
  1941. * src/ServerStatMan.cc
  1942. * src/ServerStatMan.h
  1943. * src/ServerStatURISelector.cc
  1944. * src/ServerStatURISelector.h
  1945. * src/URISelector.h
  1946. * src/option_processing.cc
  1947. * src/prefs.cc
  1948. * src/prefs.h
  1949. * test/InOrderURISelectorTest.cc
  1950. * test/RequestGroupManTest.cc
  1951. * test/ServerStatManTest.cc
  1952. * test/ServerStatURISelectorTest.cc
  1953. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1954. * Release 0.15.1+2
  1955. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1956. Bump up version number to 0.15.1+2
  1957. * configure.ac
  1958. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1959. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1960. * m4/aria2_arg.m4
  1961. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1962. * Release 0.15.1+1
  1963. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1964. Bump up version number to 0.15.1+1
  1965. * configure.ac
  1966. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1967. Fixed the bug that causes segmentaion fault when resuming download
  1968. using metalink without size tag. Reproducible only using HTTP URI.
  1969. * src/HttpResponseCommand.cc
  1970. * src/FtpNegotiationCommand.cc
  1971. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1972. * Release 0.15.1
  1973. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1974. Updated Bulgarian and French translations, thanks to all translators.
  1975. * po/bg.po
  1976. * po/fr.po
  1977. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1978. Bump up version number to 0.15.1
  1979. * configure.ac
  1980. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1981. Avoid repeated call of gettimeofday() when calculating speed.
  1982. * src/SpeedCalc.cc
  1983. * src/SpeedCalc.h
  1984. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1985. Removed writable check when socket's send buffer is full in BitTorrent
  1986. downloads to lower CPU usage.
  1987. * src/PeerInteractionCommand.cc
  1988. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1989. Fixed broken gzip inflation.
  1990. Turn off segmented downloading if gzip content is smaller than or equal
  1991. to 1MiB and inflate the data on the fly, because HTTP response header
  1992. doesn't contain the length of inflated file we can't determin where
  1993. the chunk of data should be written.
  1994. On the other hand, if gzip content is larger than 1MB, then turn off
  1995. on the fly inflation, because some servers returns "content-type: gzip"
  1996. for *.tgz, *.gz files.
  1997. * src/DownloadCommand.cc
  1998. * src/HttpResponseCommand.cc
  1999. * src/HttpResponseCommand.h
  2000. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2001. Applied tizianomueller's patch to fix compile error.
  2002. * test/BitfieldManTest.cc
  2003. * test/BtRequestMessageTest.cc
  2004. * test/DefaultBtContextTest.cc
  2005. * test/DefaultDiskWriterTest.cc
  2006. * test/DefaultPieceStorageTest.cc
  2007. * test/HttpHeaderProcessorTest.cc
  2008. * test/HttpResponseTest.cc
  2009. * test/Metalink2RequestGroupTest.cc
  2010. * test/MetalinkParserControllerTest.cc
  2011. * test/MetalinkProcessorTest.cc
  2012. * test/PeerSessionResourceTest.cc
  2013. * test/UtilTest.cc
  2014. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2015. * Release 0.15.0
  2016. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2017. Reordered src files in POTFILES.in so that usage text appears first.
  2018. * po/POTFILES.in
  2019. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2020. Bump up version number to 0.15.0
  2021. * configure.ac
  2022. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2023. Added Bulgarian translation.
  2024. Updated Catalan, Spanish, French and Japanese translations.
  2025. Thanks to all translators.
  2026. * po/LINGUAS
  2027. * po/bg.po
  2028. * po/ca.po
  2029. * po/es.po
  2030. * po/fr.po
  2031. * po/ja.po
  2032. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2033. Updated feature list. Added libz for dependency section.
  2034. Added a description about unit testing using CppUnit.
  2035. * README
  2036. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2037. Added a test for libz. Quoted where it is necessary.
  2038. * build_test.sh
  2039. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2040. Added GZip to `Enabled Features' list.
  2041. * src/FeatureConfig.cc
  2042. * src/FeatureConfig.h
  2043. * test/FeatureConfigTest.cc
  2044. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2045. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2046. the transfer has not yet started.
  2047. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2048. * src/SegmentMan.cc
  2049. * src/SegmentMan.h
  2050. * test/SegmentManTest.cc
  2051. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2052. Cache last calculated average download/upload speed.
  2053. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2054. cached value.
  2055. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2056. * src/PeerStat.h
  2057. * src/SpeedCalc.cc
  2058. * src/SpeedCalc.h
  2059. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2060. Call parseUrl directly.
  2061. * src/Request.cc (resetUrl)
  2062. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2063. Supported absolute/relative path in Location header field.
  2064. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2065. * src/HttpHeader.cc
  2066. * src/HttpHeader.h
  2067. * src/HttpResponse.cc
  2068. * src/HttpSkipResponseCommand.cc
  2069. * src/Request.cc
  2070. * test/HttpHeaderTest.cc
  2071. * test/HttpResponseTest.cc
  2072. * test/RequestTest.cc
  2073. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2074. Changed help text for --load-cookie option.
  2075. * doc/aria2c.1.txt
  2076. * src/usage_text.h
  2077. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2078. Regenerated test/Makefile.in to remove stale ChangeLog.
  2079. * test/Makefile.in
  2080. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2081. Updated po files.
  2082. * po/aria2c.pot
  2083. * po/*.po
  2084. * po/*.gmo
  2085. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2086. Bump up version number to 0.15.0b
  2087. * configure.ac
  2088. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2089. Externalize messages.
  2090. * src/RequestGroupMan.cc
  2091. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  2092. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2093. Use File::exists() instead of File::isFile() to allow non-regular file
  2094. such as block special files.
  2095. * src/AbstractDiskWriter.cc
  2096. * src/MultiDiskWriter.cc
  2097. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2098. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  2099. * src/gai_strerror.h
  2100. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2101. Fixed compile error. Thanks gknauf for the patch.
  2102. * src/asctime_r.c
  2103. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2104. Included asctime_r.h from a2time.h.
  2105. * src/a2time.h
  2106. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2107. Added a message "aria2 doesn't verify signature" to log message when
  2108. signature file is saved.
  2109. * src/RequestGroupMan.cc
  2110. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2111. Added the ability to save signature when download is completed if
  2112. signature is available. The filename of signature file is the path to
  2113. download file followed by ".sig". If it already exists, then signature
  2114. will not be saved.
  2115. * src/RequestGroupMan.cc
  2116. * src/Signature.cc
  2117. * test/SignatureTest.cc
  2118. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2119. Updated the descriptions for --bt-seed-unverified.
  2120. * doc/aria2c.1
  2121. * doc/aria2c.1.html
  2122. * doc/aria2c.1.txt
  2123. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2124. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  2125. that this is not going to verify files using piece hashes.
  2126. * src/HelpItemFactory.cc
  2127. * src/OptionHandlerFactory.cc
  2128. * src/RequestGroup.cc
  2129. * src/option_processing.cc
  2130. * src/prefs.cc
  2131. * src/prefs.h
  2132. * src/usage_text.h
  2133. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2134. Added the ability to retrieve signature from Metalink file.
  2135. A retrieved signature is stored in Signature class and it is held by
  2136. DownloadContext class. Note that aria2 doesn't verify signature.
  2137. * src/DownloadContext.cc
  2138. * src/DownloadContext.h
  2139. * src/Makefile.am
  2140. * src/Makefile.in
  2141. * src/Metalink2RequestGroup.cc
  2142. * src/MetalinkEntry.cc
  2143. * src/MetalinkEntry.h
  2144. * src/MetalinkParserController.cc
  2145. * src/MetalinkParserController.h
  2146. * src/MetalinkParserStateMachine.cc
  2147. * src/MetalinkParserStateMachine.h
  2148. * src/Signature.cc
  2149. * src/Signature.h
  2150. * src/SignatureMetalinkParserState.cc
  2151. * src/SignatureMetalinkParserState.h
  2152. * src/VerificationMetalinkParserState.cc
  2153. * src/VerificationMetalinkParserState.h
  2154. * test/Metalink2RequestGroupTest.cc
  2155. * test/MetalinkParserControllerTest.cc
  2156. * test/MetalinkProcessorTest.cc
  2157. * test/test.xml
  2158. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2159. Close DiskAdaptor after renaming file.
  2160. * src/RequestGroup.cc
  2161. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2162. Corrected indentation
  2163. * src/DefaultBtProgressInfoFile.cc
  2164. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2165. Moved the calls of std::ios::exceptions() inside of try-catch block
  2166. because if an error occurred in constructor of std::fstream, then
  2167. exception is thrown immediately when std::ios::exceptions() is called
  2168. which results unhandled exception and aria2c aborts.
  2169. * src/DefaultBtProgressInfoFile.cc
  2170. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2171. Added the test for the previous change in DefaultBtContext.cc
  2172. * test/DefaultBtContextTest.cc
  2173. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2174. Fixed the bug that causes infinite loop when the number of pieces are
  2175. fewer than allowed fast set size which is 10 by default.
  2176. * src/DefaultBtContext.cc
  2177. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2178. Updated the descriptions for -j, -s. Added --bt-seed.
  2179. * doc/aria2c.1
  2180. * doc/aria2c.1.html
  2181. * doc/aria2c.1.txt
  2182. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2183. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2184. aria2 seeds previously downloaded files without validating piece hashs.
  2185. * src/HelpItemFactory.cc
  2186. * src/OptionHandlerFactory.cc
  2187. * src/RequestGroup.cc
  2188. * src/option_processing.cc
  2189. * src/prefs.cc
  2190. * src/prefs.h
  2191. * src/usage_text.h
  2192. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2193. Updated DESCRIPTION of man page.
  2194. * doc/aria2c.1
  2195. * doc/aria2c.1.html
  2196. * doc/aria2c.1.txt
  2197. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  2199. Don't define `struct addrinfo' when __sun is defined.
  2200. * src/getaddrinfo.h
  2201. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2202. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  2203. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  2204. second argument is of type `struct _stati64'. Otherwise it is defined as
  2205. `struct stat'.
  2206. * src/AbstractDiskWriter.cc
  2207. * src/File.cc
  2208. * src/File.h
  2209. * src/a2io.h
  2210. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2211. Fixed the compile error in hurd-i386
  2212. See the original bug report:
  2213. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  2214. * src/a2io.h
  2215. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2216. Code cleanup.
  2217. * src/PeerAbstractCommand.cc
  2218. * src/PeerAbstractCommand.h
  2219. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2220. Removed TransferEncoding.
  2221. * src/DownloadCommand.cc
  2222. * src/DownloadCommand.h
  2223. * src/HttpResponseCommand.cc
  2224. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2225. Updated po files.
  2226. * po/aria2c.pot
  2227. * po/*.po
  2228. * po/*.gmo
  2229. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2230. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  2231. * src/A2STR.cc
  2232. * src/A2STR.h
  2233. * src/ChunkedDecoder.cc
  2234. * src/ChunkedDecoder.h
  2235. * src/ChunkedEncoding.cc: Removed
  2236. * src/ChunkedEncoding.h: Removed
  2237. * src/DownloadCommand.cc
  2238. * src/DownloadCommand.h
  2239. * src/HttpDownloadCommand.cc
  2240. * src/HttpResponse.cc
  2241. * src/HttpResponse.h
  2242. * src/HttpResponseCommand.cc
  2243. * src/HttpSkipResponseCommand.cc
  2244. * src/HttpSkipResponseCommand.h
  2245. * src/Makefile.am
  2246. * src/TransferEncoding.h: Removed
  2247. * test/ChunkedDecoderTest.cc
  2248. * test/ChunkedEncodingTest.cc: Removed
  2249. * test/HttpResponseTest.cc
  2250. * test/Makefile.am
  2251. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2252. Use append instead of insert.
  2253. * src/GZipDecoder.cc
  2254. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2255. Updated doc
  2256. * src/Decoder.h
  2257. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2258. Updated usage text for -s option.
  2259. * src/usage_text.h
  2260. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2261. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  2262. * src/Request.cc
  2263. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2264. Cleaned up configure.ac.
  2265. * configure.ac
  2266. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  2268. AC_ARG_ENABLE.
  2269. * configure.ac
  2270. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2271. Added gzip, deflate decoding support in HTTP using libz. If compiled
  2272. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  2273. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  2274. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  2275. fly and writes decoded data to a local disk.
  2276. * README
  2277. * README.html
  2278. * configure.ac
  2279. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  2280. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  2281. * m4/libz.m4
  2282. * src/Decoder.h
  2283. * src/DownloadCommand.cc
  2284. * src/DownloadCommand.h
  2285. * src/Exception.h
  2286. * src/GZipDecoder.cc
  2287. * src/GZipDecoder.h
  2288. * src/HttpHeader.cc
  2289. * src/HttpHeader.h
  2290. * src/HttpRequest.cc
  2291. * src/HttpRequest.h
  2292. * src/HttpResponse.cc
  2293. * src/HttpResponse.h
  2294. * src/HttpResponseCommand.cc
  2295. * src/Makefile.am
  2296. * test/GZipDecoderTest.cc
  2297. * test/HttpRequestTest.cc
  2298. * test/HttpResponseTest.cc
  2299. * test/Makefile.am
  2300. * test/Makefile.in
  2301. * test/gzip_decode_test.gz
  2302. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2303. Clarified usage of -j option.
  2304. * src/usage_text.h
  2305. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2306. Disabled getting size from the response of RETR.
  2307. If SIZE command failed, then disable resuming and segmented downloading.
  2308. * src/FtpConnection.cc
  2309. * src/FtpConnection.h
  2310. * src/FtpNegotiationCommand.cc
  2311. * src/FtpNegotiationCommand.h
  2312. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. Use digits to find first byte of file size, which makes the intention
  2314. of the code clearer.
  2315. * src/FtpConnection.cc
  2316. Don't call validateTotalLength() when size is 0.
  2317. * src/FtpNegotiationCommand.cc
  2318. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2319. Updated po files.
  2320. * po/aria2c.pot
  2321. * po/*.gmo
  2322. * po/*.po
  2323. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2324. Clarified usage text for --split option.
  2325. * src/usage_text.h
  2326. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2327. Bump up version number to 0.15.0dev. "dev" means "development"
  2328. version, which means I started the development of the next release!
  2329. * src/configure.ac
  2330. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2331. If FTP server returns negative response with REST raw command and
  2332. requested range is not 0, throw exception. If requested range is 0,
  2333. continue download a file from 0 byte.
  2334. * src/FtpNegotiationCommand.cc
  2335. * src/FtpNegotiationCommand.h
  2336. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2337. Supported FTP server which don't recognize SIZE raw command.
  2338. If SIZE raw command is failed, aria2 will try to get file size
  2339. from the response of RETR raw command. If both attempts are failed,
  2340. then resuming and segmented downloading are disabled.
  2341. * src/FtpConnection.cc
  2342. * src/FtpConnection.h
  2343. * src/FtpNegotiationCommand.cc
  2344. * src/FtpNegotiationCommand.h
  2345. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2346. * Release 0.14.0+1
  2347. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2348. Bump up version number to 0.14.0+1
  2349. * src/configure.ac
  2350. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Fixed the code that refers static member variable from non-static
  2352. context.
  2353. * src/DefaultPeerStorage.cc
  2354. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2355. * Release 0.14.0
  2356. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2357. Added build test script
  2358. * build_test.sh
  2359. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2360. Updated ja.po
  2361. * src/ja.po
  2362. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2363. Bump up version number to 0.14.0
  2364. * src/configure.ac
  2365. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2366. Updated ja.po and fr.po. Great thanks for french translators and
  2367. Sebastien WILLEMIJNS.
  2368. * po/fr.po
  2369. * po/ja.po
  2370. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2371. Added configure option to enable/disable epoll support.
  2372. * configure.ac
  2373. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2374. Updated man page.
  2375. * doc/aria2c.1.txt
  2376. * doc/aria2c.1
  2377. * doc/aria2c.1.html
  2378. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2379. Added missing default value '5' to the usage of --split option.
  2380. * src/HelpItemFactory.cc
  2381. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2382. Filled up pieces based on the number of missing blocks, rather than
  2383. simplay the number of piece * block length.
  2384. * src/BtRequestFactory.h
  2385. * src/DefaultBtInteractive.cc
  2386. * src/DefaultBtInteractive.h
  2387. * src/DefaultBtRequestFactory.cc
  2388. * src/DefaultBtRequestFactory.h
  2389. * src/Piece.cc
  2390. * src/Piece.h
  2391. * test/BitfieldManTest.cc
  2392. * test/DefaultBtRequestFactoryTest.cc
  2393. * test/MockBtRequestFactory.h
  2394. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2395. Made _epEvents a member variable.
  2396. * src/DownloadEngine.cc
  2397. * src/DownloadEngine.h
  2398. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Cancel download if http redirect is bounded more than 20 times.
  2400. * src/AbstractCommand.cc
  2401. * src/HttpSkipResponseCommand.cc
  2402. * src/Request.cc
  2403. * src/Request.h
  2404. * test/RequestTest.cc
  2405. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2406. Fixed unhandled exception(removed keyword `new').
  2407. * src/SocketCore.cc (initEPOLL)
  2408. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2409. Removed visit(const MetaEntry*)
  2410. * src/MetaEntryVisitor.h:
  2411. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  2412. and made them virtual.
  2413. * src/BencodeVisitor.h
  2414. * src/BencodeVisitor.cc
  2415. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2416. Updated po files.
  2417. * po/aria2c.pot
  2418. * po/*.po
  2419. * po/*.gmo
  2420. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2421. Moved the call setWriteCheckSocket inside the previous clause to reduce
  2422. the number of socket to watch out.
  2423. * src/PeerInteractionCommand.cc
  2424. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. When there is not enough space in disk when writing a chunk of data,
  2426. aria2 now prints the message to the console to warn user and aborts
  2427. its download. Not all downloads are canceled because some downloads
  2428. may use another disk or partition. BUG#1640332
  2429. * src/AbstractDiskWriter.cc
  2430. * src/PeerAbstractCommand.cc
  2431. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  2432. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  2433. setHaltRequested(true) to cancel download.
  2434. * src/PeerInteractionCommand.h
  2435. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2436. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  2437. socket from int to sock_t as sockets are unsigned in Windows.
  2438. For AsyncNameResolver, DownloadEngine, I did additional modification
  2439. for the portion of the code changed according to epoll support.
  2440. I defined sock_t in a2netcompat.h to use sock_t without including
  2441. SocketCore.h.
  2442. * src/AsyncNameResolver.cc
  2443. * src/AsyncNameResolver.h
  2444. * src/DownloadEngine.cc
  2445. * src/DownloadEngine.h
  2446. * src/SocketCore.cc
  2447. * src/SocketCore.h
  2448. * src/a2netcompat.h
  2449. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  2451. changes in the patch were applied.
  2452. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  2453. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  2454. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  2455. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2456. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  2457. a2io.h and common.h were modified.
  2458. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  2459. MinGW.
  2460. * src/common.h: Changed off_t to 64 bit in MinGW.
  2461. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2462. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2463. only a2netcompat.h is modified.
  2464. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  2465. directives.
  2466. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2467. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2468. only gai_strerror.h is modified.
  2469. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  2470. winsock errors in MinGW.
  2471. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2472. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  2473. follow sources are applied.
  2474. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  2475. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  2476. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  2477. I included locale.h from Platform.cc.
  2478. * src/main.cc: Moved common setup/teardown code to Platform class.
  2479. * test/AllTest.cc: Use Platform class.
  2480. Set locale to C in AllTest.cc to prevent the messages to be localized.
  2481. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2482. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  2483. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  2484. * test/HttpRequestTest.cc: Casted to off_t where it should.
  2485. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2486. Applied Ross's aria2-0.13.2+1-mingw.patch and
  2487. aria2-0.13.2+1-mingw-2.patch.
  2488. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  2489. systems which don't have termious.h. I moved the directive inside of
  2490. if(isTTY) { ... clause so that line is wiped out without termious.h.
  2491. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  2492. anyway.
  2493. * src/asctime_r.h
  2494. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  2495. I added 2nd argument to the prototype declaration.
  2496. * src/StringFormat.cc: Get rid of vasprintf.
  2497. * src/getaddrinfo.h: Fixed constants.
  2498. * configure.ac: Added the check for asctime_r function.
  2499. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  2500. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2501. Added writable test for Socket when the sending message is in progress.
  2502. Usually the sending message is piece message. Without wriable check,
  2503. upload latency is dropped to more than 1sec.
  2504. * src/PeerInteractionCommand.cc
  2505. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Create only requested files and files which shares a piece with
  2507. requested file in multi-torrent downloads. Directory structures are
  2508. also created in the same rule.
  2509. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  2510. DiskWriterEntry as in the previous implementation.
  2511. * src/MultiDiskWriter.cc
  2512. * src/MultiFileAllocationIterator.cc
  2513. * src/MultiFileAllocationIterator.h
  2514. * test/MultiFileAllocationIteratorTest.cc
  2515. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2516. Commented out -lprofiler
  2517. * src/Makefile.am
  2518. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2519. Bump up version number to 0.14.0b.
  2520. * src/configure.ac
  2521. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2522. Actively establish connection to peers in seeding, when peer cache
  2523. is not full and max upload speed limit is not reached.
  2524. * src/ActivePeerConnectionCommand.cc
  2525. * src/ActivePeerConnectionCommand.h
  2526. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2527. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  2528. to make room more fleshy, recently found peers.
  2529. Peer::_badConditionStartTime is not used anymore. Consider to remove
  2530. it.
  2531. * src/DefaultPeerStorage.cc
  2532. * test/DefaultPeerStorageTest.cc
  2533. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2534. Returns cached data only when the previous receiveHandshake() is called
  2535. with peek = true.
  2536. * src/PeerConnection.cc (receiveHandshake)
  2537. * src/PeerConnection.h (receiveHandshake)
  2538. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Changed default value of -s option from 1 to 5.
  2540. Also max value of -s option is changed from 5 to 16.
  2541. * src/HelpItemFactory.cc
  2542. * src/OptionHandlerFactory.cc
  2543. * src/option_processing.cc
  2544. * src/usage_text.h
  2545. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Changed -s options behavior. Now it means the number of connections
  2547. made simultaneously in each http/ftp download.
  2548. If 1 URL is specified, the behavior is the same with old implementation.
  2549. If -s N is given and more than N URLs are specified, first N URLs are
  2550. used and remaining URLs are used for backup. If less than N URLs are
  2551. specified, some of URLs are used more than once so that totally N
  2552. connections are made simultaneously.
  2553. * src/main.cc
  2554. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2555. Included missing iosfwd or ostream header.
  2556. * src/RequestGroupMan.cc
  2557. * src/TaggedItem.cc
  2558. * src/TaggedItem.h
  2559. * src/Util.cc
  2560. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2561. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  2562. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  2563. * src/HttpConnection.cc: Included missing sstream.
  2564. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2565. Added --bt-max-open-files option.
  2566. * src/DefaultPieceStorage.cc
  2567. * src/HelpItemFactory.cc
  2568. * src/MultiDiskAdaptor.cc
  2569. * src/MultiDiskAdaptor.h
  2570. * src/OptionHandlerFactory.cc
  2571. * src/option_processing.cc
  2572. * src/prefs.cc
  2573. * src/prefs.h
  2574. * src/usage_text.h
  2575. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2576. Fixed the bug that aria2 aborts when a path to a directory is given
  2577. in command-line.
  2578. * src/ProtocolDetector.cc
  2579. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2580. Limited the number files opened in each BitTorrent download. The default
  2581. value is 100. The option to change this value will be added.
  2582. * src/MultiDiskAdaptor.cc
  2583. * src/MultiDiskAdaptor.h
  2584. * src/MultiFileAllocationIterator.cc
  2585. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2586. Fixed the bug that HTTP downloads don't start with old libraries.
  2587. * src/HttpHeaderProcessor.cc
  2588. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Use empty() instead of size() > 0.
  2590. * src/HttpConnection.cc
  2591. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2592. Drop connection if the incoming peer ID is the same with localhost's
  2593. one. The previous implementation drops connection when incoming peer's
  2594. IP address is the same with localhost's one.
  2595. * src/PeerListenCommand.cc
  2596. * src/DefaultBtInteractive.cc
  2597. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2598. Returns cached data without checking whether socket is readable
  2599. if the cache is available.
  2600. * src/PeerConnection.cc (receiveHandshake)
  2601. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2602. Included stdint.h
  2603. * src/common.h
  2604. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2605. Removed duplicate HAVE_GETTIMEOFDAY
  2606. * src/Makefile.am
  2607. * src/Makefile.in
  2608. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2609. Use interval as a minInterval when minInterval is not supplied.
  2610. * src/DefaultBtAnnounce.cc
  2611. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2612. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  2613. attempt is failed, then 2nd attempt get kicked out more quickly.
  2614. And it is now static const member of DefaultBtAnnounce.
  2615. * src/DefaultBtAnnounce.h
  2616. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2617. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  2618. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  2619. * src/ActivePeerConnectionCommand.cc
  2620. * src/BtConstants.h
  2621. * src/BtRuntime.h
  2622. * src/DHTGetPeersCommand.cc
  2623. * src/DefaultBtAnnounce.cc
  2624. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  2625. BtRuntime::MAX_PEERS.
  2626. * src/DefaultPeerStorage.h
  2627. * src/InitiatorMSEHandshakeCommand.cc
  2628. * src/PeerInitiateConnectionCommand.cc
  2629. * src/PeerInteractionCommand.cc
  2630. * src/PeerReceiveHandshakeCommand.cc
  2631. * src/TrackerWatcherCommand.cc
  2632. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2633. Always Connect to _numNewConnection
  2634. * src/ActivePeerConnectionCommand.cc
  2635. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2636. Made `begin' unsigned int.
  2637. * src/GrowSegment.h
  2638. * src/Piece.cc
  2639. * src/Piece.h
  2640. * src/PiecedSegment.cc
  2641. * src/PiecedSegment.h
  2642. * src/Segment.h
  2643. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Calculate piece hash when data is arrived if the data is arrived in
  2645. order. This removes additional read operation for hash calculation.
  2646. If the data is arrived in out of order, the hash is calucated when the
  2647. piece is completed. This is the same behavior as the old implementation.
  2648. * src/BtPieceMessage.cc
  2649. * src/DefaultBtProgressInfoFile.cc
  2650. * src/DefaultPieceStorage.cc
  2651. * src/DownloadCommand.cc
  2652. * src/DownloadCommand.h
  2653. * src/DownloadEngine.cc
  2654. * src/GrowSegment.cc
  2655. * src/GrowSegment.h
  2656. * src/Piece.cc
  2657. * src/Piece.h
  2658. * src/PiecedSegment.cc
  2659. * src/PiecedSegment.h
  2660. * src/Segment.h
  2661. * test/PieceTest.cc
  2662. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2663. Try to keep the ordering of outgoing piece message.
  2664. * src/DefaultBtMessageDispatcher.cc
  2665. (DefaultBtMessageDispatcher::sendMessages)
  2666. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2667. Fixed busy loop when error/hup epoll events occur.
  2668. * src/AbstractCommand.cc
  2669. * src/PeerAbstractCommand.cc
  2670. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2671. Added --bt-request-peer-speed-limit option, which was a constant
  2672. SLOW_SPEED_THRESHOLD.
  2673. * src/ActivePeerConnectionCommand.cc
  2674. * src/ActivePeerConnectionCommand.h
  2675. * src/BtConstants.h
  2676. * src/HelpItemFactory.cc
  2677. * src/OptionHandlerFactory.cc
  2678. * src/PeerReceiveHandshakeCommand.cc
  2679. * src/option_processing.cc
  2680. * src/prefs.cc
  2681. * src/prefs.h
  2682. * src/usage_text.h
  2683. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2684. Removed repeated call of getTopDirPath(). Instead, call it once and
  2685. cache the result.
  2686. * src/MultiDiskAdaptor.cc
  2687. * src/MultiDiskAdaptor.h
  2688. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2689. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Fixed compile error on debian etch.
  2691. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2692. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2693. it is undefined.
  2694. * src/Util.cc (ULLONG_MAX)
  2695. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2696. Added epoll support. Use epoll if it is available. If not, use select.
  2697. When async dns is enabled in compile time, epoll support is enabled
  2698. only when aria2 is built with c-ares. This condition statement is
  2699. defined in a2io.h.
  2700. Currently aria2 supports both c-ares and ares, but ares is maintained
  2701. for quite a while and debian already has c-ares package, ares support
  2702. will be dropped in the future version.
  2703. * configure.ac
  2704. * src/AbstractCommand.cc
  2705. * src/AsyncNameResolver.cc
  2706. * src/AsyncNameResolver.h
  2707. * src/Command.cc
  2708. * src/Command.h
  2709. * src/DownloadEngine.cc
  2710. * src/DownloadEngine.h
  2711. * src/PeerAbstractCommand.cc
  2712. * src/SocketCore.cc
  2713. * src/SocketCore.h
  2714. * src/a2io.h
  2715. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2716. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2717. directive.
  2718. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Do not do write operation to /dev/null file.
  2720. * src/LogFactory.cc
  2721. * src/SimpleLogger.cc
  2722. Replaced vasprintf with vsnprintf
  2723. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2724. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2725. * src/BtRequestMessage.cc
  2726. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2727. for segmentation fault caused by previous commit.
  2728. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Reduced the usage of gettimeofday().
  2730. * src/DefaultBtMessageDispatcher.cc
  2731. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2732. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2733. * src/RequestSlot.cc
  2734. * src/RequestSlot.h
  2735. (RequestSlot::isTimeout)
  2736. Made RequestSlot have a reference to Piece object to avoid find
  2737. Piece repeatedly.
  2738. * src/DefaultBtMessageDispatcher.cc
  2739. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2740. * src/RequestSlot.cc
  2741. * src/RequestSlot.h
  2742. (RequestSlot::getPiece)
  2743. * test/DefaultBtMessageDispatcherTest.cc
  2744. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2745. * src/TimeA2.cc
  2746. * src/TimeA2.h
  2747. (Time::difference): New function.
  2748. (Time::elapsed): Done optimization.
  2749. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2750. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2751. directive.
  2752. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2753. * src/option_processing.cc: Added missing `defined' keyword to #if
  2754. directive.
  2755. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2756. Bump up version number to 0.13.2+1
  2757. * src/configure.ac
  2758. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2759. Refactored broken outstanding piece handling.
  2760. * src/DefaultPieceStorage.cc
  2761. * src/DefaultPieceStorage.h
  2762. * src/Piece.cc
  2763. * src/Piece.h
  2764. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2765. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2766. name collision of static variable and predefined macro.
  2767. * src/BtContext.cc
  2768. * src/BtContext.h
  2769. * src/CookieBoxFactory.cc
  2770. * src/CookieBoxFactory.h
  2771. * src/CookieParser.cc
  2772. * src/CookieParser.h
  2773. * src/DefaultBtContext.cc
  2774. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2775. * src/RequestGroup.cc
  2776. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2777. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2778. * Release 0.13.2
  2779. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2780. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2781. * po/fr.po
  2782. * po/ja.po
  2783. * po/aria2c.pot
  2784. * po/*.po
  2785. * po/*.gmo
  2786. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2787. Bump up version number to 0.13.2
  2788. * src/configure.ac
  2789. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2790. Refactord.
  2791. * src/RequestGroupMan.cc
  2792. (removeStoppedGroup)
  2793. (fillRequestGroupFromReserver)
  2794. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Fixed compile error on Ubuntu.
  2796. * src/BtPieceMessage.cc
  2797. * src/MessageDigestHelper.cc
  2798. * src/Util.cc
  2799. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2800. Fixed compile error when configured with --disable-bittorrent
  2801. * test/DownloadHandlerFactoryTest.cc
  2802. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Done make update-po
  2804. * po/aria2c.pot
  2805. * po/*.po
  2806. * po/*.gmo
  2807. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2808. Bump up version number to 0.13.2rc.
  2809. * src/configure.ac
  2810. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2811. Made option name bold. Updated SYNOPSIS to make it more readable.
  2812. * doc/aria2c.1.txt
  2813. * doc/aria2c.1
  2814. * doc/aria2c.1.html
  2815. * src/version_usage.cc
  2816. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2817. Refactored. Use std::string instead of size and char*.
  2818. * Data.cc
  2819. * Data.h
  2820. * test/Data.cc
  2821. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2822. Added trimSelf(). Rewritten trim() to use trimSelf().
  2823. * Util.cc
  2824. * Util.h
  2825. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2826. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2827. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2828. Fixed compile error when configured with --disable-metalink.
  2829. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2830. * test/FeatureConfigTest.cc
  2831. * test/DownloadHandlerFactoryTest.cc
  2832. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2833. Fixed compile error when configured with --without-gnutls
  2834. --without-openssl
  2835. * src/main.cc
  2836. * test/DefaultBtProgressInfoFileTest.cc
  2837. * test/SegmentManTest.cc
  2838. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2839. Fixed compile error with OpenSSL.
  2840. * src/IteratableChunkChecksumValidator.cc
  2841. * src/LibsslDHKeyExchange.h
  2842. * src/MessageDigestHelper.cc
  2843. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Revert the default value of --max-concurrent-downloads to 5.
  2845. Revert the default value of --metalink-servers to 5.
  2846. Man pages was also updated.
  2847. * src/option_processing.cc
  2848. * doc/aria2c.1.txt
  2849. * doc/aria2c.1.html
  2850. * doc/aria2c.1
  2851. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2852. Returns const reference:
  2853. DownloadContext::getPieceHash, DownloadContext::getName,
  2854. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2855. BtContext::getInfoHashAsString,
  2856. * src/BtContext.h
  2857. * src/DefaultBtContext.cc
  2858. * src/DefaultBtContext.h
  2859. * src/DownloadContext.h
  2860. * src/SingleFileDownloadContext.h
  2861. * test/MockBtContext.h
  2862. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. * src/RequestGroup.h (getDir): Removed.
  2864. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2865. Returns const reference. The internal urlencode function was optimized
  2866. a little bit.
  2867. * src/Request.cc
  2868. * src/Request.h
  2869. * src/HttpRequest.cc
  2870. * src/HttpRequest.h
  2871. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Defined option name and possible values as std::string to reduce
  2873. temporary string object creation in runtime.
  2874. * src/HelpItemFactory.cc
  2875. * src/LogFactory.cc
  2876. * src/Option.cc
  2877. * src/OptionHandlerFactory.cc
  2878. * src/option_processing.cc
  2879. * src/prefs.cc
  2880. * src/prefs.h
  2881. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2882. Return const reference.
  2883. * src/DownloadHandlerConstants.cc
  2884. * src/DownloadHandlerConstants.h
  2885. (getMetalinkExtensions)
  2886. (getMetalinkContentTypes)
  2887. (getBtExtensions)
  2888. (getBtContentTypes)
  2889. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. * src/HttpHeader.cc (get): Rewritten.
  2891. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2892. Make HttpHeader::getFirst(...) return const reference.
  2893. * src/HttpHeader.cc
  2894. * src/HttpHeader.h
  2895. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2897. it with V_TRUE.
  2898. * src/DefaultPieceStorage.cc
  2899. * src/DownloadCommand.cc
  2900. * src/FtpNegotiationCommand.cc
  2901. * src/HttpRequest.cc
  2902. * src/InitiateConnectionCommand.cc
  2903. * src/RequestGroup.cc
  2904. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Made Option::get(...) return const reference of std::string.
  2906. * src/Option.cc
  2907. * src/Option.h
  2908. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2909. Replaced std:copy with insert.
  2910. * src/DefaultBtMessageDispatcher.cc
  2911. * src/DefaultPieceStorage.cc
  2912. * src/DownloadEngineFactory.cc
  2913. * src/RequestGroup.cc
  2914. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2915. Included SocketCore.h to fix compiler warning.
  2916. * src/InitiateConnectionCommand.cc
  2917. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2918. Put piece selection strategy algorithm to RarestPieceSelector class,
  2919. Added a switch to choose whether randomized selection so that unit
  2920. tests emit same results in, possibly, win32.
  2921. * src/DefaultPieceStorage.cc
  2922. * src/DefaultPieceStorage.h
  2923. * src/RarestPieceSelector.cc
  2924. * src/RarestPieceSelector.h
  2925. * test/DefaultPieceStorageTest.cc
  2926. * test/RarestPieceSelectorTest.cc
  2927. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2928. Don't pool connection if HTTP proxy is enabled.
  2929. * src/FtpFinishDownloadCommand.cc
  2930. * src/FtpNegotiationCommand.cc
  2931. * src/HttpSkipResponseCommand.cc
  2932. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2933. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2934. * src/AbstractCommand.cc
  2935. * src/AbstractCommand.h
  2936. * src/ActivePeerConnectionCommand.cc
  2937. * src/FtpInitiateConnectionCommand.cc
  2938. * src/HttpInitiateConnectionCommand.cc
  2939. * src/InitiateConnectionCommandFactory.cc
  2940. * src/PeerAbstractCommand.cc
  2941. * src/PeerAbstractCommand.h
  2942. * src/PeerInitiateConnectionCommand.cc
  2943. * src/TrackerWatcherCommand.cc
  2944. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2945. Sort RequestSlot in ascending order and manipulate them using
  2946. lower_bound.
  2947. * src/DefaultBtMessageDispatcher.cc
  2948. * src/DefaultBtMessageDispatcher.h
  2949. (getMessageQueue): Added const qualifier.
  2950. (getRequestSlots): Added const qualifier.
  2951. (sendMessages): Use empty() instead of size().
  2952. (doCancelSendingPieceAction): Use HandleEvent object.
  2953. (doAbortOutstandingRequestAction): Rewritten.
  2954. (doChokedAction): Rewritten.
  2955. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2956. (isOutstandingRequest): Rewritten.
  2957. (getOutstandingRequest): Rewritten.
  2958. (removeOutstandingRequest): Rewritten.
  2959. (addOutstandingRequest): Rewritten.
  2960. * src/RequestSlot.cc
  2961. * src/RequestSlot.h
  2962. (operator=): Rewritten.
  2963. (operator!=): New function.
  2964. (operator<): New function.
  2965. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2966. * src/DefaultBtRequestFactory.cc
  2967. (doChokedAction): Rewritten.
  2968. (removeCompletedPiece): Rewritten.
  2969. (removeTargetPiece): Rewritten.
  2970. (createRequestMessages): Added the debug log.
  2971. (createRequestMessagesOnEndGame: Added the debug log.
  2972. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2973. Added the debug log message.
  2974. * src/BtPieceMessage.cc (doReceivedAction)
  2975. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2977. used lower_bound to process them rather than linear search.
  2978. * src/DHTPeerAnnounceStorage.cc
  2979. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2981. peer has at least one completed piece.
  2982. * src/Peer.cc
  2983. * src/Peer.h
  2984. * src/PeerInteractionCommand.cc
  2985. * src/PeerSessionResource.cc
  2986. * src/PeerSessionResource.h
  2987. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Removed unnecessary sorting
  2989. * src/DefaultPieceStorage (DefaultPieceStorage)
  2990. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2991. Rewritten the portion of the code that mangaes allowed fast indexes.
  2992. * src/PeerSessionResource.cc
  2993. * src/PeerSessionResource.h
  2994. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2995. Removed the invalid string including '\r' from ru.po and
  2996. did make update-po.
  2997. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2998. Added --log-level and --summary-interval to man page.
  2999. * doc/aria2c.1.txt
  3000. * doc/aria2c.1.html
  3001. * doc/aria2c.1
  3002. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3003. Added --log-level option to specify log level. Log messages under
  3004. the specified level are not output. Default value is `debug'.
  3005. * src/HelpItemFactory.cc
  3006. * src/LogFactory.cc
  3007. * src/LogFactory.h
  3008. * src/Logger.h
  3009. * src/OptionHandlerFactory.cc
  3010. * src/SimpleLogger.cc
  3011. * src/SimpleLogger.h
  3012. * src/main.cc
  3013. * src/option_processing.cc
  3014. * src/prefs.h
  3015. * src/usage_text.h
  3016. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3017. Print download progress summary of all parallel downloads in specified
  3018. interval, default 60 secs. While aria2 could download several files
  3019. in parallel (see -j option), it displayed just first download progress,
  3020. and the other downloads are hidden from the users. This new feature
  3021. prints all downloads currently in-progress to the console so that you
  3022. can check the status of all downloads. The interval can be adjusted
  3023. by --summary-interval option.
  3024. The progress readout is now cut so that all fits in the one line of
  3025. console.
  3026. * src/ConsoleStatCalc.cc
  3027. * src/ConsoleStatCalc.h
  3028. * src/HelpItemFactory.cc
  3029. * src/OptionHandlerFactory.cc
  3030. * src/RequestGroupMan.cc
  3031. * src/RequestGroupMan.h
  3032. * src/main.cc
  3033. * src/option_processing.cc
  3034. * src/prefs.h
  3035. * src/usage_text.h
  3036. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3038. * src/DownloadEngine.cc (DownloadEngine)
  3039. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3040. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3041. defined.
  3042. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3043. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Use erase+lower_bound+insert instead of sort.
  3045. * src/DefaultPieceStorage.cc (addPieceStats)
  3046. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3047. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3048. * src/A2STR.cc
  3049. * src/A2STR.h
  3050. * src/OptionParser.cc (parse)
  3051. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Defined fake filename `[tracker.announce]' as static const std::string.
  3053. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3054. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3055. Defined default filename `index.html' as static const std::string
  3056. * src/SingleFileDownloadContext.cc
  3057. * src/SingleFileDownloadContext.h
  3058. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Defined "[MEMORY]" as static const std::string.
  3060. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3061. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Defined control file's version number as static const std::string.
  3063. * src/DefaultBtProgressInfoFile.cc
  3064. * src/DefaultBtProgressInfoFile.h
  3065. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3066. Use Request::METHOD_GET
  3067. * src/RequestGroup.cc (createNextCommandWithAdj)
  3068. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. Defined "OK", "ERR", "INPR" as static const std::string
  3070. * src/RequestGroupMan.cc (showDownloadResults)
  3071. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3072. Defined default client used in extended handshake as static const
  3073. std::string
  3074. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3075. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3077. * src/HttpConnection.cc (eraseConfidentialInfo)
  3078. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Defined default ftp user and password as static const std::string
  3080. * src/AuthConfigFactory.cc
  3081. * src/AuthConfigFactory.h
  3082. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3083. Defined strings used in netrc as static const std::string
  3084. * src/Netrc.cc
  3085. * src/Netrc.h
  3086. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Defined HTTP status as static const std::string
  3088. * src/AbstractProxyResponseCommand.cc
  3089. * src/HttpHeader.cc
  3090. * src/HttpHeader.h
  3091. * src/HttpResponse.cc
  3092. * src/HttpResponseCommand.cc
  3093. * src/HttpSkipResponseCommand.cc
  3094. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. Defined "\r\n", "A", "I" as static const std::string
  3096. * src/A2STR.cc
  3097. * src/A2STR.h
  3098. * src/FtpConnection.cc
  3099. * src/FtpConnection.h
  3100. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3101. Added COLON_C(".") and used it in Request::parseUrl()
  3102. * src/A2STR.cc
  3103. * src/A2STR.h
  3104. * src/Request.cc (parseUrl)
  3105. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3106. Changed the type of padName from `const std::string&' to `const char*'.
  3107. * src/MSEHandshake.cc (verifyPadLength)
  3108. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3109. Defined "sha1" as static const std::string.
  3110. * src/MetalinkParserController.cc
  3111. * src/MetalinkParserController.h
  3112. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3113. Defined message digest algorithm name as static const std::string
  3114. * src/DHTTokenTracker.cc
  3115. * src/DHTUtil.cc
  3116. * src/DefaultBtContext.cc
  3117. * src/MSEHandshake.cc
  3118. * src/MessageDigestHelper.cc
  3119. * src/Peer.cc
  3120. * src/messageDigest.cc
  3121. * src/messageDigest.h
  3122. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Made string literals used in SAX parser static const std::string.
  3124. * src/FileMetalinkParserState.cc
  3125. * src/FileMetalinkParserState.h
  3126. * src/FilesMetalinkParserState.cc
  3127. * src/FilesMetalinkParserState.h
  3128. * src/InitialMetalinkParserState.cc
  3129. * src/InitialMetalinkParserState.h
  3130. * src/MetalinkMetalinkParserState.cc
  3131. * src/MetalinkMetalinkParserState.h
  3132. * src/PiecesMetalinkParserState.cc
  3133. * src/PiecesMetalinkParserState.h
  3134. * src/ResourcesMetalinkParserState.cc
  3135. * src/ResourcesMetalinkParserState.h
  3136. * src/VerificationMetalinkParserState.cc
  3137. * src/VerificationMetalinkParserState.h
  3138. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  3140. * src/A2STR.cc
  3141. * src/A2STR.h
  3142. * src/File.cc
  3143. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3144. Defined static const std::string IP("ip"), PORT("port") and use them
  3145. instead of string literals.
  3146. * src/DefaultPeerListProcessor.cc
  3147. * src/DefaultPeerListProcessor.h
  3148. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3149. Made string literals for torrent file processing static const
  3150. std::string.
  3151. * src/BtContext.cc
  3152. * src/BtContext.h
  3153. * src/DefaultBtContext.cc
  3154. * src/DefaultBtContext.h
  3155. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Made string literal for tracker response static const std::string
  3157. * src/BtAnnounce.cc
  3158. * src/BtAnnounce.h
  3159. * src/DefaultBtAnnounce.cc
  3160. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Use DHTMessage::T instead of "t".
  3162. * src/DHTMessageTracker.cc (messageArrived)
  3163. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Made keyName static const. Made trimmed charset static const
  3165. std::string.
  3166. * src/Util.cc (getContentDispositionFilename)
  3167. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Made USER_AGENT const. Made "/" static const std::string.
  3169. * src/A2STR.cc
  3170. * src/A2STR.h
  3171. * src/HttpRequest.cc
  3172. * src/HttpRequest.h
  3173. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3174. Made string listeral to static const std::string:
  3175. "Content-Range", "Content-Length"
  3176. * src/HttpHeader.cc
  3177. * src/HttpHeader.h
  3178. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Made string listeral to static const std::string.
  3180. * src/HttpConnection.cc
  3181. * src/HttpHeader.cc
  3182. * src/HttpHeader.h
  3183. * src/HttpResponse.cc
  3184. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. Made string listeral to static const std::string.
  3186. * src/A2STR.cc
  3187. * src/A2STR.h
  3188. * src/SimpleLogger.cc
  3189. * src/SimpleLogger.h
  3190. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3191. Made string literal to static const std::string.
  3192. Rewritten CookieParser::setField.
  3193. * src/A2STR.cc
  3194. * src/A2STR.h
  3195. * src/CookieBoxFactory.cc
  3196. * src/CookieBoxFactory.h
  3197. * src/CookieParser.cc
  3198. * src/CookieParser.h
  3199. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Made string literal to static const std::string
  3201. * src/DHTAbstractMessage.cc
  3202. * src/DHTAnnouncePeerMessage.cc
  3203. * src/DHTAnnouncePeerMessage.h
  3204. * src/DHTAnnouncePeerReplyMessage.cc
  3205. * src/DHTAnnouncePeerReplyMessage.h
  3206. * src/DHTFindNodeMessage.cc
  3207. * src/DHTFindNodeMessage.h
  3208. * src/DHTFindNodeReplyMessage.cc
  3209. * src/DHTFindNodeReplyMessage.h
  3210. * src/DHTGetPeersMessage.cc
  3211. * src/DHTGetPeersMessage.h
  3212. * src/DHTGetPeersReplyMessage.cc
  3213. * src/DHTGetPeersReplyMessage.h
  3214. * src/DHTMessage.cc
  3215. * src/DHTMessage.h
  3216. * src/DHTMessageFactoryImpl.cc
  3217. * src/DHTMessageReceiver.cc
  3218. * src/DHTPingMessage.cc
  3219. * src/DHTPingMessage.h
  3220. * src/DHTPingReplyMessage.cc
  3221. * src/DHTPingReplyMessage.h
  3222. * src/DHTQueryMessage.cc
  3223. * src/DHTQueryMessage.h
  3224. * src/DHTResponseMessage.cc
  3225. * src/DHTResponseMessage.h
  3226. * src/DHTUnknownMessage.cc
  3227. * src/DHTUnknownMessage.h
  3228. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Made string literal to static const std::string
  3230. * src/BtChokeMessage.cc (toString)
  3231. * src/BtHaveAllMessage.cc (toString)
  3232. * src/BtHaveNoneMessage.cc (toString)
  3233. * src/BtInterestedMessage.cc (toString)
  3234. * src/BtNotInterestedMessage.cc (toString)
  3235. * src/BtUnchokeMessage.cc (toString)
  3236. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Replaced "" with static const variable A2STR::NIL.
  3238. Replaced string comparison against "" with std::string::empty().
  3239. Added PROTO_* to Request class and use them as a protocol string
  3240. constant.
  3241. Made "started", "stopped", "completed" static const variable in
  3242. AnnounceList class.
  3243. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3244. Updated translations. Great thanks to translators.
  3245. * po/ca.po
  3246. * po/de.po
  3247. * po/fr.po
  3248. * po/it.po
  3249. * po/ja.po
  3250. * po/ru.po
  3251. * po/zh_CN.po
  3252. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3253. Updated man page; categorized options and fixed typo.
  3254. * doc/aria2c.1.txt
  3255. * doc/aria2c.1.html
  3256. * doc/aria2c.1
  3257. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3258. Removed const ref
  3259. * src/MetalinkEntry.cc (AddProtocolPreference)
  3260. * src/RequestGroup.cc (FindServerHostByHostname)
  3261. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3262. Rewritten Accept-Features handling.
  3263. * src/HttpRequestCommand.cc (createHttpRequest)
  3264. * src/a2functional.h
  3265. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. Changed method signature:
  3267. DHTAbstractNodeLookupTask::toEntries
  3268. * src/DHTAbstractNodeLookupTask.cc
  3269. * src/DHTAbstractNodeLookupTask.h
  3270. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Changed method signature:
  3272. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  3273. * src/BtContext.h
  3274. * src/DefaultBtContext.cc
  3275. * src/DefaultBtContext.h
  3276. * src/DefaultBtInteractive.cc
  3277. * test/DefaultBtContextTest.cc
  3278. * test/MockBtContext.h
  3279. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3280. Changed method signature:
  3281. MultiFileAllocationIterator::makeDiskWriterEntries
  3282. * src/MultiFileAllocationIterator.cc
  3283. * src/MultiFileAllocationIterator.h
  3284. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3285. Changed method sinature:
  3286. MetalinkEntry::toFileEntry,
  3287. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  3288. Metalinker::queryEntry
  3289. * src/Metalink2RequestGroup.cc
  3290. * src/MetalinkEntry.cc
  3291. * src/MetalinkEntry.h
  3292. * src/MetalinkHelper.cc
  3293. * src/MetalinkHelper.h
  3294. * src/Metalinker.cc
  3295. * src/Metalinker.h
  3296. * src/main.cc
  3297. * test/MetalinkHelperTest.cc
  3298. * test/MetalinkerTest.cc
  3299. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3300. Changed method sinature:
  3301. RequestGroup::getURIs
  3302. * src/RequestGroup.cc
  3303. * src/RequestGroup.h
  3304. * test/Metalink2RequestGroupTest.cc
  3305. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3306. Changed method signature:
  3307. PeerListProcessor::extractPeer
  3308. * src/CompactPeerListProcessor.cc
  3309. * src/CompactPeerListProcessor.h
  3310. * src/DefaultBtAnnounce.cc
  3311. * src/DefaultPeerListProcessor.cc
  3312. * src/DefaultPeerListProcessor.h
  3313. * src/DelegatingPeerListProcessor.cc
  3314. * src/DelegatingPeerListProcessor.h
  3315. * src/PeerListProcessor.h
  3316. * src/UTPexExtensionMessage.cc
  3317. * test/DefaultPeerListProcessorTest.cc
  3318. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Changed method signature:
  3320. BtRequestFactory::createRequestMessages,
  3321. BtRequestFactory::createRequestMessagesOnEndGame
  3322. * src/BtRequestFactory.h
  3323. * src/DefaultBtInteractive.cc
  3324. * src/DefaultBtRequestFactory.cc
  3325. * src/DefaultBtRequestFactory.h
  3326. * test/DefaultBtRequestFactoryTest.cc
  3327. * test/MockBtRequestFactory.h
  3328. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3329. Changed method signature:
  3330. PieceStorage::getInFlightPieces
  3331. * src/DefaultBtProgressInfoFile.cc
  3332. * src/DefaultPieceStorage.cc
  3333. * src/DefaultPieceStorage.h
  3334. * src/PieceStorage.h
  3335. * src/UnknownLengthPieceStorage.cc
  3336. * src/UnknownLengthPieceStorage.h
  3337. * test/DefaultBtProgressInfoFileTest.cc
  3338. * test/MockPieceStorage.h
  3339. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3340. Changed method signature:
  3341. PostDownloadHandler::getNextRequestGroups
  3342. Metalink2RequestGroup::generate
  3343. RequestGroup::postDownloadProcessing
  3344. * src/BtPostDownloadHandler.cc
  3345. * src/BtPostDownloadHandler.h
  3346. * src/Metalink2RequestGroup.cc
  3347. * src/Metalink2RequestGroup.h
  3348. * src/MetalinkPostDownloadHandler.cc
  3349. * src/MetalinkPostDownloadHandler.h
  3350. * src/PostDownloadHandler.h
  3351. * src/RequestGroup.cc
  3352. * src/RequestGroup.h
  3353. * src/RequestGroupMan.cc
  3354. * src/main.cc
  3355. * test/BtPostDownloadHandlerTest.cc
  3356. * test/Metalink2RequestGroupTest.cc
  3357. * test/MetalinkPostDownloadHandlerTest.cc
  3358. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Rewritten AccRequestGroup
  3360. * src/main.cc
  3361. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. Rewritten.
  3363. * src/TaggedItem.cc (toTagString)
  3364. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Rewritten Accept-Features handling.
  3366. * src/HttpRequestCommand.cc (createHttpRequest)
  3367. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. Rewritten accept types handling.
  3369. * HttpRequest.cc (createRequest)
  3370. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. Rewritten
  3372. * src/FeatureConfig.cc (featureSummary)
  3373. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. Changed method signature:
  3375. PeerStorage::getActivePeers
  3376. * src/DHTPeerAnnounceEntry.cc
  3377. * src/DefaultPeerStorage.cc
  3378. * src/DefaultPeerStorage.h
  3379. * src/PeerStorage.h
  3380. * test/DefaultPeerStorageTest.cc
  3381. * test/MockPeerStorage.h
  3382. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Changed method signature:
  3384. DHTPeerAnnounceStorage::getPeers,
  3385. DHTPeerAnnounceEntry::getPeers
  3386. * src/DHTGetPeersMessage.cc
  3387. * src/DHTPeerAnnounceEntry.cc
  3388. * src/DHTPeerAnnounceEntry.h
  3389. * src/DHTPeerAnnounceStorage.cc
  3390. * src/DHTPeerAnnounceStorage.h
  3391. * test/DHTAnnouncePeerMessageTest.cc
  3392. * test/DHTPeerAnnounceEntryTest.cc
  3393. * test/DHTPeerAnnounceStorageTest.cc
  3394. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Changed method signature:
  3396. NameResolver::resolve
  3397. * src/DHTEntryPointNameResolveCommand.cc
  3398. * src/InitiateConnectionCommand.cc
  3399. * src/NameResolver.cc
  3400. * src/NameResolver.h
  3401. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3402. Changed method signature:
  3403. PieceStorage::getAdvertisedPieceIndexes
  3404. * src/DefaultBtInteractive.cc
  3405. * src/DefaultPieceStorage.cc
  3406. * src/DefaultPieceStorage.h
  3407. * src/PieceStorage.h
  3408. * src/UnknownLengthPieceStorage.h
  3409. * test/MockPieceStorage.h
  3410. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3411. Changed method signature:
  3412. SegmentMan::getInFlightSegment
  3413. * src/AbstractCommand.cc
  3414. * src/SegmentMan.cc
  3415. * src/SegmentMan.h
  3416. * test/SegmentManTest.cc
  3417. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3418. Changed method signature:
  3419. DHTAbstractNodeLookupTask::getNodesFromMessage
  3420. * src/DHTAbstractNodeLookupTask.cc
  3421. * src/DHTAbstractNodeLookupTask.h
  3422. * src/DHTNodeLookupTask.cc
  3423. * src/DHTNodeLookupTask.h
  3424. * src/DHTPeerLookupTask.cc
  3425. * src/DHTPeerLookupTask.h
  3426. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  3428. * src/AbstractCommand.cc
  3429. * src/BtCheckIntegrityEntry.cc
  3430. * src/BtCheckIntegrityEntry.h
  3431. * src/BtFileAllocationEntry.cc
  3432. * src/BtFileAllocationEntry.h
  3433. * src/BtSetup.cc
  3434. * src/BtSetup.h
  3435. * src/CheckIntegrityCommand.cc
  3436. * src/CheckIntegrityEntry.h
  3437. * src/ChecksumCheckIntegrityEntry.cc
  3438. * src/ChecksumCheckIntegrityEntry.h
  3439. * src/DHTSetup.cc
  3440. * src/DHTSetup.h
  3441. * src/DownloadEngine.cc
  3442. * src/FileAllocationCommand.cc
  3443. * src/FileAllocationEntry.h
  3444. * src/RequestGroup.cc
  3445. * src/RequestGroup.h
  3446. * src/RequestGroupMan.cc
  3447. * src/RequestGroupMan.h
  3448. * src/StreamCheckIntegrityEntry.cc
  3449. * src/StreamCheckIntegrityEntry.h
  3450. * src/StreamFileAllocationEntry.cc
  3451. * src/StreamFileAllocationEntry.h
  3452. * src/TrackerWatcherCommand.cc
  3453. * src/a2functional.h
  3454. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Changed method signature:
  3456. BNode::findClosestKNodes, BNode:: enumerateBucket,
  3457. DHTBucket::getGoodNodes,
  3458. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  3459. * src/BNode.cc
  3460. * src/BNode.h
  3461. * src/DHTAbstractNodeLookupTask.cc
  3462. * src/DHTAutoSaveCommand.cc
  3463. * src/DHTBucket.cc
  3464. * src/DHTBucket.h
  3465. * src/DHTBucketRefreshTask.cc
  3466. * src/DHTFindNodeMessage.cc
  3467. * src/DHTGetPeersMessage.cc
  3468. * src/DHTRoutingTable.cc
  3469. * src/DHTRoutingTable.h
  3470. * test/BNodeTest.cc
  3471. * test/DHTBucketTest.cc
  3472. * test/DHTRoutingTableTest.cc
  3473. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. In piece selection functions, Pass std::deque<...> by reference rather
  3475. than returning it.
  3476. * src/BitfieldMan.cc
  3477. * src/BitfieldMan.h
  3478. * src/DefaultBtRequestFactory.cc
  3479. * src/DefaultPieceStorage.cc
  3480. * src/Piece.cc
  3481. * src/Piece.h
  3482. * test/BitfieldManTest.cc
  3483. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. Implemented rarest piece first piece selection strategy.
  3485. * src/AbstractBtMessage.cc
  3486. * src/AbstractBtMessage.h
  3487. * src/BitfieldMan.cc
  3488. * src/BitfieldMan.h
  3489. * src/BtBitfieldMessage.cc
  3490. * src/BtHaveAllMessage.cc
  3491. * src/BtHaveMessage.cc
  3492. * src/DefaultPieceStorage.cc
  3493. * src/DefaultPieceStorage.h
  3494. * src/PeerInteractionCommand.cc
  3495. * src/PieceStorage.h
  3496. * src/UnknownLengthPieceStorage.h
  3497. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Rewritten readData and writeData.
  3499. * src/MultiDiskAdaptor.cc
  3500. * src/MultiDiskAdaptor.h
  3501. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3502. Move \n out of the message "Usage: ...".
  3503. * src/version_usage.cc
  3504. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3505. Bump up version number to 0.13.2b.
  3506. * configure.ac
  3507. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Added const qualifier to argument Exception& e.
  3509. * src/Logger.h
  3510. * src/SimpleLogger.cc
  3511. * src/SimpleLogger.h
  3512. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3513. Pool connection when CWD, SIZE command fails.
  3514. * src/FtpNegotiationCommand.cc
  3515. * src/FtpNegotiationCommand.h
  3516. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3517. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  3518. * src/HttpResponseCommand.cc
  3519. * src/HttpSkipResponseCommand.cc
  3520. * src/HttpSkipResponseCommand.h
  3521. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Pool connection when a server returns 4xx, 5xx responses.
  3523. * src/HttpNullDownloadCommand.cc
  3524. * src/HttpNullDownloadCommand.h
  3525. * src/HttpResponse.cc
  3526. * src/HttpResponse.h
  3527. * src/HttpResponseCommand.cc
  3528. * src/HttpResponseCommand.h
  3529. * test/HttpResponseTest.cc
  3530. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3531. Print usage when no URL is specifed or bad command-line option is
  3532. specified.
  3533. * src/HelpItemFactory.cc
  3534. * src/help_tags.h
  3535. * src/option_processing.cc
  3536. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3537. Removed duplicate log message.
  3538. * src/AbstractCommand.cc (asyncResolveHostname)
  3539. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3540. Updated man page: --async-dns and --ftp-reuse-connection were added.
  3541. Changed -j option's default value from 5 to 1.
  3542. Added new examples using protocol auto detection feature.
  3543. Removed -T, -M usage where it can be omitted.
  3544. * doc/aria2c.1.txt
  3545. * doc/aria2c.1.html
  3546. * doc/aria2c.1.txt
  3547. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3548. Updated command-line usage text, so that it tells users that they
  3549. can specify any number of torrent files and metalink files in
  3550. command-line.
  3551. * src/version_usage.cc
  3552. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3553. Changed the default value of -j option to 1.
  3554. * src/HelpItemFactory.cc
  3555. * src/option_processing.cc
  3556. * src/usage_text.h
  3557. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Added the ability to reuse connection in FTP and it is enabled by
  3559. default. It can be disabled by --ftp-reuse-connection=false option.
  3560. * src/Command.cc
  3561. * src/DownloadCommand.cc
  3562. * src/FtpDownloadCommand.cc
  3563. * src/FtpDownloadCommand.h
  3564. * src/FtpFinishDownloadCommand.cc
  3565. * src/FtpFinishDownloadCommand.h
  3566. * src/FtpInitiateConnectionCommand.cc
  3567. * src/FtpNegotiationCommand.cc
  3568. * src/FtpNegotiationCommand.h
  3569. * src/HelpItemFactory.cc
  3570. * src/Makefile.am
  3571. * src/Makefile.in
  3572. * src/OptionHandlerFactory.cc
  3573. * src/option_processing.cc
  3574. * src/prefs.h
  3575. * src/usage_text.h
  3576. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3577. Call Command::transitStatus() before calling Command::execute(),
  3578. so that the status change made in execute() is not cleared.
  3579. * src/DownloadEngine.cc
  3580. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3581. Removed forward declaration of SocketCore class.
  3582. * src/HttpDownloadCommand.h
  3583. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3584. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  3585. in InitiateConnectionCommandFactory. They should be set only when
  3586. the protocol is HTTP or HTTPS.
  3587. * src/InitiateConnectionCommandFactory.cc
  3588. * src/RequestGroup.cc
  3589. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Fixed infinite loop in checksum checking.
  3591. * src/IteratableChecksumValidator.cc
  3592. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Set _supportsPersistentConnection to true by default.
  3594. * src/Request.cc
  3595. * src/RequestGroup.cc
  3596. * test/HttpRequestTest.cc
  3597. * test/RequestTest.cc
  3598. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Added timeout to socket pool. The default timeout is 15 seconds,
  3600. which is the same value Apache uses.
  3601. * src/DownloadEngine.cc
  3602. * src/DownloadEngine.h
  3603. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3604. Fixed misuse of multimap::find()
  3605. * src/HttpHeader.cc
  3606. * test/HttpHeaderTest.cc
  3607. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  3609. option.
  3610. The asynchronous DNS is not capable of IPv6 yet.
  3611. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  3612. least for HTTP download.
  3613. * src/AbstractCommand.cc
  3614. * src/AbstractCommand.h
  3615. * src/AsyncNameResolver.cc
  3616. * src/AsyncNameResolver.h
  3617. * src/DHTEntryPointNameResolveCommand.cc
  3618. * src/DHTEntryPointNameResolveCommand.h
  3619. * src/DownloadEngine.cc
  3620. * src/DownloadEngine.h
  3621. * src/FtpInitiateConnectionCommand.cc
  3622. * src/FtpInitiateConnectionCommand.h
  3623. * src/HelpItemFactory.cc
  3624. * src/HttpInitiateConnectionCommand.cc
  3625. * src/HttpInitiateConnectionCommand.h
  3626. * src/InitiateConnectionCommand.cc
  3627. * src/InitiateConnectionCommand.h
  3628. * src/Makefile.am
  3629. * src/Makefile.in
  3630. * src/NameResolver.cc
  3631. * src/NameResolver.h
  3632. * src/OptionHandlerFactory.cc
  3633. * src/SocketCore.cc
  3634. * src/SocketCore.h
  3635. * src/Util.cc
  3636. * src/Util.h
  3637. * src/option_processing.cc
  3638. * src/prefs.h
  3639. * src/usage_text.h
  3640. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3641. Updated man page: --quiet, --header were added.
  3642. --metalink-servers and --enable-http-keep-alive option were updated.
  3643. * doc/aria2c.1
  3644. * doc/aria2c.1.html
  3645. * doc/aria2c.1.txt
  3646. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. Enable HTTP keep-alive by default.
  3648. * src/HelpItemFactory.cc
  3649. * src/option_processing.cc
  3650. * src/usage_text.h
  3651. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3652. Disable http keep-alive if the remote server is not HTTP/1.1.
  3653. * src/HttpConnection.cc
  3654. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3655. Receive content body of 302 response so that the connection can be
  3656. reused later when http keep-alive is enabled.
  3657. * src/HttpNullDownloadCommand.cc
  3658. * src/HttpNullDownloadCommand.h
  3659. * src/HttpResponseCommand.cc
  3660. * src/HttpResponseCommand.h
  3661. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. const SharedHandle<Request> -> const SharedHandle<Request>&
  3663. * src/FtpDowndloadCommand.cc
  3664. * src/FtpDowndloadCommand.h
  3665. * src/HttpDownloadCommand.cc
  3666. * src/HttpDownloadCommand.h
  3667. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3668. Fixed the bug that the control file(.aria2 file) is not renamed
  3669. according to tryAutoFileRenaming().
  3670. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3671. its control file exist, use them and continue download.
  3672. The old implementation didn't take into account of control file's
  3673. existence, so basically you couldn't continue download of renamed file.
  3674. * src/BtProgressInfoFile.h
  3675. * src/DefaultBtProgressInfoFile.cc
  3676. * src/DefaultBtProgressInfoFile.h
  3677. * src/NullProgressInfoFile.h
  3678. * src/RequestGroup.cc
  3679. * test/DefaultBtProgressInfoFileTest.cc
  3680. * test/MockBtProgressInfoFile.h
  3681. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Change the default value of --metalink-servers option from `5' to `1'.
  3683. * src/HelpItemFactory.cc
  3684. * src/option_processing.cc
  3685. * src/usage_text.h
  3686. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. Reimplemented transparent metalink using Accept request header.
  3688. * src/HttpRequest.cc
  3689. * src/HttpRequest.h
  3690. * src/HttpRequestCommand.cc
  3691. * src/Metalink2RequestGroup.cc
  3692. * src/RequestGroup.cc
  3693. * src/RequestGroup.h
  3694. * test/HttpRequestTest.cc
  3695. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3696. Bump up version number to 0.13.2a
  3697. * configure.ac
  3698. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3699. Updated configure.ac using the result of autoscan.
  3700. * configure.ac
  3701. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. Fixed compilation error without gcrypt/openssl.
  3703. * src/DownloadCommand.cc
  3704. * src/DownloadCommand.h
  3705. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. Reorganized version information so that it can be displayed in a
  3707. standard terminal screen without scrolling.
  3708. Removed http, ftp from Configuration section, because they are always
  3709. enabled.
  3710. * src/FeatureConfig.cc
  3711. * src/FeatureConfig.h
  3712. * src/main.cc
  3713. * src/messageDigest.cc
  3714. * src/messageDigest.h
  3715. * src/version_usage.cc
  3716. * test/FeatureConfigTest.cc
  3717. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Masked user ID in log.
  3719. * src/FtpConnection.cc (sendUser)
  3720. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Removed query part from filename in HTTP download. The query part means
  3722. the substring after "?" in URL. Firefox seems do the same thing.
  3723. A query part is sometimes very long and not suitable to filename,
  3724. so I think it is better to remove it from filename.
  3725. * src/HttpRequest.cc
  3726. * src/HttpRequest.h
  3727. * src/Request.cc
  3728. * src/Request.h
  3729. * test/HttpRequestTest.cc
  3730. * test/RequestTest.cc
  3731. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Rewritten Exception class. Throw exception object, not its pointer and
  3733. catch by reference, so that remove problematic delete operator for
  3734. catched exception.
  3735. * src/Exception.cc
  3736. * src/Exception.h
  3737. * test/ExceptionTest.cc
  3738. * src/*: All files throwing/catching exception.
  3739. * test/*: All files throwing/catching exception.
  3740. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3741. Now auto protocol detection is enabled without -Z option.
  3742. But there is a important difference between with/without -Z optoin.
  3743. For example, if you type:
  3744. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3745. then, aria2 interprets there are 3 request groups:
  3746. (1) http://host/file, http://mirror/file <-- multi-source download
  3747. (2) file1.torrent
  3748. (3) file2.metalink
  3749. On the other hand, if you invoke above command with -Z option, it is
  3750. interpreted as 4 request groups:
  3751. (1) http://host/file
  3752. (2) file1.torrent
  3753. (3) file2.metalink
  3754. (4) http://mirror/file
  3755. I think usually user don't mix multi-source URLs and torrent files, so
  3756. there is no big problem here.
  3757. * src/main.cc
  3758. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3759. Fixed the bug that causes segmentaion fault when reading XML containing
  3760. unescapsed character like '&'.
  3761. Also a modification was made which avoids adding unnecessary
  3762. characters stack and appending unused string.
  3763. * src/ExpatMetalinkProcessor.cc
  3764. * src/FileMetalinkParserState.h
  3765. * src/FilesMetalinkParserState.h
  3766. * src/FinMetalinkParserState.h
  3767. * src/HashMetalinkParserState.h
  3768. * src/InitialMetalinkParserState.h
  3769. * src/LanguageMetalinkParserState.h
  3770. * src/MetalinkMetalinkParserState.h
  3771. * src/MetalinkParserState.h
  3772. * src/MetalinkParserStateMachine.cc
  3773. * src/MetalinkParserStateMachine.h
  3774. * src/OSMetalinkParserState.h
  3775. * src/PieceHashMetalinkParserState.h
  3776. * src/PiecesMetalinkParserState.h
  3777. * src/ResourcesMetalinkParserState.h
  3778. * src/SizeMetalinkParserState.h
  3779. * src/SkipTagMetalinkParserState.h
  3780. * src/URLMetalinkParserState.h
  3781. * src/VerificationMetalinkParserState.h
  3782. * src/VersionMetalinkParserState.h
  3783. * src/XML2SAXMetalinkProcessor.cc
  3784. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. Added StringFormat class, which internally calls vasprintf.
  3786. operator<< is defined for this class, so it can be used with iostream
  3787. classes nicely. SimpleLogger and following functions are rewritten
  3788. using StringFormat class.
  3789. Besides, now Logger class's methods are non-const, many classes
  3790. that has a const Logger* as a member variable are modified to remove
  3791. const qualifier from the variable declaration.
  3792. * src/HelpItemFactory.cc
  3793. * src/Request.cc
  3794. * src/SimpleLogger.cc
  3795. * src/StringFormat.cc
  3796. * src/StringFormat.h
  3797. * src/Util.cc
  3798. * src/option_processing.cc
  3799. * src/version_usage.cc
  3800. * test/StringFormatTest.cc
  3801. * src/*.h: The classes that has const Logger* as a member variable.
  3802. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3803. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3804. failed. Also fixed memory link when exception is thrown there.
  3805. * src/main.cc (AccRequestGroup)
  3806. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3807. Added build-in "Accept-Features" support. For now only "metalink" is
  3808. used in this header field.
  3809. This "metalink" value is removed from the list when connecting URLs
  3810. fed by metalink file to avoid loop in "transparent" metlaink.
  3811. * src/HttpRequest.cc
  3812. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3813. header is also held in this variable. Also renamed setUserHeaders as
  3814. addHeader and it was rewritten to add header not just to clear the old
  3815. value.
  3816. * src/HttpRequestCommand.cc
  3817. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3818. from "Accept-Features" list.
  3819. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3820. default.
  3821. * src/RequestGroup.h
  3822. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3823. * src/a2functional.h: Included <string> because Concat class depends on
  3824. it.
  3825. * test/HttpRequestTest.cc
  3826. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Added comment
  3828. * src/RequestGroup.cc (createNextCommand)
  3829. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3830. Capitalized METHOD_GET and METHOD_HEAD
  3831. * src/Request.cc
  3832. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Added getDownloadResults() method
  3834. * src/RequestGroupMan.cc
  3835. * src/RequestGroupMan.h
  3836. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Fixed the bug that aria2 exits when commands is empty() but
  3838. _routineCommands are not.
  3839. * src/DownloadEngine.cc
  3840. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Use the default value pulled from Option object in HelpItemFactory.
  3842. except options whose defualt value is embedded in a usage text.
  3843. * src/HelpItemFactory.cc
  3844. * src/HelpItemFactory.h
  3845. * src/option_processing.cc
  3846. * src/version_usage.cc
  3847. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Added --quiet option to make aria2 quiet (no console output).
  3849. --quiet option is tagged with ADVANCED.
  3850. * src/HelpItemFactory.cc
  3851. * src/LogFactory.cc
  3852. * src/LogFactory.h
  3853. * src/MultiUrlRequestInfo.cc
  3854. * src/MultiUrlRequestInfo.h
  3855. * src/NullStatCalc.h: New class. This class prints nothing.
  3856. * src/OptionHandlerFactory.cc
  3857. * src/main.cc
  3858. * src/option_processing.cc
  3859. * src/prefs.h
  3860. * src/usage_text.h
  3861. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3863. * src/HelpItemFactory.cc (createHelpItems):
  3864. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3865. Fixed compilation error in ExpatMetalinkProcessor.cc
  3866. * src/ExpatMetalinkProcessor.cc
  3867. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3868. Reuse socket if the origin server supports HTTP keep-alive and
  3869. --enable-http-keep-alive or --enable-http-pipelining is given.
  3870. The current implementation doesn't reuse the connections established
  3871. against proxy server.
  3872. * src/AbstractCommand.cc
  3873. * src/DownloadEngine.cc
  3874. * src/DownloadEngine.h
  3875. * src/HttpDownloadCommand.cc
  3876. * src/HttpInitiateConnectionCommand.cc
  3877. * src/HttpResponseCommand.cc
  3878. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Rewritten HTTP keep-alive and pipelining routine.
  3880. * src/AbstractCommand.cc
  3881. * src/HttpConnection.cc
  3882. * src/HttpDownloadCommand.cc
  3883. * src/HttpRequest.cc
  3884. * src/HttpRequestCommand.cc
  3885. * src/HttpResponseCommand.cc
  3886. * src/Request.cc
  3887. * src/Request.h
  3888. * src/RequestGroup.cc
  3889. * test/HttpRequestTest.cc
  3890. * test/HttpResponseTest.cc
  3891. * test/RequestTest.cc
  3892. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. Added missing setUserHeaders call
  3894. * src/HttpRequestCommand.cc
  3895. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3896. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3897. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3898. waste of time because it is more likey false.
  3899. * src/FileAllocationDispatcherCommand.cc (execute)
  3900. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Now HTTP status and version are a member variable of HttpHeader.
  3902. HTTP status is processed as a string, not integer.
  3903. * src/AbstractProxyResponseCommand.cc
  3904. * src/HttpConnection.cc
  3905. * src/HttpHeader.cc
  3906. * src/HttpHeader.h
  3907. * src/HttpHeaderProcessor.cc
  3908. * src/HttpHeaderProcessor.h
  3909. * src/HttpResponse.cc
  3910. * src/HttpResponse.h
  3911. * test/HttpHeaderProcessorTest.cc
  3912. * test/HttpResponseTest.cc
  3913. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3914. Added --header option. You can specify any number of additional HTTP headers
  3915. like:
  3916. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3917. Unlike other commad-line option, you can use --header option multiple times.
  3918. * src/HelpItemFactory.cc
  3919. * src/HttpRequest.{cc, h}
  3920. * src/HttpRequestCommand.cc
  3921. * src/OptionHandlerFactory.cc
  3922. * src/OptionHandlerImpl.h
  3923. * src/option_processing.cc
  3924. * src/prefs.h
  3925. * src/usage_text.h
  3926. * test/HttpRequestTest.cc (testUserHeaders)
  3927. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3928. Eliminates the time lag between sequential downloads and commands in
  3929. the same RequestGroup.
  3930. In old implementation, aria2 occasionally waits 1 seconds before
  3931. executing next command or RequestGroup.
  3932. This is really a waste of time, and new implementation eliminates
  3933. this unnecessary time lag.
  3934. * src/AbstractCommand.cc
  3935. * src/AutoSaveCommand.cc
  3936. * src/CheckIntegrityCommand.cc
  3937. * src/Command.{cc, h}
  3938. * src/DownloadEngine.{cc, h}
  3939. * src/DownloadEngineFactory.cc
  3940. * src/FileAllocationCommand.cc
  3941. * src/FileAllocationDispatcherCommand.cc
  3942. * src/FillRequestGroupCommand.cc
  3943. * src/FtpInitiateConnectionCommand.cc
  3944. * src/HaveEraseCommand.cc
  3945. * src/HttpInitiateConnectionCommand.cc
  3946. * src/HttpResponseCommand.cc
  3947. * src/RealtimeCommand.cc
  3948. * src/RequestGroup.cc
  3949. * src/RequestGroupMan.cc
  3950. * src/StreamFileAllocationEntry.cc
  3951. * src/TimeBasedCommand.{cc, h}
  3952. * src/TimedHaltCommand.cc
  3953. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3955. keyword explicit and SharedHandle's default constructor initializes
  3956. its internal obj to null, old implementation initializes it using
  3957. obj's default constructor.
  3958. To assign null, write SharedHandle<T> x(...); x.reset();
  3959. TODO: test/SharedHandleTest.cc needs more tests.
  3960. * src/SharedHandle.h
  3961. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. Fixed type in man page.
  3963. * doc/aria2c.1.txt
  3964. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3966. * src/SimpleLogger.{cc, h}
  3967. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Implemented auto protocol detection.
  3969. Now you can do:
  3970. aria2c -Z http://host/file file1.torrent file2.metalink
  3971. (Note: -Z option is required for auto protcol detection.)
  3972. Then aria2c downloads 3 files simultaneously:
  3973. 1. http://host/file
  3974. 2. file1.torrent <-- read local torrent file
  3975. 3. file2.metalink <-- read local Metalink file.
  3976. Same thing goes with -i option. Assume your uris.txt contans:
  3977. http://host/file
  3978. file1.torrent
  3979. file2.metalink
  3980. Then you can do: aria2c -i uris.txt
  3981. (Note: -Z option is not needed if -i option is given.)
  3982. * src/main.cc
  3983. * src/ProtocolDetector.{cc, h}
  3984. * test/ProtocolDetectorTest.cc
  3985. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3986. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3987. installed
  3988. * src/ARC4Encryptor.h
  3989. * src/ARC4Decryptor.h
  3990. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Renamed argument from 'errno' to 'err', since errno is confused with
  3992. errno defined in errno.h.
  3993. * src/LibgcryptARC4Decryptor.h
  3994. * src/LibgcryptARC4Context.h
  3995. * src/LibgcryptDHKeyExchange.h
  3996. * src/LibgcryptARC4Encryptor.h
  3997. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3998. Rewritten choking algorithm.
  3999. * src/PeerChokeCommand.{cc, h}
  4000. * src/BtInterestedMessage.cc
  4001. * src/PeerSessionResource.{cc, h}
  4002. * src/DefaultPeerStorage.{cc, h}
  4003. * src/BtNotInterestedMessage.cc
  4004. * src/DefaultBtMessageDispatcher.{cc, h}
  4005. * src/BtMessageDispatcher.h
  4006. * src/Peer.{cc, h}
  4007. * src/BtLeecherStateChoke.{cc, h}
  4008. * src/BtSetup.cc
  4009. * src/BtSeederStateChoke.{cc, h}
  4010. * src/PeerStorage.h
  4011. * test/MockPeerStorage.h
  4012. * test/MockBtMessageDispatcher.h
  4013. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Fixed compilation error on x84-64 platform.
  4015. * src/AuthConfig.cc: Included ostream.
  4016. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4017. Rewritten getBasename() and getDirname(), without standard library
  4018. basename(), dirname().
  4019. * src/File.cc
  4020. * test/FileTest.cc
  4021. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4022. Added Simplified Chinese translation. Also updated the following
  4023. translations: Polish, Dutch, German. Great thanks to all translators.
  4024. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Suppress content-range error when 'Content-Range' response header
  4026. doesn't contains bytes-unit specifier 'bytes'
  4027. * src/HttpHeader.cc (getRange)
  4028. * test/HttpHeaderTest.cc
  4029. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Fixed compilation error with g++-4.3
  4031. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Added missing include files for MinGW
  4033. * test/HttpHeaderProcessorTest.cc
  4034. * test/DHTRoutingTableSerializerTest.cc
  4035. * test/DHTRoutingTableDeserializerTest.cc
  4036. * test/UriListParserTest.cc
  4037. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Now download line is printed nicely with no garbage at the end of
  4039. line. I use ioctl to get the columns of terminal.
  4040. If stdout is redirected to another device, instead of carriage return,
  4041. end of line '\n' character is used. This is feature request#1909659
  4042. * src/ConsoleStatCalc.cc (calculateStat)
  4043. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Included a2time.h
  4045. * src/DHTMessageDispatcher.h
  4046. * src/DHTMessageEntry.h
  4047. * src/DHTReplaceNodeTask.h
  4048. * src/DHTMessageTracker.h
  4049. * src/Util.h
  4050. * src/CookieBox.h
  4051. * src/SocketCore.h
  4052. * src/DefaultBtMessageDispatcher.h
  4053. * src/SocketCore.cc
  4054. * src/Util.cc
  4055. * src/DHTPingTask.h
  4056. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Fixed high memory footprint when DHT is enabled.
  4058. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4059. queued than it is processed and the queue is getting longer. As a
  4060. consequence, momory usage is increased.
  4061. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4062. replacement cache in DHTBucket which is described in Kademlia paper.
  4063. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4064. DHTReplaceNodeTask.
  4065. * src/DHTBucket.{h, cc}
  4066. (cacheNode): New function.
  4067. (getCachedNodes): New function.
  4068. (dropNode): Push back cached node to _nodes.
  4069. * test/DHTBucketTest.cc
  4070. (testCacheNode): New test
  4071. (testDropNode): New test
  4072. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4074. the unused 4KB memory when ssl is not used.
  4075. * src/SocketCore.cc
  4076. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Added summary log for peer announce storage.
  4078. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4079. Removed cast
  4080. * src/DefaultPeerStorage.cc (addPeer)
  4081. Log exception message
  4082. * src/DHTMessageTracker.cc (handleTimeout)
  4083. Fixed casting
  4084. * test/HttpRequestTest.cc
  4085. * test/MetalinkProcessorTest.cc
  4086. * test/PieceTest.cc
  4087. * test/MetalinkEntryTest.cc
  4088. * test/SequenceTest.cc
  4089. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4090. * src/ParameterizedStringParser.cc (createLoop):
  4091. Removed unused variable sstep.
  4092. * src/AlphaNumberDecorator.h (decode): Rewritten.
  4093. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. * src/Util.{h, cc}
  4095. (parseUInt): New function.
  4096. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  4097. The actual range is uint32_t.
  4098. * test/UtilTest.cc
  4099. * src/ParameterizedStringParser.cc:
  4100. Use Util::parseUInt() for loop variables.
  4101. * test/ParameterizedStringParserTest.cc
  4102. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  4103. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4104. Rewritten the functions for binding port.
  4105. * src/DHTConnectionImpl.{h, cc}
  4106. * src/PeerListenCommand.{h, cc}
  4107. * src/DHTSetup.cc
  4108. * src/BtSetup.cc
  4109. * test/DHTConnectionImplTest.cc
  4110. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. type cleanup for allmost all remaining files.
  4112. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Type clarification
  4114. * src/PeerSessionResource.{h, cc}
  4115. * src/DefaultPieceStorage.{h, cc}
  4116. * src/Peer.{h, cc}
  4117. * test/PeerSessionResourceTest.cc
  4118. Use div function
  4119. * src/BtPieceMessage.cc (erasePieceOnDisk)
  4120. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Type clarification
  4122. * src/DefaultPeerStorage.{h, cc}
  4123. * test/DefaultPeerStorageTest.cc
  4124. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Type clarification: size_t for length or size, uint64_t for file
  4126. length, off_t for file offset.
  4127. * src/DefaultBtProgressInfoFile.cc
  4128. * src/DefaultBtContext.{h, cc}
  4129. * src/DefaultBtInteractive.cc
  4130. * src/DownloadCommand.{h, cc}
  4131. * src/IteratableChunkChecksumValidator.{h, cc}
  4132. * src/SegmentMan.{h, cc}
  4133. * src/SingleFileDownloadContext.{h, cc}
  4134. * src/IteratableChecksumValidator.{h, cc}
  4135. * src/BtContext.h
  4136. * src/IteratableValidator.h
  4137. * src/DownloadContext.h
  4138. * test/SingleFileDownloadContextTest.cc
  4139. * test/DefaultBtContextTest.cc
  4140. * test/MockBtContext.h
  4141. * test/Metalink2RequestGroupTest.cc
  4142. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4143. Type clarification: size_t for length or size, uint64_t for file
  4144. length, off_t for file offset.
  4145. * src/PiecedSegment.cc
  4146. * src/GrowSegment.h
  4147. * src/DefaultBtRequestFactory.h
  4148. * src/DefaultBtProgressInfoFile.cc
  4149. * src/UnknownLengthPieceStorage.h
  4150. * src/DefaultPieceStorage.cc
  4151. * src/UnknownLengthPieceStorage.cc
  4152. * src/DefaultBtInteractive.cc
  4153. * src/GrowSegment.cc
  4154. * src/BitfieldMan.h
  4155. * src/DownloadCommand.cc
  4156. * src/BtRequestFactory.h
  4157. * src/PiecedSegment.h
  4158. * src/DefaultPieceStorage.h
  4159. * src/Piece.cc
  4160. * src/DefaultBtRequestFactory.cc
  4161. * src/PieceStorage.h
  4162. * src/Segment.h
  4163. * src/Piece.h
  4164. * src/BitfieldMan.cc
  4165. * src/Util.cc
  4166. * test/DefaultBtProgressInfoFileTest.cc
  4167. * test/DefaultPieceStorageTest.cc
  4168. * test/MockPieceStorage.h
  4169. * test/BtRequestMessageTest.cc
  4170. * test/DefaultBtMessageDispatcherTest.cc
  4171. * test/BitfieldManTest.cc
  4172. * test/GrowSegmentTest.cc
  4173. * test/PieceTest.cc
  4174. * test/SegmentTest.cc
  4175. * test/SegmentManTest.cc
  4176. * test/DefaultBtRequestFactoryTest.cc
  4177. * test/MockBtRequestFactory.h
  4178. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Fixed compilation error with --disable-nls
  4180. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4181. in gettext.h causes the problem.
  4182. * src/common.h
  4183. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4184. Removed subPiece related functions.
  4185. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4186. * src/DefaultPieceStorage.{h, cc}
  4187. * test/PieceTest.cc
  4188. * test/DefaultPieceStorageTest.cc
  4189. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Use unsigned char for data store.
  4191. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Bump up version number to 0.13.0+1
  4193. * configure.ac
  4194. * Release 0.13.0+1
  4195. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4196. Changed inactive connection timeout to 120.
  4197. To accept more mulually interested peers, disconnect peer when there
  4198. is no interest between us after certain time passed.
  4199. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  4200. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Fixed the bug that aria2 only uses first dns server in resolv.conf
  4202. when compiled with async DNS support.
  4203. * src/DownloadEngine.cc
  4204. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  4205. value '10' will be a little bit short when some DNS servers are
  4206. offline and several DNS servers are tried. It should be configured
  4207. by command-line option.
  4208. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Merged Ross's mingw patch.
  4210. * src/DHTRoutingTableDeserializer.cc
  4211. * src/DHTRoutingTableSerializer.cc
  4212. * src/Platform.{h, cc}
  4213. * src/timegm.h
  4214. * src/gettimeofday.h
  4215. * src/getaddrinfo.h
  4216. * src/SocketCore.h
  4217. * src/common.h
  4218. * src/inet_aton.h
  4219. * src/DownloadEngine.h
  4220. * src/gai_strerror.h
  4221. * src/a2netcompat.h
  4222. * configure.ac
  4223. * configure
  4224. * aclocal.m4
  4225. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Included missing iostream.
  4227. * test/AllTest.cc
  4228. * test/BtDependencyTest.cc
  4229. * test/BtExtendedMessageTest.cc
  4230. * test/DHTConnectionImplTest.cc
  4231. * test/DHTMessageFactoryImplTest.cc
  4232. * test/DHTMessageTrackerEntryTest.cc
  4233. * test/DHTNodeTest.cc
  4234. * test/DHTRoutingTableSerializerTest.cc
  4235. * test/DefaultBtAnnounceTest.cc
  4236. * test/DefaultBtContextTest.cc
  4237. * test/DefaultBtMessageFactoryTest.cc
  4238. * test/DefaultExtensionMessageFactoryTest.cc
  4239. * test/HandshakeExtensionMessageTest.cc
  4240. * test/HttpResponseTest.cc
  4241. * test/MetalinkProcessorTest.cc
  4242. * test/MultiFileAllocationIteratorTest.cc
  4243. * test/SocketCoreTest.cc
  4244. * test/UTPexExtensionMessageTest.cc
  4245. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Reorganized includes.
  4247. * src/NameResolver.cc
  4248. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Fixed compilation error without ares/c-ares
  4250. * src/NameResolver.h:
  4251. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. Added a test for large file.
  4253. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  4254. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Fixed the bug that file size is ignored if size > INT32_MAX
  4256. * src/SizeMetalinkParserState.cc (endElement):
  4257. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4258. Bump up version number to 0.13.0
  4259. * configure.ac
  4260. * Release 0.13.0
  4261. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Updated Makfefile.am to make 'make dist' work.
  4263. Now packaged filename is aria2c-VERSION.tar.bz2.
  4264. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  4265. Added LICENSE.OpenSSL to dist_noinst_DATA.
  4266. Large file support is now configured by configure script.
  4267. * configure.ac
  4268. Removed unsused source files
  4269. * src/
  4270. * test/
  4271. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  4272. Peer.h and BtContext.h respectively.
  4273. * src/Peer.h
  4274. * src/BtContext.h
  4275. Updated translations.
  4276. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  4277. translations. Great thanks to all translators!;)
  4278. * po/*.{po, gmo}
  4279. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4280. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  4281. statically declared sha1 MessageDigestContext.
  4282. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  4283. initialization of short-lived MessageDigestContext.
  4284. * src/MessageDigestHelper.{h, cc}
  4285. * src/main.cc
  4286. Now DownloadCommand has a reference to MessageDigestContext to avoid
  4287. the initialization of MessageDigestContext every time in validating
  4288. chunk checksum.
  4289. * src/DownloadCommand.{h, cc}
  4290. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4291. Add a file descriptor which connected to fast peer(latency<1500) to
  4292. select(). This change reduced CPU load.
  4293. * src/PeerInteractionCommand.cc
  4294. * src/DefaultBtInteractive.{h, cc}
  4295. * src/BtInteractive.h
  4296. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Fixed the previous insufficient fix for possible busy loop.
  4298. * src/MSEHandshake.cc (identifyHandshakeType)
  4299. Removed unused functions.
  4300. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4301. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. Fixed possible busy loop if first 20 bytes are not received for a few
  4303. minutes.
  4304. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4305. * src/ReceiverMSEHandshakeCommand.cc
  4306. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Fixed compilation error
  4308. * src/ExpatMetalinkProcessor.cc
  4309. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4311. * src/DHTBucket.cc
  4312. Removed unnecessary cast.
  4313. * src/HandshakeExtensionMessage.cc
  4314. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4315. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4316. is missing.
  4317. * src/OptionHandlerFactory.cc
  4318. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4319. Fixed the bug that HAVE message is not sent for a piece they are
  4320. downloaded fom http/ftp server before any BitTorrent handshake is done
  4321. with peers.
  4322. * src/DefaultBtInteractive.cc
  4323. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4325. * src/Makefile.am
  4326. * src/Makefile.in
  4327. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Updated README. Added html version of README and man page.
  4329. * README
  4330. * README.html
  4331. * readme2html: Shell script to generate README.html from README using
  4332. asciidoc.
  4333. * doc/aria2c.1.html
  4334. * doc/makeman: Added the line to generate aria2c.1.html
  4335. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4336. Fixed offset calculation.
  4337. * src/LibgcryptDHKeyExchange.h (computeSecret)
  4338. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. Rewritten itos and uitos using template. llitos and ullitos are
  4340. replaced with itos and uitos respectively.
  4341. * src/Util.{h, cc}
  4342. * test/UtilTest.cc
  4343. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4344. Fixed the bug that DH key exchange sometimes fails due to bad handling
  4345. of the number of bytes required for storing public key and shared
  4346. secret.
  4347. * src/LibgcryptDHKeyExchange.h
  4348. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  4349. * src/MSEHandshake.cc
  4350. * test/DHKeyExchangeTest.cc
  4351. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Removed since they are not used.
  4353. * src/Xml2MetalinkProcessor.{h, cc}
  4354. * src/Socket.cc
  4355. * src/SegmentSplitter.{h, cc}
  4356. * test/Xml2MetalinkProcessorTest.cc
  4357. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4358. Fixed the bug that prevents aria2 from stopping other than by pressing
  4359. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  4360. option. aria2 doesn't stop even after --seed-time is satisfied and
  4361. continues to output blank lines in the console.
  4362. * src/ReceiverMSEHandshakeCommand.cc
  4363. * src/PeerReceiveHandshakeCommand.cc
  4364. * src/PeerListenCommand.cc
  4365. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4366. Bump up version number to 0.13.0rc
  4367. * configure.ac
  4368. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Updated man page and some usage text.
  4370. * doc/aria2c.1.txt
  4371. * src/usage_text.h
  4372. * po/*.{po, gmo}
  4373. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4374. Updated translations. Added Finnish and Hebrew translations.
  4375. Great thanks to all translators!
  4376. * po/*.{po, gmo}
  4377. * po/LINGUAS
  4378. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. Log more detailed information about each message.
  4380. * src/DHTQueryMessage.{h, cc}
  4381. * src/DHTGetPeersMessage.{h, cc}
  4382. * src/DHTFindNodeReplyMessage.{h, cc}
  4383. * src/DHTGetPeersReplyMessage.{h, cc}
  4384. * src/DHTAnnouncePeerMessage.{h, cc}
  4385. * src/DHTResponseMessage.{h, cc}
  4386. * src/DHTFindNodeMessage.{h, cc}
  4387. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Use constants defined in prefs.h
  4389. * src/option_processing.cc
  4390. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4391. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4392. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Make room for future enchancements for IPv6 addresses.
  4394. Bump up version number of dht.dat file format to 2.
  4395. Not compatible with previous version.
  4396. * src/DHTRoutingTableSerializer.cc
  4397. * src/DHTRoutingTableDeserializer.cc
  4398. * test/DHTRoutingTableSerializerTest.cc
  4399. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4400. Added handling for the return values from
  4401. PeerMessageUtil::createcompact().
  4402. * src/DefaultBtContext.cc (computeFastSet):
  4403. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Fixed abort when peer's ip address is IPv4-mapped address.
  4405. * src/DefaultBtContext.cc (computeFastSet)
  4406. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  4407. cannot handle IPv4-mapped addresses.
  4408. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  4409. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Proper return value handling for OpenSSL functions.
  4411. * src/LibsslDHKeyExchange.h
  4412. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4413. Random bytes generation using libgcrypt and OpenSSL.
  4414. * src/DHTUtil.{h, cc}
  4415. * test/DHTUtilTest.cc
  4416. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4417. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  4418. received.
  4419. * src/DHTMessageReceiver.cc (receiveMessage)
  4420. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Fixed the bug that a return code is always 0. BUG#1897704
  4422. If error occurred during the download or there exist unfinished
  4423. downloads, aria2 returns with code 1.
  4424. * src/RequestGroupMan.{h, cc}
  4425. * src/MultiUrlRequestInfo.{h, cc}
  4426. * src/main.cc
  4427. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. IPv6 support for SocketCore class.
  4429. TODO: In SocketCore::establishConnection(), this is insufficient to
  4430. determin the failure of connect() here because the socket is
  4431. non-blocking state. The next addresses should be tried after select().
  4432. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  4433. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  4434. instead which address family independent.
  4435. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  4436. information in a compact peer format which is for IPv4 only.
  4437. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  4438. this is a spec of BitTorrent protocol.
  4439. * src/SocketCore.{h, cc}
  4440. * src/PeerMessageUtil.cc
  4441. * test/SocketCoreTest.cc
  4442. * test/PeerMessageUtilTest.cc
  4443. * test/DHTConnectionImplTest.cc
  4444. Handle IPv4-mapped addresses.
  4445. * src/DHTNode.cc: Now identity is determined by node id.
  4446. * src/DHTMessageTrackerEntry.cc
  4447. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  4448. should handle it.
  4449. * src/DHTRoutingTableDeserializer.cc
  4450. * src/DHTMessageFactoryImpl.cc
  4451. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Change the unit of --stop option from a minute to a second.
  4453. * src/usage_text.h
  4454. * src/DownloadEngineFactory.cc
  4455. * src/OptionHandlerFactory.cc
  4456. * src/message.h
  4457. * src/TimedHaltCommand.cc
  4458. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. Make listening socket non-block mode.
  4460. * src/FtpConnection.cc
  4461. * src/FtpNegotiationCommand.{h, cc}
  4462. * src/PeerListenCommand.cc
  4463. Fixed the bug that cause slow ftp negotiation.
  4464. * src/FtpNegotiationCommand.{h, cc}
  4465. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Added basic tag to --enable-dht, --dht-listen-port option.
  4467. * src/HelpItemFactory.cc (createHelpItems)
  4468. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4469. Updated text.
  4470. * src/usage_text.h
  4471. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  4473. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Determin _threadtholdSpeed in each constructor for
  4475. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  4476. * src/ActivePeerConnectionCommand.{h, cc}
  4477. * src/PeerReceiveHandshakeCommand.{h, cc}
  4478. * src/BtSetup.cc
  4479. * src/BtConstants.h
  4480. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4481. Added --bt-min-crypto-level and --bt-require-crypto options.
  4482. * src/OptionHandlerFactory.cc
  4483. * src/MSEHandshake.cc
  4484. * src/HelpItemFactory.cc
  4485. * src/option_processing.cc
  4486. * src/ReceiverMSEHandshakeCommand.cc
  4487. * src/prefs.h
  4488. * src/DefaultBtAnnounce.cc
  4489. * src/InitiatorMSEHandshakeCommand.cc
  4490. * src/usage_text.h
  4491. * test/MSEHandshakeTest.cc
  4492. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Bump version number to 0.13.0b
  4494. * configure.ac
  4495. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4496. Updated doc.
  4497. * src/MessageDigestHelper.h:
  4498. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Use raw message digest as a token instead of its hexadecimal
  4500. representation.
  4501. * src/DHTTokenTracker.cc (generateToken)
  4502. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Added Message Stream Encryption(MSE) support.
  4504. Currently, aria2 accepts incoming connections with Obfuscation Header
  4505. and legacy BitTorrent Header and establishes connections with
  4506. Obfuscation Header first and if failed then retry with legacy
  4507. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  4508. choose ARC4. The new option to change the default behavior is planned.
  4509. For tracker extension, "supportcrypto=1" is added statically.
  4510. * src/PeerInitiateConnectionCommand.{h, cc}
  4511. * src/PeerConnection.{h, cc}
  4512. * src/HandleRegistry.h
  4513. * src/SocketCore.h
  4514. * src/PeerReceiveHandshakeCommand.{h, cc}
  4515. * src/BtRegistry.{h, cc}
  4516. * src/PeerListenCommand.cc
  4517. * src/InitiatorMSEHandshakeCommand.{h, cc}
  4518. * src/ReceiverMSEHandshakeCommand.{h, cc}
  4519. * src/MSEHandshake.{h, cc}
  4520. * src/ARC4Encryptor.h
  4521. * src/ARC4Decryptor.h
  4522. * src/LibgcryptARC4Encryptor.h
  4523. * src/LibgcryptARC4Decryptor.h
  4524. * src/LibgcryptARC4Context.h
  4525. * src/LibsslARC4Encryptor.h
  4526. * src/LibsslARC4Decryptor.h
  4527. * src/LibsslARC4Context.h
  4528. * src/DHKeyExchange.h
  4529. * src/LibgcryptDHKeyExchange.h
  4530. * src/LibsslDHKeyExchange.h
  4531. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  4532. * test/DefaultBtAnnounceTest.cc
  4533. * test/ARC4Test.cc
  4534. * test/DHKeyExchangeTest.cc
  4535. Removed prepareForRetry() because it is not used.
  4536. * src/PeerAbstractCommand.{h, cc}
  4537. * src/PeerInteractionCommand.{h, cc}
  4538. * src/PeerInitiateConnectionCommand.{h, cc}
  4539. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4540. Added the ability to load nodes from torrent file. These nodes are
  4541. added to the routing table when downloading that torrent.
  4542. * src/BtContext.h
  4543. * src/DefaultBtContext.{h, cc}
  4544. * src/DHTSetup.cc
  4545. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  4546. hostname and port pair, and resolves all of them.
  4547. * src/NameResolver.{h, cc}: Added reset().
  4548. * src/RequestGroup.cc
  4549. * test/DefaultBtContextTest.cc
  4550. * test/MockBtContext.h
  4551. Removed assert() from DefaultBtContext and throw exception instead.
  4552. * src/DefaultBtContext.cc
  4553. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Fixed segmentation fault bug when exiting if dht is disabled.
  4555. * src/RequestGroup.cc
  4556. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Fixed typo in log message and define the message in message.h
  4558. * src/TimedHaltCommand.cc
  4559. * src/message.h
  4560. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Included RecoverableException.h to fix compilation error.
  4562. * test/DHTMessageFactoryImplTest.cc
  4563. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  4565. * test/DHTPingMessageTest.cc
  4566. * test/DHTGetPeersMessageTest.cc
  4567. * test/DHTFindNodeMessageTest.cc
  4568. * test/DHTAnnouncePeerMessageTest.cc
  4569. * test/MockDHTMessage.h
  4570. * test/MockDHTMessageFactory.h
  4571. * test/MockDHTMessageDispatcher.h: New class.
  4572. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  4574. virtual.
  4575. * src/DHTMessageDispatcher.h
  4576. * src/DHTMessageDispatcherImpl.{h, cc}
  4577. * src/DHTSetup.cc
  4578. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Adding handling of DHT error message. Just log error message and
  4580. throw exception.
  4581. * src/DHTMessageFactoryImpl.cc
  4582. * test/DHTMessageFactoryImplTest.cc
  4583. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4584. Added handling of dynamic cast failure.
  4585. * src/DHTNodeLookupTask.cc
  4586. * src/DHTPeerLookupTask.cc
  4587. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Added the ability to stop aria2 itself when given time has passed
  4589. from start. Use --stop option to specify time in minutes.
  4590. When 0 is given, this feature is disabled.
  4591. * src/OptionHandlerFactory.cc
  4592. * src/TimeBasedCommand.h: Make _interval protected scope.
  4593. * src/HelpItemFactory.cc
  4594. * src/option_processing.cc
  4595. * src/prefs.h
  4596. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  4597. before calling RequestGroupMan::fillRequestGroupFromReserver().
  4598. Without this modification, the result list shows "ERR" when aria2 is
  4599. stopped by --stop option. It should be "INPR".
  4600. * src/DownloadEngine.{h, cc}
  4601. * src/DownloadEngineFactory.cc
  4602. * src/usage_text.h
  4603. * src/TimedHaltCommand.{h, cc}: New class.
  4604. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Bootstrap through node added by port message.
  4606. Currently bootstrap is executed if the number of buckets in routing
  4607. table is 1.
  4608. * src/BtPortMessage.{h, cc}
  4609. * src/DefaultBtMessageFactory.{h, cc}
  4610. * src/PeerInteractionCommand.cc
  4611. * test/BtPortMessageTest.cc
  4612. * test/MockDHTTask.h
  4613. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Extract the Peer class's member variables, which are only needed after
  4615. PeerInteractionCommand, into PeerSessionResource class.
  4616. This class is instantiated in PeerInteractionCommand class's ctor and
  4617. released in its dtor.
  4618. This will make Peer class lightweight and uses less memory for peers
  4619. which are not connected and wait in the queue.
  4620. * src/PeerChokeCommand.cc
  4621. * src/PeerSessionResource.{h, cc}
  4622. * src/PeerInteractionCommand.cc
  4623. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  4624. * src/DefaultBtInteractive.cc
  4625. * src/BtPieceMessage.cc
  4626. * src/BtInterestedMessage.cc
  4627. * src/BtUnchokeMessage.cc
  4628. * src/DefaultPeerStorage.{h, cc}
  4629. * src/PeerInitiateConnectionCommand.cc
  4630. * src/ActivePeerConnectionCommand.cc
  4631. * src/BtNotInterestedMessage.cc
  4632. * src/DefaultBtMessageDispatcher.cc
  4633. * src/BtChokeMessage.cc
  4634. * src/BtRequestMessage.cc
  4635. * src/Peer.{h, cc}
  4636. * src/BtRegistry.h
  4637. * src/TrackerWatcherCommand.cc
  4638. * src/PeerReceiveHandshakeCommand.cc
  4639. * test/BtExtendedMessageTest.cc
  4640. * test/BtAllowedFastMessageTest.cc
  4641. * test/BtCancelMessageTest.cc
  4642. * test/DefaultPieceStorageTest.cc
  4643. * test/BtBitfieldMessageTest.cc
  4644. * test/BtHaveMessageTest.cc
  4645. * test/BtNotInterestedMessageTest.cc
  4646. * test/BtRequestMessageTest.cc
  4647. * test/PeerSessionResourceTest.cc
  4648. * test/DefaultBtMessageDispatcherTest.cc
  4649. * test/PeerTest.cc
  4650. * test/BtInterestedMessageTest.cc
  4651. * test/BtRejectMessageTest.cc
  4652. * test/BtChokeMessageTest.cc
  4653. * test/DefaultPeerStorageTest.cc
  4654. * test/BtHaveNoneMessageTest.cc
  4655. * test/BtHaveAllMessageTest.cc
  4656. * test/DefaultExtensionMessageFactoryTest.cc
  4657. * test/BtUnchokeMessageTest.cc
  4658. * test/DefaultBtMessageFactoryTest.cc
  4659. * test/HandshakeExtensionMessageTest.cc
  4660. * test/UTPexExtensionMessageTest.cc
  4661. * test/DefaultBtRequestFactoryTest.cc
  4662. * test/BtPieceMessageTest.cc
  4663. Removed typedef PeerStats.
  4664. * src/PeerStat.h
  4665. * src/SegmentMan.cc
  4666. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Added std namespace to copy, remove_copy, back_inserter,
  4668. front_inserter.
  4669. * src/RequestGroupMan.cc
  4670. * src/DefaultPieceStorage.cc
  4671. * src/StreamFileAllocationEntry.cc
  4672. * src/BtFileAllocationEntry.cc
  4673. * src/RequestGroup.cc
  4674. * src/MetalinkEntry.cc
  4675. * src/DelegatingPeerListProcessor.cc
  4676. * src/DefaultBtRequestFactory.cc
  4677. * src/DefaultBtMessageDispatcher.cc
  4678. * src/version_usage.cc: Included <algorithm>
  4679. * src/main.cc
  4680. * src/MetalinkParserController.cc
  4681. * src/DefaultBtContext.cc
  4682. * src/DownloadEngineFactory.cc
  4683. * src/a2algo.h
  4684. Removed.
  4685. * test/StreamUriListParserTest.cc
  4686. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4688. ActivePeerConnectionCommand when it is given and
  4689. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4690. * src/ActivePeerConnectionCommand.{h, cc}
  4691. * src/BtSetup.cc
  4692. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4693. Only add socket to DownloadEngine's select routine when peer or
  4694. localhost is unchoked and interested. This lowers CPU usage a
  4695. little bit.
  4696. * src/PeerInteractionCommand.cc
  4697. * src/PeerAbstractCommand.{h, cc}
  4698. * src/BtInteractive.h
  4699. * src/DefaultBtInteractive.{h, cc}
  4700. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4701. Revert previous change because get_peers message is needed for
  4702. announce_peer anyway.
  4703. * src/DHTGetPeersCommand.cc
  4704. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4705. Request peers thought DHT only when download hasn't finished.
  4706. * src/DHTGetPeersCommand.cc
  4707. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4708. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4709. * src/DHTBucketRefreshTask.{h, cc}
  4710. * src/DHTSetup.cc
  4711. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4712. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4713. standard classes.
  4714. Included string.h where mem* function are used.
  4715. Added namespace aria2.
  4716. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4717. Create directory before saving DHT routing table.
  4718. Now ios::failure is now handled properly.
  4719. * src/DHTAutoSaveCommand.cc
  4720. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Removed unnecessary cerr.
  4722. * src/DownloadEngine.cc
  4723. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Catch exception inside DHTMessageReceiver::receiveMessage().
  4725. Log unknown message.
  4726. * src/DHTMessageReceiver.{h, cc}
  4727. * src/DHTMessageFactory.h
  4728. * src/DHTMessageFactoryImpl.{h, cc}
  4729. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4730. * src/DHTInteractionCommand.cc
  4731. * src/DHTUnknownMessage.{h, cc}
  4732. * test/DHTUnknownMessageTest.cc
  4733. * test/MockDHTMessageFactory.h
  4734. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Commented out ip address comparison because a host can have multiple
  4736. ip addresses and it is hard to predict the hostname is resolved into
  4737. which one.
  4738. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4739. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. * po/Makefile.in: Removed since this is generated by configure.
  4741. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4742. Fixed compiler warning about redefinition of SIZE_MAX.
  4743. Use common.h instead of config.h directly here.
  4744. * src/Platform.{h, cc}
  4745. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4746. here.
  4747. * common.h
  4748. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4749. Updated gettext related files.
  4750. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4751. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4752. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Added DHT functionality, compatible with mainline.
  4754. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4755. You may need to specify entry point to DHT network using
  4756. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4757. Use --dht-listen-port to specify port number. Make sure that your
  4758. firewall configuration can pass through UDP traffic to the port.
  4759. The routing table is saved in $HOME/.aria2/dht.dat.
  4760. * src/DHT*
  4761. * src/BNode.{h, cc}
  4762. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4763. particular torrent.
  4764. * src/Data.cc: Rewritten ctor.
  4765. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4766. --dht-entry-point.
  4767. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4768. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4769. ends, remove BtContext from DHTPeerAnnounceStorage.
  4770. * src/BtPortMessage.{h, cc}: Rewritten.
  4771. * src/message.h
  4772. * src/OptionHandlerImpl.cc
  4773. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4774. --dht-entry-point.
  4775. * src/Dictionary.{h, cc} (remove): New function.
  4776. * src/prefs.h
  4777. * src/DefaultBtMessageFactory.h
  4778. * src/BtHandshakeMessage.cc
  4779. * src/ActivePeerConnectionCommand.cc
  4780. * src/SocketCore.{h, cc}: Added datagram socket support.
  4781. * src/DefaultBtMessageFactory.cc
  4782. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4783. Create DHT commands.
  4784. * src/BtMessageFactory.h
  4785. * src/PeerMessageUtil.{h, cc}
  4786. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Fixed the bug that log file is not written when configuration file doesn't exist.
  4788. This is caused by using Logger class before LogFactory is not configured.
  4789. BUG #1875079
  4790. * src/option_processing.cc
  4791. Warning message "configuration doesn't exist" is only printed when --conf is
  4792. given.
  4793. * src/option_processing.cc
  4794. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4796. ShaVisitor is now deprecated and slated to be removed.
  4797. * src/DefaultBtContext.cc
  4798. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Externalize message to message.h
  4800. * src/Platform.cc
  4801. * src/message.h
  4802. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4803. Set default domain and default path to cookie.
  4804. * src/HttpResponse.cc
  4805. * src/CookieBox.{h, cc}
  4806. * src/CookieParser.{h, cc}
  4807. * test/CookieParserTest.cc
  4808. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Added --no-conf and --conf-path command-line option.
  4810. --no-conf option disables loading aria2.conf file.
  4811. --conf-path option changes the configuration file path. The default
  4812. file path is $HOME/.aria2/aria2.conf
  4813. Added a warning message when the configuration file is not found.
  4814. * src/HelpItemFactory.cc
  4815. * src/option_processing.cc
  4816. * src/prefs.h
  4817. * src/usage_text.h
  4818. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Added the message to inform users that other help categories are
  4820. available in -h option.
  4821. * src/version_usage.cc
  4822. * src/TagContainer.{h, cc}
  4823. * test/TagContainerTest.cc
  4824. * src/TaggedItem.{h, cc}
  4825. * test/TaggedItemTest.cc
  4826. * src/HelpItem.h
  4827. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4829. from PiecedSegment's ctor.
  4830. Previously Piece::getAllMissingBlockIndexes() is called from
  4831. PiecedSegment() but it is rather expensive since only first element is
  4832. used.
  4833. * src/PiecedSegment.cc
  4834. * src/Piece.{h, cc}
  4835. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4837. each time these functions are called.
  4838. * src/BitfieldMan.{h, cc}
  4839. * test/BitfieldManTest.cc
  4840. * src/array_fun.h
  4841. * test/array_funTest.cc
  4842. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4843. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4844. filtered. Removed unnecessary cast to int32_t.
  4845. * src/BitfieldMan.{h, cc}
  4846. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4847. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4848. payload length(4bytes) are received. This happens because lenbufLength
  4849. is not updated in this particular case and successive call of
  4850. receiveMessage() overwrites payload length with bytes recieved which
  4851. are payload body.
  4852. * src/PeerConnection.{h, cc}
  4853. * src/message.h
  4854. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4856. peer if there are peers that have same ipaddr and port.
  4857. I've experiened segmentation fault and "pure virtual function was
  4858. called" error.
  4859. * src/Peer.h
  4860. * test/PeerTest.cc
  4861. * src/DefaultPeerStorage.cc
  4862. * test/DefaultPeerStorageTest.cc
  4863. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Removed a call to isPowerOf() because it is no longer necessary here
  4865. and a request block is not always power of 2.
  4866. BUG#1866924
  4867. * src/PeerMessageUtil.cc (checkLength)
  4868. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Fixed the bug that always first found Segment is removed from
  4870. usedSegmentEntries. Removed unused functions.
  4871. * src/SegmentMan.{h, cc}
  4872. * test/SegmentManTest.cc
  4873. Fixed the bug that ServerHost is not removed.
  4874. * src/RequestGroup.cc
  4875. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Fixed the bug that SegmentMan::completeSegment() is not called
  4877. even if Segment is complete when --lowest-speed-limit is enabled.
  4878. BUG#1864525
  4879. * src/DownloadCommand.{h, cc}
  4880. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Fixed: hash algorithm 'sha1' is always used.
  4882. * src/DownloadCommand.cc (validatePieceHash)
  4883. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Added --enable-peer-exchange command-line option.
  4885. * src/OptionHandlerFactory.cc
  4886. * src/HelpItemFactory.cc
  4887. * src/option_processing.cc
  4888. * src/usage_text.h
  4889. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4890. Move extension from BtRuntime to ExtensionMessageFactory, because
  4891. extension can be specified per peer, not per torrent.
  4892. * src/DefaultBtInteractive.cc
  4893. * src/BtRuntime.h
  4894. * src/ExtendedMessagingAware.h
  4895. * src/ExtensionMessageFactory.h
  4896. * src/DefaultExtensionMessageFactory.cc
  4897. * test/DefaultExtensionMessageFactoryTest.cc
  4898. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Added categorized option help. Specify category using --help option.
  4900. Also added the ability to search options in forward match.
  4901. * src/HelpItem.{h, cc}
  4902. * test/HelpItemTest.cc
  4903. * src/HelpItemFactory.{h, cc}
  4904. * src/TagContainer.{h, cc}
  4905. * test/TagContainerTest.cc
  4906. * src/option_processing.cc
  4907. * src/prefs.h
  4908. * src/TaggedItem.{h, cc}
  4909. * test/TaggedItemTest.cc
  4910. * src/version_usage.cc
  4911. * src/help_tags.h
  4912. * src/usage_text.h
  4913. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Fixed segmentation fault when bad torrent metainfo is parsed.
  4915. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4916. and then throw exception or skip it.
  4917. * src/DefaultBtContext.{h, cc}
  4918. * test/DefaultBtContextTest.cc
  4919. * src/AnnounceList.cc
  4920. * src/CompactPeerListProcessor.cc
  4921. * src/message.h
  4922. * src/DefaultBtAnnounce.{h, cc}
  4923. * test/DefaultBtAnnounceTest.cc
  4924. * src/BencodeVisitor.cc
  4925. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Added missing "B"(=Byte). So now the message looks like this:
  4927. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4928. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4929. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4930. Show the seed ratio after torrent downloads.
  4931. For example, after torrent download completed and --seed-time and
  4932. --seed-ratio conditions are fulfilled, following message is printed
  4933. right after "Download complete: .....":
  4934. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4935. * src/RequestGroupMan.cc
  4936. * src/RequestGroup.{h, cc}
  4937. * src/message.h
  4938. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Remove a defunct control file. A defunct control file means that while
  4940. it exists, but the corresponding download file is missing.
  4941. After its removal, a download restarts from the beginning.
  4942. * src/RequestGroup.cc
  4943. * src/message.h
  4944. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Allocate bitfield in Peer when it is really used. More specifically,
  4946. bitfield in Peer is allocated after the connection is established and
  4947. deallocated when the connection is dropped.
  4948. Since 2 parameters(piece length and total length) was removed from the
  4949. constructor of Peer class, many test classes were modified accordingly.
  4950. See svn log for more detailed information.
  4951. * src/PeerInteractionCommand.cc
  4952. * src/CompactPeerListProcessor.cc
  4953. * src/Peer.cc
  4954. * src/DefaultPeerListProcessor.cc
  4955. * src/PeerListenCommand.cc
  4956. * src/PeerReceiveHandshakeCommand.cc
  4957. Fixed memory leak
  4958. * src/Piece.cc
  4959. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4961. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4962. command-line options.
  4963. * src/option_processing.cc
  4964. * src/ActivePeerConnectionCommand.cc
  4965. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. Send have message to peer if it already has the piece.
  4967. * src/BtHaveMessage.{h, cc}
  4968. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4970. port.
  4971. * src/DefaultPeerStorage.{h, cc}
  4972. * test/DefaultPeerStorageTest.cc
  4973. * src/HandshakeExtensionMessage.cc
  4974. * test/HandshakeExtensionMessageTest.cc
  4975. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4976. * src/PeerStorage.h
  4977. * test/MockPeerStorage.h
  4978. * src/PeerListenCommand.cc
  4979. * src/PeerReceiveHandshakeCommand.cc
  4980. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Added --metalink-enable-unique-protocol option.
  4982. * src/Metalink2RequestGroup.cc
  4983. * src/option_processing.cc
  4984. * src/prefs.h
  4985. * src/version_usage.cc
  4986. * doc/aria2c.1.txt
  4987. * doc/aria2c.1
  4988. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. Allow a peer in incomingPeer to be added peers.
  4990. * src/DefaultPeerStorage.cc
  4991. * test/DefaultPeerStorageTest.cc
  4992. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4994. I could reproduce this bug in following procedure:
  4995. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4996. 2. Restart aria2.
  4997. 3. You see the download stopped around 99%.
  4998. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4999. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5000. If timeout is reached, then _nextCommand is unused and it may contains
  5001. segments and they won't be canceled. Actually, timeout is not needed
  5002. here because if the server dropped connection, then retry is made.
  5003. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Added uTorrent compatible Peer Exchange.
  5005. * src/BencodeVisitor.{h, cc}
  5006. * test/BencodeVisitorTest.cc
  5007. * src/BtConstants.h
  5008. * src/BtContext.h: Added 'private' flag.
  5009. * src/BtExtendedMessage.{h, cc}
  5010. * test/BtExtendedMessageTest.cc
  5011. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5012. reserved field.
  5013. * test/BtHandshakeMessageTest.cc
  5014. * src/BtMessageFactory.h
  5015. * src/BtRegistry.h
  5016. * src/BtRuntime.h: This class holds default extension message IDs for
  5017. aria2. By default, aria2 uses ID 8 for ut_pex.
  5018. * src/DefaultBtContext.cc
  5019. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5020. When it is true, aria2 enables ut_pex. This value is set by
  5021. PeerInteractionCommand.
  5022. * src/DefaultBtMessageFactory.{h, cc}
  5023. * test/DefaultBtMessageFactoryTest.cc
  5024. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5025. handling to DefaultBtInteractive class.
  5026. * src/DefaultExtensionMessageFactory.{h, cc}
  5027. * test/DefaultExtensionMessageFactoryTest.cc
  5028. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5029. the container(peers and incomingPeers. The equality is determined by
  5030. Peer::id).
  5031. * test/DefaultPeerStorageTest.cc
  5032. * src/ExtensionMessage.h
  5033. * test/MockExtensionMessage.h
  5034. * src/ExtensionMessageFactory.h
  5035. * test/MockExtensionMessageFactory.h
  5036. * src/HandshakeExtensionMessage.{h, cc}
  5037. * test/HandshakeExtensionMessageTest.cc
  5038. * src/MetaEntry.h
  5039. * src/Peer.{h, cc}
  5040. * src/PeerInteractionCommand.cc
  5041. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5042. addIncomingPeer.
  5043. * src/PeerMessageUtil.{h, cc}
  5044. * src/PeerObject.h
  5045. * src/UTPexExtensionMessage.{h, cc}
  5046. * test/UTPexExtensionMessageTest.cc
  5047. * src/message.h
  5048. * src/prefs.h
  5049. Fixed the bug that returns incomplete data when it contains null
  5050. character. A convenient constructor was also added.
  5051. * src/Data.{h, cc}
  5052. Rewritten.
  5053. * src/CompactPeerListProcessor.cc
  5054. Fixed typos.
  5055. * src/message.h
  5056. * src/MetaFileUtil.cc
  5057. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Added "Status Legend" label to the explanation text of 'stat' in
  5059. download result and moved it to the last. BUG#1848214
  5060. * src/RequestGroupMan.cc
  5061. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5063. * src/Makefie.am
  5064. * test/Makefile.am
  5065. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Fixed the bug that prevents aria2 from loading cookie file when expire
  5067. value is greater than 2^31-1. BUG#1851066
  5068. * src/CookieBoxFactory.cc
  5069. * test/CookieBoxFactoryTest.cc
  5070. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. Fixed possible memory leak when an exception is thrown.
  5072. * src/XML2SAXMetalinkProcessor.cc
  5073. Added Expat support. If both libxml2 and Expat are installed, then
  5074. libxml2 is used by default.
  5075. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5076. ExpatMetalinkProcessor according to the configuration.
  5077. * src/ExpatMetalinkProcessor.{h, cc}
  5078. * src/main.cc: Removed libxml2 specific header and init/free function.
  5079. * src/MetalinkProcessorFactory.{h, cc}
  5080. * src/MetalinkHelper.cc
  5081. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5082. * src/MetalinkProcessor.h
  5083. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5084. MetalinkProcessorTest is used instead.
  5085. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5086. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5087. MetalinkProcessorFactory::newInstance().
  5088. * m4/libexpat.m4
  5089. * configure.ac: Added configuration options for libexpat.
  5090. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Disabled -s option in metalink download.
  5092. * src/Metalink2RequestGroup.cc
  5093. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. If several protocols are available for a mirror in metalink file,
  5095. aria2 now use one of them. --metalink-preferred-protocol option was
  5096. added to specify the preference of protocol.
  5097. * src/AbstractCommand.cc
  5098. * src/OptionHandlerFactory.cc
  5099. * src/ServerHost.{h, cc}
  5100. * src/Metalink2RequestGroup.cc
  5101. * src/RequestGroup.{h, cc}
  5102. * test/RequestGroupTest.cc
  5103. * src/option_processing.cc
  5104. * src/prefs.h
  5105. * src/HttpResponseCommand.cc
  5106. * src/MetalinkResource.{h, cc}
  5107. * src/FtpNegotiationCommand.cc
  5108. * src/MetalinkEntry.{h, cc}
  5109. * src/MetalinkEntryTest.cc
  5110. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Code cleanup and added debug log.
  5112. * src/PeerConnection.cc
  5113. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5114. Compiler error fix: applied the patch by Tiziano Mueller
  5115. * src/RequestGroup.cc
  5116. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Fixed the bug: only first announce URL is tried in AnnounceTier,
  5118. in stopped and completed event.
  5119. * src/AnnounceList.{h, cc}
  5120. * test/AnnounceListTest.cc
  5121. * src/DefaultBtAnnounce.cc
  5122. * test/DefaultBtAnnounceTest.cc
  5123. Sorted URLs.
  5124. * test/Metalink2RequestGroupTest.cc
  5125. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5126. Removed unnecessary string copy. Updated doc and corrected indentation.
  5127. * src/Base64.cc
  5128. Fixed compilation warnings
  5129. * test/DataTest.cc
  5130. * test/HttpRequestTest.cc
  5131. * test/MetaFileUtilTest.cc
  5132. * test/RequestTest.cc
  5133. * Release 0.12.0
  5134. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Updated translations
  5136. * po/{de,fr,ja,nl,ru}.po
  5137. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  5138. translations. Many thanks to translators.
  5139. * po/{ca,es,it,pt_BR,sv}.po
  5140. * po/LINGUAS
  5141. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Added a notice about URL
  5143. * src/version_usage.cc
  5144. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5145. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5146. aria2 repeatedly sends stopped request when tracker returns error code.
  5147. * src/AnnounceList.cc
  5148. * test/AnnounceListTest.cc
  5149. * src/AnnounceTier.h
  5150. Added a message when ctrl-c is hit.
  5151. Now second ctrl-c is also handled in signal handler.
  5152. * src/RequestGroupMan.{h, cc}
  5153. * src/RequestGroup.{h, cc}
  5154. * src/MultiUrlRequestInfo.cc
  5155. * src/DownloadEngine.cc
  5156. * src/TrackerWatcherCommand.cc
  5157. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Code cleanup
  5159. * src/Base64.cc (encode)
  5160. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Changed Direct/IO enable/disable procesure in file allocation routine.
  5162. * src/SingleFileAllocationIterator.cc
  5163. (SingleFileAllocationIterator):
  5164. Disable directIO if offset is not multiple of 512.
  5165. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5166. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5167. Enable created SingleFileAllocationIterator's directIO.
  5168. * src/FileAllocationEntry.cc
  5169. (FileAllocationEntry): Enable directIO here.
  5170. (~FileAllocationEntry): Disable directIO here.
  5171. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5173. * src/Peer.{h, cc}
  5174. * src/DefaultPieceStorage.cc
  5175. * test/DefaultPieceStorageTest.cc
  5176. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Rewritten direct I/O support routine
  5178. * src/SingleFileAllocationIterator.cc
  5179. * src/MultiDiskAdaptor.{h, cc}
  5180. * src/ByteArrayDiskWriter.h
  5181. * src/AbstractSingleDiskAdaptor.h
  5182. * src/AbstractDiskWriter.cc
  5183. * src/DefaultPieceStorage.cc
  5184. * src/DiskWriter.h
  5185. * src/BinaryStream.h
  5186. * src/IteratableChunkChecksumValidator.cc
  5187. * src/IteratableChecksumValidator.cc
  5188. * src/CheckIntegrityEntry.cc
  5189. * src/FileAllocationEntry.cc
  5190. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Fixed typo
  5192. * src/version_usage.cc
  5193. Updated doc
  5194. * doc/aria2c.1.txt
  5195. * doc/aria2c.1
  5196. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Fixed compile error without message digest support.
  5198. * src/FileMetalinkParserState.cc
  5199. * src/MetalinkParserController.{h, cc}
  5200. * test/XML2SAXMetalinkProcessorTest.cc
  5201. * test/MetalinkParserControllerTest.cc
  5202. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. Enable direct I/O support in checksum checking.
  5204. * src/IteratableChunkChecksumValidator.{h, cc}
  5205. * test/IteratableChunkChecksumValidatorTest.cc
  5206. * src/CheckIntegrityEntry.cc
  5207. * src/PieceHashCheckIntegrityEntry.cc
  5208. * src/IteratableChecksumValidator.{h, cc}
  5209. * src/BtCheckIntegrityEntry.cc: Added doc.
  5210. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Added --allow-piece-length-change option.
  5212. * src/DefaultBtProgressInfoFile.cc
  5213. * test/DefaultBtProgressInfoFileTest.cc
  5214. * src/OptionHandlerFactory.cc
  5215. * src/option_processing.cc
  5216. * src/prefs.h
  5217. * src/version_usage.cc
  5218. * doc/aria2c.1.txt
  5219. * doc/aria2c.1
  5220. Fixed: duplicated result entry appears when exception is thrown in
  5221. RequestGroup::createInitiateConnectionCommand().
  5222. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  5223. Add RequestGroup to _requestGroup after RequetGroup::
  5224. createInitiateConnectionCommand() succeeds.
  5225. Externalized message
  5226. * src/XML2SAXMetalinkProcessor.cc
  5227. * src/message.h
  5228. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Forced download abort when received negative response from http/ftp
  5230. server.
  5231. * src/HttpResponseCommand.cc
  5232. * src/FtpNegotiationCommand.cc
  5233. * src/HttpResponse.cc
  5234. * src/FtpConnection.cc
  5235. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  5237. the predecessor, Xml2MetalinkParser class.
  5238. I tested them against 94KB metalink file with 1234 chunk checksums.
  5239. The new one parsed it in 22msec, while it took 6000msec with old one.
  5240. * src/XML2SAXMetalinkProcessor.{h, cc}
  5241. * test/XML2SAXMetalinkProcessorTest.cc
  5242. * src/MetalinkParserController.{h, cc}
  5243. * test/MetalinkParserControllerTest.cc
  5244. * src/MetalinkParserState.h: Also added 16 subclasses.
  5245. * src/main.cc
  5246. * src/Metalink2RequestGroup.cc
  5247. * src/MetalinkHelper.cc
  5248. * src/MetalinkEntry.cc
  5249. * src/ChunkChecksum.h
  5250. Rewritten Base64 class for better performance.
  5251. * src/Base64.{h, cc}
  5252. * test/Base64Test.cc
  5253. * src/HttpRequest.cc
  5254. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Fixed the bug#1841757: aria2 will connect to server to only get
  5256. file size.
  5257. * src/StreamFileAllocationEntry.cc
  5258. * src/option_processing.cc
  5259. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  5260. downloads.
  5261. * src/FtpNegotiationCommand.cc
  5262. Suppressed wrong message when finding PreDownloadHandler
  5263. * src/RequestGroup.cc
  5264. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Updated usage
  5266. * src/version_usage.cc
  5267. Updated man page
  5268. * doc/aria2c.1.txt
  5269. * doc/aria2c.1
  5270. Updated po files
  5271. * po/aria2c.pot
  5272. * po/*.po
  5273. * po/*.gmo
  5274. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Eliminated g++-4.2 warning
  5276. * src/DownloadHandlerConstants.{h, cc}
  5277. * src/Util.cc
  5278. * test/MetaFileUtilTest.cc
  5279. * test/PStringBuildVisitorTest.cc
  5280. Fixed bug: --check-integrity doesn't work for multi file torrent.
  5281. * src/RequestGroup.cc
  5282. * src/BtCheckIntegrityEntry.cc
  5283. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Fixed a2io.h
  5285. * src/a2io.h
  5286. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. Added direct I/O support. The current implementation uses O_DIRECT,
  5288. which is not posix standard and is tested on linux 2.6.21.
  5289. Currently only file allocation uses direct I/O.
  5290. * src/SingleFileAllocationIterator.{h, cc}
  5291. * test/SingleFileAllocationIteratorTest.cc
  5292. * src/MultiFileAllocationIterator.{h, cc}
  5293. * test/MultiFileAllocationIteratorTest.cc
  5294. * src/BinaryStream.h
  5295. * src/DiskWriter.h
  5296. * src/AbstractDiskWriter.{h, cc}
  5297. * src/ByteArrayDiskWriter.h
  5298. * src/DiskAdaptor.h
  5299. * src/AbstractSingleDiskAdaptor.{h, cc}
  5300. * src/MultiDiskAdaptor.{h, cc}
  5301. * src/FileAllocationEntry.cc
  5302. * src/Util.{h, cc}
  5303. * src/OptionHandlerFactory.cc
  5304. * src/prefs.h
  5305. * src/version_usage.cc
  5306. * src/option_processing.cc
  5307. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5308. handleException.
  5309. * src/MultiFileAllocationIterator.cc
  5310. Added EINTR handling
  5311. * src/SocketCore.cc
  5312. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Updated usage
  5314. * src/version_usage.cc
  5315. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Applied Ross's patch for MinGW port.
  5317. * src/DownloadEngine.h
  5318. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Set Content-Type to SingleFileDownloadContext when http response is
  5320. received.
  5321. * src/HttpResponseCommand.cc
  5322. * src/HttpResponse.{h, cc}
  5323. * test/HttpResponseTest.cc
  5324. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Rewritten to add content-type support.
  5326. * src/DownloadHandler.{h, cc}
  5327. * src/BtPostDownloadHandler.{h, cc}
  5328. * test/BtPostDownloadHandlerTest.cc
  5329. * src/MetalinkPostDownloadHandler.{h, cc}
  5330. * test/MetalinkPostDownloadHandlerTest.cc
  5331. * src/PostDownloadHandler.{h, cc}
  5332. * src/DownloadHandlerConstants.{h, cc}
  5333. * src/RequestGroup.cc
  5334. * src/HttpResponseCommand.cc
  5335. * src/FtpNegotiationCommand.cc
  5336. * src/SingleFileDownloadContext.{h, cc}
  5337. * src/RequestGroup.h
  5338. * src/RequestGroupCriteria.h
  5339. * src/ContentTypeRequestGroupCriteria.h
  5340. Added 'mem' option value for --follow-metalink, --follow-torrent.
  5341. If it is give, metalink/torrent file is not written to the disk, but
  5342. just is kept in memory. Parsing is occurred on memory.
  5343. * src/MetalinkHelper.{h, cc}
  5344. * src/MetalinkProcessor.h
  5345. * src/Xml2MetalinkProcessor.{h, cc}
  5346. * test/Xml2MetalinkProcessorTest.cc
  5347. * src/DownloadHandlerFactory.{h, cc}
  5348. * test/DownloadHandlerFactoryTest.cc
  5349. * src/PreDownloadHandler.{h, cc}
  5350. * src/OptionHandlerFactory.cc
  5351. * src/DefaultBtContext.{h, cc}
  5352. * test/DefaultBtContextTest.cc
  5353. * src/version_usage.cc
  5354. * src/Metalink2RequestGroup.{h, cc}
  5355. * src/RequestGroup.{h, cc}
  5356. * src/a2functional.h
  5357. * test/a2functionalTest.cc
  5358. * src/MemoryBufferPreDownloadHandler.{h, cc}
  5359. * src/OptionHandlerImpl.h
  5360. * src/prefs.h
  5361. * src/Util.{h, cc}
  5362. * test/UtilTest.cc
  5363. Keep DownloadResult rather than RequestGroup after downloads to reduce
  5364. memory usage.
  5365. * src/RequestGroupMan.{h, cc}
  5366. * src/DownloadEngine.cc
  5367. * src/BtDependency.{h, cc}: Changed the type of dependee from
  5368. WeakHandle to SharedHandle because WeakHandle could be null.
  5369. * src/RequestGroup.{h, cc}
  5370. * src/DownloadEngineFactory.cc
  5371. * src/DownloadResult.h
  5372. Set totalLength after download finished
  5373. * src/UnknownLengthPieceStorage.{h, cc}
  5374. Keep torrent file specified in metalink in memory.
  5375. * src/Metalink2RequestGroup.cc
  5376. * src/BtDependency.cc
  5377. * src/TrueRequestGroupCriteria.h
  5378. Fixed the bug: seekg is used where seekp should be used.
  5379. * src/ByteArrayDiskWriter.cc
  5380. * test/ByteArraydiskWriterTest.cc
  5381. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Fixed syntax error
  5383. * test/SequenceTest.cc
  5384. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5386. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5387. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5388. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5389. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Added the check to see whether ares_host_callback accepts timeouts
  5391. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5392. * src/NameResolver.{h, cc}
  5393. * m4/libcares.m4
  5394. * configure.ac: Set C++ for language choice.
  5395. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. Fixed: compilation fails without c-ares/ares
  5397. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  5398. Generate http/ftp commands only when download is incomplete.
  5399. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  5400. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Corrected typo. Examples are removed since they are available in man
  5402. page.
  5403. * src/version_usage.cc
  5404. Updated man page.
  5405. * doc/aria2c.1
  5406. * doc/aria2c.1.txt
  5407. * doc/makeman: Commented out sed command.
  5408. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Throw DlAbortEx when a remote file is not found.
  5410. * src/HttpResponse.cc
  5411. * src/FtpNegotiationCommand.cc
  5412. * src/message.h
  5413. Overwrite an existing file if --allow-overwrite=true is given.
  5414. * src/RequestGroup.cc
  5415. Removed unused functions
  5416. * src/AbstractCommand.h
  5417. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Removed 'extern' from 'extern typedef ...' in src/*.h
  5419. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Updated usage
  5421. * src/version_usage.cc
  5422. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Trim announce URL
  5424. * src/DefaultBtContext.cc
  5425. * test/ShaVisitorTest.cc
  5426. Trim argument s. Give trimed s to exception constructor.
  5427. * src/Util.cc (parseInt)(parseLLInt)
  5428. * test/UtilTest.cc
  5429. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5430. Set precision back to 1.
  5431. * src/ConsoleStatCalc.cc (calculateStat)
  5432. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Replaced strtol with Util::parseInt
  5434. * src/ChunkedEncoding.cc
  5435. * src/HttpConnection.cc
  5436. * src/CookieBoxFactory.cc
  5437. * src/ParameterizedStringParser.cc
  5438. * src/Util.cc
  5439. * test/UtilTest.cc
  5440. * test/OptionHandlerTest.cc
  5441. * src/Request.cc
  5442. Throw exception when empty string is given. The message for exception
  5443. changed.
  5444. * src/Util.cc (parseInt)(parseLLInt)
  5445. * src/message.h
  5446. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Set precision to 2 because share ratio is rounded into 1.0 if precision
  5448. set to 1.
  5449. * src/ConsoleStatCalc.cc (calculateStat)
  5450. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5451. Preallocate non-requested file which is adjacent forward to requested
  5452. file('requested' files means the files given in --select-file option)
  5453. if they share a same piece.
  5454. This fixes long pause in the file system which doesn't support sparse
  5455. files like FAT32 while downloading.
  5456. * src/MultiFileAllocationIterator.{h, cc}
  5457. * test/MultiFileAllocationIteratorTest.cc
  5458. * src/FileEntry.{h, cc}
  5459. Removed unused _option.
  5460. * src/MultiDiskAdaptor.h
  5461. * test/MultiDiskAdaptorTest.cc
  5462. * src/DefaultPieceStorage.cc
  5463. Set the default value of --seed-ratio to 1.0.
  5464. If 0.0 is given, then seeding continues regardless of share ratio.
  5465. * src/version_usage.cc
  5466. * src/option_processing.cc
  5467. * src/BtSetup.cc
  5468. * doc/aria2c.1.txt
  5469. * doc/aria2c.1
  5470. Fixed: Selective download is not working in BitTorrent
  5471. * src/RequestGroup.cc
  5472. Introduced Sequence class. Use this instead of Util::unfoldRange()
  5473. * src/PieceStorage.h
  5474. * test/MockPieceStorage.h
  5475. * src/UnknownLengthPieceStorage.h
  5476. * src/DefaultPieceStorage.{h, cc}
  5477. * src/Metalink2RequestGroup.cc
  5478. * src/RequestGroup.cc
  5479. * src/Sequence.h
  5480. * test/SequenceTest.cc
  5481. * src/IntSequence.h
  5482. * src/message.h
  5483. * src/Util.{h, cc}
  5484. * test/UtilTest.cc
  5485. Added new function 'parse' to catch exception thrown by subclass's
  5486. parseArg
  5487. * src/OptionHandler.h
  5488. * src/OptionParser.cc
  5489. * src/NameMatchOptionHandler.h
  5490. * src/OptionHandlerImpl.h
  5491. * test/OptionHandlerTest.cc
  5492. Added IntegerRangeOptionHandler. Used for --listen-port and
  5493. --select-file. Now --listen-port accepts range of port.
  5494. * src/OptionHandlerFactory.cc
  5495. * src/version_usage.cc
  5496. * src/OptionHandlerImpl.h
  5497. * src/option_processing.cc
  5498. * src/BtSetup.cc
  5499. * src/PeerListenCommand.{h, cc}
  5500. * doc/aria2c.1.txt
  5501. * doc/aria2c.1
  5502. Implemented operator< for Exception class to provide easy way to print
  5503. exception stack trace.
  5504. * src/Exception.{h, cc}
  5505. * src/main.cc
  5506. * src/option_processing.cc
  5507. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. * src/version_usage.cc
  5509. (showVersion): Reworked.
  5510. (showUsage): Added examples.
  5511. Removed Hint for total length and file name.
  5512. * src/Metalink2RequestGroup.cc
  5513. * src/RequestGroup.{h, cc}
  5514. * src/HttpResponseCommand.cc
  5515. * src/FtpNegotiationCommand.cc
  5516. Now --follow-torrent and --follow-metalink option work properly.
  5517. * src/RequestGroup.cc
  5518. Updated man page
  5519. * doc/aria2c.1.txt
  5520. * doc/aria2c.1
  5521. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Removed.
  5523. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  5524. Use Segment::operator==()
  5525. * src/HttpConnection.cc
  5526. * src/Segment.h
  5527. Updated usage
  5528. * src/version_usage.cc
  5529. Added EINTR treatment.
  5530. * src/SocketCore.cc
  5531. * src/AbstractDiskWriter.cc
  5532. Rewritten.
  5533. * src/Util.cc (rangedFileCopy)
  5534. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Fixed typo.
  5536. * src/version_usage.cc
  5537. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Implemented. Now -c option works fine.
  5539. * src/DefaultPieceStorage.cc (markPiecesDone)
  5540. * test/DefaultPieceStorageTest.cc
  5541. Removed.
  5542. * src/SegmentMan.{h, cc}
  5543. (markAllPiecesDone)
  5544. (markPieceDone)
  5545. Synchronized po files with
  5546. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  5547. * src/fr.po
  5548. * src/ru.po
  5549. * src/de.po
  5550. * src/ja.po
  5551. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5552. Added ifdef and some modifications to compile without BitTorrent,
  5553. Metalink, MessageDigest
  5554. support.
  5555. * src/PieceHashCheckIntegrityEntry.cc
  5556. * src/MetalinkEntry.h
  5557. * src/version_usage.cc
  5558. * src/main.cc
  5559. * src/DownloadEngine.{h, cc}
  5560. * src/Metalink2RequestGroup.cc
  5561. * src/Peer.cc
  5562. * src/RequestGroup.cc
  5563. * src/MetalinkHelper.cc
  5564. * test/DefaultPieceStorageTest.cc
  5565. * test/MetalinkPostDownloadHandlerTest.cc
  5566. * test/Metalink2RequestGroupTest.cc
  5567. Hide TOTAL SPD when all downloads complete.
  5568. * src/ConsoleStatCalc.cc
  5569. Log target system information.
  5570. * src/main.cc
  5571. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. Now --metalink-location accepts a comma-deliminated list of locations.
  5573. * src/MetalinkEntry.{h, cc}
  5574. * test/MetalinkEntryTest.cc
  5575. * src/version_usage.cc
  5576. * src/Metalink2RequestGroup.cc
  5577. * src/Xml2MetalinkProcessor.cc
  5578. * test/Xml2MetalinkProcessorTest.cc
  5579. * doc/aria2c.1.txt
  5580. * doc/aria2c.1
  5581. * src/Util.cc (toUpper)(toLower): Rewritten.
  5582. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Added the ability to detect duplicate download entry which is about to
  5584. download the same file other RequestGroup is downloading.
  5585. * src/RequestGroup.cc
  5586. * src/HttpResponseCommand.cc
  5587. * src/FtpNegotiationCommand.cc
  5588. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. Recalculates download progress when loading a control file,
  5590. if the piece length of DownloadContext is different from the one saved
  5591. in the control file. Currently in-flight pieces are ignored.
  5592. * src/DefaultBtProgressInfoFile.cc
  5593. * test/DefaultBtProgressInfoFileTest.cc
  5594. * src/Util.{h, cc}
  5595. * test/UtilTest.cc
  5596. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Do not rotate tiers in announce-list.
  5598. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  5599. AnnounceList::allTiersFailed() used instead to detect whether all
  5600. tiers are tried and failed.
  5601. * test/DefaultBtAnnounceTest.cc
  5602. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  5603. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  5604. * test/AnnounceListTest.cc
  5605. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  5606. clause. Catch RecoverableException instead of DlRetryEx instead.
  5607. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5608. Implemented checksum validation feature(1 checksum for each file)
  5609. The validation takes place after the download.
  5610. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  5611. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  5612. * src/CheckIntegrityCommand.cc: Changed log message.
  5613. * src/Metalink2RequestGroup.cc: Set checksum to
  5614. SingleFileDownloadContext.
  5615. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  5616. PieceHashCheckIntegrity class.
  5617. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  5618. PieceHashCheckIntegrity class.
  5619. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  5620. * src/IteratableValidator.h: New class.
  5621. * src/message.h
  5622. * src/CheckIntegrityEntry.{h, cc}
  5623. * src/IteratableChunkChecksumValidator.{h, cc}
  5624. * src/SingleFileDownloadContext.h
  5625. * src/DownloadCommand.cc
  5626. --allow-overwrite=true is no longer needed to check file integrity
  5627. before download in BitTorrent download.
  5628. * src/RequestGroup.cc (getInitialCommand)
  5629. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  5630. throws exception.
  5631. * src/RequestGroupMan.cc (getInitialCommands)
  5632. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. urlencode the given url inside Request::parseUrl(...)
  5634. * src/Request.{h, cc}
  5635. * src/Util.{h, cc}
  5636. * test/RequestTest.cc
  5637. Removed #!metalink3! notation support because it is deleted from
  5638. the metalink specification.
  5639. * src/Request.{h, cc}
  5640. * test/RequestTest.cc
  5641. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Don't connect server before checking file integrity at startup, if
  5643. filesize and output file path are known.
  5644. * src/AbstractCommand.cc
  5645. * src/StreamFileAllocationEntry.cc
  5646. * src/Metalink2RequestGroup.cc
  5647. * src/RequestGroup.{h, cc}
  5648. * src/HttpResponseCommand.cc
  5649. * src/FtpNegotiationCommand.cc
  5650. Added DownloadFailureException. If it is thrown, RequestGroup should
  5651. halt.
  5652. * src/AbstractCommand.cc
  5653. * src/DownloadFailureException.h
  5654. * src/RequestGroup.cc
  5655. Catch RecoverableException, instead of DlAbortEx.
  5656. * src/RequestGroupMan.cc
  5657. * src/FillRequestGroupCommand.cc
  5658. * src/MetaFileUtil.cc
  5659. * src/IteratableChunkChecksumValidator.cc
  5660. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5661. getGID())
  5662. * src/CheckIntegrityCommand.cc
  5663. * src/message.h
  5664. Print gid instead of idx.
  5665. * src/RequestGroupMan.cc
  5666. Removed exception throwers declaration.
  5667. * src/DirectDiskAdaptor.{h, cc}
  5668. * src/SocketCore.{h, cc}
  5669. * src/MultiDiskAdaptor.{h, cc}
  5670. * src/HttpConnection.{h, cc}
  5671. * src/HttpResponse.{h, cc}
  5672. * src/DiskAdaptor.{h, cc}
  5673. * src/CopyDiskAdaptor.{h, cc}
  5674. * src/MultiDiskAdaptor.{h, cc}
  5675. * src/HttpHeaderProcessor.{h, cc}
  5676. * src/AbstractSingleDiskAdaptor.{h, cc}
  5677. * src/Util.{h, cc}
  5678. * test/UtilTest.cc
  5679. * src/DefaultDiskWriter.{h, cc}
  5680. * src/FtpConnection.{h, cc}
  5681. * src/AbstractDiskWriter.{h, cc}
  5682. Removed duplicate code.
  5683. * src/StreamCheckIntegrityEntry.cc
  5684. Removed unnecessary include.
  5685. * src/DiskWriter.h
  5686. Included Exception.h
  5687. * src/option_processing.cc
  5688. Included 2 files and added doc
  5689. * src/TrackerWatcherCommand.cc
  5690. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5691. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Changed CheckIntegrityEntry interface so that it can define
  5693. the action when all the chunk checksums are valid.
  5694. * src/CheckIntegrityEntry.h
  5695. * src/StreamCheckIntegrityEntry.{h, cc}
  5696. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5697. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5698. to exit rather than doing seeding. So, it would be good to toggle this
  5699. behavior.
  5700. * src/CheckIntegrityCommand.cc
  5701. * src/AbstractCommand.cc
  5702. * src/RequestGroup.cc
  5703. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5704. Reflect the download length of in-flight pieces.
  5705. It makes the download length readout more precise.
  5706. * src/DefaultPieceStorage.{h, cc}
  5707. * test/DefaultPieceStorageTest.cc
  5708. * src/a2functional.h
  5709. * test/a2functionalTest.cc
  5710. Lower CPU load when --max-download-limit is used.
  5711. There is up and down in speed indicator when enabling
  5712. http-pipelining but a download goes well. I think the problem is that
  5713. because http-pipelining is enabled, DownloadCommand is created for
  5714. each segment and in its constructor, PeerStat::downloadStart() is
  5715. called. In PeerStat::downloadStart(), speed calculation object is
  5716. reseted, which makes download speed zero.
  5717. * src/DownloadCommand.cc
  5718. Rewritten using accumulate.
  5719. * src/RequestGroupMan.cc (calculateStat)
  5720. Code clearnup.
  5721. * src/FtpNegotiationCommand.cc
  5722. * src/HttpResponseCommand.cc
  5723. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. Fixed: Can not resume: aria2 reports download already finished.
  5725. * src/AbstractCommand.{h, cc}
  5726. * src/HttpResponseCommand.cc
  5727. * src/FtpNegotiateCommand.cc
  5728. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5729. Now a file is stored in the directory specified in .metalnk file
  5730. (file[@name]).
  5731. * src/Metalink2RequestGroup.cc
  5732. Create the directory structure when opening the file if it doesn't
  5733. exist.
  5734. * src/AbstractDiskWriter.cc
  5735. * src/Util.{h, cc}
  5736. * src/File.h
  5737. * test/UtilTest.cc
  5738. Removed file name comparison
  5739. * src/Metalink2RequestGroup.cc
  5740. * src/HttpResponseCommand.cc
  5741. Rewritten using Util::mkdirs()
  5742. * src/FileEntry.cc (setupDir)
  5743. * test/FileEntryTest.cc
  5744. Updated doc
  5745. * src/SingleFileDownloadContext.h
  5746. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Now SleepCommand dispatches nextCommand when halt is requested.
  5748. It avoids a possible long wait after hitting CTRL-C.
  5749. * src/SleepCommand.{h, cc}
  5750. * src/RequestGroupAware.{h, cc}
  5751. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5752. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5753. to open listen port, then remove the port number from the tracker
  5754. request.
  5755. * src/DefaultBtAnnounce.cc
  5756. * test/DefaultBtAnnounceTest.cc
  5757. * test/MockPieceStorage.h
  5758. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5759. them more testable.
  5760. * src/DefaultBtAnnounce.{h, cc}
  5761. * src/DefaultBtContext.{h, cc}
  5762. * src/Util.{h, cc}
  5763. * test/DefaultBtAnnounceTest.cc
  5764. * test/DefaultBtContextTest.cc
  5765. * test/UtilTest.cc
  5766. Added 'B' to upload bytes readout.
  5767. * src/ConsoleStatCalc.cc
  5768. Now the listen port for BitTorrent download is opened when it is
  5769. needed.
  5770. * src/DownloadEngineFactory.cc
  5771. * src/BtSetup.{h, cc}
  5772. * src/PeerListenCommand.{h, cc}
  5773. Now an exception thrown while parsing tracker response is now logged.
  5774. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5775. called, which means no retry is made in this case, assuming a tracker
  5776. has a problem.
  5777. * src/TrackerWatcherCommand.cc
  5778. Fixed: downloading a file whose length is unkown fails.
  5779. * src/DownloadCommand.cc
  5780. Simplified prepareForNextSegment()
  5781. * src/DownloadCommand.cc
  5782. Updated
  5783. * po/POTFILES.in
  5784. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Re-implemented a file listing for Metalink, which was dropped while
  5786. http/ftp/torrent integration was being implemented.
  5787. * src/MetalinkHelper.{h, cc}: New class.
  5788. * test/MetalinkHelperTest.cc
  5789. * src/main.cc
  5790. * src/Metalink2RequestGroup.cc
  5791. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Added the ability to display the detailed torrent file information.
  5793. Now -S option gives not only a file listing, but also total download
  5794. length, info hash, announce URI, piece length, the number of pieces,
  5795. and mode(single or multi-torrent).
  5796. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5797. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5798. KiB)
  5799. * test/UtilTest.cc
  5800. * src/main.cc
  5801. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5802. Added ftp://USER:PASSWD@Servername automatic parsing.
  5803. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5804. _password. Recognize username and password in URI.
  5805. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5806. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5807. * src/RequestFactory.{h, cc}: Removed.
  5808. * src/AuthConfigFactory.{h, cc}: New class.
  5809. * src/FtpConnection.cc: Use AuthConfigFactory.
  5810. * src/HttpRequest.cc: Use AuthConfigFactory.
  5811. * test/HttpRequestTest.cc: Updated.
  5812. * test/RequestTest.cc: Updated.
  5813. * test/AuthConfigFactoryTest.cc: New class.
  5814. * test/RequestFactoryTest.cc: Removed.
  5815. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Use RequestGroup::allDownloadFinished() to decide whether the control
  5817. file should be removed or saved.
  5818. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5819. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5820. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Use File::renameTo()
  5822. * src/DefaultBtProgressInfoFile.cc
  5823. Added --no-file-allocation-limit command-line option.
  5824. * src/version_usage.cc
  5825. * src/option_processing.cc
  5826. * src/OptionHandlerFactory.cc
  5827. * src/RequestGroup.{h, cc}
  5828. * src/BtCheckIntegrityEntry.cc
  5829. * src/StreamCheckIntegrityEntry.cc
  5830. * src/prefs.h
  5831. * doc/aria2c.1.txt
  5832. * doc/aria2c.1
  5833. Now prealloc is the default value for --file-allocation option.
  5834. * src/version_usage.cc
  5835. * src/option_processing.cc
  5836. * doc/aria2c.1.txt
  5837. * doc/aria2c.1
  5838. Don't URL-encode user-agent.
  5839. * src/HttpRequest.cc
  5840. Updated translations
  5841. * po/LINGUAS: Added nl for Dutch translation.
  5842. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5843. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5844. * po/POTFILES.in: Updated.
  5845. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Added the ability to recognize url-list in a torrent file.
  5847. The retrieved URLs are attached to the corresponding FileEntry.
  5848. * src/DefaultBtContext.{h, cc}
  5849. * src/FileEntry.{h, cc}
  5850. * test/DefaultBtContextTest.cc
  5851. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5853. after the download finishes.
  5854. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5856. the data smaller than block length.
  5857. A block length can be specified by constructor's argument.
  5858. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5859. Get a missing piece in the range of given FileEntry. This function is
  5860. not used in the program yet.
  5861. * src/Util.h: Added some macros.
  5862. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Added HTTP/1.1 keep alive and pipelining support.
  5864. See --enable-http-keep-alive and --enable-http-pipelining option.
  5865. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5866. Segment.
  5867. * src/HttpDownloadCommand.{h, cc}
  5868. * src/OptionHandlerFactory.cc
  5869. * src/HttpConnection.{h, cc}
  5870. * src/version_usage.cc
  5871. * src/HttpInitiateConnectionCommand.cc
  5872. * src/FtpInitiateConnectionCommand.cc
  5873. * src/Segment.h
  5874. * src/HttpRequestCommand.{h, cc}
  5875. * src/option_processing.cc
  5876. * src/prefs.h
  5877. * src/HttpResponseCommand.cc
  5878. * src/SegmentMan.{h, cc}
  5879. * src/FtpNegotiateCommand.cc
  5880. * src/HttpProxyResponseCommand.cc
  5881. * src/Request.cc
  5882. * src/HttpRequest.cc
  5883. * src/DownloadCommand.cc
  5884. * test/HttpRequestTest.cc
  5885. * test/RequestTest.cc
  5886. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5887. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5888. finished.
  5889. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5891. catching it inside the method.
  5892. When no file entry is found in a metalink without querying user
  5893. preferences, throw the exception with the error message that suggests
  5894. metalink file is probably broken.
  5895. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5896. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5898. processed.
  5899. * src/RequestGroupMan.cc (removeStoppedGroup)
  5900. Added debug message.
  5901. * src/BtPostDownloadHandler.cc
  5902. * src/MetalinkPostDownloadHandler.cc
  5903. * src/PostDownloadHandler.{h, cc}
  5904. * src/RequestGroup.cc
  5905. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5907. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5909. stops and there are any unfinished or in-progress downloads.
  5910. Added the legend of "stat".
  5911. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Throw exception when chunck checksum verification fails.
  5913. * src/DownloadCommand.cc (validatePieceHash): New function.
  5914. * src/PiecedSegment.{h, cc} (clear): New function.
  5915. * src/GrowSegment.{h, cc} (clear): New function.
  5916. * src/Segment.h (clear): New function.
  5917. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5918. * test/SegmentTest.cc
  5919. * test/GrowSegmentTest.cc
  5920. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Do not send referer when redirected.
  5922. * src/Request.cc (redirectUrl)
  5923. * test/RequestTest.cc
  5924. * test/HttpRequestTest.cc
  5925. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Implemented BitTorrent/http/ftp integrated download.
  5927. I've rewritten lots of files and now some headers have forward
  5928. class declarations to reduce compile time.
  5929. The implementation is extremely alpha stage, I recommend to use this
  5930. for testing purpose only.
  5931. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Fixed the compilation error on 64bit platform.
  5933. * test/HttpHeaderProcessorTest.cc
  5934. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Merged Ross's patch that fixes compilation problem in MinGW
  5936. * test/DefaultBtProgressInfoFileTest.cc
  5937. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Updated fr.po by sebone
  5939. * po/fr.po
  5940. Updated man page.
  5941. * doc/aria2c.1.txt
  5942. * Release 0.11.3
  5943. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5945. failure in Metalink.
  5946. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Automatically save *.aria2 control file of http/ftp download in every
  5948. 60 seconds.
  5949. * src/AutoSaveCommand.{h, cc}: New class.
  5950. * src/TimeBasedCommand.{h, cc}: New class.
  5951. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5952. Disable parameterized URI support by default. Added -P option to
  5953. enable the feature.
  5954. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5955. * src/OptionHandlerFactory.cc
  5956. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5957. Updated Japanese translation.
  5958. * po/ja.po
  5959. Updated man page.
  5960. * doc/aria2c.1.txt
  5961. * Release 0.11.3-rc
  5962. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5964. it is successful, then renamed to *.aria2.
  5965. This prevents *.aria2 file from being truncated or corrupted when
  5966. file system becomes out of space.
  5967. * src/DefaultBtProgressInfoFile.cc (save)
  5968. * src/SegmentMan.cc (save)
  5969. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5970. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Reduced the fragmentation of bitfield in http/ftp download.
  5972. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5973. * test/BitfieldManTest.cc
  5974. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Added the ability to disable segmented download in .metalink.
  5976. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5977. 'url' tag.
  5978. * src/MetalinkEntry.{h, cc}
  5979. * src/RequestResource.{h, cc}
  5980. * src/MetalinkRequestInfo.cc
  5981. * src/Xml2MetalinkProcessor.cc
  5982. * test/Xml2MetalinkProcessorTest.cc
  5983. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5984. Added parameterized URI support.
  5985. * src/main.cc: -Z option added.
  5986. * src/OptionHandlerFactory.cc
  5987. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5988. * src/PStringDatum.h: New class.
  5989. * src/PStringSegment.{h,cc}: New class.
  5990. * src/PStringNumLoop.h: New class.
  5991. * src/PStringSelect.h: New class.
  5992. * src/NumberDecorator.h: New class.
  5993. * src/FixedWidthNumberDecorator.h: New class.
  5994. * src/AlphaNumberDecorator.h: New class.
  5995. * src/PStringVisitor.h: New class.
  5996. * src/PStringBuildVisitor.{h,cc}: New class.
  5997. * src/ParameterizedStringParser.{h,cc}: New class.
  5998. * src/Util.{h,cc}
  5999. (isNumber): New function.
  6000. (isLowercase): New function.
  6001. (isUppercase): New function.
  6002. (alphaToNum): New function.
  6003. * test/ParameterizedStringParserTest.cc: New class.
  6004. * test/AlphaNumberDecoratorTest.cc: New class.
  6005. * test/PStringBuildVisitorTest.cc: New class.
  6006. * test/UtilTest.cc
  6007. (testIsNumber): New function.
  6008. (testIsLowercase): New function.
  6009. (testIsUppercase): New function.
  6010. (testAlphaToNum): New function.
  6011. Added '\n' after the error message
  6012. * src/RequestInfo.h (printDownloadAbortMessage)
  6013. Added auto file renaming feature in http(s)/ftp download.
  6014. * src/main.cc: Added --auto-file-renaming command-line option.
  6015. * src/OptionHandlerFactory.cc
  6016. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6017. * src/RequestGroup.{h, cc}
  6018. (shouldCancelDownloadForSafety): Rewritten
  6019. (tryAutoFileRenaming): New function.
  6020. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6021. * src/HttpResponseCommand.cc
  6022. (executeInternal): Removed the call to RequestGroupMan::
  6023. isSameFileBeingDownloaded()
  6024. * src/FtpNegotiateCommand.cc
  6025. (recvSize): Removed the call to RequestGroupMan::
  6026. isSameFileBeingDownloaded()
  6027. * test/RequestGroupTest.cc: New class.
  6028. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6030. IO.
  6031. * src/DefaultBtProgressInfoFile.cc
  6032. * src/MetaFileUtil.cc
  6033. * src/SimpleLogger.cc
  6034. * src/SegmentMan.cc
  6035. * src/Util.cc
  6036. * src/Platform.cc
  6037. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6039. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6041. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6042. Fixed the bug that prevents file allocation is not done when
  6043. dowloading multi-torrent file.
  6044. * src/AbstractDiskWriter.cc (openFile)
  6045. Increase the maximum number of -j option from 15 to 45.
  6046. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6047. Added fr.po, thanks to Charles Landemaine.
  6048. * po/fr.po
  6049. * po/LINGUAS
  6050. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6051. gcc 3.4.4 support:
  6052. * src/DefaultBtContext.cc: int32_t -> int
  6053. * src/main.cc: int -> int32_t, int32_t -> int
  6054. * src/messageDigest.h: uint32_t -> unsigned int
  6055. * src/NameResolver.h: int32_t -> int
  6056. * src/PeerConnection.cc: int -> int32_t
  6057. * src/SpeedCalc.cc: int32_t -> int
  6058. * src/TrackerUpdateCommand.h: int -> int32_t
  6059. * src/Util.cc: int32_t -> int
  6060. * src/Util.h: int32_t -> int
  6061. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6062. * test/AnnounceListTest.cc: int -> int32_t
  6063. * test/ChunkedEncodingTest.cc: int -> int32_t
  6064. * test/DataTest.cc: int -> int32_t
  6065. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6066. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6067. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6068. * test/FeatureConfigTest.cc: int -> int32_t
  6069. * test/MetalinkEntryTest.cc: int -> int32_t
  6070. * test/MockBtRequestFactory.h: int -> int32_t
  6071. * test/MockPieceStorage.h: int -> int32_t
  6072. * test/OptionTest.cc: int -> int32_t
  6073. * test/RequestTest.cc: int -> int32_t
  6074. * test/SegmentManTest.cc: int -> int32_t
  6075. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6076. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6077. Move sleep functions to Util class:
  6078. * src/Util.cc
  6079. (sleep): New function.
  6080. (usleep): New function.
  6081. * src/DownloadCommand.cc: sleep -> Util::sleep
  6082. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6083. MinGW build enhancements. The following files are added:
  6084. * src/timegm.{c,h}
  6085. Changes to support the above new files:
  6086. * configure.ac
  6087. * src/Makefile.am
  6088. * src/a2time.h
  6089. * src/Util.cc:
  6090. * src/strptime.c: Added support for %Z option.
  6091. Fixed MinGW non-blocking bug.
  6092. * src/SocketCore.cc
  6093. * src/HttpRequestCommand.cc
  6094. Miscellenous build fixes/enhancements.
  6095. * configure.ac: Added summary report.
  6096. * src/Platform.h: Tweaked #include's.
  6097. * src/a2netcompat.h: Tweaked #include's.
  6098. * src/strptime.h: Tweaked #include's.
  6099. * src/gai_strerror.c: Tweaked #include's.
  6100. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  6101. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  6102. * src/gettimeofday.h: Added HAVE_CONFIG_H
  6103. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Increased the initial connection size in BitTorrent download to 40.
  6105. * src/BtRuntime.h
  6106. Added the usage message of --peer-id-prefix option.
  6107. * src/main.cc
  6108. * Release 0.11.2
  6109. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. MessageDigestHelper is introduced in order to simplify the use
  6111. of message digest. Removed repeated code.
  6112. The message digest algorithm is now specified by string, like "sha1",
  6113. "md5".
  6114. * src/messageDigest.{h, cc}
  6115. * src/MessageDigestHelper.{h, cc}: New class.
  6116. * src/DefaultPieceStorage.cc
  6117. * src/DefaultBtContext.{h, cc}
  6118. (computeFastSet): New function.
  6119. (setInfoHash): Added for unit testing.
  6120. (setNumPieces): Added for unit testing.
  6121. * src/DefaultBtInteractive.cc
  6122. * src/BtPieceMessage.cc
  6123. * src/Peer.cc
  6124. * src/Checksum.h
  6125. * src/message.h
  6126. * src/IteratableChecksumValidator.h
  6127. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  6128. inside it.
  6129. * src/SegmentMan.{h, cc}
  6130. (checkIntegrity): Removed.
  6131. * src/IteratableChunkChecksumValidator.{h, cc}
  6132. * src/Util.h
  6133. (sha1Sum): Removed.
  6134. (simpleMessageDigest): Removed.
  6135. (fileChecksum): Removed.
  6136. (computeFastSet): Removed.
  6137. * src/ShaVisitor.cc
  6138. * src/ChunkChecksum.h
  6139. * src/DownloadCommand.cc
  6140. Removed messageDigest virtual functions.
  6141. * src/MultiDiskAdaptor.{h, cc}
  6142. * src/DiskAdaptor.h
  6143. * src/ByteArrayDiskWriter.h
  6144. * src/DiskWriter.h
  6145. * src/DiskAdaptorWriter.h
  6146. * src/AbstractSingleDiskAdaptor.{h, cc}
  6147. * src/AbstractDiskWriter.{h, cc}
  6148. Fixed comilation error when message digest is disabled.
  6149. * src/MetalinkEntry.{h, cc}
  6150. * src/MetalinkRequestInfo.cc
  6151. Removed srandom and random.
  6152. * src/SimpleRandomizer.h
  6153. Added size() virtual function to DiskAdaptor
  6154. * src/MultiDiskAdaptor.h
  6155. Fixed the bug that causes that files are not opened correctly in
  6156. multi-file torrent.
  6157. * src/TorrentRequestInfo.cc
  6158. * src/MultiDiskAdaptor.cc
  6159. Added SHA256 support
  6160. * src/messageDigest.cc
  6161. * src/Xml2MetalinkProcessor.cc
  6162. Show supported message digest algorithms
  6163. * src/main.cc
  6164. Updated contact info.
  6165. * src/main.cc
  6166. Applied Ross's patch
  6167. * src/a2netcompat.h
  6168. * src/main.cc
  6169. Fixed the bug that prevents a remote metalink from not being processed
  6170. even if '-o foo.metalink' is specified.
  6171. * src/MetalinkRequestInfo.cc
  6172. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6173. Merged Dan's patch:
  6174. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6175. Use va_copy to avoid core dump on amd64:
  6176. * src/SimpleLogger.cc
  6177. Updated contact info.
  6178. * src/main.cc
  6179. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6180. digest is not available.
  6181. * src/MetalinkEntry.h
  6182. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Make a2netcompat.h include a2io.h to fix compilation error:
  6184. * src/a2netcompat.h
  6185. * src/SocketCore.cc: Removed include of a2io.h
  6186. * src/Util.cc: Removed include of a2io.h
  6187. Gather time related functions to a2time.h:
  6188. * src/a2time.h: New file.
  6189. * src/DefaultPeerStorage.cc
  6190. * src/SimpleLogger.cc
  6191. * src/Util.{h, cc}
  6192. * src/SimpleRandomizer.h
  6193. * src/TimeA2.{h,cc}
  6194. * src/DownloadCommand.cc
  6195. * src/main.cc
  6196. Removed #ifdef __MINGW32__ since gai_strerror is included in
  6197. a2netcompat.h:
  6198. * src/NameResolver.cc
  6199. Fixed compilation error without openssl:
  6200. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  6201. Added default block to suppress compiler warnings:
  6202. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  6203. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  6204. MinGW build enhancements. The following files are added:
  6205. * src/gai_strerror.{c,h}
  6206. * src/gettimeofday.{c,h}
  6207. Changes to support the above new files:
  6208. * configure.ac
  6209. * src/Makefile.am
  6210. * src/a2netcompat.h
  6211. * src/TimeA2.cc
  6212. * src/DefaultPeerStorage.cc
  6213. * src/NameResolver.cc: removed mingw_strerror() function.
  6214. * src/SocketCore.cc: removed mingw_strerror() function.
  6215. Miscellaneous MinGW build fixes.
  6216. * src/a2io.h: Use _lseeki64() instead of lseek()
  6217. * src/common.h
  6218. * src/DefaultFileAllocator.cc
  6219. * src/GlowFileAllocator.cc
  6220. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  6221. * src/NameResolver.cc
  6222. (callback): Changed int32_t to int.
  6223. (resolve): Changed int32_t to int.
  6224. * src/Platform.cc
  6225. * src/Platform.h
  6226. * test/MultiDiskWriterTest.cc
  6227. * test/PeerMessageUtilTest.cc
  6228. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  6229. Other enhancements and fixes.
  6230. * src/HttpRequestCommand.cc
  6231. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  6232. * src/SocketCore.cc:
  6233. (error): New function to abstract errno/WSAGetLastError().
  6234. (errorMsg): New function to abstract errno/WSAGetLastError().
  6235. (initiateSecureConnection): Added more detailed error reporting.
  6236. * src/SocketCore.h: Added private variable blocking, to allow
  6237. proper handling of OpenSSL psuedo-errors.
  6238. * src/message.h
  6239. (EX_SSL_INIT_FAILURE)
  6240. (EX_SSL_IO_ERROR)
  6241. (EX_SSL_PROTOCOL_ERROR)
  6242. (EX_SSL_UNKNOWN_ERROR)
  6243. (EX_SSL_CONNECT_ERROR)
  6244. (EX_SOCKET_BLOCKING)
  6245. (EX_SOCKET_NONBLOCKING)
  6246. (EX_SOCKET_UNKNOWN_ERROR)
  6247. * src/Util.cc
  6248. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  6249. reserved name.
  6250. (httpGMT): Fixed typo.
  6251. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Merged Ross's win32 patch(manually)
  6253. In the course of merging, following files are added.
  6254. * src/strptime.{h,c}
  6255. * src/libgen.{h,c}
  6256. * src/inet_aton.{h,c}
  6257. * src/Platform.{h,cc}
  6258. * src/localtime_r.{h,c}
  6259. * src/getaddrinfo.{h,c}
  6260. I've gethered network related things, and put them to following file:
  6261. * src/a2netcompat.h
  6262. Also io related things are put to following file:
  6263. * src/a2io.h
  6264. Changed %lld to %s because mingw32 doesn't recognize %lld.
  6265. * src/message.h
  6266. (MSG_ALLOCATION_COMPLETED)
  6267. (EX_TOO_LARGE_FILE)
  6268. (EX_SIZE_MISMATCH)
  6269. (EX_FILE_OFFSET_OUT_OF_RANGE)
  6270. (EX_INVALID_CHUNK_CHECKSUM)
  6271. (EX_INVALID_RANGE_HEADER)
  6272. * src/FileAllocationCommand.cc
  6273. * src/HttpResponse.cc
  6274. * src/RequestGroup.cc
  6275. * src/MultiDiskAdaptor.cc
  6276. * src/OptionHandlerImpl.h
  6277. * src/HttpResponseCommand.cc
  6278. * src/FtpNegotiateCommand.cc
  6279. * src/IteratableChecksumValidator.cc
  6280. * src/SegmentMan.cc
  6281. * src/ChunkChecksumValidator.cc
  6282. Added Randomizer::getRandomNumber(long int)
  6283. * src/Randomizer.h (getRandomNumber)
  6284. * src/SimpleRandomizer.h (getRandomNumber)
  6285. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  6286. * src/Util.cc (randomAlpha): Use this new function.
  6287. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6288. Converted int's to in32_t. long long int's are also converted to
  6289. int64_t
  6290. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Fixed the bug that prevents cookies from being sent to the server
  6292. if the domain of cookie is FQDN and starts with ".".
  6293. * src/Cookie.cc (match)
  6294. To add the ability to change peer id.
  6295. * src/DefaultBtContext.h
  6296. (_peerIdPrefix): New variable
  6297. (setPeerIdPrefix): New function.
  6298. * src/torrentRequestInfo.cc
  6299. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6300. DefaultBtContext.
  6301. * src/main.cc (main): Added peer-id-prefix command-line option.
  6302. The usage message is not added yet.
  6303. * src/DefaultBtContext.cc
  6304. (generatePeerId): Use _peerIdPrefix.
  6305. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6306. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6307. Fixed the bug that prevents filename in content-disposition from
  6308. being retrieved when filename is not quoted.
  6309. * src/Util.cc (getContentDispositionFilename)
  6310. Fixed the bug that causes infinate loop and memory leak when file open
  6311. operation failed.
  6312. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6313. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Fixed the bug that causes segfault when all URIs specified are
  6315. unsupported.
  6316. * src/RequestGroupMan.cc (getInitialCommands)
  6317. Check if RequestGroup::createNextCommand() returns empty list of
  6318. commands.
  6319. * src/RequestGroup.cc (createNextCommand)
  6320. Change log level from info to error so that users can notice that
  6321. an error occurred.
  6322. Fixed the bug that causes segfault when a zero-sized file is
  6323. downloaded.
  6324. * src/BitfieldMan.cc (isAllBitSet)
  6325. Return true if bitfieldLength is 0.
  6326. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. * src/main.cc
  6328. (showUsage): Added 3 usage examples for metalink download.
  6329. Replace MetalinkChunkChecksum with ChunkChecksum.
  6330. * src/MetalinkChunkChecksum.h: Removed.
  6331. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  6332. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  6333. * src/Xml2MetalinkProcessor.cc
  6334. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  6335. * src/MetalinkRequestInfo.cc (execute)
  6336. * Release 0.11.1
  6337. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Reads URIs from stdin when "-i -" is specified.
  6339. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  6340. * src/UriListParser.h, src/UriListParser.cc: New class.
  6341. * src/StreamUriListParser.h: New class.
  6342. * src/FileUriListParser.h: New class.
  6343. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  6344. instead of UriFileListParser.
  6345. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Made console readout more readable.
  6347. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6348. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Fix the bug that causes -s option not to work.
  6350. * src/main.cc (main)
  6351. * src/a2algo.h: New file.
  6352. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Create directory structure specified in metalink file.
  6354. * src/RequestGroup.h, src/RequestGroup.cc
  6355. (initAndOpenFile): Create a directory to store files if it does not
  6356. exist.
  6357. (getDir): New function.
  6358. Added ETA and download speed for an individual file to readout.
  6359. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6360. * src/RequestGroup.h
  6361. (calculateDownloadSpeed): New function.
  6362. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. Made -S option work with metalink file and provided selective download
  6364. to metalink.
  6365. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  6366. (filename): Removed.
  6367. (file): New variable.
  6368. (size): Removed.
  6369. (operator=): Updated.
  6370. (getPath): New function.
  6371. (getLength): New function.
  6372. (toFileEntry): New function.
  6373. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  6374. (execute): Use toStream.
  6375. (showFileEntry): Removed.
  6376. * src/MetalinkRequestInfo.h
  6377. (targetFiles): New variable.
  6378. (setTargetFiles): New variable.
  6379. * src/MetalinkRequestInfo.cc
  6380. (execute): Added the ability to print file information included in
  6381. a metalink file.
  6382. Added selective download mode to metalink.
  6383. * src/main.cc
  6384. (showUsage): Updated to denote that -S and --select-file options are
  6385. applicable to metalink.
  6386. * src/FileEntry.h
  6387. (operator=): New function.
  6388. (getBasename): New function.
  6389. (getDirname): New function.
  6390. * src/Util.h, src/Util.cc
  6391. (toStream): New function.
  6392. * src/Xml2MetalinkProcessor.cc: Updated.
  6393. Made aria2 work with metalink with directory structure.
  6394. * src/File.h, src/File.cc
  6395. (getBasename): New function.
  6396. (getDirname): New function.
  6397. * src/RequestGroup.h, src/RequestGroup.cc
  6398. (_topDir): New variable.
  6399. (setTopDir): New function.
  6400. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  6401. Rewrote HTTP header parsing with stringstream.
  6402. * src/HttpConnection.h, src/HttpConnection.cc
  6403. (HttpRequestEntry): New class.
  6404. (headerBuf): Removed.
  6405. (headerBufLength): Removed.
  6406. (outstandingHttpRequests): Now its element type is
  6407. HttpRequestEntryHandle.
  6408. (findEndOfHeader): Removed.
  6409. (receiveResponse): Rewritten.
  6410. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  6411. Updated doc for -j option to notice that it should be used with -i
  6412. option.
  6413. * src/main.cc (showUsage)
  6414. Removed unused classes.
  6415. * src/RequestInfo.h
  6416. (FileInfo): Removed.
  6417. (checksum): Removed.
  6418. (fileInfo): Removed.
  6419. (setChecksum): Removed.
  6420. (getChecksum): Removed.
  6421. (getFileInfo): Removed.
  6422. Use ISO units.
  6423. * src/ConsoleDownloadEngine.cc
  6424. * src/TorrentConsoleDownloadEngine.cc
  6425. * src/Util.cc (abbrevSize)
  6426. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Added the default listening ports to the help message.
  6428. * src/main.cc (showUsage)
  6429. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Reduce the number of calls to gettimeofday to lower CPU load.
  6431. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  6432. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  6433. * src/Peer.h (calculateUploadSpeed): New function.
  6434. (calculateDownloadSpeed): New function.
  6435. * src/DefaultPeerStorage.cc
  6436. (CalculateStat): Added _now variable.
  6437. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  6438. and Peer::calculateUploadSpeed(const struct timeval&)
  6439. Drop connection if no request or piece message is exchanged in
  6440. a certain interval.
  6441. * src/DefaultBtInteractive.h
  6442. (btRuntime): New variable.
  6443. (inactiveCheckPoint): New variable.
  6444. (checkActiveInteraction): New function.
  6445. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  6446. request or piece message is received.
  6447. (checkActiveInteraction): New function.
  6448. (doInteractionProcessing): Call checkActiveInteraction.
  6449. Fixed the bug that causes remote Metalink and Torrent files are not
  6450. processed.
  6451. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  6452. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Changed format of log file.
  6454. * src/SimpleLogger.cc
  6455. * Release 0.11.0
  6456. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6457. * src/AbstractCommand.cc
  6458. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  6459. MSG_MAX_TRY from error to info.
  6460. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  6461. * src/message.h
  6462. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  6463. (MSG_DOWNLOAD_ABORTED): Added %s.
  6464. (MSG_RESTARTING_DOWNLOAD): Added %s.
  6465. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  6466. * src/PeerAbstractCommand.cc
  6467. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  6468. * src/Request.h
  6469. (cookieBox): Made ShardHandle.
  6470. * src/RequestGroup.h, src/RequestGroup.cc
  6471. (createNextCommandWithAdj): New function.
  6472. * src/FileAllocationCommand.cc
  6473. (executeInternal): Use createNextCommandWithAdj().
  6474. * src/CheckIntegrityCommand.cc
  6475. (executeInternal): Use createNextCommandWithAdj().
  6476. Added --load-cookies command-option.
  6477. * src/OptionHandlerFactory.cc
  6478. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  6479. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  6480. Now aria2 can handle cookie's expiration date.
  6481. * src/Cookie.h (expires): Changed its type to time_t.
  6482. * src/main.cc: Added --load-cookies command-line option.
  6483. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  6484. * src/Util.h, src/Util.cc (httpGMT): New function.
  6485. * src/Request.cc (Request): Initialize cookieBox using
  6486. CookieBoxFactory.
  6487. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  6488. * src/CookieParser.h, src/CookieParser.cc: New class.
  6489. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  6490. * src/HttpResponseCommand.cc
  6491. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  6492. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  6493. download.
  6494. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Added -j command-line option.
  6496. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6497. * src/main.cc
  6498. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  6499. Rewritten using stringstream.
  6500. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  6501. Rewritten using stringstream.
  6502. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Make download size shown in MB, KB.
  6504. * src/ConsoleDownloadEngine.h (sendStatistics)
  6505. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  6506. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6507. Accept incoming connections if download rate is low.
  6508. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  6509. (_lowestSpeedLimit): New variable.
  6510. (setLowestSpeedLimit): New function.
  6511. (execute): Accept incoming connections if download rate is low.
  6512. MAX_PEERS is ignored in this case.
  6513. Disable PREF_OUT in multiple concurrent download:
  6514. * src/RequestGroup.h, src/RequestGroup.cc
  6515. (setUserDefinedFilename): New function.
  6516. * src/DownloadEngineFactory.cc
  6517. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  6518. concurrent download.
  6519. * src/DefaultSegmentManFactory.cc
  6520. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  6521. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. RequestGroup::getNextCommand() was renamed to createNextCommand().
  6523. Added its overloaded method.
  6524. * src/RequestGroup.h
  6525. (_numConcurrentCommand): New variable.
  6526. (setNumConcurrentCommand): New function.
  6527. * src/RequestGroup.cc
  6528. Abort download if same file is being downloaded concurrently.
  6529. * src/RequestGroup.h, src/RequestGroupMan.cc
  6530. (isSameFileBeingDownloaded): New function.
  6531. * src/HttpResponseCommand.cc (executeInternal)
  6532. * src/FtpNegotiateCommand.cc (recvSize)
  6533. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6534. * main.cc: Added help message for -i option.
  6535. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6537. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6538. * src/MetalinkEntry.h
  6539. (checksum): Changed to ChecksumHandle
  6540. * src/MetalinkRequestInfo.cc
  6541. (checksum): Changed to ChecksumHandle
  6542. * src/File.cc
  6543. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  6544. * src/common.h
  6545. (DIR_OPEN_MODE): New definition
  6546. * src/RequestGroup.cc
  6547. (prepareForNextAction): Added an argument.
  6548. * src/message.h
  6549. (MSG_GOOD_CHECKSUM): New definition
  6550. (MSG_BAD_CHECKSUM): New definition
  6551. * src/HttpResponseCommand.cc
  6552. (handleDefaultEncoding): Continue download sequence in new
  6553. non-segmented download.
  6554. * src/FileAllocationEntry.h
  6555. (_nextDownloadCommand): New variable.
  6556. * src/DownloadCommand.cc
  6557. (prepareForNextSegment): Create ChecksumCommand if checksum is
  6558. available.
  6559. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  6560. * src/IteratableChecksumValidator.h,
  6561. src/IteratableChecksumValidator.cc: New class.
  6562. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  6563. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Change file mode to 666:
  6565. * src/common.h (OPEN_MODE): New definition.
  6566. * src/File.cc
  6567. * src/Util.cc
  6568. * src/Directry.cc
  6569. * src/AbstractDiskWriter.cc
  6570. Change the level of log message "download aborted" to debug:
  6571. * src/PeerAbstractCommand.cc (execute)
  6572. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  6573. * src/TrackerWatcherCommand.cc
  6574. (createCommand): Sleep some seconds after request failed.
  6575. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  6576. then abort tracker request.
  6577. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. * Added the simultaneous download feature.
  6579. * src/main.cc: Print "Exception caught: " when exception is caught.
  6580. Use CUIDCounter instead of BtRuntime::getNewCuid():
  6581. * src/ActivePeerConnectionCommand.cc
  6582. * src/PeerInteractionCommand.cc
  6583. * src/BtRuntime.h
  6584. (cuidCounter): Removed.
  6585. (getNewCuid): Removed.
  6586. * src/DownloadEngineFactory.cc
  6587. * src/PeerListenCommand.cc
  6588. * src/TrackerUpdateCommand.cc
  6589. * src/PeerInitiateConnectionCommand.cc
  6590. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. * src/PeerAbstractCommand.cc
  6592. (onAbort): Call PeerStorage::returnPeer()
  6593. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  6594. (incomingPeers): New variable.
  6595. (addIncomingPeer): New function.
  6596. (returnPeer): New function.
  6597. (onErasingPeer): New function.
  6598. (addPeer): push_back -> push_front
  6599. (getActivePeers): Rewritten.
  6600. (calculateStat): Rewritten.
  6601. * src/PeerStorage.h
  6602. (TransferStat::copy): New function.
  6603. (TransferStat::TransferStat): New function.
  6604. (TransferStat::operator=): New function.
  6605. (addIncomingPeer): New function.
  6606. (returnPeer): New function.
  6607. * src/PeerListenCommand.cc
  6608. (execute): Use PeerStorage::addIncomingPeer() instead of
  6609. Peer::addPeer().
  6610. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Connect to a peer actively when download speed is lower than specified
  6612. speed in torrent download:
  6613. * src/ActivePeerConnectionCommand.h: New class.
  6614. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. * src/HttpRequest.cc (createRequest): url-encode user-agent
  6616. * src/main.cc: Fixed the bug that prevents download if .netrc
  6617. doesn't exist.
  6618. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. To cache resolved hostname:
  6620. * src/AbstractCommand.h, src/AbstractCommand.cc
  6621. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  6622. Added dns cache.
  6623. * src/FtpInitiateConnectionCommand.cc
  6624. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  6625. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  6626. NameResolver working without ares.
  6627. * src/TorrentRequestInfo.cc
  6628. (execute): Don't cache dns in torrent download.
  6629. * src/HttpInitiateConnectionCommand.cc
  6630. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  6631. * src/DNSCache.h: New class.
  6632. * src/UrlRequestInfo.cc
  6633. (execute): Use dns cache.
  6634. In http request, suppress port number in http request header if port
  6635. is 80 or 443:
  6636. * src/HttpRequest.cc (getHostText): Suppress port number in http
  6637. request header if port is 80 or 443.
  6638. (createProxyRequest): Allways send port number.
  6639. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. To add the command-line option which disables netrc support:
  6641. * src/OptionHandlerFactory.cc
  6642. (createOptionHandlers): Added PREF_NO_NETRC.
  6643. * src/main.cc: Added -n option.
  6644. * src/prefs.h (PREF_NO_NETRC): New definition.
  6645. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6646. V_TRUE.
  6647. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6648. is V_FALSE. This may get configurable in the future release.
  6649. To clear peer's error status by time basis:
  6650. * src/PeerAbstractCommand.cc
  6651. (onAbort): Call Peer::startBadCondition().
  6652. * src/Peer.h, src/Peer.cc
  6653. (error): Removed.
  6654. (_badConditionStartTime): New variable.
  6655. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6656. (startBadCondition): New function.
  6657. (isGood): New function.
  6658. * src/DefaultPeerStorage.cc
  6659. (addPeer): Use Peer::isGood().
  6660. (FindFinePeer): Use Peer::isGood().
  6661. Always include port number in http request header:
  6662. * src/HttpRequest.cc (getHostText): Always include port number in
  6663. http request header.
  6664. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. To the ability to read options from a config file:
  6666. * src/main.cc: Command-line parameter validation is delegated to
  6667. OptionHandler class.
  6668. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6669. * src/Option.h, src/Option.cc (clear): New function.
  6670. * src/OptionParser.h, src/OptionParser.cc: New class.
  6671. * src/OptionHandler.h: New class.
  6672. * src/NameMatchOptionHandler.h: New class.
  6673. * src/OptionHandlerImpl.h: New classes.
  6674. * src/prefs.h: '_' -> '-'
  6675. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6676. (FTP_PASV): New definition.
  6677. * src/Util.h, src/Util.cc (getRealSize): New function.
  6678. To disable netrc support if .netrc file does not have correct
  6679. permissions:
  6680. * src/File.h, src/File.cc (mode): New function.
  6681. To prevent confidential information to be logged:
  6682. * src/HttpConnection.h, src/HttpConnection.cc
  6683. (eraseConfidentialInfo): New function.
  6684. (sendRequest): Call eraseConfidentialInfo().
  6685. (sendProxyRequest): Call eraseConfidentialInfo().
  6686. * src/main.cc: Validate permissions of .netrc file.
  6687. To add --user-agent command-line option:
  6688. * src/main.cc: Added new command line option: --user-agent
  6689. * src/prefs.h (PREF_USER_AGENT): New definition.
  6690. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6691. parameter to HttpRequest object.
  6692. * src/AbstractProxyRequestCommand.cc
  6693. (executeInternal): Set user-agent option parameter to HttpRequest
  6694. object.
  6695. Marged the patches from Dan Fandrich.
  6696. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Use filename and size from Metalink file instead of sending HEAD
  6698. request:
  6699. * src/UrlRequestInfo.h
  6700. (_filename): New variable.
  6701. (_totalLength): New variable.
  6702. (setTotalLength): New variable.
  6703. (setFilename): New variable.
  6704. * src/MetalinkRequestInfo.cc
  6705. (execute): Set filename and size to UrlRequestInfo
  6706. * src/UrlRequestInfo.cc
  6707. (execute): Use filename and size from Metalink instead of seding
  6708. HEAD request to servers.
  6709. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. To add the ability to resume downloading a partially downloaded file
  6711. which is downloaded from the beginning:
  6712. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6713. takes this role.
  6714. * src/main.cc: Added -c option.
  6715. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6716. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6717. * src/prefs.h (PREF_CONTINUE): New definition.
  6718. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6719. * src/DefaultDiskWriter.cc
  6720. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6721. * src/AbstractDiskWriter.h
  6722. (glowFileAllocator): New variable.
  6723. * src/AbstractDiskWriter.cc
  6724. (openExistingFile): Now preallocate file space from the end of the
  6725. existing file if totalLength argument is specified and grater than 0.
  6726. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6727. to download exists in local, continue the download of the file.
  6728. --allow-overwrite=true is assumed in this context.
  6729. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6730. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6731. Throw exception if --check-integrity=true is specified but chunk
  6732. checksums are not provided:
  6733. * src/UrlRequestInfo.cc
  6734. Do not print URLs to stdout:
  6735. * src/UrlRequestInfo.cc
  6736. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. * src/Request.h: Use AuthResolver to get authentication information.
  6738. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6739. set to RequestFactory object.
  6740. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6741. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6742. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6743. create Request object.
  6744. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6745. To integrate Netrc into exsiting classes:
  6746. * src/Request.h
  6747. (_userDefinedAuthConfig): New variable.
  6748. (findNetrcAuthenticator): New function.
  6749. (segment): Removed.
  6750. (setUserDefinedAuthConfig): New function.
  6751. (resolveHttpAuthConfigItem): New function.
  6752. (resolveFtpAuthConfigItem): New function.
  6753. (resolveHttpProxyAuthConfigItem): New function.
  6754. * src/HttpRequest.h
  6755. (authConfig): Removed.
  6756. (proxyAuthConfig): Removed.
  6757. (setAuthConfig): Removed.
  6758. (setProxyAuthConfig): Removed.
  6759. * src/UrlRequest.h
  6760. (getHeadResult): Added a parameter: authConfigHandle
  6761. * src/common.h
  6762. (SingletonHolder.h): New include.
  6763. * src/main.cc
  6764. (Netrc.h): New include.
  6765. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6766. Added initial value of PREF_NETRC_PATH.
  6767. Added the initialization of netrc.
  6768. * src/AuthConfig.h: New class.
  6769. * src/prefs.h
  6770. (PREF_NETRC_PATH): New definition.
  6771. * src/HttpAuthConfig.h: Removed.
  6772. * src/Netrc.cc
  6773. (getRequiredNextToken): New function.
  6774. (skipMacdef): New function.
  6775. (parse): Rewritten.
  6776. * src/Netrc.h
  6777. (getRequiredNextToken): New function.
  6778. (skipMacdef): New function.
  6779. * src/Util.h, src/Util.cc
  6780. (getHomeDir): New function.
  6781. * src/TrackerWatcherComand.cc
  6782. (createRequestCommand): Use AuthConfig.
  6783. * src/FtpConnection.cc
  6784. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6785. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6786. * src/Request.cc
  6787. (findNetrcAuthenticator): New function.
  6788. (resolveHttpAuthConfigItem): New function.
  6789. (resolveFtpAuthConfigItem): New function.
  6790. (resolveHttpProxyAuthConfigItem): New function.
  6791. * src/UrlRequestInfo.cc: Use AuthConfig.
  6792. * src/HttpRequest.cc
  6793. (createRequest): Use authConfig.
  6794. (getProxyAuthString): Use authConfig.
  6795. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6796. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6797. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6798. To reduce overhead to find commands whose socket is either
  6799. readable or writable in the download engine loop:
  6800. * src/Command.h, src/Command.cc
  6801. (STATUS): New enum.
  6802. (status): New variable.
  6803. (statusMatch): New function.
  6804. (setStatusActive): New function.
  6805. (setStatusInactive): New function.
  6806. * src/DownloadEngine.h, src/DownloadEngine.cc
  6807. (executeCommand): New function.
  6808. (run): Simplified.
  6809. (waitData): Call Command::setStatusActive() when command's socket is
  6810. readable or writable.
  6811. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. To handle Segment as SegmentHandle:
  6813. * src/AbstractCommand.cc (execute): Rewritten.
  6814. * src/SegmentMan.h: Segment -> SegmentHandle
  6815. Introducded HttpResponse class, HttpRequest class to improve code
  6816. extensiveness and make it clear:
  6817. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6818. HttpResponse class.
  6819. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6820. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6821. * src/HttpConnection.cc: Contruction of http request were moved to
  6822. HttpRequest class.
  6823. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6824. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6825. * src/HttpAuthConfig.h: New class.
  6826. * src/Range.h: New class.
  6827. To make FtpTunnel{Request, Response}Command and
  6828. HttpProxy{Request, Response}Command derived from
  6829. AbstractProxy{Request, Response}Command:
  6830. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6831. Derived from AbstractProxyRequestCommand class.
  6832. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6833. Derived from AbstractProxyResponseCommand class.
  6834. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6835. Derived from AbstractProxyRequestCommand class.
  6836. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6837. Derived from AbstractProxyResponseCommand class.
  6838. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6839. : New class.
  6840. * src/AbstractProxyResponseCommand.h,
  6841. src/AbstractProxyResponseCommand.cc: New class.
  6842. To add netrc support:
  6843. * src/Netrc.h, src/Netrc.cc: New class.
  6844. * src/Util.h, src/Util.cc (split): New function.
  6845. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6846. "Content-Range" header instead of "Range" header.
  6847. * src/HttpHeader.h
  6848. (getStatus): Removed.
  6849. (setStatus): Removed.
  6850. * src/Segment.h
  6851. (getPositionToWrite): New function.
  6852. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. * src/HttpHeader.h
  6854. (Range.h): New include.
  6855. (status): New variable.
  6856. (HttpHeader): Initialized status with 0.
  6857. (getStatus): New function.
  6858. (setStatus): New function.
  6859. (getRange): New function.
  6860. (HttpHeaderHandle): New function.
  6861. * src/HttpHeader.cc
  6862. (getRange): New function.
  6863. * src/Request.h
  6864. (RequestWeakHandle): New definition.
  6865. * src/HttpConnection.h
  6866. (HttpConnectionHandle): New type definition.
  6867. * src/HttpConnection.cc
  6868. (receiveResponse): Set HTTP status to headers.
  6869. * src/main.cc
  6870. (showUsage): Fixed typo.
  6871. * src/Segment.h
  6872. (SegmentHandle): New type definition.
  6873. * src/BitfieldMan.h
  6874. (getMissingUnusedLength): New function.
  6875. * src/BitfieldMan.cc
  6876. (getMissingUnusedLength): New function.
  6877. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. To fix static initialization order problem:
  6879. * src/BitfieldManFactory.h
  6880. (defaultRandomizer): Removed.
  6881. (factory): New variable.
  6882. (getNewFactory): Removed.
  6883. (getFactoryInstance): New function.
  6884. (setDefaultRandomizer): Rewritten.
  6885. (getDefaultRandomizer): Rewritten.
  6886. * src/BitfieldManFactory.cc
  6887. (defaultRandomizer): Removed.
  6888. (factory): Initialized to 0.
  6889. (BitfieldManFactory): Initialized randomizer to 0.
  6890. * src/DefaultPieceStorage.cc
  6891. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6892. * src/Peer.cc
  6893. (Peer): getNewFactory() -> getFactoryInstance()
  6894. * src/SegmentMan.cc
  6895. (initBitfield): getNewFactory() -> getFactoryInstance()
  6896. * src/Piece.cc
  6897. (Piece): getNewFactory() -> getFactoryInstance()
  6898. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. To fix the bug that causes crash on Max OS X:
  6900. * src/SimpleRandomizer.h
  6901. (getInstance): Create new instance if the static variable is null.
  6902. * src/SimpleRandomizer.cc
  6903. (randomizer): Initialized to 0.
  6904. * src/BitfieldManFactory.h
  6905. (getNewFactory): Removed the call to setRandomizer().
  6906. To fix the miscalculation of the range of checksum:
  6907. * src/BitfieldMan.h
  6908. (isBitSetOffsetRange): New function.
  6909. * src/BitfieldMan.cc
  6910. (isBitSetOffsetRange): New function.
  6911. * src/SegmentMan.cc
  6912. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6913. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6914. * Release 0.10.1
  6915. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. To lower CPU usage in BitTorrent download when --max-upload-limit
  6917. command-line option specified:
  6918. * src/DefaultBtMessageDispatcher.cc
  6919. (sendMessages): Calculate uploading speed only when current message
  6920. is uploading data and is not sent yet.
  6921. * src/DefaultPeerStorage.h
  6922. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6923. * src/HttpResponseCommand.cc
  6924. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6925. This fixes compile error in Soralis 10.
  6926. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. To fix segfault in Metalink download:
  6928. * src/UrlRequestInfo.h
  6929. (filename): Removed.
  6930. (totalLength): Removed.
  6931. (setTotalLength): Removed.
  6932. (setFilename): Removed.
  6933. * src/MetalinkRequestInfo.cc
  6934. (execute): Do not set filename and totalLength to reqInfo.
  6935. Set chunk checksum to reqInfo if it is not null.
  6936. * src/HttpResponseCommand.cc
  6937. (executeInternal): Fixed filename in log.
  6938. (handleDefaultEncoding): Removed the call to initBitfield() and
  6939. markAllPiecesDone().
  6940. (handleOtherEncoding): Added HEAD method handling.
  6941. * src/FtpNegotiateCommand.cc
  6942. (executeInternal): Added SEQ_HEAD_OK handling.
  6943. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6944. return false.
  6945. * src/FtpNegotiateCommand.h
  6946. (SEQ_HEAD_OK): New definition.
  6947. * src/SegmentMan.cc
  6948. (initBitfield): Delete bitfield.
  6949. (isChunkChecksumValidationReady): Fixed the condition.
  6950. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6951. works fine.
  6952. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. * src/Xml2MetalinkProcessor.h
  6954. (xpathExists): New function.
  6955. * src/Xml2MetalinkProcessor.cc
  6956. (xpathExists): New function.
  6957. Not to send HEAD request if filename and size are available in Metalink
  6958. file:
  6959. * src/UrlRequestInfo.h
  6960. (filename): New variable.
  6961. (totalLength): New variable.
  6962. (setTotalLength): New function.
  6963. (setFilename): New function.
  6964. * src/MetalinkRequestInfo.cc
  6965. (execute): Set filename and size to UrlRequestInfo.
  6966. * src/MetalinkEntry.cc
  6967. (MetalinkEntry): Initialize size with 0.
  6968. * src/UrlRequestInfo.cc
  6969. (execute): Set filename and size to SegmentMan.
  6970. Not to download rest of the files after selected files are downloaded
  6971. in BitTorrent:
  6972. * src/PieceStorage.h
  6973. (allDownloadFinished): New function.
  6974. * src/DefaultBtAnnounce.cc
  6975. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6976. downloadFinished.
  6977. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6978. * src/DefaultPieceStorage.cc
  6979. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6980. Commented out the call to finishSelectiveDownloadingMode().
  6981. (downloadFinished): Call isFilteredAllBitSet() instead of
  6982. isAllBitSet().
  6983. (allDownloadFinished): New function.
  6984. * src/DefaultBtInteractive.cc
  6985. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6986. downloadFinished().
  6987. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6988. * src/TorrentDownloadEngine.cc
  6989. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6990. * src/BitfieldMan.h
  6991. (isFilteredAllBitSet): New function.
  6992. * src/ShareRatioSeedCriteria.h
  6993. (PieceStorage.h): New include.
  6994. (pieceStorage): New variable.
  6995. (evaluate):
  6996. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6997. * src/BitfieldMan.cc
  6998. (isFilteredAllBitSet): New function.
  6999. (isAllBitSet): Filter is not took into account.
  7000. Rename --force-truncate as --allow-overwrite:
  7001. * src/TorrentRequestInfo.cc
  7002. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7003. * src/main.cc
  7004. (showUsage): --force-truncate -> --allow-overwrite
  7005. * src/message.h
  7006. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7007. * src/prefs.h
  7008. (PREF_FORCE_TRUNCATE): Removed.
  7009. (PREF_ALLOW_OVERWRITE): New definition.
  7010. * src/SegmentMan.cc
  7011. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7012. * src/MetalinkRequestInfo.cc
  7013. (execute): Queueing message are now logged in info level.
  7014. * src/common.h
  7015. (LONG_LONG_MAX): Removed.
  7016. (LONG_LONG_MIN): Removed.
  7017. * src/HttpResponseCommand.cc
  7018. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7019. * src/FtpNegotiateCommand.cc
  7020. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7021. * src/main.cc
  7022. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7023. command-line option.
  7024. (main): Added --check-integriy and --realtime-chunk-checksum
  7025. command-line option.
  7026. --force-truncate -> --allow-overwrite
  7027. Set initial value of --check-integrity option to false.
  7028. Don't show usage when error occurs while persing command-line options.
  7029. Removed deprecated --upload-limit option.
  7030. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7032. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7033. * src/BtAllowedFastMessage.cc:
  7034. * src/BtBitfieldMessage.cc
  7035. * src/BtCancelMessage.cc
  7036. * src/BtChokeMessage.cc
  7037. * src/BtHaveAllMessage.cc
  7038. * src/BtHaveMessage.cc
  7039. * src/BtHaveNoneMessage.cc
  7040. * src/BtInterestedMessage.cc
  7041. * src/BtNotInterestedMessage.cc
  7042. * src/BtPieceMessage.cc
  7043. * src/BtPortMessage.cc
  7044. * src/BtRejectMessage.cc
  7045. * src/BtRequestMessage.cc
  7046. * src/BtSuggestPieceMessage.cc
  7047. * src/BtUnchokeMessage.cc
  7048. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7049. files are affected.
  7050. * src/ChunkChecksumValidator.cc
  7051. * src/SegmentMan.cc
  7052. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. To add chunk checksum validation:
  7054. * src/MetalinkEntry.h
  7055. (MetalinkChunkChecksum.h): New include.
  7056. (chunkChecksum): New variable.
  7057. * src/Request.h
  7058. (method): New variable.
  7059. (setMethod): New function.
  7060. (getMethod): New function.
  7061. (METHOD_GET): New static constant.
  7062. (METHOD_HEAD): New static constant.
  7063. * src/Xml2MetalinkProcessor.h
  7064. (getPieceHash): New function.
  7065. * src/PieceStorage.h
  7066. (markAllPiecesDone): New function.
  7067. (checkIntegrity): New function.
  7068. * src/FileAllocator.h
  7069. (NullFileAllocationMonitor.h): New include.
  7070. (FileAllocator): Initialize fileAllocationMonitor with new
  7071. NullFileAllocationMonitor().
  7072. * src/MultiDiskAdaptor.h
  7073. (messageDigest.h): Remove include.
  7074. (ctx): Removed.
  7075. (hashUpdate): Added ctx.
  7076. (MultiDiskAdaptor): Removed ctx.
  7077. (sha1Sum): Renamed as messageDigest.
  7078. (messageDigest): New function.
  7079. * src/UrlRequestInfo.h
  7080. (HeadResult): New class.
  7081. (digestAlgo): New variable.
  7082. (chunkChecksumLength): New variable.
  7083. (chunkChecksums): New variable.
  7084. (getHeadResult): New function.
  7085. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7086. (setDigestAlgo): New function.
  7087. (setChunkChecksumLength): New function.
  7088. (setChunkChecksums): New function.
  7089. * src/DefaultPieceStorage.cc
  7090. (DiskAdaptorWriter.h): New include.
  7091. (ChunkChecksumValidator.h): New include.
  7092. (markAllPiecesDone): New function.
  7093. (checkIntegrity): New function.
  7094. * src/DefaultBtContext.h
  7095. (getPieceHashes): New function.
  7096. * src/TorrentRequestInfo.cc
  7097. (execute): Try to validate chunk checksum if file already exists and
  7098. .aria2 file doesn't there and user allows aria2 to overwrite it.
  7099. * src/messageDigest.h
  7100. (~MessageDigestContext): Added digestFree().
  7101. * src/MetalinkRequestInfo.cc
  7102. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  7103. * src/DiskAdaptor.h
  7104. (messageDigest.h): New include.
  7105. (sha1Sum): Renamed as messageDigest.
  7106. (messageDigest): New function.
  7107. * src/DownloadCommand.h
  7108. (PeerStat.h): New include.
  7109. (maxDownloadSpeedLimit): New variable.
  7110. (startupIdleTime): New variable.
  7111. (lowestDownloadSpeedLimit): New variable.
  7112. (peerStat): New variable.
  7113. (setMaxDownloadSpeedLimit): New function.
  7114. (setStartupIdleTime): New function.
  7115. (setLowestDownloadSPeedLimit): New function.
  7116. * src/BtContext.h
  7117. (getPieceHashes): New function.
  7118. * src/main.cc
  7119. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  7120. option to true for testing purpose.
  7121. * src/BtPieceMessage.cc
  7122. (checkPieceHash): Use messageDigest
  7123. * src/DownloadEngine.cc
  7124. (SetDescriptor): Removed.
  7125. (AccumulateActiveCommand): Removed.
  7126. (waitData): Rewritten.
  7127. (updateFdSet): Rewritten.
  7128. * src/MultiDiskAdaptor.cc
  7129. (hashUpdate): Added ctx.
  7130. (sha1Sum): Renamed as messageDigest.
  7131. (messageDigest): New function.
  7132. * src/BitfieldMan.h
  7133. (isBitRangeSet): New function.
  7134. (unsetBitRange): New function.
  7135. * src/ByteArrayDiskWriter.h
  7136. (sha1Sum): Renamed as messageDigest.
  7137. (messageDigest): New function.
  7138. * src/ConsoleDownloadEngine.cc
  7139. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  7140. * src/DiskWriter.h
  7141. (messageDigest.h): New include.
  7142. (sha1Sum): Renamed as messageDigest.
  7143. (messageDigest): New function.
  7144. * src/ChunkChecksumValidator.h: New class.
  7145. * src/DiskAdaptorWriter.h: New class.
  7146. * src/prefs.h
  7147. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7148. (PREF_CHECK_INTEGRITY): New definition.
  7149. * src/HttpResponseCommand.cc
  7150. (handleDefaultEncoding): Added method "HEAD" handling.
  7151. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7152. (handleOtherEncoding):
  7153. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7154. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7155. startupIdleTime, lowestDownloadSpeedLimit to command.
  7156. * src/SegmentMan.h
  7157. (getSegmentEntryByIndex): New function.
  7158. (getSegmentEntryByCuid): New function.
  7159. (getSegmentEntryIteratorByCuid): New function.
  7160. (diskWriter): DiskWriter -> DiskWriterHandle
  7161. (pieceHashes): New variable.
  7162. (chunkHashLength): New variable.
  7163. (digestAlgo): New variable.
  7164. (FindPeerStat): Removed.
  7165. (getPeerStat): Rewritten.
  7166. (markAllPiecesDone): New function.
  7167. (checkIntegrity): New function.
  7168. (tryChunkChecksumValidation): New function.
  7169. (isChunkChecksumValidationReady): New function.
  7170. * src/BitfieldMan.cc
  7171. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7172. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7173. blocks to 0.
  7174. (isBitRangeSet): New function.
  7175. (unsetBitRange): New function.
  7176. * src/FtpNegotiateCommand.cc
  7177. (executeInternal): Set maxDownloadSpeedLimit,
  7178. startupIdleTime, lowestDownloadSpeedLimit to command.
  7179. (recvSize): Added method "HEAD" handling.
  7180. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7181. * src/AbstractSingleDiskAdaptor.cc
  7182. (sha1Sum): Renamed as messageDigest.
  7183. (messageDigest): New function.
  7184. * src/AbstractSingleDiskAdaptor.h
  7185. (sha1Sum): Renamed as messageDigest.
  7186. (messageDigest): New function.
  7187. * src/Util.h
  7188. (indexRange): New function.
  7189. * src/MetalinkEntry.cc
  7190. (MetalinkEntry): Initialized chunkChecksum to 0.
  7191. * src/ShaVisitor.cc
  7192. (~ShaVisitor): Removed the call to ctx.digestFree().
  7193. * src/SegmentMan.cc
  7194. (ChunkChecksumValidator.h): New include.
  7195. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  7196. to DIGEST_ALGO_SHA1.
  7197. (~SegmentMan): Removed diskWriter.
  7198. (FindSegmentEntryByIndex): Removed.
  7199. (FindSegmentEntryByCuid): Removed.
  7200. (checkoutSegment): Rewritten.
  7201. (findSlowerSegmentEntry): Rewritten.
  7202. (getSegment): Rewritten.
  7203. (updateSegment): Rewritten.
  7204. (completeSegment): Rewritten.
  7205. (markAllPiecesDone): New function.
  7206. (checkIntegrity): New function.
  7207. (isChunkChecksumValidationReady): New function.
  7208. (tryChunkChecksumValidation): New function.
  7209. * src/Xml2MetalinkProcessor.cc
  7210. (getEntry): Get size and set it to entry.
  7211. Get chunk checksum and set it to entry.
  7212. (getPieceHash): New function.
  7213. * src/Util.cc
  7214. (sha1Sum): Removed ctx.digestFree()
  7215. (fileChecksum): Removed ctx.digestFree()
  7216. (indexRange): New function.
  7217. * src/Request.cc
  7218. (METHOD_GET): New variable.
  7219. (METHOD_HEAD): New variable.
  7220. (Request): Added method.
  7221. * src/UrlRequestInfo.cc
  7222. (FatalException.h): New include.
  7223. (message.h): New include.
  7224. (operator<<): Added operator<< for class HeadResult.
  7225. (getHeadResult): New function.
  7226. (execute): Get filename and size in separate download engine.
  7227. * src/ChunkChecksumValidator.cc: New class.
  7228. * src/DownloadCommand.cc:
  7229. (DownloadCommand): Added peerStat.
  7230. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  7231. the value from Option.
  7232. The buffer size is now 16KB.
  7233. Use peerStat member instead of getting it from SegmentMan.
  7234. Use startupIdleTime member instead of gettingit from Option.
  7235. Added chunk checksum validation.
  7236. * src/AbstractDiskWriter.cc
  7237. (AbstractDiskWriter): Removed ctx.
  7238. (~AbstractDiskWriter): Removed ctx.digestFree()
  7239. (writeDataInternal): Returns the return value of write.
  7240. (readDataInternal): Returns the return value of read.
  7241. (sha1Sum): Renamed as messageDigest
  7242. (messageDigest): New function.
  7243. * src/AbstractDiwkWriter.h
  7244. (messageDigest.h): Removed include.
  7245. (ctx): Removed.
  7246. (sha1Sum): Renamed as messageDigest
  7247. (messageDigest): New function.
  7248. * src/DefaultPieceStorage.h
  7249. (markAllPiecesDone): New function.
  7250. (checkIntegrity): New function.
  7251. * src/NullFileAllocationMonitor.h: New class.
  7252. * src/MetalinkChunkChecksum.h: New class.
  7253. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. To decrease CPU usage in bittorrent download, calculation results in
  7255. BitfieldMan were cached and realtime fetching PeerObject was removed
  7256. with WeakHandle introduced. Option values are set to the objects
  7257. by setter before download begins.
  7258. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  7259. * src/DefaultBtRequestFactory.h
  7260. (dispatcher): BtMessageDispatcherHandle ->
  7261. BtMessageDispatcherWeakHandle.
  7262. (messageFactory): New variable.
  7263. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  7264. BtMessageDispatcherWeakHandle.
  7265. (setBtMessageFactory): New function.
  7266. * src/DefaultBtMessageDispatcher.cc:
  7267. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  7268. from Option.
  7269. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  7270. feating the value from Option.
  7271. Use messageFactory member.
  7272. * src/PeerInteractionCommand.cc
  7273. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  7274. Add reverse dependencies to factory object.
  7275. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  7276. dispatcher.
  7277. Set messageFactory to receiver.
  7278. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  7279. btInteractive.
  7280. Set receiver to peerObject.
  7281. Set maxDownloadSpeedLimit to this.
  7282. (executeInternal): Use maxDownloadSpeedLimit member.
  7283. * src/BtChokeMessage.cc
  7284. (doReceivedAction): Use dispatcher, requestFactory member.
  7285. (onSendComplete): Use dispatcher member.
  7286. * src/PeerInteractionCommand.h
  7287. (maxDownloadSpeedLimit): New variable.
  7288. * src/DefaultBtMessageReceiver.h
  7289. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7290. (dispatcher):
  7291. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7292. (messageFactory): New variable.
  7293. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7294. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7295. (setDispatcher):
  7296. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7297. (setBtMessageFactory): New function.
  7298. * src/DefaultBtInteractive.cc
  7299. (initiateHandshake): Use messageFactory member.
  7300. (addBitfieldMessageToQueue): Use messageFactory member.
  7301. (addAllowedFastMessageToQueue): Use messageFactory member.
  7302. (decideChoking): Use messageFactory member.
  7303. (checkHave): Use messageFactory member.
  7304. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7305. (receiveMessages): Use maxDownloadSpeedLimit member.
  7306. (decideInterest): Use messageFactory member.
  7307. * src/BtRequestMessage.cc
  7308. (doReceivedAction): Use messageFactory, dispatcher member.
  7309. (onQueued): Use dispatcher member.
  7310. * src/BtPieceMessage.cc
  7311. (doReceivedAction): Use dispatcher member.
  7312. (send): Use peerConnection member.
  7313. (onWrongPiece): Use requestFactory member.
  7314. (handleChokingEvent): Use messageFactory, dispatcher member.
  7315. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7316. * src/BtMessageDispatcher.h
  7317. (BtMessageDispatcherWeakHandle): New type definition.
  7318. * src/SimpleBtMessage.cc
  7319. (send): Use peerConnection member.
  7320. * src/BtRejectMessage.cc
  7321. (doReceivedAction): Use dispatcher member.
  7322. * src/DefaultBtMessageDispatcher.h
  7323. (Option.h): Removed include.
  7324. (messageFactory): New variable.
  7325. (option): Removed.
  7326. (maxUploadSpeedLimit): New variable.
  7327. (requestTimeout): New variable.
  7328. (DefaultBtMessageDispatcher): Removed option.
  7329. Added maxUploadSpeedLimit, requestTimeout.
  7330. (setOption): Removed.
  7331. (getOption): Removed.
  7332. (setMaxUploadSpeedLimit): New function.
  7333. (setRequestTimeout): New function.
  7334. (setBtMessageFactory): New function.
  7335. * src/DefaultBtInteractive.h
  7336. (btMessageReceiver):
  7337. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7338. (dispatcher):
  7339. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7340. (btRequestFactory):
  7341. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7342. (peerConnection):
  7343. PeerConnectionHandle -> PeerConnectionWeakHandle
  7344. (messageFactory): New variable.
  7345. (option): Removed.
  7346. (keepAliveInterval): New variable.
  7347. (maxDownloadSpeedLimit): New variable.
  7348. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  7349. (setBtMessageReceiver):
  7350. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7351. (setDispatcher):
  7352. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7353. (setBtRequestFactory):
  7354. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7355. (setPeerConnection):
  7356. PeerConnectionHandle -> PeerConnectionWeakHandle
  7357. (setOption): Removed.
  7358. (setKeepAliveInterval): New function.
  7359. (setMaxDownloadSpeedLimit): New function.
  7360. (setBtMessageFactory): New function.
  7361. * src/BitfieldMan.h
  7362. (cachedNumMissingBlock): New variable.
  7363. (cachedNumFilteredBlock): New variable.
  7364. (cachedCompletedLength): New variable.
  7365. (cachedFilteredComletedLength): New variable.
  7366. (cachedFilteredTotalLength): New variable.
  7367. (countMissingBlockNow): New function.
  7368. (countFilteredBlockNow): New function.
  7369. (getFilteredTotalLengthNow): New function.
  7370. (getCompletedLengthNow): New function.
  7371. (getFilteredCompletedLengthNow): New function.
  7372. (updateCache): New function.
  7373. * src/AbstractBtMessage.h
  7374. (BtMessageDispatcher.h): New include.
  7375. (PeerConnection.h): New include.
  7376. (BtRequestFactory.h): New include
  7377. (BtMessageFactory.h): New include.
  7378. (dispatcher): New variable.
  7379. (messageFactory): New variable.
  7380. (peerConnection: New variable.
  7381. (setBtMessageDispatcher): New function.
  7382. (setPeerConnection): New function.
  7383. (setBtMessageFactory): New function.
  7384. (setBtRequestFactory): New function.
  7385. * src/DefaultBtMessageFactory.cc
  7386. (setCommonProperty): Set dispatcher, requestFactory, this,
  7387. peerConnection to msg.
  7388. * src/BtRegistry.h
  7389. (BT_MESSAGE_RECEIVER): New macro.
  7390. * src/PeerConnection.h
  7391. (PeerConnectionWeakHandle): New type definition.
  7392. * src/BtMessageFactory.h
  7393. (BtMessageFactoryWeakHandle): New type definition.
  7394. * src/BitfieldMan.cc
  7395. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  7396. cachedCompletedLength, cachedFilteredComletedLength,
  7397. cachedFilteredTotalLength.
  7398. Call updateCache().
  7399. (countMissingBlock): Return cachedNumMissingBlock.
  7400. (countMissingBlockNow): New function.
  7401. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  7402. (countFilteredBlockNow): New function.
  7403. (setBit): Call updateCache().
  7404. (unsetBit): Call updateCache().
  7405. (setBitfield): Call updateCache().
  7406. (clearAllBit): Call updateCache().
  7407. (setAllBit): Use setBitInternal instead of setBit.
  7408. Call updateCache().
  7409. (addFilter): Call updateCache().
  7410. (enableFilter): Call updateCache().
  7411. (disableFilter): Call updateCache().
  7412. (clearFilter): Call updateCache().
  7413. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  7414. (getFilteredTotalLengthNow): New function.
  7415. (getCompletedLength): Return cachedCompletedLength.
  7416. (getCompletedLengthNow): New function.
  7417. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  7418. (getFilteredCompletedLengthNow): New function.
  7419. (updateCache): New function.
  7420. * src/BtMessageReceiver.h
  7421. (BtMessageReceiverWeakHandle): New type definition.
  7422. * src/DefaultBtMessageReceiver.cc
  7423. (receiveHandshake): Use messageFactory member.
  7424. (sendHandshake): Use messageFactory member.
  7425. (receiveMessage): Use messageFactory member.
  7426. * src/DefaultBtMessageFactory.h
  7427. (dispatcher): New variable.
  7428. (requestFactory): New variable.
  7429. (peerConnection): New variablle.
  7430. (setBtMessageDispatcher): New function.
  7431. (setBtRequestFactory): New function.
  7432. (setPeerConnection): New function.
  7433. * src/SharedHandle.h
  7434. (RefCount): New class.
  7435. (WeakHandle): New class.
  7436. * src/PeerObject.h
  7437. (BtMessageReceiver.h): New include.
  7438. (PeerObject): Added btMessageReceiver.
  7439. (btMessageReceiver): New variable.
  7440. * src/Util.cc
  7441. (countBit): Simplified.
  7442. * src/BtCancelMessage.cc
  7443. (doReceivedAction): Use dispatcher member.
  7444. * src/BtRequestFactory.h
  7445. (BtRequestFactoryWeakHandle): New type definition.
  7446. * src/PeerStorage.h
  7447. (downloadSpeed): int -> uint32_t
  7448. (uploadSpeed): int -> uint32_t
  7449. (sessionDownloadLength): long long int -> uint64_t
  7450. (sessionUploadLength): long long int -> uint64_t
  7451. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. To add RecoverableException, FatalException:
  7453. * src/AbstractCommand.cc
  7454. (onAbort): Exception -> RecoverableException
  7455. * src/PeerAbstractCommand.h
  7456. (RecoverableException.h): New include.
  7457. (onAbort): Exception -> RecoverableException.
  7458. * src/PeerInteractionCommand.cc
  7459. (onAbort): Exception -> RecoverableException.
  7460. * src/PeerAbstractCommand.cc
  7461. (execute): Exception -> RecoverableException.
  7462. (onAbort): Exception -> RecoverableException.
  7463. * src/TorrentRequestInfo.cc
  7464. (execute): Exception -> RecoverableException.
  7465. * src/MetalinkRequestInfo.cc
  7466. (execute): Exception -> RecoverableException.
  7467. * src/MetaFileUtil.cc: RecoverableException.
  7468. * src/AbstractCommand.h
  7469. (onAbort): Exception -> RecoverableException.
  7470. * src/DlRetryEx.h: Exception -> RecoverableException.
  7471. * src/DlAbortEx.h: Exception -> RecoverableException.
  7472. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  7473. * src/Util.cc: Exception -> RecoverableException.
  7474. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  7475. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  7476. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  7477. To make ID static const int
  7478. * src/BtInterestedMessage.h
  7479. (ID_t): Removed.
  7480. (ID): New variable.
  7481. (getId): Made non-const.
  7482. * src/BtPieceMessage.h
  7483. (ID_t): Removed.
  7484. (ID): New variable.
  7485. (getId): Made non-const.
  7486. * src/BtChokeMessage.h
  7487. (ID_t): Removed.
  7488. (ID): New variable.
  7489. (getId): Made non-const.
  7490. * src/BtHaveAllMessage.h
  7491. (ID_t): Removed.
  7492. (ID): New variable.
  7493. (getId): Made non-const.
  7494. * src/BtKeepAliveMessage.h
  7495. (ID_t): Removed.
  7496. (ID): New variable.
  7497. (getId): Made non-const.
  7498. * src/BtHandshakeMessage.h
  7499. (ID): New variable.
  7500. (getId): Made non-const.
  7501. * src/BtSuggestPieceMessage.h
  7502. (ID_t): Removed.
  7503. (ID): New variable.
  7504. (getId): Made non-const.
  7505. * src/BtPortMessage.h
  7506. (ID_t): Removed.
  7507. (ID): New variable.
  7508. (getId): Made non-const.
  7509. * src/AbstractBtMessage.h
  7510. (id): Removed.
  7511. (AbstractBtMessage): Removed id.
  7512. (getId): Removed.
  7513. * src/BtHaveMessage.h
  7514. (ID_t): Removed.
  7515. (ID): New variable.
  7516. (getId): Made non-const.
  7517. * src/BtAllowedFastMessage.h
  7518. (ID_t): Removed.
  7519. (ID): New variable.
  7520. (getId): Made non-const.
  7521. * src/BtCancelMessage.h
  7522. (ID_t): Removed.
  7523. (ID): New variable.
  7524. (getId): Made non-const.
  7525. * src/BtNotInterestedMessage.h
  7526. (ID_t): Removed.
  7527. (ID): New variable.
  7528. (getId): Made non-const.
  7529. * src/BtChokeMessage.h
  7530. (ID_t): Removed.
  7531. (ID): New variable.
  7532. (getId): Made non-const.
  7533. * src/BtRejectMessage.h
  7534. (ID_t): Removed.
  7535. (ID): New variable.
  7536. (getId): Made non-const.
  7537. * src/BtBitfieldMessage.h
  7538. (ID_t): Removed.
  7539. (ID): New variable.
  7540. (getId): Made non-const.
  7541. * src/BtUnchokeMessage.h
  7542. (ID_t): Removed.
  7543. (ID): New variable.
  7544. (getId): Made non-const.
  7545. * src/BtRequestMessage.h
  7546. (ID_t): Removed.
  7547. (ID): New variable.
  7548. (getId): Made non-const.
  7549. * src/BtHaveMessage.h
  7550. (ID_t): Removed.
  7551. (ID): New variable.
  7552. (getId): Made non-const.
  7553. To add --force-truncate command-line option and a check whether
  7554. the file already exists:
  7555. * src/DirectDiskAdaptor.h
  7556. (getFilePath): Made virtual public.
  7557. * src/MultiDiskAdaptor.h
  7558. (File.h): New include.
  7559. (DiskWriterEntry::fileEntry): Made private.
  7560. (DiskWriterEntry::fileExists): New function.
  7561. (DiskWriterEntry::getFileEntry): New function.
  7562. (fileExists): New function.
  7563. (getFilePath): New function.
  7564. * src/TorrentRequestInfo.cc
  7565. (FatalException.h): New include.
  7566. (message.h): New include.
  7567. (RecoverableException.h): New include.
  7568. (execute): Added a check whether file is already exists or not.
  7569. * src/DiskAdaptor.h
  7570. (fileExists): New function.
  7571. (getFilePath): New function.
  7572. * src/main.cc
  7573. (showUsage): Added an explanation of --force-truncate command-line
  7574. option.
  7575. (main): Added --force-truncate command-line option.
  7576. * src/Exception.h
  7577. (setMsg): buf[256] -> buf[1024]
  7578. * src/CopyDiskWriter.h
  7579. (getFilePath): Made public virtual.
  7580. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  7581. (fileExists): New function.
  7582. * src/DownloadEngineFactory.cc
  7583. (newTorrentConsoleEngine): Don't open file here.
  7584. * src/message.h
  7585. (EX_FILE_ALREADY_EXISTS): New definition.
  7586. * src/prefs.h
  7587. (PREF_FOECE_TRUNCATE): New definition.
  7588. * src/HttpResponseCommand.cc
  7589. (handleDefaultEncoding): Added a check whether the file already exists.
  7590. * src/SegmentMan.h
  7591. (fileExists): New function.
  7592. (shouldCancelDownloadForSafety): New function.
  7593. * src/FtpNegotiateCommand.cc
  7594. (recvSize): Added a check whether the file already exists.
  7595. * src/AbstractSingleDiskAdaptor.cc
  7596. (File.h): New include.
  7597. (fileExists): New function.
  7598. * src/AbstractSingleDiskAdaptor.h
  7599. (getFilePath): Removed.
  7600. (fileExists): New function.
  7601. * src/SegmentMan.cc
  7602. (fileExists): New function.
  7603. (shouldCancelDownloadForSafety): New function.
  7604. To fix regression bug in torrent downloading:
  7605. * src/DefaultBtRequestFactory.cc
  7606. (doChokedAction): New function.
  7607. * src/DefaultBtRequestFactory.h
  7608. (doChokedAction): New function.
  7609. * src/DefaultBtMessageDispatcher.cc
  7610. (doChokedAction): Do not delete request if its target is in allowed
  7611. fast set.
  7612. * src/DefaultBtInteractive.cc
  7613. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  7614. (sendKeepAlive): Send keep alive message even if the outgoing message
  7615. queue is not empty.
  7616. (decideInterest): Simplified the code.
  7617. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  7618. it is already called when BtChokeMessage is received from a peer.
  7619. * src/BtRequestFactory.h
  7620. (doChokedAction): New function.
  7621. To clean up code:
  7622. * src/PeerInteractionCommand.h
  7623. (executeInternal): Added virtual keyword explicitly.
  7624. (prepareForRetry): Added virtual keyword explicitly.
  7625. (prepareForNextPeer): Added virtual keyword explicitly.
  7626. (onAbort): Added virtual keyword explicitly.
  7627. * src/RequestSlot.cc
  7628. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  7629. * src/BtPieceMessage.cc
  7630. (doReceivedAction): Added a debug log of piece's bitfield.
  7631. * src/Piece.h
  7632. (getBitfieldLength): New function.
  7633. * src/ByteArrayDiskWriter.cc
  7634. (clear): Added buf = 0 to avoid double free corruption.
  7635. * src/FileAllocator.cc
  7636. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  7637. Added cp.reset().
  7638. * src/BitfieldMan.h
  7639. (operator=): Rewritten.
  7640. * src/BitfieldMan.cc
  7641. (BitfieldMan): Initialized bitfield, useBitfield.
  7642. * src/PeerConnection.cc
  7643. (receiveMessage): Added a call to socket->readable() after getting
  7644. message length to avoid possible EOF.
  7645. * src/Util.cc
  7646. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7647. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. To add an ability to pre-allocate file space:
  7649. * src/DirectDiskAdaptor.h: Rewritten.
  7650. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7651. * src/MultiDiskAdaptor.h: Rewritten.
  7652. * src/DefaultPieceStorage.cc
  7653. (MultiDiskWriter.h): Removed include.
  7654. (PreAllocationDiskWriter.h): Removed include.
  7655. (FileAllocationMonitor.h): New include.
  7656. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7657. (initStorage): Rewritten.
  7658. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7659. * src/FileAllocator.h: New class.
  7660. * src/FileAllocator.cc: New class.
  7661. * src/FileAllocationMonitor.h: New class.
  7662. * src/FileAllocationMonitor.cc: New class.
  7663. * src/ConsoleFileAllocationMonitor.h: New class.
  7664. * src/ConsoleFileAllocationMonitor.cc: New class.
  7665. * src/AbstractSingleDiskAdaptor.h: New class.
  7666. * src/AbstractSingleDiskAdaptor.cc: New class.
  7667. * src/DiskAdaptor.h
  7668. (Directory.h): Removed include.
  7669. (DiskWriter.h): Removed include.
  7670. (FileEntry.h): Removed include.
  7671. (diskWriter): Removed.
  7672. (DiskAdaptor): Removed diskWriter.
  7673. (openFile): Made pure virtual.
  7674. (closeFile): Made pure virtual.
  7675. (openExistingFile): Made pure virtual.
  7676. (initAndOpenFile): Made pure virtual.
  7677. (writeData): Made pure virtual.
  7678. (readData): Made pure virtual.
  7679. (sha1Sum): Made pure virtual.
  7680. (getStoreDir): Returns const reference of storeDir.
  7681. (DiskAdaptorHandle): New type definition.
  7682. * src/main.cc
  7683. (ConsoleFileAllocationMonitor.h): New include.
  7684. (showUsage): Added default value description of -s option.
  7685. Added the description of --file-allocation option.
  7686. (main): Set default value of --file-allocation option to 'none'.
  7687. Added --file-allocation command-line option.
  7688. Setup FileAllocationMonitorFactory.
  7689. * src/FtpInitiateConnectionCommand.cc
  7690. (executeInternal): Removed diskWriter related processing, which was
  7691. moved to FtpNegotiationCommand.cc.
  7692. * src/DirectDiskAdaptor.cc
  7693. (getFilePath): Made non-const.
  7694. * src/CopyDiskAdaptor.h
  7695. (DiskAdaptor.h): Removed include.
  7696. (DiskWriter.h): Removed include.
  7697. (AbstractSingleDiskAdaptor.h): New include.
  7698. (getFilePath): Made non-const. Added virtual keyword.
  7699. (CopyDiskAdaptor): Removed diskWriter.
  7700. (getTempFile): Returns const reference.
  7701. (CopyDiskAdaptorHandle): New type definition.
  7702. * src/ByteArrayDiskWriter.cc
  7703. (clear): Simplified.
  7704. (initAndOpenFile): Rewritten.
  7705. (openFile): Call initAndOpenFile()
  7706. * src/MultiDiskAdaptor.cc: Rewritten.
  7707. * src/DownloadEngineFactory.cc
  7708. (FileAllocator.h): New include.
  7709. (FileAllocationMonitor.h): New include.
  7710. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7711. create DefaultDiskWriter with file allocator.
  7712. * src/DiskWriter.h
  7713. (initAndOpenFile): Added totalLength argument.
  7714. (openFile): Added totalLength argument.
  7715. * src/prefs.h
  7716. (PREF_FILE_ALLOCATION): New definition.
  7717. (V_PREALLOC): New definition.
  7718. (V_NONE): New definition.
  7719. * src/HttpResponseCommand.cc
  7720. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7721. size.
  7722. * src/FtpNegotiateCommand.cc
  7723. (Util.h): New include.
  7724. (recvSize): Open file here.
  7725. * src/Util.h
  7726. (ullitos): New function.
  7727. * src/CopyDiskWriter.h
  7728. (getFilePath): Made non-const.
  7729. * src/DefaultDiskWriter.h
  7730. (Option.h): New include.
  7731. (totalLength): Removed.
  7732. (DefaultDiskWriter): Removed totalLength.
  7733. (initAndOpenFile): Added totalLength argument.
  7734. (DefaultDiskWriterHandle): New type definition.
  7735. (createNewDiskWriter): New function.
  7736. * src/Util.cc
  7737. (ullitos): New function.
  7738. * src/DefaultDiskWriter.cc
  7739. (message.h): New include.
  7740. (FileAllocator.h): New include.
  7741. (prefs.h): New include.
  7742. (Util.h): New include.
  7743. (DefaultDiskWriter): Removed totalLength.
  7744. (initAndOpenFile): Added file allocation.
  7745. (createNewDiskWriter): New function. Just for temporary solution.
  7746. It will be rewritten later.
  7747. * src/DiskAdaptor.cc
  7748. (DiskAdaptor): Removed diskWriter.
  7749. * src/AbstractDiskWriter.cc
  7750. (LogFactory.h): New include.
  7751. (AbstractDiskWriter): Added fileAllocator, logger.
  7752. (openFile): Added totalLength argument.
  7753. * src/AbstractDiskWriter.h
  7754. (FileAllocator.h): New include.
  7755. (Logger.h): New include.
  7756. (fileAllocator): New variable.
  7757. (logger): New variable.
  7758. (openFile): Added totalLength argument. Added virtual keyword
  7759. explicitly.
  7760. (openExistingFile): Added totalLength argument. Added virtual keyword
  7761. explicitly.
  7762. (closeFile): Added virtual keyword explicitly.
  7763. (sha1Sum): Added virtual keyword explicitly.
  7764. (writeData): Added virtual keyword explicitly.
  7765. (readData): Added virtual keyword explicitly.
  7766. (setFileAllocator): New function.
  7767. * src/DefaultPieceStorage.h
  7768. (FileAllocator.h): New include.
  7769. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7770. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7771. * src/FileProgressMonitor.h: New class.
  7772. To compile aria2 on PC-BSD:
  7773. * src/DefaultBtContext.cc
  7774. (libgen.h): New include.
  7775. To fix memory leak:
  7776. * src/Exception.h
  7777. (~Exception): Delete cause. Fixed memory leak.
  7778. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Rewritten a portion of bittorrent implementation:
  7780. * src/BtMessageValidator.h: New class.
  7781. * src/BtBitfieldMessageValidator.h: New class.
  7782. * src/BtHandshakeMessageValidator.h: New class.
  7783. * src/BtRequestMessageValidator.h: New class.
  7784. * src/BtSuggestPieceMessageValidator.h: New class.
  7785. * src/BtAllowedFastMessageValidator.h: New class.
  7786. * src/BtRejectMessageValidator.h: New class.
  7787. * src/BtCancelMessageValidator.h: New class.
  7788. * src/BtPieceMessageValidator.h: New class.
  7789. * src/BtHaveMessageValidator.h: New class.
  7790. * src/BtEventListener.h: New class.
  7791. * src/AbstractBtEventListener.h: New class.
  7792. * src/BtEvent.h: New class.
  7793. * src/BtChokingEvent.h: New class.
  7794. * src/BtChokedEvent.h: New class.
  7795. * src/BtCancelSendingPieceEvent.h: New class.
  7796. * src/BtAbortOutstandingRequestEvent.h: New class.
  7797. * src/Randomizer.h: New class.
  7798. * src/SimpleRandomizer.h: New class.
  7799. * src/BtMessage.h: New class.
  7800. * src/AbstractBtMessage.h: New class.
  7801. * src/SimpleBtMessage.h: New class.
  7802. * src/BtHaveMessage.h: New class.
  7803. * src/BtInterestedMessage.h: New class.
  7804. * src/BtAllowedFastMessage.h: New class.
  7805. * src/BtUnchokeMessage.h: New class.
  7806. * src/BtCancelMessage.h: New class.
  7807. * src/BtNotInterestedMessage.h: New class.
  7808. * src/BtChokeMessage.h: New class.
  7809. * src/BtHaveNoneMessage.h: New class.
  7810. * src/BtHandshakeMessage.h: New class.
  7811. * src/BtSuggestPieceMessage.h: New class.
  7812. * src/BtHaveMessage.h: New class.
  7813. * src/BtPieceMessage.h: New class.
  7814. * src/BtHaveAllMessage.h: New class.
  7815. * src/BtKeepAliveMessage.h: New class.
  7816. * src/BtPortMessage.h: New class.
  7817. * src/BtRejectMessage.h: New class.
  7818. * src/BtBitfieldMessage.h: New class.
  7819. * src/BtRequestMessage.h: New class.
  7820. * src/DefaultBtRequestFactory.h: New class.
  7821. * src/DefaultBtMessageReceiver.h: New class.
  7822. * src/BtInteractive.h: New class.
  7823. * src/BtMessageDispatcher.h: New class.
  7824. * src/DefaultBtMessageDispatcher.h: New class.
  7825. * src/DefaultBtInteractive.h: New class.
  7826. * src/BitfieldManFactory.h: New class.
  7827. * src/HandleRegistry.h: New class.
  7828. * src/BtMessageFactory.h: New class.
  7829. * src/BtMessageReceiver.h: New class.
  7830. * src/DefaultBtMessageFactory.h: New class.
  7831. * src/PeerObject.h: New class.
  7832. * src/BtRequestFactory.h: New class.
  7833. * src/SuggestPieceMessage.h: Removed.
  7834. * src/PortMessage.h: Removed.
  7835. * src/SuggestPieceMessage.h: Removed.
  7836. * src/KeepAliveMessage.h: Removed.
  7837. * src/HandshakeMessage.h: Removed.
  7838. * src/PeerInteraction.h: Removed.
  7839. * src/UnchokeMessage.h: Removed.
  7840. * src/PieceMessage.h: Removed.
  7841. * src/RequestMessage.h: Removed.
  7842. * src/InterestedMessage.h: Removed.
  7843. * src/HaveMessage.h: Removed.
  7844. * src/CancelMessage.h: Removed.
  7845. * src/RejectMessage.h: Removed.
  7846. * src/AllowedFastMessage.h: Removed.
  7847. * src/HaveNoneMessage.h: Removed.
  7848. * src/SimplePeerMessage.h: Removed.
  7849. * src/HaveAllMessage.h: Removed.
  7850. * src/BitfieldMessage.h: Removed.
  7851. * src/PeerMessageFactory.h: Removed.
  7852. * src/NotInterestedMessage.h: Removed.
  7853. * src/ChokeMessage.h: Removed.
  7854. * src/PeerMessage.h: Removed.
  7855. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. To know root cause of exception:
  7857. * src/Exception.h
  7858. (cause): New variable.
  7859. (Exception): Added a parameter.
  7860. (getMsg): Return const reference to msg.
  7861. (getCause): New function.
  7862. * src/DlRetryEx.h
  7863. (DlRetryEx): Added a parameter 'cause'.
  7864. Added an overloaded constructor.
  7865. (DlAbortEx): Added a parameter 'cause'.
  7866. Added an overloaded constructor.
  7867. * src/SimpleLogger.cc
  7868. (writeLog): Log nested exception messages recursively.
  7869. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. * src/DefaultBtProgressInfoFile.cc
  7871. (load): Fixed memory leak when the infohash doesn't match.
  7872. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. * src/DefaultPeerStorage.cc
  7874. (calculateStat): Simplified the code by combining 2 loops into 1.
  7875. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7877. for BitTorrent download:
  7878. * src/PeerAbstractCommand.cc
  7879. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7880. * src/main.cc:
  7881. (timeoutSpecified): Removed.
  7882. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7883. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7884. * src/TorrentRequestInfo.cc
  7885. (timeoutSpecified): Removed.
  7886. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7887. timeout value.
  7888. * src/prefs.h
  7889. (PREF_BT_TIMEOUT): New definition.
  7890. Delete unused variables:
  7891. * src/TorrentRequestInfo.cc
  7892. (requestInfo): Removed.
  7893. Move setSignalHander to Util::setGlobalSignalHandler:
  7894. * src/TorrentRequestInfo.cc:
  7895. setSignalHander -> Util::setGlobalSignalHandler
  7896. * src/main.cc
  7897. (setSignalHander): Removed.
  7898. (main): setSignalHander -> Util::setGlobalSignalHandler
  7899. * src/Util.h
  7900. (setGlobalSignalHandler): New function.
  7901. * src/Util.cc
  7902. (setGlobalSignalHandler): New function.
  7903. * src/UrlRequestInfo.cc:
  7904. setSignalHander -> Util::setGlobalSignalHandler
  7905. Reset peer status in order to exit gracefully:
  7906. * src/PeerAbstractCommand.cc
  7907. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7908. To fix the bug that causes the number of bytes uploaded is not saved
  7909. to .aria2 file:
  7910. * src/DefaultPeerStorage.h
  7911. (removedPeerSessionDownloadLength): New variable.
  7912. (removedPeerSessionUploadLength): New variable.
  7913. * src/DefaultPeerStorage.cc
  7914. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7915. removedPeerSessionUploadLength(0).
  7916. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7917. through all peers, and then add removedPeerSessionDownloadLength(
  7918. removedPeerSessionUploadLength) to it.
  7919. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7920. (to) the peer to removedPeerSessionDownloadLength
  7921. (removedPeerSessionUploadLength).
  7922. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7923. To add Metalink location option:
  7924. * src/MetalinkRequestInfo.cc
  7925. (execute): Call MetalinkEntry::setLocationPreference()
  7926. * src/main.cc
  7927. (showUsage): Added the help message for --metalink-location option.
  7928. (main): Added --metalink-location option.
  7929. * src/prefs.h
  7930. (PREF_METALINK_LOCATION): New definition.
  7931. * src/MetalinkEntry.cc
  7932. (AddLocationPreference): New function object.
  7933. (setLocationPreference): New function.
  7934. * src/Xml2MetalinkProcessor.cc
  7935. (getResource): Set location attribute to MetalinkResource
  7936. To show URLs to download
  7937. * src/UrlRequestInfo.h
  7938. (printUrls): New function.
  7939. To add multiple <file> Metalink support:
  7940. * src/MetalinkEntry.h
  7941. (MetalinkResources): Removed.
  7942. (setLocationPreference): New function.
  7943. (MetalinkEntryHandle): New type definition.
  7944. (MetalinkEntries): New type definition.
  7945. * src/Xml2MetalinkProcessor.h
  7946. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7947. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7948. (parseFile): Metalinker* -> MetalinkerHandle
  7949. * src/UrlRequestInfo.h
  7950. (execute): RequestInfo* -> RequestInfos
  7951. * src/MetalinkRequestInfo.cc
  7952. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7953. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7954. (execute): RequestInfo* -> RequestInfos
  7955. Added multiple <file> support. Print filename when it is queued.
  7956. * src/MetalinkRequestInfo.h
  7957. (execute): RequestInfo* -> RequestInfos
  7958. (getDownloadEngine): Removed.
  7959. * src/RequestInfo.h
  7960. (RequestInfoHandle): New type definition.
  7961. (RequestInfos): New type definition.
  7962. (execute): RequestInfo* -> RequestInfos
  7963. (getDownloadEngine): Removed.
  7964. * src/MetalinkResource.h
  7965. (MetalinkResourceHandle): New type definition.
  7966. (MetalinkResources): New type definition.
  7967. * src/MetalinkEntry.cc
  7968. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7969. because the element is now of type MetalinkResourceHandle.
  7970. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7971. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7972. (dropUnsupportedResource): Removed the deletion of the elements of
  7973. resources because the element is now of type MetalinkResourceHandle.
  7974. * src/Xml2MetalinkProcessor.cc
  7975. (parseFile): Metalinker* -> MetalinkerHandle
  7976. MetalinkEntry* -> MetalinkEntryHandle
  7977. Removed try-catch block.
  7978. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7979. MetalinkResource* -> MetalinkResourceHandle
  7980. Removed try-catch block.
  7981. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7982. Free result by using xmlXPathFreeObject()
  7983. * src/Metalinker.cc
  7984. (~Metalinker): Removed the deletion of entries.
  7985. MetalinkEntry* -> MetalinkEntryHandle
  7986. (queryEntry): Add multiple <file> Metalink support.
  7987. * src/Metalinker.h
  7988. (MetalinkEntries): Removed.
  7989. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7990. * src/MetalinkProcessor.h
  7991. (parseFile): Metalinker* -> MetalinkerHandle
  7992. Bug fixes:
  7993. * src/PeerChokeCommand.cc
  7994. (execute): cat01->cat02
  7995. * src/DefaultPieceStorage.cc
  7996. (DefaultPieceStorage): Added diskAdaptor(0)
  7997. * src/TrackerWatcherComand.cc:
  7998. (execute): Use btAnnounce->noMoreAnnounce()
  7999. to determin whether the function returns true or not.
  8000. * src/TrackerUpdateCommand.cc:
  8001. (execute): Use btAnnounce->noMoreAnnounce()
  8002. to determin whether the function returns true or not.
  8003. * src/FtpConnection.cc
  8004. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8005. This is the fix of the busy loop bug.
  8006. * src/DownloadCommand.cc
  8007. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8008. cached PeerStat.
  8009. The value of "name" entry in torrent file is now set by
  8010. *DiskAdaptor::setTopDir(...) methods.
  8011. * src/MultiDiskAdaptor.h
  8012. (topDir): New variable.
  8013. (setTopDir): New function.
  8014. (getTopDir): New function.
  8015. * src/MultiDiskAdaptor.cc
  8016. (getFilePath): Concat storDir, "/" and topDir.
  8017. (mkdir): Use getFilePath() to get the directory path for output.
  8018. * src/DefaultPieceStorage.cc
  8019. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8020. CopyDiskAdaptor.
  8021. * src/CopyDiskAdaptor.h
  8022. (topDir): New variable.
  8023. (setTopDir): New function.
  8024. (getTopDir): New function.
  8025. * src/CopyDiskAdaptor.cc
  8026. (fixFilename): Updated.
  8027. Misc
  8028. * src/UrlRequestInfo.h
  8029. (e): Removed.
  8030. (UrlRequestInfo): Removed e.
  8031. (getDownloadEngine): Removed.
  8032. * src/UrlRequestInfo.cc
  8033. (handler): Rewritten.
  8034. (printUrls): New function.
  8035. (execute): Call printUrls().
  8036. * src/HandshakeMessage.cc
  8037. (check): peerinteraction->getBtContext() -> btContext
  8038. * src/PeerInteraction.h
  8039. (getBtContext): Removed.
  8040. * src/TorrentRequestInfo.h
  8041. (execute): RequestInfo* -> RequestInfos
  8042. (getDownloadEngine): Removed.
  8043. * src/TorrentRequestInfo.cc
  8044. (haltRequested): Removed.
  8045. (btHaltRequested): New variable.
  8046. (torrentHandler): haltRequested -> btHaltRequested
  8047. (execute): RequestInfo* -> RequestInfos
  8048. * src/TorrentConsoleDownloadEngine.cc
  8049. (afterEachIteration): haltRequested -> btHaltRequested.
  8050. * src/ConsoleDownloadEngine.h
  8051. (initStatistics): Added virtual.
  8052. (calculateStatistics): Added virtual.
  8053. (onEndOfRun): Added virtual.
  8054. (afterEachIteration): Added virtual.
  8055. * src/ConsoleDownloadEngine.cc
  8056. (haltRequested): New variable.
  8057. (afterEachIteration): New function.
  8058. * src/main.cc
  8059. (requestInfo): Removed.
  8060. * src/SegmentMan.cc
  8061. (findSlowerSegmentEntry): Refactored.
  8062. * Release 0.9.0
  8063. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8065. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8066. * src/TorrentMan.h: Removed.
  8067. * src/TorrentMan.cc: Removed.
  8068. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8069. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8070. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8071. * src/PeerAbstractCommand.cc: Use btRuntime.
  8072. * src/BtContextAwareCommand.h: New class.
  8073. * src/FileEntry.h: Added accessor methods for following variables.
  8074. (path): Made private.
  8075. (length): Made private.
  8076. (offset): Made private.
  8077. (extracted): Made private.
  8078. (requested): Made private.
  8079. (FileEntries): New definition.
  8080. (FileEntryHandle): New definition.
  8081. * src/FileEntry.cc: New file.
  8082. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8083. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8084. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8085. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8086. * src/PieceStorage.h: New file.
  8087. * src/PeerInteractionCommand.h: Use btContext.
  8088. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8089. btRuntime.
  8090. * src/DefaultBtProgressInfoFile.h: New file.
  8091. * src/DefaultBtProgressInfoFile.cc: New file.
  8092. * src/File.cc
  8093. (Util.h): New include.
  8094. (mkdirs): New function.
  8095. * src/MultiDiskAdaptor.h
  8096. (mkdir): New function.
  8097. * src/PeerListProcessor.h
  8098. (Peers): Removed.
  8099. * src/PeerInteraction.h
  8100. (torrentMan): Removed.
  8101. (btContext): New variable.
  8102. (peerStorage): New variable.
  8103. (pieceStorage): New variable.
  8104. (btAnnounce): New variable.
  8105. (getTorrentMan): Removed.
  8106. (getBtContext): New function.
  8107. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  8108. btAnnounce.
  8109. * src/HandshakeMessage.h
  8110. (TorrentMan.h): Removed.
  8111. * src/HandshakeMessage.cc: Use btContext.
  8112. * src/DefaultBtAnnounce.cc: New file.
  8113. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8114. * src/DefaultPieceStorage.cc: New file.
  8115. * src/DefaultBtContext.h: New file.
  8116. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8117. Use the accessor methods of FileEntry.
  8118. * src/CookieBox.cc: Updated to use Util::slice().
  8119. * src/PieceMessage.cc: Use btContext, pieceStorage.
  8120. * src/common.h (SharedHandle.h): New include.
  8121. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  8122. pieceStorage.
  8123. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  8124. * src/DiskAdaptor.h
  8125. (topDir): Removed.
  8126. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  8127. (setTopDir): Removed.
  8128. (getTopDir): Removed.
  8129. * src/BtContext.h: New file.
  8130. * src/DefaultPeerStorage.h: New file.
  8131. * src/PieceMessage.h (TorrentMan.h): Removed.
  8132. * src/RequestMessage.h (TorrentMan.h): Removed.
  8133. * src/TorrentDownloadEngine.h
  8134. (uploadLength): New variable.
  8135. (btContext): New variable.
  8136. (btRuntime): New variable.
  8137. (pieceStorage): New variable.
  8138. (peerStorage): New variable.
  8139. (btAnnounce): New variable.
  8140. (btProgressInfoFile): New variable.
  8141. (torrentMan): Removed.
  8142. (setBtContext): New function.
  8143. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8144. peerStorage, btAnnounce, btProgressInfoFile.
  8145. * src/Piece.h
  8146. (toString): New function.
  8147. (Pieces): New type definition.
  8148. * src/Peer.h
  8149. (active): New variable.
  8150. (Peer): Added active.
  8151. (activate): Set active to true.
  8152. (deactivate): Set active to false.
  8153. (isActive): New function.
  8154. (Peers): New type definition.
  8155. * src/DirectDiskAdaptor.cc
  8156. (getFilePath): Use the accessor methods of FileEntry.
  8157. * src/TorrentConsoleDownloadEngine.h
  8158. (afterEachIteration): New function.
  8159. * src/TorrentConsoleDownloadEngine.cc
  8160. (haltRequested): New variable.
  8161. (sendStatistics): Use pieceStorage, btRuntime.
  8162. (afterEachIteration): New function.
  8163. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8164. * src/Directry.h
  8165. (Directory): New function.
  8166. (DirectoryHandle): New type definition.
  8167. * src/BtProgressInfoFile.h: New file.
  8168. * src/RequestMessage.cc: Use pieceStorage.
  8169. * src/BtRuntime.h: New file.
  8170. * src/DefaultBtContext.cc: New file.
  8171. * src/BitfieldMan.h
  8172. (getCompletedLength): New function(private).
  8173. (getCompletedLength): New function.
  8174. (getFilteredCompletedLength): New function.
  8175. * src/BitfieldMan.h
  8176. (getCompletedLength): New function(private).
  8177. (getCompletedLength): New function.
  8178. (getFilteredCompletedLength): New function.
  8179. * src/MultiDiskAdaptor.cc
  8180. (mkdir): New function.
  8181. (openFile): Call mkdir().
  8182. (initAndOpenFile): Call mkdir().
  8183. * src/CancelMessage.h
  8184. (TorrentMan.h): Removed.
  8185. * src/RejectMessage.h
  8186. (TorrentMan.h): Removed.
  8187. * src/DownloadEngineFactory.cc
  8188. (DefaultPieceStorage.h): New include.
  8189. (DefaultPeerStorage.h): New include.
  8190. (DefaultBtAnnounce.h): New include.
  8191. (DefaultBtProgressInfoFile.h): New include.
  8192. (newTorrentConsoleEngine): Rewritten.
  8193. * src/ShareRatioSeedCriteria.h
  8194. (torrentMan): Removed.
  8195. (btContext): New variable.
  8196. (peerStorage): New variable.
  8197. (btRuntime): New variable.
  8198. (evaluate): Use btContext, btRuntime, peerStorage.
  8199. * src/AnnounceTier.h: New file.
  8200. * src/BtAnnounce.h: New file.
  8201. * src/BtRegistry.h: New file.
  8202. * src/PeerInitiateConnectionCommand.h: Added btContext.
  8203. * src/PeerConnection.h (TorrentMan.h): Removed.
  8204. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  8205. * src/Util.h
  8206. (slice): Added an argument.
  8207. * src/Util.cc
  8208. (slice): Added an argument to control whether trim is made or not.
  8209. * src/PeerStorage.h: New file.
  8210. * src/BtRegistry.cc: New file.
  8211. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  8212. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  8213. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  8214. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  8215. * src/TorrentRequestInfo.h
  8216. (e): Removed.
  8217. (showFileEntry): Added an argument.
  8218. (getDownloadEngine): Return 0.
  8219. * src/DefaultBtAnnounce.h: New file.
  8220. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  8221. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  8222. * src/PeerMessageFactory.h
  8223. (btContext): New variable.
  8224. (pieceStorage): New variable.
  8225. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  8226. btAnnounce.
  8227. * src/DiskAdaptor.cc
  8228. (DiskAdaptor): Removed topDir.
  8229. (~DiskAdaptor): Removed topDir.
  8230. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  8231. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  8232. * src/File.h (mkdirs): New function.
  8233. * src/DefaultPeerStorage): New file.
  8234. * src/DownloadEngineFactory.h
  8235. (newTorrentConsoleEngine): Use btContext.
  8236. * src/BtContextAwareCommand.cc: New file.
  8237. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  8238. * src/PeerMessage.h
  8239. (btContext): New variable.
  8240. (peerStorage): New variable.
  8241. (pieceStorage): New variable.
  8242. (setBtContext): New function.
  8243. * src/Directry.cc
  8244. (Directory): New function.
  8245. (createDir): Do nothing if name.size() == 0.
  8246. * src/AnnounceList.h
  8247. (AnnounceTier): Removed.
  8248. (AnnounceTiers): Removed.
  8249. * src/DefaultPieceStorage.h: New file.
  8250. * src/Piece.cc (toString): New function.
  8251. To fix typo:
  8252. * src/main.cc (showVersion): Fixed typo.
  8253. To fix compile warning:
  8254. * src/DelegatingPeerListProcessor.cc
  8255. (canHandle): Added "return false".
  8256. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  8258. make the process of announce request testable.
  8259. * src/TrackerWatcherCommand.h
  8260. (TimeA2.h): Removed.
  8261. (interval): Removed.
  8262. (checkPoint): Removed.
  8263. (createRequestCommand): Added an argument 'url'.
  8264. (TrackerWatherCommand): Removed interval.
  8265. (createCommand): New function.
  8266. * src/DownloadEngineFactory.cc
  8267. (newTorrentConsoleEngine): Updated according to the changes in
  8268. TrackerWatherCommand.
  8269. * src/TorrentMan.cc
  8270. (DelegatingPeerListProcessor.h): New includes.
  8271. (TorrentMan): Added the initialization of announceInterval.
  8272. (isStoppedAnnounceReady): New function.
  8273. (isCompletedAnnounceReady): New function.
  8274. (isDefaultAnnounceReady): New function.
  8275. (isAnnounceReady): New function.
  8276. (getAnnounceUrl): New function.
  8277. (announceStart): New function.
  8278. (announceFailure): New function.
  8279. (announceSuccess): New function.
  8280. (isAllAnnounceFailed): New function.
  8281. (resetAnnounce): New function.
  8282. (processAnnounceResponse): New function.
  8283. (needMorePeerConnection): New function.
  8284. (noMoreAnnounce): New function.
  8285. * src/TrackerUpdateCommand.h
  8286. (getTrackerResponse): int->size_t
  8287. * src/TorrentMan.h
  8288. (isStoppedAnnounceReady): New function.
  8289. (isCompletedAnnounceReady): New function.
  8290. (isDefaultAnnounceReady): New function.
  8291. (announceInterval): New variable.
  8292. (isAnnounceReady): New function.
  8293. (getAnnounceUrl): New function.
  8294. (announceStart): New function.
  8295. (announceFailure): New function.
  8296. (announceSuccess): New function.
  8297. (isAllAnnounceFailed): New function.
  8298. (resetAnnounce): New function.
  8299. (processAnnounceResponse): New function.
  8300. (needMorePeerConnection): New function.
  8301. (noMoreAnnounce): New function.
  8302. * src/TrackerWatcherCommand.cc
  8303. (TrackerWatherCommand): Removed interval and checkPoint.
  8304. (execute): Rewritten.
  8305. (createCommand): New function.
  8306. (createRequestCommand): Rewritten.
  8307. * src/TrackerUpdateCommand.cc
  8308. (MetaFileUtil.h): Removed.
  8309. (DelegatingPeerListProcessor.h): Removed.
  8310. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8311. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Request -> RequestHandle:
  8313. * src/HttpResponseCommand.h: Request->RequestHandle
  8314. * src/AbstractCommand.cc: Request->RequestHandle
  8315. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8316. * src/HttpRequestCommand.cc: Request->RequestHandle
  8317. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8318. * src/AbstractCommand.h: Request->RequestHandle
  8319. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8320. * src/HttpResponseCommand.cc: Request->RequestHandle
  8321. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8322. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8323. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8324. * src/HttpConnection.h: Request->RequestHandle
  8325. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8326. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8327. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8328. * src/DownloadCommand.h: Request->RequestHandle
  8329. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  8330. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  8331. * src/HttpRequestCommand.h: Request->RequestHandle
  8332. * src/FtpNegotiateCommand.h: Request->RequestHandle
  8333. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8334. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  8335. * src/HttpDownloadCommand.h: Request->RequestHandle
  8336. * src/FtpConnection.cc: Request->RequestHandle
  8337. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  8338. * src/UrlRequestInfo.cc: Request->RequestHandle
  8339. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  8340. * src/HttpConnection.h: Request->RequestHandle
  8341. * src/DownloadCommand.cc: Request->RequestHandle
  8342. * src/FtpConnection.h: Request->RequestHandle
  8343. * src/FtpDowndloadCommand.h: Request->RequestHandle
  8344. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  8345. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  8346. * src/Request.h
  8347. (SharedHandle.h): New include.
  8348. (RequestHandle): New type definition.
  8349. (Requests): Redefined.
  8350. To add MULTITRACKER support:
  8351. * src/TrackerWatcherCommand.h
  8352. (createRequestCommand): New function.
  8353. * src/DownloadEngineFactory.cc
  8354. (newTorrentConsoleEngine): Removed req.
  8355. * src/prefs.h
  8356. (PREF_TRACKER_MAX_TRIES): New definition.
  8357. * src/TorrentMan.cc
  8358. (TorrentMan): Removed req. Added trackerNumTry.
  8359. (~TorrentMan): Removed req.
  8360. (setupInternal1): Added announceList.
  8361. * src/TorrentRequestInfo.cc
  8362. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  8363. announces is now specified by PREF_TRACKER_MAX_TRIES.
  8364. * src/main.cc
  8365. (main): Added PREF_TRACKER_MAX_TRIES.
  8366. * src/TorrentMan.h
  8367. (Request.h): Removed.
  8368. (AnnounceList.h): New include.
  8369. (trackerNumTry): New variable.
  8370. (req): Removed.
  8371. (announceList): New variable.
  8372. * src/TrackerWatcherCommand.cc
  8373. (execute): Rewritten.
  8374. (createRequestCommand): New function.
  8375. * src/TrackerUpdateCommand.cc
  8376. (execute): Updated with the use of AnnounceList.
  8377. * src/AnnounceList.cc: New class.
  8378. * src/AnnounceList.h: New class.
  8379. To fix typo:
  8380. * src/prefs.h
  8381. (PREF_MAX_TRIES): max_try->max_tries
  8382. To not to decode "+" as space in URL decode:
  8383. * src/Util.cc
  8384. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8385. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. To add timeout to async name resolution:
  8387. * src/AbstractCommand.h
  8388. (nameResolveFinished): New function. This is not elegant way. It needs
  8389. to be more refined.
  8390. (nameResolverCheck): New variable.
  8391. * src/AbstractCommand.cc
  8392. (AbstractCommand): Added nameResolverCheck.
  8393. (execute): Added the check whether the name resolution has finished.
  8394. (setNameResolverCheck): Set nameResolverCheck to true.
  8395. (disableNameResolverCheck): Set nameResolverCheck to false.
  8396. (nameResolverFinished): New function.
  8397. * src/FtpInitiateConnectionCommand.h
  8398. (nameResolverFinished): New function.
  8399. * src/FtpInitiateConnectionCommand.cc
  8400. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8401. * src/HttpInitiateConnectionCommand.h
  8402. (nameResolverFinished): New function.
  8403. * src/HttpInitiateConnectionCommand.cc
  8404. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8405. * src/prefs.h
  8406. (PREF_DNS_TIMEOUT): New definition.
  8407. * src/main.cc
  8408. (main): Added PREF_DNS_TIMEOUT.
  8409. To add the support for a non-compact response from a tracker:
  8410. * src/PeerListProcessor.h: New class.
  8411. * src/DefaultPeerListProcessor.h: New class.
  8412. * src/DefaultPeerListProcessor.cc: New class.
  8413. * src/CompactPeerListProcessor.h: New class.
  8414. * src/CompactPeerListProcessor.cc: New class.
  8415. * src/DelegatingPeerListProcessor.h: New class.
  8416. * src/DelegatingPeerListProcessor.cc: New class.
  8417. * src/TorrentMan.cc
  8418. (addPeer): New function(overload).
  8419. (addPeer): Delete unused peers only when new peer is added.
  8420. * src/TorrentMan.h
  8421. (PeerListProcessor.h): Included.
  8422. (Peers): Removed.
  8423. (addPeer): New function(overload).
  8424. * src/TrackerUpdateCommand.cc
  8425. (netinet/in.h): Removed.
  8426. (DelegatingPeerListProcessor.h): Included.
  8427. (execute): Updated to use DelegatingPeerListProcessor.
  8428. To fix the memory leak in TorrentMan::peers:
  8429. * src/PeerAbstractCommand.cc
  8430. (onAbort): Added peer->resetStatus().
  8431. * src/Peer.h
  8432. (resetStatus): Made public.
  8433. To improve the precision of the speed calculation:
  8434. * src/SpeedCalc.h
  8435. (nextInterval): New variable.
  8436. * src/SpeedCalc.cc
  8437. (reset): Added nextInterval.
  8438. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  8439. (changeSw): Set nextInterval to 15 seconds relative to the current
  8440. instant time.
  8441. * src/main.cc
  8442. (showVersion): Updated.
  8443. (showUsage): Updated.
  8444. * Release 0.8.1
  8445. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8446. * src/main.cc
  8447. (showUsage): Commented out --min-segment-size option.
  8448. (main): Commented out --min-segment-size option.
  8449. * Release 0.8.0
  8450. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. * src/*.{h,cc}:
  8452. Added an exception to the license which allows linking with OpenSSL.
  8453. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. * src/AbstractCommand.cc
  8455. (execute): Check whether the download has finished before checking
  8456. socket status.
  8457. Return true if peerStat->getStatus() == REQUEST_IDLE.
  8458. Do not exit even if no segment is available.
  8459. * src/prefs.h
  8460. (PREF_STARTUP_IDLE_TIME): New definition.
  8461. * src/PeerInteractionCommand.cc
  8462. (executeInternal): Removed max speed limit. Because it performs bad.
  8463. (receiveMessages): Added max speed limit. This was better than above,
  8464. but still a little bit to be desired. Sometimes the download speed
  8465. became much faster than I specified.
  8466. * src/SpeedCalc.h
  8467. (start): New variable.
  8468. (accumulatedLength): New variable.
  8469. (getAvgSpeed): New function.
  8470. * src/SpeedCalc.cc
  8471. (reset): Added start, accumulatedLength.
  8472. (update): Added calculation of an average speed.
  8473. (getAvgSpeed): New function.
  8474. * src/DownloadCommand.h
  8475. (sw): Removed.
  8476. * src/main.cc
  8477. (main): Added PREF_STARTUP_IDLE_TIME.
  8478. * src/PeerStat.h
  8479. (STATUS): Added REQUEST_IDLE.
  8480. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  8481. (getAvgDownloadSpeed): New function
  8482. (requestIdle): New function.
  8483. * src/SegmentMan.h
  8484. (SegmentEntryHandle): New type definition.
  8485. (SegmentEntries): Now holds SegmentEntryHandle.
  8486. (findSlowerSegmentEntry): New funtion.
  8487. * src/SegmentMan.cc
  8488. (save): Updated according to the changes in SegmentEntries.
  8489. (read): Updated according to the changes in SegmentEntries.
  8490. (FindSegmentEntryByIndex): Updated according to the changes in
  8491. SegmentEntries.
  8492. (FindSegmentEntryByCuid): Updated according to the changes in
  8493. SegmentEntries.
  8494. (checkoutSegment): Updated according to the changes in SegmentEntries.
  8495. (onNullBitfield): Updated according to the changes in SegmentEntries.
  8496. Renamed uitr as itr.
  8497. (findSlowerSegmentEntry): New function.
  8498. (getSegment): Updated according to the changes in SegmentEntries.
  8499. Added the feature that cancels the segment with slow server and fast
  8500. one takes it over.
  8501. (cancelSegment): Updated according to the changes in SegmentEntries.
  8502. (getDownloadLength): Updated according to the changes in
  8503. SegmentEntries.
  8504. (init): Assigned 0 to bitfield after deleting it.
  8505. * src/DownloadCommand.cc
  8506. (STARTUP_IDLE_TIME): Removed.
  8507. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  8508. * src/PeerChokeCommand.cc
  8509. (optUnchokingPeer): Updated according to the changes in Peer.
  8510. (ResetDelta): Removed.
  8511. (UploadFaster): Updated according to the changes in Peer.
  8512. (DownloadFaster): Updated according to the changes in Peer.
  8513. (execute): I clarify the meaning of "upload" and "download" here.
  8514. "upload" means the transfer from localhost to remote host.
  8515. "download" means the transfer from remote host to localhost.
  8516. Based on this rule, I swapped orderByUploadRate and
  8517. orderByDownloadRate.
  8518. * src/PeerInteractionCommand.cc
  8519. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  8520. (executeInternal): Removed the argument of
  8521. peerInteraction->sendMessages().
  8522. (receiveMessages): Rewritten download speed limit.
  8523. (sendKeepAlive): Removed peerInteraction->sendMessages().
  8524. * src/HttpResponseCommand.cc
  8525. (handleDefaultEncoding): If file size is unknown in torrent request,
  8526. do not call segmentMan->initBitfield() here.
  8527. Disabled persistent connection feature in torrent request.
  8528. * src/UrlRequestInfo.h
  8529. (UrlRequestInfo): Removed const qualifier from option.
  8530. * src/TorrentMan.h
  8531. (TransferStat): New class.
  8532. (deltaDownloadLength): Removed.
  8533. (deltaUploadLength): Removed.
  8534. (addDeltaDownloadLength): Removed.
  8535. (getDeltaDownloadLength): Removed.
  8536. (resetDeltaDownloadLength): Removed.
  8537. (addDeltaUploadLength): Removed.
  8538. (getDeltaUploadLength): Removed.
  8539. (resetDeltaUploadLength): Removed.
  8540. (addActivePeer): Added peer->activate().
  8541. (deleteActivePeer): Added peer->deactivate().
  8542. (calculateStat): New function.
  8543. * src/TorrentMan.cc
  8544. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  8545. (calculateStat): New function.
  8546. * src/PeerInteraction.h
  8547. (uploadLimit): Removed.
  8548. (option): New variable.
  8549. (setUploadLimit): Removed.
  8550. (getUploadSpeed): Removed.
  8551. (sendMessages): Removed the argument "currentUploadSpeed".
  8552. * src/PeerInteraction.cc
  8553. (prefs.h): Included.
  8554. (PeerInteraction): Removed uploadLimit. Added option.
  8555. (sendMessages): Rewritten upload speed limit.
  8556. (sendHandshake): Removed the argument from sendMessages().
  8557. (sendBitfield): Removed the argument from sendMessages().
  8558. * src/PeerAbstractCommand.cc
  8559. (execute): Commented out the portion of upload limit.
  8560. (onAbort): Removed peer->resetStatus().
  8561. * src/TorrentRequestInfo.cc
  8562. (timeoutSpecified): Declared extern.
  8563. (execute): Set timeout to 180 if timeout is not specified by.
  8564. command-line.
  8565. * src/PieceMessage.cc
  8566. (receivedAction): Added peer->updateDownloadLength().
  8567. Removed peer->addPeerUpload().
  8568. Removed torrentMan->addDeltaDownloadLength().
  8569. (send): Added peer->updateUploadLength().
  8570. Removed peer->addPeerDownload().
  8571. Removed torrentMan->addDeltaUploadLength().
  8572. * src/main.cc
  8573. (timeoutSpecified): New variable.
  8574. (main): Set timeoutSpecified to false.
  8575. If the command-line option "--upload-limit" is specified, then
  8576. timeoutSpecified is set to true. This option will remain in the next
  8577. release, but be deprecated in the future release.
  8578. * src/TorrentRequestInfo.h
  8579. (TorrentRequestInfo): Removed const qualifier from op.
  8580. * src/PeerStat.h
  8581. (uploadSpeed): New variable.
  8582. (PeerStat): Added default value to cuid.
  8583. (calculateUploadSpeed): New function.
  8584. (updateUploadLength): New function.
  8585. (getMaxUploadSpeed): New function.
  8586. (getAvgUploadSpeed): New function.
  8587. (reset): Added uploadSpeed. Set status to IDLE.
  8588. * src/TorrentDownloadEngine.h
  8589. (cp): Declared as Time.
  8590. (sessionDownloadLengthArray): Removed.
  8591. (sessionUploadLengthArray): Removed.
  8592. (currentCp): Removed.
  8593. (lastCalcStat): New variable
  8594. (lastElapsed): Removed.
  8595. (sessionDownloadLength): Removed.
  8596. (calculateStat): New function.
  8597. * src/TorrentDownloadEngine.cc
  8598. (initStatistics): Removed lastElapsed, cp[],
  8599. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  8600. currentCp, sessionDownloadLength.
  8601. Added cp.reset() and lastCalcStat.reset().
  8602. (calculateSpeed): Changed the name of the argument.
  8603. (calculateStatistics): Rewritten.
  8604. (calculateStat): New function.
  8605. * src/Peer.h
  8606. (PeerStat.h): Included.
  8607. (peerUpload): Removed.
  8608. (peerDownload): Removed.
  8609. (peerStat): New variable.
  8610. (sessionUploadLength): New variable.
  8611. (sessionDownloadLength): New variable.
  8612. (deltaUpload): Removed.
  8613. (deltaDownload): Removed.
  8614. (resetStatus): Made private.
  8615. (Peer): Added sessionUploadLength, sessionDownloadLength.
  8616. Removed peerUpload, peerDownload.
  8617. (updateUploadLength): New function.
  8618. (addDeltaUpload): Removed.
  8619. (updateDownloadLength): New function.
  8620. (resetDeltaUpload): Removed.
  8621. (getDeltaUpload): Removed.
  8622. (addDeltaDownload): Removed.
  8623. (calculateUploadSpeed): New function.
  8624. (resetDeltaDownload): Removed.
  8625. (getDeltaDownload): Removed.
  8626. (calculateDownloadSpeed): New function.
  8627. (getSessionUploadLength): New function.
  8628. (getSessionDownloadLength): New function.
  8629. (activate): New function.
  8630. (deactivate): New function.
  8631. (addPeerUpload): Removed.
  8632. (setPeerUpload): Removed.
  8633. (getPeerUpload): Removed.
  8634. (addPeerDownload): Removed.
  8635. (setPeerDownload): Removed.
  8636. (getPeerDownload): Removed.
  8637. * src/Peer.cc
  8638. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  8639. * src/MetalinkRequestInfo.h
  8640. (MetalinkRequestInfo): Removed const qualifier from op.
  8641. * src/RequestInfo.h
  8642. (op): Removed const qualifier.
  8643. (RequestInfo): Removed const qualifier from op.
  8644. * src/prefs.h
  8645. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8646. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8647. * src/PeerInteractionCommand.cc
  8648. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8649. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8650. * src/PeerInteraction.cc
  8651. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8652. * src/main.cc
  8653. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8654. Added the description of "--max-download-limit" option.
  8655. Removed the description of "--upload-limit" option.
  8656. Added the description of "--max-upload-limit" option.
  8657. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8658. Added "--max-download-limit" option and "--max-upload-limit" option.
  8659. Added the warning message if "--upload-limit" option is used.
  8660. * src/DownloadCommand.cc
  8661. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8662. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. To rewrite segment download mechanism for HTTP/FTP download.
  8664. Use BitfieldMan to manage segment download.
  8665. * src/HttpResponseCommand.h
  8666. (executeInternal): Pass the reference of segment.
  8667. * src/AbstractCommand.cc
  8668. (prepareForRetry): Call segmentMan->cancelSegment here.
  8669. (onAbort): Call segmentMan->cancelSegment here.
  8670. * src/HttpDownloadCommand.cc
  8671. (prepareForNextSegment): New function.
  8672. * src/DownloadEngineFactory.cc
  8673. (newConsoleEngine): Removed splitter.
  8674. (newTorrentConsoleEngine): Removed splitter.
  8675. * src/Request.h
  8676. (segment): Renamed from seg.
  8677. * src/FtpInitiateConnectionCommand.h
  8678. (executeInternal): Pass the reference of segment.
  8679. * src/AbstractCommand.h
  8680. (executeInternal): Pass the reference of segment.
  8681. * src/pref.h
  8682. (PREF_SEGMENT_SIZE): New definition.
  8683. * src/HttpProxyRequestCommand.h
  8684. (executeInternal): Pass the reference of segment.
  8685. * src/HttpResponseCommand.cc
  8686. (checkResponse): Allowed status 206 when a request range starts 0.
  8687. (handleDefaultEncoding): Rewritten the code related to Segment.
  8688. (handleOtherEncoding): Rewritten the code related to Segment.
  8689. * src/SegmentMan.h
  8690. (SegmentEntry): New class.
  8691. (SegmentEntries): New type definition.
  8692. (bitfield): New variable.
  8693. (usedSegmentEntries): New variable.
  8694. (onNullBitfield): New function.
  8695. (checkoutSegment): New function.
  8696. (segments): Removed.
  8697. (splitter): Removed.
  8698. (unregisterId): Removed.
  8699. (getSegment): New function(overload)
  8700. (getDownloadedSize): Removed.
  8701. (cancelSegment): New function.
  8702. (completeSegment): New function.
  8703. (initBitfield): New function.
  8704. (hasSegment): New function.
  8705. (getDownloadLength): New function.
  8706. * src/BitfieldMan.h
  8707. (getStartIndex): New function.
  8708. (getEndIndex): New function.
  8709. (getMissingUnusedIndex): New function(overload).
  8710. (getSparseMissingUnusedIndex): New function.
  8711. * src/BitfieldMan.cc
  8712. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8713. (getMissingUnusedIndex): New function(overload).
  8714. (Range): New class.
  8715. (getStartIndex): New function.
  8716. (getEndIndex): New function.
  8717. (getSparseMissingUnusedIndex): New function.
  8718. (isBitSetInternal): Return false if the given index is less than 0.
  8719. * src/HttpInitiateConnectionCommand.h
  8720. (executeInternal): Pass the reference of segment.
  8721. * src/FtpNegotiateCommand.h
  8722. (executeInternal): Pass the reference of segment.
  8723. * src/FtpNegotiateCommand.cc
  8724. (recvSize): Initialize bitfield here.
  8725. * src/FtpTunnelResponseCommand.h
  8726. (executeInternal): Pass the reference of segment.
  8727. * src/HttpConnection.cc
  8728. (createRequest): Rewritten range header processing.
  8729. * src/DownloadCommand.h
  8730. (executeInternal): Pass the reference of segment.
  8731. (prepareForRetry): Removed.
  8732. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8733. function.
  8734. * src/main.cc
  8735. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8736. * src/SegmentMan.cc
  8737. (SegmentMan): Added bitfield. Removed splitter.
  8738. (~SegmentMan): Added bitfield. Removed splitter.
  8739. (unregisterId): Removed.
  8740. (getSegment): Rewritten.
  8741. (updateSegment): Rewritten.
  8742. (save): Rewritten.
  8743. (read): Rewritten.
  8744. (finished): Rewritten.
  8745. (getDownloadedSize): Removed.
  8746. (initBitfield): New function.
  8747. (FindSegmentEntryByIndex): New function object.
  8748. (FindSegmentEntryByCuid): New function object.
  8749. (checkoutSegment): New function.
  8750. (onNullBitfield): New function.
  8751. (getSegment): New function(overload).
  8752. (CancelSegment): New function object.
  8753. (cancelSegment): New function.
  8754. (completeSegment): New function.
  8755. (hasSegment): New function.
  8756. (getDownloadLength): New function.
  8757. * src/FtpInitiateConnectionCommand.cc
  8758. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8759. * src/Segment.h: Rewritten.
  8760. * src/Segment.cc (operator<<): New function.
  8761. * src/HttpDownloadCommand.h
  8762. (prepareForNextSegment): New function.
  8763. * src/Request.cc
  8764. (resetUrl): Made segment null.
  8765. * src/DownloadEngine.cc
  8766. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8767. * src/HttpProxyRequestCommand.h
  8768. (executeInternal): Pass the reference of segment.
  8769. * src/DownloadCommand.cc
  8770. (executeInternal): Rewritten the code related to Segment.
  8771. (prepareForRetry): Removed.
  8772. (prepareForNextSegment): Rewritten.
  8773. * src/FtpTunnelResponseCommand.h
  8774. (executeInternal): Pass the reference of segment.
  8775. To add HTTP 1.1 persistent connection support(experimental)
  8776. * src/HttpRequestCommand.cc
  8777. (executeInternal): Disable keep alive if it is disabled by
  8778. configuration.
  8779. * src/Request.h
  8780. (keepAlive): New variable.
  8781. (isKeepAlive): New function.
  8782. (setKeepAlive): New function.
  8783. * src/pref.h
  8784. (PREF_HTTP_KEEP_ALIVE): New definition.
  8785. * src/HttpResponseCommand.cc
  8786. (executeInternal): Check the remote server supports keep alive.
  8787. * src/HttpConnection.cc
  8788. (createRequest): Send "Connection: close" only if keep alive is
  8789. disabled.
  8790. * src/main.cc
  8791. (main):
  8792. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8793. To add max download speed limit:
  8794. * src/pref.h
  8795. (PREF_MAX_SPEED_LIMIT): New definition.
  8796. * src/PeerInteractionCommand.cc
  8797. (executeInternal): Added max download speed limit. Not tested yet.
  8798. * src/SegmentMan.h
  8799. (PeerStats): New type definition.
  8800. (peerStats): New variable.
  8801. (registerPeerStat): New function.
  8802. (FindPeerStat): New function object.
  8803. (getPeerStat): New function.
  8804. (calculateDownloadSpeed): New function.
  8805. * src/SpeedCalc.h: New class.
  8806. * src/SpeedCalc.cc: New class.
  8807. * src/main.cc
  8808. (main):
  8809. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8810. download speed is not restricted).
  8811. * src/PeerStat.h: New class.
  8812. * src/SegmentMan.cc
  8813. (registerPeerStat): New function.
  8814. (calculateDownloadSpeed): New function.
  8815. * src/DownloadCommand.cc
  8816. (STARTUP_IDLE_TIME): New definition.
  8817. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8818. downloadStart.
  8819. (~DownloadCommand): Call peerStat->downloadStop.
  8820. (executeInternal): Added download speed limitter. Rewritten lowest
  8821. speed limitter.
  8822. * src/HttpConnection.cc
  8823. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8824. * src/AbstractCommand.cc
  8825. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8826. Added hostname to the error message.
  8827. * src/ConsoleDownloadEngine.cc
  8828. (calculateStatistics): Initialize psize with dlSize.
  8829. * src/PieceMessage.cc
  8830. (receivedAction): Do not call peerInteraction->abortPiece here.
  8831. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8832. * src/BitfieldMan.h
  8833. (clearAllUseBit): New function.
  8834. (setAllUseBit): New function.
  8835. * src/BitfieldMan.cc
  8836. (clearAllBit): Do not clear useBitfield here.
  8837. (clearAllUseBit): New function.
  8838. (setAllUseBit): New function.
  8839. * src/Piece.cc
  8840. (clearAllBlock): Call bitfield->clearAllUseBit().
  8841. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. To make filename URL-decoded:
  8843. * src/HttpResponseCommand.h: Updated doc.
  8844. * src/HttpResponseCommand.cc
  8845. (determinFilename): Made filename URL-decoded.
  8846. * src/FtpInitiateConnectionCommand.cc
  8847. (executeInternal): Made filename URL-decoded.
  8848. * src/Util.h (urldecode): New function.
  8849. * src/Util.cc (urldecode): New function.
  8850. To fix a bug that caused assertion failure in ares_strerror:
  8851. * src/NameResolver.cc (callback): Fixed the bug.
  8852. * Release 0.7.3
  8853. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. To add --seed-time and --seed-ratio command-line option:
  8855. * src/Option.h (getAsDouble): New function.
  8856. * src/Option.cc (getAsDouble): New function.
  8857. * src/SeedCheckCommand.h: New class.
  8858. * src/SeedCheckCommand.cc: New class.
  8859. * src/DownloadEngineFactory.cc
  8860. (SeedCheckCommand.h): Included.
  8861. (UnionSeedCriteria.h): Included.
  8862. (TimeSeedCriteria.h): Included.
  8863. (ShareRatioSeedCriteria.h): Included.
  8864. (newTorrentConsoleEngine): Added the processing of seed option.
  8865. * src/SeedCriteria.h: New class.
  8866. * src/ShareRatioSeedCriteria.h: New class.
  8867. * src/TimeSeedCriteria.h: New class.
  8868. * src/UnionSeedCriteria.h: New class.
  8869. * src/prefs.h
  8870. (PREF_SEED_TIME): New definition.
  8871. (PREF_SEED_RATIO): New definition.
  8872. * src/main.cc
  8873. (showUsage): Added --seed-time and --seed-ratio option.
  8874. (main): Added --seed-time and --seed-ratio option.
  8875. Made default log file name "/dev/null".
  8876. * src/SharedHandle.h
  8877. (SharedHandle): Copy constructor. Made it assignable from the
  8878. SharedHandle of the subclasses.
  8879. (operator=): Made it assignable from the SharedHandle of the
  8880. subclasses.
  8881. (getRefCount): New function.
  8882. To add notice log level and the switch to write log to stdout. This
  8883. switch is configurable per log level.
  8884. * src/Logger.h
  8885. (notice): New function.
  8886. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8887. constant.
  8888. * src/LogFactory.cc
  8889. (getInstance): The use of NullLogger was removed. A log message with
  8890. notice log level was made written to stdout along with log file.
  8891. * src/NullLogger.h
  8892. (notice): New function.
  8893. * src/SimpleLogger.h
  8894. (writeHeader): Added the 'file' argument.
  8895. (writeLog): Added the 'file' argument.
  8896. (writeFile): New function.
  8897. (stdoutField): New variable.
  8898. (SimpleLogger): Removed the default constructor.
  8899. (SimpleLogger): Made the default value of logfile 0.
  8900. (debug): Added 'virtual' keyword.
  8901. (info): Added 'virtual' keyword.
  8902. (warn): Added 'virtual' keyword.
  8903. (error): Added 'virtual' keyword.
  8904. (notice): New function.
  8905. (setStdout): New function.
  8906. * src/SimpleLogger.cc
  8907. (WRITE_LOG): Replaced writeLog with writeFile.
  8908. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8909. (SimpleLogger): Removed the default constructor.
  8910. (setStdout): New function.
  8911. (writeLog): Added the handling of NOTICE log level.
  8912. (writeFile): New function.
  8913. (notice): New function.
  8914. * src/TorrentMan.h: Updated doc.
  8915. * src/BitfieldMan.h: Updated doc.
  8916. * src/TrackerWatcherCommand.cc
  8917. (execute): Return true if error occurred in the request to the tracker
  8918. and halt is requested.
  8919. * src/TrackerUpdateCommand.cc
  8920. (execute): Return true if error occurred in the request to the tracker
  8921. and halt is requested.
  8922. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8923. DownloadEngine:
  8924. * src/TorrentConsoleDownloadEngine.h
  8925. (onSelectiveDownloadingCompletes): Removed.
  8926. * src/TorrentConsoleDownloadEngine.cc
  8927. (onSelectiveDownloadingCompletes): Removed.
  8928. * src/TorrentDownloadEngine.h
  8929. (onEndOfRun): Added 'virtual' keyword.
  8930. (afterEachIteration): Removed.
  8931. (onSelectiveDownloadingCompletes): Removed.
  8932. * src/TorrentDownloadEngine.cc
  8933. (onEndOfRun): Removed filenameFixed.
  8934. (afterEachIteration): Removed.
  8935. * src/TorrentMan.cc
  8936. (completePiece): Call onDownloadComplete here.
  8937. (onDownloadComplete): Added 2 log messages.
  8938. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8940. * src/NameResolver.h: Added the prototype declaration of callback().
  8941. To support c-ares library:
  8942. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8943. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8944. * src/FtpInitiateConnectionCommand.h:
  8945. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8946. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8947. * src/HttpInitiateConnectionCommand.h:
  8948. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8949. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8950. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8951. #1542285 by tizianomueller)
  8952. * src/HttpInitiateConnectionCommand.cc:
  8953. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8954. * src/FtpInitiateConnectionCommand.cc:
  8955. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8956. * src/DownloadEngine.h:
  8957. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8958. * src/DownloadEngine.cc:
  8959. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8960. To fix the bug that causes compilation failure with metalink-support
  8961. disabled(bug#1543587):
  8962. * src/main.cc: Fixed with the patch by tizianomueller.
  8963. * Release 0.7.2
  8964. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. * src/main.cc
  8966. (main): Added a message to inform users that aria2 is starting to
  8967. verify checksum.
  8968. * src/RequestInfo.cc
  8969. (printDownloadAbortMessage): Added a message to inform users that
  8970. transfer can be resumed.
  8971. * src/FeatureConfig.cc
  8972. (FEATURE_ASYNC_DNS): New definition.
  8973. (FeatureConfig): Added aysnc DNS entry.
  8974. To replace CommandUuid with Command* in SocketEntry and
  8975. NameResolverEntry:
  8976. * src/DownloadEngine.h
  8977. (CommandUuids): Removed.
  8978. (SocketEntry::commandUuid): Removed.
  8979. (SocketEntry::command): New variable.
  8980. (SocketEntry::SocketEntry): Updated.
  8981. (SocketEntry::operator==): Updated.
  8982. (NameResolverEntry::commandUuid): Removed.
  8983. (NameResolverEntry::command): New variable.
  8984. (NameResolverEntry::NameResolverEntry): Updated.
  8985. (NameResolverEntry::operator==): Updated.
  8986. (waitData): Changed the argument type.
  8987. (addSocketForReadCheck): Changed the argument type.
  8988. (deleteSocketForReadCheck): Changed the argument type.
  8989. (addSocketForWriteCheck): Changed the argument type.
  8990. (deleteSocketForWriteCheck): Changed the argument type.
  8991. (addNameResolverCheck): Changed the argument type.
  8992. (deleteNameResolverCheck): Changed the argument type.
  8993. * src/DownloadEngine.cc
  8994. (FindCommand): Removed.
  8995. (run): Removed activeUuid. Added activeCommands instead.
  8996. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8997. (AccumulateActiveCommand): New function object.
  8998. (waitData): Use AccumulateActiveCommand.
  8999. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9000. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9001. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9002. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9003. (addNameResolverCheck): Use Command instead of CommandUuid.
  9004. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9005. * src/AbstractCommand.cc
  9006. (disableReadCheckSocket): Updated according to the changes in
  9007. DownloadEngine.
  9008. (setReadCheckSocket): Updated according to the changes in
  9009. DownloadEngine.
  9010. (disableWriteCheckSocket): Updated according to the changes in
  9011. DownloadEngine.
  9012. (setWriteCheckSocket): Updated according to the changes in
  9013. DownloadEngine.
  9014. (setNameResolverCheck): Updated according to the changes in
  9015. DownloadEngine.
  9016. (disableNameResolverCheck): Updated according to the changes in
  9017. DownloadEngine.
  9018. * src/AbstractCommand.cc
  9019. (disableReadCheckSocket): Updated according to the changes in
  9020. DownloadEngine.
  9021. (setReadCheckSocket): Updated according to the changes in
  9022. DownloadEngine.
  9023. (disableWriteCheckSocket): Updated according to the changes in
  9024. DownloadEngine.
  9025. (setWriteCheckSocket): Updated according to the changes in
  9026. DownloadEngine.
  9027. * release 0.7.1
  9028. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. To handle the case where some BitTorrent tracker requires all letters
  9030. except for [A-Za-z0-9] is URL encoded.
  9031. * src/Util.h
  9032. (torrentUrlencode): New function.
  9033. * src/Util.cc
  9034. (ctype.h): Included.
  9035. (torrentUrlencode): New function.
  9036. * src/TrackerWatcherCommand.cc
  9037. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9038. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. To add asynchronous DNS support(libares):
  9040. * src/AbstractCommand.h
  9041. (setNameResolverCheck): New function.
  9042. (disableNameResolverCheck): New function
  9043. (resolveHostname): New function.
  9044. * src/AbstractCommand.cc
  9045. (setNameResolverCheck): New function.
  9046. (disableNameResolverCheck): New function
  9047. (resolveHostname): New function.
  9048. * src/FtpInitiateConnectionCommand.h
  9049. (nameResolver): New function.
  9050. * src/FtpInitiateConnectionCommand.cc
  9051. (Util.h): Included.
  9052. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9053. disableWriteCheckSocket.
  9054. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9055. (executeInternal): Added async DNS support.
  9056. * src/HttpInitiateConnectionCommand.h
  9057. (nameResolver): New function.
  9058. * src/HttpInitiateConnectionCommand.cc
  9059. (DlRetryEx.h): Included.
  9060. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9061. disableWriteCheckSocket.
  9062. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9063. (executeInternal): Added async DNS support.
  9064. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9065. by extern "C" declaration.
  9066. * src/NameResolver.cc: New class.
  9067. * src/Util.h:
  9068. (isNumberAndDotsNotation): New function
  9069. * src/Util.cc
  9070. (isNumberAndDotsNotation): New function.
  9071. * src/DownloadEngine.h
  9072. (NameResolver.h): Included.
  9073. (NameResolverEntry): New class.
  9074. (NameResolverEntries): New type definition.
  9075. (addNameResolverCheck): New function.
  9076. (deleteNameResolverCheck): New function.
  9077. * src/DownloadEngine.cc
  9078. (run): Initialize cp with 0.
  9079. (SetDescriptor::operator()): Added for NameResolverEntry.
  9080. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9081. (waitData): Check nameResolver entries.
  9082. (updateFdSet): Update fds in nameResolver entries.
  9083. (addNameResolverCheck): New function.
  9084. (deleteNameResolverCheck): new function.
  9085. * src/PeerInteractionCommand.cc
  9086. (executeInternal): Fixed wrong socket handling.
  9087. * src/main.cc
  9088. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9089. * src/Util.cc
  9090. (fileChecksum): Removed the call to ctx.digestReset().
  9091. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. * po/ru.po: Azamat sent me Russian translation.
  9093. * src/FtpNegotiateCommand.cc
  9094. (recvGreeting): Call disableWriteCheckSocket just after
  9095. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  9096. (recvRetr): Recognized status code 125 as a acceptable response code.
  9097. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  9098. case-insesitive filesystem(BUG#1531057).
  9099. * src/Time.h: Renamed as TimeA2.h.
  9100. * src/Time.cc: Renamed as TimeA2.cc.
  9101. * src/TimeA2.h: New class.
  9102. * src/TimeA2.cc: New class.
  9103. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  9104. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  9105. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  9106. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  9107. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  9108. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9109. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  9110. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  9111. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9112. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9113. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9114. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9115. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9116. * release 0.7.0
  9117. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. * src/PeerChokeCommand.h
  9119. (PeerChokeCommand): Rearranged the arguments.
  9120. * src/PeerChokeCommand.cc
  9121. (PeerChokeCommand): Rearranged the arguments.
  9122. * src/MetalinkEntry.h
  9123. (Checksum.h): Included.
  9124. (md5): Removed.
  9125. (sha1): Removed.
  9126. (checksum): New variable.
  9127. (operator=): Updated.
  9128. (check): Removed.
  9129. * src/prefs.h
  9130. (PREF_LOWEST_SPEED_LIMIT): New definition.
  9131. (PREF_FOLLOW_TORRENT): New definition.
  9132. (PREF_SELECT_FILE): New definition.
  9133. (PREF_FOLLOW_METALINK): New definition.
  9134. * src/MetalinkResource.h
  9135. (TYPE_HTTPS): Added to enum TYPE.
  9136. * src/TorrentMan.cc
  9137. (~TorrentMan): Rewritten.
  9138. * src/MultiDiskWriter.cc
  9139. (MultiDiskAdaptor): Updated according to the changes in
  9140. MessageDigestContext.
  9141. (~MultiDiskAdaptor): Updated according to the changes in
  9142. MessageDigestContext.
  9143. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9144. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9145. * src/Util.h
  9146. (fileChecksum): Updated according to the changes in
  9147. MessageDigestContext.
  9148. * src/Util.cc
  9149. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9150. (fileChecksum): Updated according to the changes in
  9151. MessageDigestContext.
  9152. * src/messageDigest.h: Rewritten.
  9153. * src/MetalinkEntry.cc
  9154. (check): Removed.
  9155. (Supported): Updated.
  9156. (dropUnsupportedResource): Fixed a memory leak.
  9157. * src/ShaVisitor.cc
  9158. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9159. (~ShaVisitor): Updated according to the changes in
  9160. MessageDigestContext.
  9161. (visit): Updated according to the changes in MessageDigestContext.
  9162. * src/main.cc
  9163. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9164. command-line option added.
  9165. * src/DownloadEngine.h
  9166. (SocketEntry): New class.
  9167. (SocketEntries): New definition.
  9168. (PairFind): Removed.
  9169. (SockCmdMap): Removed.
  9170. * src/DownloadEngine.cc
  9171. (DownloadEngine): Rewritten.
  9172. (~DownloadEngine): Rewritten.
  9173. (run): Renamed activeCommandUuids as activeUuids.
  9174. (SetDescriptor): Rewritten.
  9175. (AccumulateActiveCommandUuid): Removed.
  9176. (AccumulateActiveUuid): New function object.
  9177. (waitData): Rewritten.
  9178. (updateFdSet): Rewritten.
  9179. (addSocket): Rewritten.
  9180. (deleteSocket): Rewritten.
  9181. (addSocketForReadCheck): Rewritten.
  9182. (deleteSocketForReadCheck): Rewritten.
  9183. (addSocketForWriteCheck): Rewritten.
  9184. (deleteSocketForWriteCheck): Rewritten.
  9185. * src/Xml2MetalinkProcessor.cc
  9186. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9187. * src/DownloadCommand.cc
  9188. (executeInternal): Added the check routine for lowest speed limit.
  9189. * src/AbstractDiskWriter.cc
  9190. (AbstractDiskWriter): Updated according to the changes in
  9191. MessageDigestContext.
  9192. (~AbstractDiskWriter): Updated according to the changes in
  9193. MessageDigestContext.
  9194. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9195. * src/RequestInfo.h: New class.
  9196. * src/UrlRequestInfo.h: New class.
  9197. * src/UrlRequestInfo.cc: New class.
  9198. * src/TorrentRequestInfo.h: New class.
  9199. * src/TorrentRequestInfo.cc: New class.
  9200. * src/MetalinkRequestInfo.h: New class.
  9201. * src/MetalinkRequestInfo.cc: New class.
  9202. * src/Checksum.h: New class.
  9203. * src/DownloadEngineFactory.h: New class.
  9204. * src/DownloadEngineFactory.cc: New class.
  9205. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. * src/Option.h
  9207. (getAsBool): New function.
  9208. * src/Option.cc
  9209. (prefs.h): Included.
  9210. (defined): 0-length value is now recognized as undefined.
  9211. (getAsInt): Rewritten.
  9212. (getAsLLInt): Rewritten.
  9213. (getAsBool): New function.
  9214. * src/FeatureConfig.h: Rewritten.
  9215. * src/FeatureConfig.cc: Rewritten.
  9216. * src/prefs.h
  9217. (PREF_STDOUT_LOG): New definition.
  9218. (PREF_LOG): New definition.
  9219. (PREF_DIR): New definition.
  9220. (PREF_OUT): New definition.
  9221. (PREF_SPLIT): New definition.
  9222. (PREF_DAEMON): New definition.
  9223. (PREF_REFERER): New definition.
  9224. (PREF_TORRENT_FILE): New definition.
  9225. (PREF_LISTEN_PORT): New definition.
  9226. (PREF_METALINK_FILE): New definition.
  9227. (PREF_METALINK_VERSION): New definition.
  9228. (PREF_METALINK_LANGUAGE): New definition.
  9229. (PREF_METALINK_OS): New definition.
  9230. (PREF_METALINK_SERVERS): New definition.
  9231. * src/main.cc
  9232. (main): Following command-line parameters are now put into Option
  9233. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  9234. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  9235. metalinkLanguage, metalinkOs, metalinkServers
  9236. To fix the bug that aria2 can not handle http response header properly.
  9237. * src/HttpHeader.cc
  9238. (put): Made name lowercased.
  9239. (defined): Made name lowercased.
  9240. (getFirst): Made name lowercased.
  9241. (get): Made name lowercased.
  9242. (getFirstAsInt): Rewritten.
  9243. (getFirstAsLLInt): Rewritten.
  9244. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. * src/TorrentMan.h:
  9246. (advertisePiece): Updated doc.
  9247. (getAdvertisedPieceIndexes): Updated doc.
  9248. (removeAdvertisedPiece); New function.
  9249. * src/TorrentMan.cc
  9250. (FindElapsedHave): New function object.
  9251. (removeAdvertisedPiece): New function.
  9252. * src/HaveEraseCommand.h: New class.
  9253. * src/HaveEraseCommand.cc: New class.
  9254. * src/FeatureConfig.h: New class.
  9255. * src/FeatureConfig.cc: New class.
  9256. * src/Request.h
  9257. (defaultPorts): Removed.
  9258. * src/Request.cc
  9259. (FeatureConfig.h): Included.
  9260. (Request): Removed the statements related to defaultPorts.
  9261. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  9262. A default port number is now retrieved from FeatureConfig.
  9263. * src/main.cc
  9264. (HaveEraseCommand.h): Included.
  9265. (showVersion): Added the output of feature list.
  9266. (main): Added HaveEraseCommand to command queue in BitTorrent
  9267. downloading.
  9268. * src/PeerInteractionCommand.h
  9269. (chokeCheckPoint): Commented out.
  9270. (periodicExecPoint): New variable.
  9271. * src/PeerInteractionCommand.cc
  9272. (executeInternal): Following methods are now called in at least every
  9273. 0.5 seconds to reduce CPU usage:
  9274. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  9275. checkHave(), sendKeepAlive().
  9276. (checkLongTimePeerChoking): Commented out.
  9277. * src/BitfieldMan.h
  9278. (getNthBitIndex): Changed the method signature.
  9279. (getMissingIndexRandomly): Changed the method signature.
  9280. * src/BitfieldMan.cc
  9281. (getNthBitIndex): Rewritten
  9282. (getMissingIndexRandomly): Rewritten.
  9283. (hasMissingPiece): Rewritten.
  9284. (getMissingIndex): Refactored.
  9285. (getMissingUnusedIndex); Refactored.
  9286. (getMissingIndex): Refactored.
  9287. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. * src/PeerMessage.h
  9289. (Piece.h): Included.
  9290. (SharedHandle.h): Included.
  9291. (invalidate): New variable.
  9292. (uploading): New variable.
  9293. (isInvalidate): New function.
  9294. (isUploading): New function.
  9295. (onPush): New function.
  9296. (onChoked): New function.
  9297. (onCanceled): New function.
  9298. (onAbortPiece): New function.
  9299. (PeerMessageHandle): New type definition.
  9300. * src/PeerMessage.cc
  9301. (PeerMessage): Added the initialization for invalidate and uploading.
  9302. * src/CancelMessage.h
  9303. (CancelMessage): Rewritten.
  9304. * src/RejectMessage.h
  9305. (RejectMessage): Rewritten.
  9306. * src/Metalinker.h
  9307. (operator=): Defined.
  9308. * src/MetaEntry.h
  9309. (operator=): Defined.
  9310. * src/MetalinkResource.h
  9311. (operator=): Defined.
  9312. * src/AllowedFastMessage.h
  9313. (AllowedFastMessage): Rewritten.
  9314. * src/HandshakeMessage.h
  9315. (HandshakeMessage): New function(overload).
  9316. * src/HandshakeMessage.cc
  9317. (HandshakeMessage): Rewritten.
  9318. (init): New function.
  9319. * src/HaveMessage.h
  9320. (HaveMessage): Rewritten.
  9321. * src/Time.h
  9322. (operator=): Defined the function body here.
  9323. * src/Time.cc
  9324. (operator=): Removed.
  9325. * src/SocketCore.h
  9326. (operator==): Defined here.
  9327. (operator!=): Defined here.
  9328. (operator<): Defined here.
  9329. * src/SocketCore.cc
  9330. (operator==): Removed.
  9331. (operator<): Removed.
  9332. * src/BitfieldMan.h
  9333. (operator=): Defined the function body here.
  9334. * src/BitfieldMan.cc
  9335. (operator=): Removed.
  9336. * src/TorrentMan.h
  9337. (deleteErrorPeer): Removed.
  9338. (deleteUnusedPeer); New function.
  9339. * src/TorrentMan.cc
  9340. (addPeer): Call deleteUnusedPeer.
  9341. (deleteErrorPeer): Removed.
  9342. (deleteUnusedPeer): New function.
  9343. * src/PeerAbstractCommand.h
  9344. (setNoCheck): New function.
  9345. (noCheck): New variable.
  9346. * src/PeerAbstractCommand.cc
  9347. (PeerAbstractCommand): Added the initialization of noCheck.
  9348. (execute): Added a check for noCheck.
  9349. (setNoCheck): New function.
  9350. * src/Util.h
  9351. (stdio.h): Included.
  9352. * src/Util.cc
  9353. (unistd.h): Included.
  9354. * src/DefaultDiskWriter.cc
  9355. (unistd.h): Included.
  9356. * src/Peer.h
  9357. (operator==): Defined the function body here.
  9358. (operator!=): Defined the function body here.
  9359. * src/Peer.cc
  9360. (operator==): Removed.
  9361. (operator!=): Removed.
  9362. * src/Piece.h
  9363. (Piece): Defined the function body here(copy constructor).
  9364. (operator=): Defined the function body here.
  9365. (operator==): Defined the function body here.
  9366. * src/Piece.cc
  9367. (Piece): Removed(copy constructor).
  9368. (operator=): Removed.
  9369. (operator==): Removed.
  9370. * src/PeerMessageUtil.h
  9371. (ChokeMessage.h): Removed.
  9372. (UnchokeMessage.h): Removed.
  9373. (InterestedMessage.h): Removed.
  9374. (NotInterestedMessage.h): Removed.
  9375. (HaveMessage.h): Removed.
  9376. (BitfieldMessage.h): Removed.
  9377. (RequestMessage.h): Removed.
  9378. (CancelMessage.h): Removed.
  9379. (PieceMessage.h): Removed.
  9380. (HandshakeMessage.h): Removed.
  9381. (KeepAliveMessage.h): Removed.
  9382. (PortMessage.h): Removed.
  9383. (HaveAllMessage.h): Removed.
  9384. (HaveNoneMessage.h): Removed.
  9385. (PeerConnection.h): Removed.
  9386. (HandshakeMessage.h): Included.
  9387. * src/BitfieldMessage.h
  9388. (init): New function.
  9389. (BitfieldMessage): Rewritten.
  9390. (BitfieldMessage): New function(overload).
  9391. * src/RequestSlot.h
  9392. (operator=): Defined the function body here.
  9393. (operator==): Defined the function body here.
  9394. * src/RequestSlot.cc
  9395. (operator=): Removed.
  9396. (operator==): Removed.
  9397. To remove the dependency on the PeerMessage subclass from
  9398. PeerInteraction:
  9399. * src/PeerMessageFactory.h: New class.
  9400. * src/PeerMessageFactory.cc: New class.
  9401. * src/SimplePeerMessage.cc
  9402. (send): If invalidate is true then do nothing.
  9403. * src/PeerInteractionCommand.cc
  9404. (HandshakeMessage.h): Included.
  9405. (KeepAliveMessage.h): Included.
  9406. (ChokeMessage.h): Included.
  9407. (UnchokeMessage.h): Included.
  9408. (HaveMessage.h): Included.
  9409. (executeInternal): Call setNoCheck().
  9410. Removed setWriteCheckSocket(socket).
  9411. * src/PeerInteraction.h
  9412. (ChokeMessage.h): Removed.
  9413. (UnchokeMessage.h): Removed.
  9414. (InterestedMessage.h): Removed.
  9415. (NotInterestedMessage.h): Removed.
  9416. (HaveMessage.h): Removed.
  9417. (BitfieldMessage.h): Removed.
  9418. (RequestMessage.h): Removed.
  9419. (CancelMessage.h): Removed.
  9420. (PieceMessage.h): Removed.
  9421. (HandshakeMessage.h): Removed.
  9422. (KeepAliveMessage.h): Removed.
  9423. (PortMessage.h): Removed.
  9424. (HaveAllMessage.h): Removed.
  9425. (HaveNoneMessage.h): Removed.
  9426. (RejectMessage.h): Removed.
  9427. (AllowedFastMessage.h): Removed.
  9428. (SuggestPieceMessage.h): Removed.
  9429. (PeerMessageFactory.h): Included.
  9430. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  9431. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  9432. (PeerMessageFactory): New variable.
  9433. (createPeerMessage): Removed.
  9434. (createHandshakeMessage): Removed.
  9435. (setPeerMessageCommonProperty): Removed.
  9436. (addRequestSlot): New function.
  9437. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9438. (getPeerMessageFactory): New function.
  9439. (createRequestMessage): Removed.
  9440. (createCancelMessage): Removed.
  9441. (createPieceMessage): Removed.
  9442. (createHaveMessage): Removed.
  9443. (createChokeMessage): Removed.
  9444. (createUnchokeMessage): Removed.
  9445. (createInterestedMessage): Removed.
  9446. (createNotInterestedMessage): Removed.
  9447. (createBitfieldMessage): Removed.
  9448. (createKeepAliveMessage): Removed.
  9449. (createHaveAllMessage): Removed.
  9450. (createHaveNoneMessage): Removed.
  9451. (createRejectMessage): Removed.
  9452. (createAllowedFastMessage): Removed.
  9453. * src/PeerInteraction.cc
  9454. (PeerInteraction): Allocate PeerMessageFactory here.
  9455. (~PeerInteraction): Deallocate PeerMessageFactory here.
  9456. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  9457. PieceMessage::ID.
  9458. (addMessage): Simplified by using PeerMessage::onPush().
  9459. (addRequestSlot): New function.
  9460. (rejectAllPieceMessageInQueue): Simplified by using
  9461. PeerMessage::onChoked().
  9462. (rejectPieceMessageInQueue): Simplified by using
  9463. PeerMessage::onCanceled().
  9464. (abortPiece): Simplified by using PeerMessage::abortPiece().
  9465. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9466. (createHandshakeMessage): Removed.
  9467. (createPeerMessage): Removed.
  9468. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  9469. (setPeerMessageCommonProperty): Removed.
  9470. (createRequestMessage): Removed.
  9471. (createCancelMessage): Removed.
  9472. (createPieceMessage): Removed.
  9473. (createHaveMessage): Removed.
  9474. (createChokeMessage): Removed.
  9475. (createUnchokeMessage): Removed.
  9476. (createInterestedMessage): Removed.
  9477. (createNotInterestedMessage): Removed.
  9478. (createBitfieldMessage): Removed.
  9479. (createKeepAliveMessage): Removed.
  9480. (createHaveAllMessage): Removed.
  9481. (createHaveNoneMessage): Removed.
  9482. (createRejectMessage): Removed.
  9483. (createAllowedFastMessage): Removed.
  9484. * src/PieceMessage.h
  9485. (createRejectMessage): New function.
  9486. (PieceMessage): Rewritten.
  9487. (onChoked): New function.
  9488. (onCanceled): New function.
  9489. * src/PieceMessage.cc
  9490. (send): If invalidate is true then do nothing, just return.
  9491. (createRejectMessage): New function.
  9492. (onChoked): New function.
  9493. (onCanceled): New function.
  9494. * src/RequestMessage.h
  9495. (RequestMessage): Rewritten.
  9496. (onPush): New function.
  9497. (onAbortPiece): New function.
  9498. * src/RequestMessage.cc
  9499. (onPush): New function.
  9500. (onAbortPiece): New function.
  9501. Update fd_set when a socket is added or deleted in order to improve
  9502. performance:
  9503. * src/DownloadEngine.h
  9504. (rfdset): New variable.
  9505. (wfdset): New variable.
  9506. (updateFdSet): New function.
  9507. * src/DownloadEngine.cc
  9508. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  9509. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  9510. (waitData): Copy rfdset and wfdset.
  9511. (updateFdSet): New function.
  9512. (addSocket): Call updateFdSet.
  9513. (deleteSocket): Call updateFdSet.
  9514. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. To add the support for Metalink3.0 backward compatible links:
  9516. * src/Request.h
  9517. (SAFE_CHARS): Added '#'.
  9518. (METALINK_MARK): New definition.
  9519. * src/Request.cc
  9520. (parseUrl): Added the support for Metalink3.0 backward compatible
  9521. links.
  9522. etc
  9523. * src/PeerInteraction.cc
  9524. (MsgPushBack): Removed.
  9525. (sendMessages): Use STL copy and back_inserter.
  9526. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  9527. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  9528. * src/TorrentMan.h
  9529. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  9530. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. * src/SharedHandle.h: New class.
  9532. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  9533. * src/HttpResponseCommand.h
  9534. (HttpResponseCommand): Wrapped Socket.
  9535. * src/SocketCore.h
  9536. (operator==): New function.
  9537. (operator!=): New function.
  9538. (operator<): New function.
  9539. (getSockfd): New function.
  9540. (isOpen): New function.
  9541. (writeData): New function.
  9542. * src/SocketCore.cc
  9543. (operator==): New function.
  9544. (operator!=): New function.
  9545. (operator<): New function.
  9546. * src/AbstractCommand.h
  9547. (socket): Changed its type to SocketHandle.
  9548. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9549. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9550. (disableReadCheckSocket): New function.
  9551. (disableWriteCheckSocket): New function.
  9552. (readCheckTarget): Changed its type to SocketHandle.
  9553. (writeCheckTarget): Changed its type to SocketHandle.
  9554. (AbstractCommand): Replaced Socket with SocketHandle.
  9555. * src/AbstractCommand.cc
  9556. (AbstractCommand): Replaced Socket with SocketHandle.
  9557. (~AbstractCommand): Removed the deallocation for Socket object.
  9558. (disableReadCheckSocket): New function.
  9559. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9560. (disableWriteCheckSocket): New function.
  9561. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9562. * src/HttpDownloadCommand.cc
  9563. (DownloadCommand): Replaced Socket with SocketHandle.
  9564. * src/PeerAbstractCommand.h
  9565. (socket): Changed its type to SocketHandle.
  9566. (peer): Changed its type to PeerHandle.
  9567. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9568. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9569. (disableReadCheckSocket): New function.
  9570. (disableWriteCheckSocket): New function.
  9571. (readCheckTarget): Changed its type to SocketHandle.
  9572. (writeCheckTarget): Changed its type to SocketHandle.
  9573. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9574. Replaced Peer with PeerHandle.
  9575. * src/HttpRequestCommand.cc
  9576. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9577. Use disableReadCheckSocket.
  9578. * src/PeerInitiateConnectionCommand.h
  9579. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9580. * src/PeerChokeCommand.cc
  9581. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  9582. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  9583. (execute): Use PeerHandle.
  9584. * src/PeerConnection.h
  9585. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  9586. (socket): Changed its type to SocketHandle.
  9587. (PeerConnection): Replaced Socket with SocketHandle.
  9588. * src/PeerConnection.cc
  9589. (PeerConnection): Replaced Socket with SocketHandle.
  9590. * src/PeerInteractionCommand.h
  9591. (PeerInteractionCommand): Replaced socket with SocketHandle.
  9592. Replaced Peer with PeerHandle.
  9593. * src/PeerInteractionCommand.cc
  9594. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  9595. Replaced Peer with PeerHandle.
  9596. (executeInternal): Use disableWriteCheckSocket.
  9597. Use HandshakeMessageHandle.
  9598. (receiveMessages): Use PeerMessageHandle.
  9599. (prepareForNextPeer): Use PeerHandle.
  9600. * src/HttpProxyRequestCommand.h
  9601. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9602. * src/HttpResponseCommand.cc
  9603. (HttpResponseCommand): Replaced Socket with SocketHandle.
  9604. * src/TorrentMan.cc
  9605. (nullPeer): Added external reference.
  9606. (~TorrentMan): Removed the deallocation of the elements of peers.
  9607. (addPeer): Rewritten.
  9608. (isPeerAvailable): Use nullPeer.
  9609. (deleteOldpeers): Replaced with deleteErrorPeer.
  9610. (deleteErrorPeer): New function.
  9611. (getPeer): Use PeerHandle and nullPeer.
  9612. (hasMissingPiece): Replaced Peer with PeerHandle.
  9613. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9614. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9615. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9616. (getMissingPiece): Replaced Peer with PeerHandle.
  9617. * src/FtpNegotiateCommand.cc
  9618. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  9619. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  9620. (recvGreeting): Use disableWriteCheckSocket.
  9621. (recvPasv): Removed the allocation of Socket.
  9622. Use disableReadCheckSocket.
  9623. (sendRestPasv): Use disableWriteCheckSocket.
  9624. (recvRetr): Changed assertion.
  9625. * src/PeerInteraction.h
  9626. (SharedHandle.h): Included SharedHandle.h.
  9627. (PeerMessageHandle): New type definition.
  9628. (HandshakeMessageHandle): New type definition.
  9629. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  9630. (peer): Changed its type to PeerHandle.
  9631. (createHandshakeMessage): Replaced HandshakeMessage with
  9632. HandshakeMessageHandle.
  9633. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  9634. (PeerInteraction): Replaced Peer with PeerHandle.
  9635. Replaced Socket with SocketHandle.
  9636. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9637. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9638. (receiveHandshake): Replaced HandshakeMessage with
  9639. HandshakeMessageHandle.
  9640. * src/PeerInteraction.cc
  9641. (PeerInteraction): Replaced Peer with PeerHandle.
  9642. Replaced Socket with SocketHandle.
  9643. (~PeerInteraction): Removed the deallocation of the elements of
  9644. messageQueue.
  9645. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9646. (isSendingMessageInProgress): Replaced PeerMessage with
  9647. PeerMessageHandle.
  9648. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9649. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9650. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9651. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9652. (abortPiece): Use PeerMessageHandle.
  9653. (receiveHandshake): Replaced HandshakeMessage with
  9654. HandshakeMessageHandle. Removed try-catch block.
  9655. (createHandshakeMessage): Replaced HandshakeMessage with
  9656. HandshakeMessageHandle.
  9657. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9658. Removed try-catch block.
  9659. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9660. * src/HttpProxyResponseCommand.cc
  9661. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9662. * src/FtpTunnelResponseCommand.h
  9663. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9664. * src/HttpConnection.cc
  9665. (HttpConnection): Replaced Socket with SocketHandle.
  9666. * src/PeerAbstractCommand.cc
  9667. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9668. (~PeerAbstractCommand): Removed the deallocation of socket.
  9669. Use disableReadCheckSocket, disableWriteCheckSocket.
  9670. (disableReadCheckSocket): New function.
  9671. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9672. (disableWriteCheckSocket): New function.
  9673. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9674. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9675. * src/FtpTunnelRequestCommand.cc
  9676. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9677. (~FtpTunnelRequestCommand): Corrected indentation.
  9678. * src/DownloadCommand.h
  9679. (DownloadCommand): Replaced Socket with SocketHandle.
  9680. * src/PeerListenCommand.cc
  9681. (PeerListenCommand): Removed the initialization of socket.
  9682. (~PeerListenCommand): Removed the deallocation of socket.
  9683. (bindPort): Use SocketHandle.
  9684. (execute): Use SocketHandle and PeerHandle.
  9685. * src/FtpDowndloadCommand.cc
  9686. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9687. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9688. * src/main.cc
  9689. (main): Corrected indentation.
  9690. * src/HttpInitiateConnectionCommand.cc
  9691. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9692. (executeInternal): Removed the allocation of socket.
  9693. * src/HttpRequestCommand.h
  9694. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9695. * src/FtpNegotiationCommand.h
  9696. (dataSocket): Changed its type to SocketHandle.
  9697. (serverSocket): Changed its type to SocketHandle.
  9698. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9699. * src/TorrentMan.h
  9700. (MAX_PEER_UPDATE): Removed.
  9701. (MAX_PEERS): New definition.
  9702. (Peers): The element is now of type PeerHandle.
  9703. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9704. (getPeer): Replaced Peer with PeerHandle.
  9705. (deleteOldErrorPeers): Removed.
  9706. (deleteErrorPeer): New function.
  9707. (hasMissingPiece): Replaced Peer with PeerHandle.
  9708. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9709. (getMissingPiece): Replaced Peer with PeerHandle.
  9710. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9711. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9712. (addActivePeer): Replaced Peer with PeerHandle.
  9713. (deleteActivePeer): Replaced Peer with PeerHandle.
  9714. Added a check for the return value of find.
  9715. * src/FtpTunnelResponseCommand.cc
  9716. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9717. * src/FtpInitiateConnectionCommand.cc
  9718. (executeInternal): Removed the allocation of socket.
  9719. * src/DownloadEngine.h
  9720. (Sockets): An element is now of type SocketHandle.
  9721. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9722. (CommandUuids): New type definition.
  9723. (rsockets): Changed its type to SockCmdMap.
  9724. (wsockets): Changed its type to SockCmdMap.
  9725. (addSocket): Rewritten.
  9726. (deleteSocket): Rewritten.
  9727. (addSocketForReadCheck): Rewritten.
  9728. (deleteSocketForReadCheck): Rewritten.
  9729. (addSocketForWriteCheck): Rewritten.
  9730. (deleteSocketForWriteCheck): Rewritten.
  9731. (PairFind): New template class.
  9732. * src/HttpDownloadCommand.h
  9733. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9734. * src/FtpConnection.cc
  9735. (FtpConnection): Replaced Socket with SocketHandle.
  9736. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9737. block.
  9738. * src/InitiateConnectionCommandFactory.cc
  9739. (DlAbortEx.h): Included DlAbortEx.h.
  9740. (createInitiateConnectionCommand): Throw exception if the protocol of
  9741. requested URI is not supported.
  9742. * src/Peer.cc
  9743. (nullPeer): Changed its type to PeerHandle.
  9744. (operator==): New function.
  9745. (operator!=): New function.
  9746. * src/Peer.h
  9747. (SharedHandle.h): Included SharedHandle.h.
  9748. (operator==): New function.
  9749. (operator!=): New function.
  9750. (Peer): Added the default constructor.
  9751. Use resetStatus() to initialize member variables.
  9752. (nullPeer): Removed.
  9753. * src/TrackerUpdateCommand.cc
  9754. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9755. with MIN_PEERS.
  9756. * src/PeerListenCommand.h
  9757. (socket): Changed its type to SocketHandle.
  9758. * src/Command.h
  9759. (CommandUuid): New type definition.
  9760. (uuid): New variable.
  9761. (uuidGen): New variable.
  9762. (Command): Added the initialization of uuid.
  9763. (getUuid): New function.
  9764. * src/Socket.h
  9765. (Socket): Removed.
  9766. (SocketHandle): New type definition.
  9767. * src/DownloadEngine.h
  9768. (FindCommand): New function object.
  9769. (run): The portion of socket check was rewritten.
  9770. (SetDescriptor): New function object.
  9771. (AccumulateActiveCommandUuid): New function object.
  9772. (waitData): Rewritten.
  9773. (addSocket): Rewritten.
  9774. (deleteSocket): Rewritten.
  9775. (addSocketForReadCheck): Rewritten.
  9776. (addSocketForWriteCheck): Rewritten.
  9777. (deleteSocketForReadCheck): Rewritten.
  9778. (deleteSocketForWriteCheck): Rewritten.
  9779. * src/HttpProxyResponseCommand.h
  9780. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9781. * src/HttpConnection.h
  9782. (socket): Changed its type to SocketHandle.
  9783. (HttpConnection): Replaced Socket with SocketHandle.
  9784. * src/PeerInitiateConnectionCommand.cc
  9785. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9786. (executeInternal): Removed the allocation of socket.
  9787. (prepareForNextPeer): Use PeerHandle.
  9788. * src/PeerMessage.h
  9789. (peer): Changed its type to PeerHandle.
  9790. (getPeer): Replaced Peer with PeerHandle.
  9791. (setPeer): Replaced Peer with PeerHandle.
  9792. * src/DownloadCommand.cc
  9793. (DownloadCommand): Replaced Socket with SocketHandle.
  9794. * src/FtpConnection.h
  9795. (socket): Changed its type to SocketHandle.
  9796. (FtpConnection): Replaced Socket with SocketHandle.
  9797. (sendPort); Replaced Socket with SocketHandle.
  9798. * src/FtpDowndloadCommand.h
  9799. (ctrlSocket): Changed its type to SocketHandle.
  9800. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9801. * src/HttpProxyRequestCommand.cc
  9802. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9803. * src/FtpTunnelRequestCommand.h
  9804. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9805. etc
  9806. * src/PeerChokeCommand.h
  9807. (setAllPeerChoked): Removed.
  9808. (setAllPeerResetDelta): Removed.
  9809. * src/PeerChokeCommand.cc
  9810. (setAllPeerChoked): Removed.
  9811. (ChokePeer): New function object.
  9812. (setAllPeerResetDelta): Removed.
  9813. (ResetDelta): New function object.
  9814. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9815. (execute): Show download speed when the local node is a seeder.
  9816. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9817. using STL.
  9818. * src/TrackerWatcherCommand.h
  9819. (MIN_PEERS): Removed.
  9820. * src/TorrentMan.cc
  9821. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9822. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. To fix the bug that .aria2 file is not saved if downloading is stopped
  9824. by the errors:it results that aria2 can not resume downloading:
  9825. * src/main.cc
  9826. (normalDownload): Added the call to save().
  9827. (main): Added the deletion of the elements in 'reserved'.
  9828. To fix log:
  9829. * src/PeerInteraction.cc
  9830. (receiveHandshake): Fixed log.
  9831. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. To improve download performance in BitTorrent:
  9833. * src/TorrentMan.cc
  9834. (getPeer): Check the number of connections. Return nullPeer if
  9835. it is greater than MAX_PEER_UPDATE.
  9836. This code was originally here, but was removed in 0.5.1.
  9837. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. To improve the conditional compilation:
  9839. * src/MultiDiskWriter.h:
  9840. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9841. * src/MultiDiskWriter.cc:
  9842. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9843. * src/Util.h:
  9844. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9845. Added ENABLE_BITTORRENT around computeFastSet().
  9846. * src/Util.cc:
  9847. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9848. Added ENABLE_BITTORRENT around computeFastSet().
  9849. * src/messageDigest.h:
  9850. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9851. * src/ShaVisitor.h:
  9852. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9853. * src/ShaVisitor.cc:
  9854. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9855. * src/main.cc:
  9856. Added ENABLE_BITTORRENT around includes and blocks related to
  9857. BitTorrent.
  9858. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9859. digest support is not available.
  9860. * src/AbstractDiskWriter.h:
  9861. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9862. * src/AbstractDiskWriter.cc:
  9863. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9864. * src/MetalinkEntry.cc
  9865. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9866. support is not available.
  9867. To add command-line options for Metalink:
  9868. * src/main.cc:
  9869. Added metalink-version, metalink-language, metalink-os,
  9870. follow-metalink.
  9871. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9872. * src/main.cc: Use these definition.
  9873. * Release 0.6.0
  9874. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. To add Metalink support(http/ftp only):
  9876. * src/AbstractCommand.h
  9877. (tryReserved): New function.
  9878. * src/AbstractCommand.cc
  9879. (execute): Call tryReserved().
  9880. (tryReserved): New function.
  9881. * src/Request.h
  9882. (Requests): New type definition.
  9883. * src/SegmentMan.h
  9884. (reserved): New variable.
  9885. * src/Util.h
  9886. (fileChecksum): New function.
  9887. (toUpper): New function.
  9888. (toLower): New function.
  9889. * src/Util.cc
  9890. (messageDigest.h): Included.
  9891. (trim): Trim \r\n\t.
  9892. (fileChecksum): New function.
  9893. (toUpper): New function.
  9894. (toLower): New function.
  9895. * src/main.cc
  9896. (normalDownload): New function.
  9897. (main): Added 2 command-line options: metalink-file,
  9898. metalink-connection. Their usage has not been written yet.
  9899. * src/MetalinkProcessor.h: New class.
  9900. * src/Xml2MetalinkProcessor.h: New class.
  9901. * src/Xml2MetalinkProcessor.cc: New class.
  9902. * src/MetalinkEntry.h: New class.
  9903. * src/MetalinkEntry.cc: New class.
  9904. * src/MetalinkResource.h: New class.
  9905. * src/MetalinkResource.cc: New class.
  9906. To add md5 message digest checking:
  9907. * src/messageDigest.h: Rewritten.
  9908. * src/MultiDiskWriter.cc: Updated according to the changes in
  9909. messageDigest.h.
  9910. * src/ShaVisitor.cc: Updated according to the changes in
  9911. messageDigest.h.
  9912. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9913. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9914. messageDigest.h.
  9915. To fix a bug that causes segfault when the payload length in peer
  9916. message is less than 0:
  9917. * src/PeerConnection.cc:
  9918. (receiveMessage): Fixed the bug.
  9919. * src/PeerMessageUtil.cc
  9920. (checkLength): Throw an exception if length is less than or equals to
  9921. 0.
  9922. To add new interfaces to Base64 encoding/decoding:
  9923. * src/Base64.h
  9924. (part_encode): Changed the method signature.
  9925. (encode): New function(overload).
  9926. (decode): New function(overload).
  9927. * src/Base64.cc
  9928. (part_encode): Rewritten.
  9929. (encode): Rewritten.
  9930. (encode): New function(overload).
  9931. To prevent a peer to download same piece if there is an error in
  9932. checksum:
  9933. * src/PieceMessage.cc
  9934. (receivedAction): Call peerInteraction->abortPiece().
  9935. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. To fix the bug that causes same have message is sent many times to
  9937. a single peer.
  9938. * src/Time.cc
  9939. (isNewer): Use Util::difftv().
  9940. * src/Util.cc
  9941. (difftv): Added a cast to (long long int).
  9942. * src/TorrentMan.cc
  9943. (advertisePiece): Use push_front.
  9944. (getAdvertisedPieceIndexes): A performance improvement was made.
  9945. To fix the bug that sends tracker requests without a sleep interval
  9946. when the number of connections is less than 15.
  9947. * src/TrackerWatcherCommand.cc
  9948. (execute): Now the number of connections is not a factor to decide
  9949. whether or not a tracker request should be sent or not.
  9950. * src/Time.h
  9951. (setTimeInSec): New function.
  9952. * src/Time.cc
  9953. (setTimeInSec): New function.
  9954. etc.
  9955. * src/ChokeMessage.cc
  9956. (receivedAction): Removed peer->snubbing = false
  9957. * src/PeerConnection.h
  9958. (receiveHandshake): Updated doc.
  9959. * src/TorrentMan.h
  9960. (getAdvertisedPieceIndexes): Updated the method signature.
  9961. * src/TorrentMan.cc
  9962. (getAdvertisedPieceIndexes): Updated the method signature.
  9963. * src/Time.h
  9964. (getTimeInMicros): Added a cast to (long long int).
  9965. (getTimeInMillis): Added a cast to (long long int).
  9966. * Release 0.5.2
  9967. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. To make a listening socket non-block:
  9969. * src/SocketCore.h
  9970. (setNonBlockingMode): New function.
  9971. * src/SocketCore.cc
  9972. (setNonBlockingMode): New function.
  9973. (beginListen): Added a call to setNonBlockingMode().
  9974. (acceptConnection): Call setNonBlockingMode().
  9975. (setBlockingMode): Updated.
  9976. To handle tracker's NAT-checking:
  9977. * src/PeerConnection.cc
  9978. (receiveHandshake): 'msg' param is filled with received data and
  9979. its length is assigned to 'length' param, even if all handshake
  9980. message is not yet received.
  9981. * src/PeerInteractionCommand.cc
  9982. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9983. a new peer connects to localhost.
  9984. A call to peerInteraction->sendHandshake() was removed because
  9985. it is called from peerInteraction->receiveHandshake(true).
  9986. * src/PeerInteraction.h
  9987. (quickReplied): New variable.
  9988. (receiveHandshake): Added an argument.
  9989. * src/PeerInteraction.cc
  9990. (PeerInteraction): Added the initialization of quickReplied.
  9991. (receiveHandshake): Send handshake message as soon as the info hash
  9992. in a handshake message from a peer is correct.
  9993. To change the random part of peer id and key parameter:
  9994. * src/TorrentMan.h
  9995. (key): New variable.
  9996. * src/TorrentMan.cc
  9997. (setupInternal1): Use Util::randomAlpha() to generate random part
  9998. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9999. key is also generated by Util::randomAlpha() and it is now 8 character
  10000. long.
  10001. * src/Util.h
  10002. (randomAlpha): New function.
  10003. * src/Util.cc
  10004. (randomAlpha): New function.
  10005. * src/TrackerWatcherCommand.cc
  10006. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10007. Added no_peer_id=1.
  10008. Set snubbing flag to false when a choke message is received from a
  10009. snubbed peer.
  10010. * src/ChokeMessage.cc
  10011. (receivedAction): Set snubbing flag to false.
  10012. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10014. * src/SimpleLogger.h (writeHeader): New function.
  10015. * src/SimpleLogger.cc (writeHeader): New function.
  10016. (writeLog): Fixed the bug that causes segfaults if exception message
  10017. contains an unescaped "%" character.
  10018. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10019. when a tracker request fails.
  10020. * src/Request.cc (parseUrl): Query string is now handled properly.
  10021. * Release 0.5.1
  10022. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. To add Time class which represents a specific instant in time and
  10024. its precision is microseconds. Time checking procedures were rewritten
  10025. using this object.
  10026. * src/Time.h: New class.
  10027. * src/Time.cc: New class.
  10028. * src/AbstractCommand.h
  10029. (updateCheckPoint): Removed.
  10030. (isTimeoutDetected): Removed.
  10031. (checkPoint): Changed the type to Time.
  10032. (timeout): New variable.
  10033. (setTimeout): New function.
  10034. * src/AbstractCommand.cc
  10035. (AbstractCommand): Removed the initialization of checkPoint.
  10036. Added the initialization of timeout.
  10037. (updateCheckPoint): Removed.
  10038. (isTimeoutDetected): Removed.
  10039. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10040. * src/PeerChokeCommand.h
  10041. (checkPoint): Changed the type to Time.
  10042. * src/PeerChokeCommand.cc
  10043. (PeerChokeCommand): Removed the initialization of checkPoint.
  10044. (execute): Rewritten using Time object.
  10045. * src/TrackerWatcherCommand.h
  10046. (checkPoint): Changed the type to Time.
  10047. * src/TrackerWatcherCommand.cc
  10048. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10049. (execute): Rewritten.
  10050. * src/ConsoleDownloadEngine.h
  10051. (cp): Changed the type to Time.
  10052. (startup): Changed the type to Time.
  10053. * src/ConsoleDownloadEngine.cc
  10054. (initStatistics): Use cp.reset(), startup.reset().
  10055. (calculateStatistics): Rewritten using Time object.
  10056. * src/PeerAbstractCommand.h
  10057. (updateCheckPoint): Removed.
  10058. (isTimeoutDetected): Removed.
  10059. (checkPoint): Changed the type to Time.
  10060. * src/PeerAbstractCommand.cc
  10061. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10062. (updateCheckPoint): Removed.
  10063. (isTimeoutDetected): Removed.
  10064. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10065. * src/PeerInteractionCommand.cc
  10066. (PeerInteractionCommand): Removed the initializations of struct
  10067. timeval variables.
  10068. * src/PeerInteractionCommand.h
  10069. (keepAliveCheckPoint): Changed the type to Time.
  10070. (chokeCheckPoint): Changed the type to Time.
  10071. (freqCheckPoint): Changed the type to Time.
  10072. (haveCheckTime): Changed the type to Time.
  10073. * src/PeerInteractionCommand.cc
  10074. (executeInternal): Rewritten using Time object.
  10075. (detectMessageFlooding): Rewritten using Time object.
  10076. (checkLongTimePeerChoking): Rewritten using Time object.
  10077. (sendKeepAlive): Rewritten using Time object.
  10078. (checkHave): Rewritten using Time object.
  10079. * src/SleepCommand.h
  10080. (checkPoint): Changed the type to Time.
  10081. * src/SleepCommand.cc
  10082. (SleepCommand): Removed the initialization of checkPoint.
  10083. (execute): Rewritten using Time object.
  10084. * src/TorrentAutoSaveCommand.h
  10085. (checkPoint): Changed the type to Time.
  10086. * src/TorrentAutoSaveCommand.cc
  10087. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10088. (execute): Rewritten.
  10089. * src/DownloadCommand.h
  10090. (sw): Changed the type to Time.
  10091. * src/DownloadCommand.cc
  10092. (DownloadCommand): Removed the initialization of sw.
  10093. (executeInternal): Rewritten.
  10094. * src/RequestSlot.h
  10095. (dispatchedTime): Changed the type to Time.
  10096. * src/RequestSlot.cc
  10097. (RequestSlot): Removed the call to setDispatchedTime().
  10098. (setDispatchedTime): Rewirtten.
  10099. (isTimeout): Rewritten.
  10100. (getLatencyInMillis): Rewritten.
  10101. * src/TorrentDownloadEngine.h
  10102. (cp): Changed the type to Time[2].
  10103. (startup): Changed the type to Time.
  10104. * src/TorrentDownloadEngine.cc
  10105. (initStatistics): Rewritten.
  10106. (calculateStatistics): Rewritten.
  10107. * src/DownloadEngine.cc
  10108. (run): Rewritten.
  10109. To detect all attempts to connect to the tracker are failed:
  10110. * src/AbstractCommand.cc
  10111. (execute): Increment e->segmentMan->errors if a command aborted.
  10112. * src/SegmentMan.h
  10113. (errors): New variable.
  10114. * src/SegmentMan.cc
  10115. (SegmentMan): Added the initialization of errors.
  10116. (init): Added the initialization of errors.
  10117. * src/TrackerWatcherCommand.cc
  10118. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  10119. request was failed.
  10120. To handle snubbed peers:
  10121. * src/PeerChokeCommand.cc
  10122. (optUnchokingPeer): Snubbed peers don't get unchoked.
  10123. (execute): Snubbed peers don't get unchoked.
  10124. * src/PeerInteraction.h
  10125. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  10126. * src/PeerInteraction.cc
  10127. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  10128. back the requested 16k block in 60 seconds.
  10129. * src/PieceMessage.cc
  10130. (receivedAction): A peer's snubbed state is cleard if it sends
  10131. the requested 16k block in 60 seconds.
  10132. * src/Peer.h
  10133. (snubbing): New variable.
  10134. * src/Peer.cc
  10135. (resetStatus): Added snubbed = false.
  10136. To fix the bug that causes have message is not sent:
  10137. * src/PeerInteractionCommand.cc
  10138. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  10139. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  10140. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  10141. * src/TorrentMan.h
  10142. (HaveEntry): New class.
  10143. (advertisePiece): Rewritten.
  10144. (getAdvertisedPieceIndexes): Rewritten.
  10145. (Haves): Changed the type.
  10146. (getAdvertisedPieceIndexes): Added an argument.
  10147. Others:
  10148. * src/TorrentMan.h
  10149. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10150. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10151. * src/TorrentMan.cc
  10152. (getPeer): Don't check the number of connections here.
  10153. (setupInternal1): Changed peerId.
  10154. * src/PeerInteractionCommand.h
  10155. (KEEP_ALIVE_INTERVAL): New definition.
  10156. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10157. * src/main.cc
  10158. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10159. * src/DownloadEngine.h: Removed unnecessary header includes.
  10160. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. To fix the bug that causes segfaults if a tracker returns a zero-length
  10162. list as "peers":
  10163. * src/TrackerUpdateCommand.cc
  10164. (execute): Added a check to see wether the type of peers is Data*.
  10165. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. * Release 0.5.0
  10167. To fix compile issue with gcc3:
  10168. * src/CancelMessage.h
  10169. (ID): Renamed as ID_t
  10170. (ID_t): New enum.
  10171. * src/RejectMessage.h
  10172. (ID): Renamed as ID_t
  10173. (ID_t): New enum.
  10174. * src/SuggestPieceMessage.h
  10175. (ID): Renamed as ID_t
  10176. (ID_t): New enum.
  10177. * src/AllowedFastMessage.h
  10178. (ID): Renamed as ID_t
  10179. (ID_t): New enum.
  10180. * src/PortMessage.h
  10181. (ID): Renamed as ID_t
  10182. (ID_t): New enum.
  10183. * src/HaveNoneMessage.h
  10184. (ID): Renamed as ID_t
  10185. (ID_t): New enum.
  10186. * src/KeepAliveMessage.h
  10187. (ID): Renamed as ID_t
  10188. (ID_t): New enum.
  10189. * src/HaveAllMessage.h
  10190. (ID): Renamed as ID_t
  10191. (ID_t): New enum.
  10192. * src/UnchokeMessage.h
  10193. (ID): Renamed as ID_t
  10194. (ID_t): New enum.
  10195. * src/BitfieldMessage.h
  10196. (ID): Renamed as ID_t
  10197. (ID_t): New enum.
  10198. * src/PieceMessage.h
  10199. (ID): Renamed as ID_t
  10200. (ID_t): New enum.
  10201. * src/RequestMessage.h
  10202. (ID): Renamed as ID_t
  10203. (ID_t): New enum.
  10204. * src/NotInterestedMessage.h
  10205. (ID): Renamed as ID_t
  10206. (ID_t): New enum.
  10207. * src/ChokeMessage.h
  10208. (ID): Renamed as ID_t
  10209. (ID_t): New enum.
  10210. * src/InterestedMessage.h
  10211. (ID): Renamed as ID_t
  10212. (ID_t): New enum.
  10213. * src/HaveMessage.h
  10214. (ID): Renamed as ID_t
  10215. (ID_t): New enum.
  10216. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. * src/PeerAbstractCommand.h
  10218. (beforeSocketCheck): Removed.
  10219. * src/PeerAbstractCommand.cc
  10220. Modified in order to call executeInternal() even if socket check
  10221. and upload limit check fail.
  10222. * src/PeerInteractionCommand.h
  10223. (keepAlive): Removed.
  10224. (sendKeepAlive): New function.
  10225. (checkHave): New function.
  10226. (beforeSocketCheck): Removed.
  10227. * src/PeerInteractionCommand.cc
  10228. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  10229. calls to checkHave() and sendKeepAlive().
  10230. (keepAlive): Renamed to sendKeepAlive().
  10231. (sendKeepAlive): New function.
  10232. (beforeSocketCheck): Removed.
  10233. (checkHave): New function.
  10234. * src/BitfieldMan.cc
  10235. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  10236. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  10237. 0.
  10238. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  10239. * src/TorrentMan.h
  10240. (UsedPieces): Removed.
  10241. (Pieces): New type definition.
  10242. * src/Piece.h: Updated doc.
  10243. * src/Peer.h
  10244. (totalLength): Removed.
  10245. * src/Peer.cc
  10246. (updateLatency): Fixed the latency calculation.
  10247. * src/TorrentMan.cc
  10248. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  10249. than or equal to MAX_PEER_LIST_SIZE.
  10250. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  10251. then return false.
  10252. (deleteOldErrorPeers): Rewritten.
  10253. (deleteUsedPiece): Fixed the miss use of STL remove.
  10254. * src/PeerInteraction.h
  10255. (Pieces): Removed.
  10256. (deleteTimeoutRequestSlot): Removed.
  10257. (deleteCompletedRequestSlot): Removed.
  10258. (checkRequestSlot): New function.
  10259. * src/PeerInteraction.cc
  10260. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  10261. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  10262. (checkRequestSlot): New function.
  10263. * src/DownloadEngine.cc
  10264. (run): Clear activeSockets before calling waitData().
  10265. (waitData): Removed a call to activeSockets.clear().
  10266. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. To attempt to handle EINTR:
  10268. * src/SocketCore.cc
  10269. (isReadable): Added EINTR handling.
  10270. (isWritable): Added EINTR handling.
  10271. To improve the performance:
  10272. * src/AbstractCommand.cc
  10273. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10274. * src/PeerInteractionCommand.h
  10275. (receiveMessage): Renamed as receiveMessages().
  10276. (receiveMessages): New function.
  10277. * src/PeerInteractionCommand.cc
  10278. (executeInternal): receiveMessage loop is moved to new receiveMessages
  10279. () function. detectMessageFlooding() is moved here.
  10280. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  10281. (). The flooding detection for have message is comment out.
  10282. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  10283. Util::difftv().
  10284. (receiveMessage): Renamed as receiveMessages().
  10285. (receiveMessages): New function.
  10286. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  10287. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  10288. * src/SleepCommand.cc
  10289. (execute): Use Util::difftvsec() instead of Util::difftv().
  10290. * src/BitfieldMan.h
  10291. (getNthBitIndex): New function.
  10292. (hasMissingPiece): New function.
  10293. (getAllMissingIndexes): New function.
  10294. * src/BitfieldMan.cc
  10295. (countSetBit): Rewritten.
  10296. (getNthBitIndex): New function.
  10297. (getMissingIndexRandomly): Rewritten.
  10298. (hasMissingPiece): New function.
  10299. (getAllMissingIndexes): New function.
  10300. * src/TorrentMan.cc
  10301. (hasMissingPiece): New function.
  10302. (deleteUsedPiece): Rewritten using STL.
  10303. * src/PeerInteraction.cc
  10304. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10305. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10306. (addRequests): Updated the number of pending requests.
  10307. * src/PeerAbstractCommand.cc
  10308. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10309. (execute): Returns true if TorrentMan::isHalt() is true.
  10310. Corrected the condition of upload limit checking.
  10311. * src/Util.h
  10312. (countBit): New function.
  10313. * src/Util.cc
  10314. (nbits): New variable.
  10315. (countBit): New function.
  10316. * src/DownloadEngine.h
  10317. (SockCmdMap): New type definition.
  10318. (waitData): Added an argument.
  10319. (addSocket): Added an argument.
  10320. (addSocketForReadCheck): Added an argument.
  10321. (addSocketForWriteCheck): Added an argument.
  10322. * src/DownloadEngine.cc
  10323. (run): Executes only commands whose sockets are ready to read or write.
  10324. All commands are executed in every 1 second.
  10325. (waitData): Calls select() again if it returned
  10326. EINTR.
  10327. (addSocket): Saves socket and command object pair to the map.
  10328. (deleteSocket): Deletes socket and command object pair from the map.
  10329. (addSocketForReadCheck): Added an argument.
  10330. (addSocketForWriteCheck): Added an argument.
  10331. * src/DownloadCommand.cc
  10332. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  10333. To send "event=stopped" to the tracker when the application finishes:
  10334. * src/PeerChokeCommand.h
  10335. (checkPoint): New variable.
  10336. * src/PeerChokeCommand.cc
  10337. (PeerChokeCommand): Added the initialization of checkPoint.
  10338. (execute): The interval check is now done by checkPoint, not
  10339. SleepCommand. Return true if TorrentMan::isHalt() is true.
  10340. * src/TorrentMan.h
  10341. (halt): New function.
  10342. (hasMissingPiece): New function.
  10343. (isHalt): New function.
  10344. (setHalt): New function.
  10345. * src/TorrentMan.cc
  10346. (TorrentMan): Added the initialization of halt.
  10347. * src/TorrentAutoSaveCommand.h
  10348. (checkPoint): New variable.
  10349. * src/PeerListenCommand.cc
  10350. (execute): Returns true if TorrentMan::isHalt() is true.
  10351. * src/main.cc
  10352. (setSignalHander): Added flags argument.
  10353. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  10354. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  10355. Removed printDownloadAbortMessage() after torrent downloading loop.
  10356. * src/TorrentAutoSaveCommand.cc
  10357. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  10358. (execute): Returns true if TorrentMan::isHalt() is true.
  10359. The interval check is now done by checkPoint, not SleepCommand.
  10360. * src/TrackerWatcherCommand.cc
  10361. (execute): If TorrentMan::isHalt(), then create a tracker request with
  10362. event=stopped.
  10363. * src/TrackerUpdateCommand.cc
  10364. (prepareForRetry): Do not use SleepCommand here.
  10365. (execute): Returns true if TorrentMan::isHalt() is true.
  10366. Others:
  10367. * src/TorrentMan.cc
  10368. (getMissingPieceIndex): Updated log message.
  10369. * src/PeerInteraction.cc
  10370. (createPeerMessag): Updated log message.
  10371. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. To add the ability to download several pieces in mix in a command and
  10373. increase the number of request slots according to request-cancel
  10374. latency:
  10375. * src/PeerInteractionCommand.cc
  10376. (executeInternal): The number of messages to be received at a time
  10377. is increased from 10 to 50.
  10378. * src/LogFactory
  10379. (getInstance): Added NullLogger.
  10380. * src/NullLogger.h: New class.
  10381. * src/BitfieldMan.h
  10382. (getMissingIndex): New function.
  10383. * src/BitfieldMan.cc
  10384. (getMissingIndex): New function.
  10385. * src/TorrentMan.h
  10386. (checkOutPiece): New function.
  10387. (getMissingPieceIndex): New function.
  10388. (getMissingFastPieceIndex): New function.
  10389. (getMissingFastPiece): New function.
  10390. * src/TorrentMan.cc
  10391. (updatePiece): Rewritten using STL.
  10392. (syncPiece): Rewritten using STL.
  10393. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10394. checkOutPiece().
  10395. (getMissingPieceIndex): New function.
  10396. (getMissingFastPieceIndex): New function.
  10397. (getMissingFastPiece): New function.
  10398. (checkOutPiece): New function.
  10399. * src/PeerInteraction.h
  10400. (Pieces): New type definition.
  10401. (piece): Removed.
  10402. (pieces): New variable.
  10403. (getNewPieceAndSendInterest): Added the "piece" argument.
  10404. (abortPiece): Added the "piece" argument.
  10405. (abortAllPieces): New function.
  10406. (isInRequestSlot): New function.
  10407. (hasDownloadPiece): Added the "index" argument.
  10408. (setDownloadPiece): Removed.
  10409. (getDownloadPiece): Added the "index" argument.
  10410. (updatePiece): New function.
  10411. (createRequestMessage): Added the "index" argument.
  10412. * src/PeerInteraction.cc
  10413. (onChoked): Rewritten.
  10414. (abortPiece): Rewirtten.
  10415. (abortAllPieces): New function.
  10416. (deleteTimeoutRequestSlot): Rewritten.
  10417. Clarified code a little bit.
  10418. (deleteCompletedRequestSlot): Rewritten.
  10419. (isInRequestSlot): New function.
  10420. (syncPiece): Rewritten.
  10421. (updatePiece): New function.
  10422. (getNewPieceAndSendInterest): Rewritten.
  10423. (addRequests): Rewritten.
  10424. (getDownloadPiece): Rewritten.
  10425. (hasDownloadPiece): Rewritten.
  10426. (createRequestMessage): Added the "index" argument.
  10427. * src/common.h
  10428. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  10429. (DIV_FLOOR): New definition.
  10430. * src/PieceMessage.cc
  10431. (receivedAction): Update request-piece latency here.
  10432. * src/RequestSlot.h
  10433. (getLatencyInMillis): New function.
  10434. * src/RequestSlot.cc
  10435. (isTimeout): Rewritten using getLatencyInMillis.
  10436. (getLatencyInMillis): New function.
  10437. * src/Piece.h
  10438. (operator==): New function.
  10439. (getMissingBlockIndex): New function.
  10440. * src/Piece.cc
  10441. (operator==): New function.
  10442. (getMissingBlockIndex): New function.
  10443. * src/Peer.h
  10444. (DEFAULT_LATENCY): New definition.
  10445. (latency): New variable.
  10446. (updateLatency): New function.
  10447. (getLatency): New function.
  10448. * src/Peer.cc
  10449. (resetStatus): Reset latecy.
  10450. (updateLatency): New function.
  10451. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. * src/SocketCore.cc
  10453. (isReadable): Added secure to the condition.
  10454. * src/HttpConnection.cc
  10455. (receiveResponse): Fixed a bug that causes no response header
  10456. exception.
  10457. * src/Peer.h
  10458. (getFastSet): Fixed the return value type.
  10459. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. To remove a wait from download loop:
  10461. * src/DownloadEngine.cc
  10462. (run): Comment out shortSleep.
  10463. To rewrite the message handling:
  10464. * src/SimplePeerMessage.h: New class.
  10465. * src/SimplePeerMessage.cc: New class.
  10466. * src/CancelMessage.h: Derived from SimplePeerMessage.
  10467. (msg): New variable.
  10468. (create): New function.
  10469. (send): Removed.
  10470. (getMessage): New function.
  10471. (getMessageLength): New function.
  10472. * src/CancelMessage.cc
  10473. (create): New function.
  10474. (receivedAction): Replaced deleteRequestMessageInQueue with
  10475. rejectPieceMessageInQueue.
  10476. (send): Removed.
  10477. (getMessage): New function.
  10478. (getMessageLength): New function.
  10479. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  10480. (msg): New variable.
  10481. (msgLength): New variable.
  10482. (~BitfieldMessage): Deleted msg.
  10483. (send): Removed.
  10484. (getMessage): New function.
  10485. (getMessageLength): New function.
  10486. * src/BitfieldMessage.cc
  10487. (create): New function.
  10488. (send): Removed.
  10489. (getMessage): New function.
  10490. (getMessageLength): New function.
  10491. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  10492. (msg): New variable.
  10493. (sendPredicate): New function.
  10494. (onSendComplete): New function.
  10495. (send): Removed.
  10496. (getMessage): New function.
  10497. (getMessageLength): New function.
  10498. (create): New function.
  10499. * src/ChokeMessage.cc
  10500. (create): New function.
  10501. (send): Removed.
  10502. (sendPredicate): New function.
  10503. (getMessage): New function.
  10504. (getMessageLength): New function.
  10505. (onSendComplete): New function.
  10506. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  10507. (msg): New variable.
  10508. (send): Removed.
  10509. (getMessage): New function.
  10510. (getMessageLength): New function.
  10511. * src/KeepAliveMessage.cc
  10512. (send): Removed.
  10513. (getMessage): New function.
  10514. (getMessageLength): New function.
  10515. * src/PortMessage.h
  10516. (create): New function.
  10517. (receivedAction): Updated log message.
  10518. * src/PortMessage.cc: New file.
  10519. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  10520. (msg): New variable.
  10521. (sendPredicate): New function.
  10522. (onSendComplete): New function.
  10523. (create): New function.
  10524. (send): Removed.
  10525. (getMessage): New function.
  10526. (getMessageLength): New function.
  10527. * src/UnchokeMessage.cc
  10528. (create): New function.
  10529. (send): Removed.
  10530. (sendPredicate): New function.
  10531. (getMessage): New function.
  10532. (getMessageLength): New function.
  10533. (onSendComplete): New function.
  10534. * src/PieceMessage.h
  10535. (leftPieceDataLength): Removed.
  10536. (leftDataLength): New variable.
  10537. (headerSend): New variable.
  10538. (pendingCount): New variable.
  10539. (msgHeader): New variable.
  10540. (sendPieceData): New function.
  10541. (incrementPendingCount): New function.
  10542. (isPendingCountMax): New function.
  10543. (create): New function.
  10544. (getMessageHeader): New function.
  10545. (getMessageHeaderLength): New function.
  10546. * src/PieceMessage.cc
  10547. (create): New function.
  10548. (getMessageHeader): New function.
  10549. (getMessageHeaderLength): New function.
  10550. (send): Rewritten.
  10551. (sendPieceData): New function.
  10552. * src/HaveMessage.h: Derived from SimplePeerMessage.
  10553. (msg): New variable.
  10554. (create): New function.
  10555. (getMessage): New function.
  10556. (getMessageLength): New function.
  10557. * src/HaveMessage.cc
  10558. (create): New function.
  10559. (send): Removed.
  10560. (sendPieceData): New function.
  10561. (getMessage): New function.
  10562. (getMessageLength): New function.
  10563. * src/RequestMessage.h: Derived from SimplePeerMessage.
  10564. (msg): New variable.
  10565. (create): New function.
  10566. (send): Removed.
  10567. (getMessage): New function.
  10568. (getMessageLength): New function.
  10569. * src/RequestMessage.cc
  10570. (create): New function.
  10571. (receivedAction): Added the handling of fast extension.
  10572. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  10573. (send): Removed.
  10574. (getMessage): New function.
  10575. (getMessageLength): New function.
  10576. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  10577. (msg): New variable.
  10578. (sendPredicate): New function.
  10579. (onSendComplete): New function.
  10580. (create): New function.
  10581. (getMessage): New function.
  10582. (getMessageLength): New function.
  10583. * src/InterestedMessage.cc
  10584. (create): New function.
  10585. (send): Removed.
  10586. (sendPieceData): New function.
  10587. (getMessage): New function.
  10588. (getMessageLength): New function.
  10589. (onSendComplete): New function.
  10590. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  10591. (msg): New variable.
  10592. (sendPieceData): New function.
  10593. (onSendComplete): New function.
  10594. (create): New function.
  10595. (send): Removed.
  10596. (getMessage): New function.
  10597. (getMessageLength): New function.
  10598. * src/NotInterestedMessage.cc
  10599. (create): New function.
  10600. (send): Removed.
  10601. (sendPredicate): New function.
  10602. (getMessage): New function.
  10603. (getMessageLength): New function.
  10604. (onSendComplete): New function.
  10605. * src/AllowedFastMessage.h: New class.
  10606. * src/AllowedFastMessage.cc: New class.
  10607. * src/RejectMessage.h: New class.
  10608. * src/RejectMessage.cc: New class.
  10609. * src/SuggestPieceMessage.h: New class.
  10610. * src/SuggestPieceMessage.cc: New class.
  10611. * src/HaveAllMessage.h: New class.
  10612. * src/HaveAllMessage.cc: New class.
  10613. * src/HaveNoneMessage.h: New class.
  10614. * src/HaveNoneMessage.cc: New class.
  10615. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  10616. (msg): New variable.
  10617. (reserved): New variable.
  10618. (create): New function.
  10619. (getId): New function.
  10620. (receivedAction): New function.
  10621. (getMessage): New function.
  10622. (getMessageLength): New function.
  10623. (isFastExtensionSupported): New function.
  10624. * src/HandshakeMessage.cc
  10625. (HandshakeMessage): Moved here from HandshakeMessage.h.
  10626. (create): New function.
  10627. (getMessage): New function.
  10628. (getMessageLength): New function.
  10629. (toString): Added the output of reserved field.
  10630. (check): Added const qualifier.
  10631. (isFastExtensionSupported): New function.
  10632. * src/PeerMessageUtil.h
  10633. (createChokeMessage): Removed.
  10634. (createUnchokeMessage): Removed.
  10635. (createInterestedMessage): Removed.
  10636. (createNotInterestedMessage): Removed.
  10637. (createHaveMessage): Removed.
  10638. (createBitfieldMessage): Removed.
  10639. (createRequestMessage): Removed.
  10640. (createCancelMessage): Removed.
  10641. (createPieceMessage): Removed.
  10642. (createPortMessage): Removed.
  10643. (createChokeMessage): Removed.
  10644. (createUnchokeMessage): Removed.
  10645. (createInterestedMessage): Removed.
  10646. (createNotInterestedMessage): Removed.
  10647. (createHaveMessage): Removed.
  10648. (createBitfieldMessage): Removed.
  10649. (createRequestMessage): Removed.
  10650. (createCancelMessage): Removed.
  10651. (createPieceMessage): Removed.
  10652. (createKeepAliveMessage): Removed.
  10653. (createHandshakeMessage): Removed.
  10654. (setIntParam): New function.
  10655. (createPeerMessageString): New function.
  10656. * src/PeerMessageUtil.cc
  10657. (createChokeMessage): Removed.
  10658. (createUnchokeMessage): Removed.
  10659. (createInterestedMessage): Removed.
  10660. (createNotInterestedMessage): Removed.
  10661. (createHaveMessage): Removed.
  10662. (createBitfieldMessage): Removed.
  10663. (createRequestMessage): Removed.
  10664. (createCancelMessage): Removed.
  10665. (createPieceMessage): Removed.
  10666. (createPortMessage): Removed.
  10667. (createRequestMessage): Removed.
  10668. (createCancelMessage): Removed.
  10669. (createPieceMessage): Removed.
  10670. (createHaveMessage): Removed.
  10671. (createChokeMessage): Removed.
  10672. (createUnchokeMessage): Removed.
  10673. (createInterestedMessage): Removed.
  10674. (createNotInterestedMessage): Removed.
  10675. (createBitfieldMessage): Removed.
  10676. (createKeepAliveMessage): Removed.
  10677. (createHandshakeMessage): Removed.
  10678. (setIntParam): New function.
  10679. (createPeerMessageString): New function.
  10680. * src/PeerConnection.h
  10681. (peer): Removed.
  10682. (torrentMan): Removed.
  10683. (createNLengthMessage): Removed.
  10684. (setIntParam): Removed.
  10685. (writeOutgoingMessageLog): Removed all overloaded functions.
  10686. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10687. (sendMessage): New function.
  10688. (sendHandshake): Removed.
  10689. (sendKeepAlive): Removed.
  10690. (sendChoke): Removed.
  10691. (sendUnchoke): Removed.
  10692. (sendInterested): Removed.
  10693. (sendNotInterested): Removed.
  10694. (sendHave): Removed.
  10695. (sendBitfield): Removed.
  10696. (sendRequest): Removed.
  10697. (sendPiece): Removed.
  10698. (sendPieceHeader): Removed.
  10699. (sendPieceData): Removed.
  10700. (sendCancel): Removed.
  10701. (getPeer): Removed.
  10702. * src/PeerConnection.cc
  10703. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10704. (sendHandshake): Removed.
  10705. (sendKeepAlive): Removed.
  10706. (createNLengthMessage): Removed.
  10707. (setIntParam): Removed.
  10708. (writeOutgoingMessageLog): Removed all overloaded functions.
  10709. (sendChoke): Removed.
  10710. (sendUnchoke): Removed.
  10711. (sendInterested): Removed.
  10712. (sendNotInterested): Removed.
  10713. (sendHave): Removed.
  10714. (sendBitfield): Removed.
  10715. (sendRequest): Removed.
  10716. (sendPiece): Removed.
  10717. (sendPieceHeader): Removed.
  10718. (sendPieceData): Removed.
  10719. (sendMessage): New function.
  10720. (sendCancel): Removed.
  10721. * src/PeerInteractionCommand.cc
  10722. (PeerInteractionCommand): Call setUploadLimit.
  10723. (executeInternal): Call setUploadLimit.
  10724. Added the handling of "inProgress" state of handshake message.
  10725. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10726. sendNow().
  10727. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10728. sendNow().
  10729. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10730. * src/TorrentMan.h
  10731. (PEER_ID_LENGTH): New definition.
  10732. (hasAllPieces): New function.
  10733. * src/TorrentMan.cc
  10734. (getMissingPiece): Added the handling of fast extension.
  10735. (cancelPiece): Call updatePiece().
  10736. (hasAllPieces): New function.
  10737. * src/PeerInteraction.h
  10738. (fastSet): New variable.
  10739. (getNewPieceAndSendInterest): Changed the return type to void.
  10740. (send): Renamed as sendMessages.
  10741. (deleteAllRequestSlot): Removed.
  10742. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10743. (cancelAllRequest): Removed all overloaded functions.
  10744. (deleteAllRequestSlot): Removed.
  10745. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10746. (rejectPieceMessageInQueue): New function.
  10747. (rejectAllPieceMessageInQueue): New function.
  10748. (onChoked): New function.
  10749. (isSendingMessageInProgress): New function.
  10750. (getCorrespondingRequestSlot): Changed its arguments.
  10751. (isInFastSet): New function.
  10752. (addFastSetIndex): New function.
  10753. (addRequests): New function.
  10754. (sendNow): Removed.
  10755. (trySendNow): Removed.
  10756. (sendBitfield): New function.
  10757. (sendAllowdFast): New function.
  10758. (createHaveAllMessage): New function.
  10759. (createHaveNoneMessage): New function.
  10760. (createRejectMessage): New function.
  10761. (createAllowedFastMessage): New function.
  10762. * src/PeerInteraction.cc
  10763. (send): Renamed as sendMessages.
  10764. (sendMessages): New function.
  10765. (MsgPushBack): New class.
  10766. (isSendingMessageInProgress): New function.
  10767. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10768. (rejectAllPieceMessageInQueue): New function.
  10769. Added the handling of fast extension.
  10770. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10771. (rejectPieceMessageInQueue): New function.
  10772. Added the handling of fast extension.
  10773. (deleteRequestSlot): Replaced for loop with std::find.
  10774. (onChoked): New function.
  10775. (deleteAllRequestSlot): Removed.
  10776. (abortPiece): Rewirtten.
  10777. (deleteTimeoutRequestSlot): Updated log messages.
  10778. (getCorrespondingRequestSlot): Changed its arguments.
  10779. (cancelAllRequest): Removed all overloaded functions.
  10780. (receiveHandshake): Added the check to see whether an incoming peer
  10781. supports fast extension.
  10782. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10783. PeerMessageUtil.
  10784. (createPeerMessage): Use create() of each message class instead of
  10785. PeerMessageUtil.
  10786. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10787. AllowedFastMessage were added.
  10788. (getNewPieceAndSendInterest): Changed its return value type to void.
  10789. Added the handling of fast extension.
  10790. (addRequests): New function.
  10791. (sendNow): Removed.
  10792. (sendHandshake): Rewritten.
  10793. (trySendNow): Removed.
  10794. (sendBitfield): New function.
  10795. (sendAllowdFast): New function.
  10796. (isInFastSet): New function.
  10797. (addFastSetIndex): New function.
  10798. (createRequestMessage): Use RequestMessage::create instead of
  10799. PeerMessageUtil.
  10800. (createCancelMessage): Use CancelMessage::create instead of
  10801. PeerMessageUtil.
  10802. (createPieceMessage): Use PieceMessage::create instead of
  10803. PeerMessageUtil.
  10804. (createHaveMessage): Use HaveMessage::create instead of
  10805. PeerMessageUtil.
  10806. (createChokeMessage): Use ChokeMessage::create instead of
  10807. PeerMessageUtil.
  10808. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10809. PeerMessageUtil.
  10810. (createInterestedMessage): Use InterestedMessage::create instead of
  10811. PeerMessageUtil.
  10812. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10813. of PeerMessageUtil.
  10814. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10815. PeerMessageUtil.
  10816. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10817. PeerMessageUtil.
  10818. (createHaveAllMessage): New function.
  10819. (createHaveNoneMessage): New function.
  10820. (createRejectMessage): New function.
  10821. (createAllowedFastMessage: New function.
  10822. * src/Util.h
  10823. (sha1Sum): New function.
  10824. (computeFastSet): New function.
  10825. * src/Util.cc
  10826. (sha1Sum): New function.
  10827. (computeFastSet): New function.
  10828. * src/Peer.h
  10829. (fastExtensionEnabled): New variable.
  10830. (fastSet): New variable.
  10831. (setAllBitfield): New function.
  10832. (setFastExtensionEnabled): New function.
  10833. (isFastExtensionEnabled): New function.
  10834. (addFastSetIndex): New function.
  10835. (getFastSet): New function.
  10836. (isInFastSet): New function.
  10837. (countFastSet): New function.
  10838. * src/Peer.cc
  10839. (isInFastSet): New function.
  10840. (addFastSetIndex): New function.
  10841. (setAllBitfield): New function.
  10842. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10843. sockets.
  10844. * src/PeerAbstractCommand.cc
  10845. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10846. and uploadLimit.
  10847. (execute): Changed the procedure of checking sockets. The upload speed
  10848. checking were added.
  10849. (setUploadLimit): New function.
  10850. (setUploadLimitCheck): New function.
  10851. * src/PeerAbstractCommand.h
  10852. (setUploadLimit): New function.
  10853. (setUploadLimitCheck): New function.
  10854. (uploadLimit): New variable.
  10855. (uploadLimitCheck): New variable.
  10856. To contact a tracker regularly:
  10857. * src/TrackerWatcherCommand.h (interval): New variable.
  10858. (checkPoint): New variable.
  10859. (TrackerWatcherCommand): Added interval argument.
  10860. * src/TrackerWatcherCommand.cc
  10861. (TrackerWatcherCommand): Initialized checkPoint.
  10862. (execute): Now a tracker is contacted in every specified period.
  10863. If peer list is not needed, send request with numwant=0.
  10864. * src/TrackerUpdateCommand.cc
  10865. (execute): Updated log messages.
  10866. * src/DownloadEngine.cc
  10867. (~DownloadEngine): Removed two asserts.
  10868. (waitData): Uncommented wfds. May be a bug fix.
  10869. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. * src/PeerInteractionCommand.h
  10871. (checkInactiveConnection): Removed.
  10872. * src/PeerInteractionCommand.cc
  10873. (executeInternal): Removed following function calls:
  10874. detectMessageFlooding(), checkLongTimePeerChoking and
  10875. checkInactiveConnection().
  10876. (checkInactiveConnection): Removed.
  10877. (detectMessageFlooding): Removed function call to
  10878. checkInactiveConnection().
  10879. * src/PeerMessageUtil.h
  10880. (createChokeMessage): New function. Overload.
  10881. (createUnchokeMessage): New function. Overload.
  10882. (createInterestedMessage): New function. Overload.
  10883. (createNotInterestedMessage): New function. Overload.
  10884. (createHaveMessage): New function. Overload.
  10885. (createBitfieldMessage): New function. Overload.
  10886. (createRequestMessage): New function. Overload.
  10887. (createCancelMessage): New function. Overload.
  10888. (createPieceMessage): New function. Overload.
  10889. (createKeepAliveMessage): New function. Overload.
  10890. * src/PeerMessageUtil.cc
  10891. (createChokeMessage): New function. Overload.
  10892. (createUnchokeMessage): New function. Overload.
  10893. (createInterestedMessage): New function. Overload.
  10894. (createNotInterestedMessage): New function. Overload.
  10895. (createHaveMessage): New function. Overload.
  10896. (createBitfieldMessage): New function. Overload.
  10897. (createRequestMessage): New function. Overload.
  10898. (createCancelMessage): New function. Overload.
  10899. (createPieceMessage): New function. Overload.
  10900. (createKeepAliveMessage): New function. Overload.
  10901. * src/SendMessageQueue.cc
  10902. (createRequestMessage): Use PeerMessageUtil.
  10903. (createCancelMessage): Use PeerMessageUtil.
  10904. (createPieceMessage): Use PeerMessageUtil.
  10905. (createHaveMessage): Use PeerMessageUtil.
  10906. (createChokeMessage): Use PeerMessageUtil.
  10907. (createUnchokeMessage): Use PeerMessageUtil.
  10908. (createInterestedMessage): Use PeerMessageUtil.
  10909. (createNotInterestedMessage): Use PeerMessageUtil.
  10910. (createBitfieldMessage): Use PeerMessageUtil.
  10911. (createKeepAliveMessage): Use PeerMessageUtil.
  10912. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10913. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10914. * src/PeerInteraction.h: New class.
  10915. * src/PeerInteraction.cc: New class.
  10916. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10917. Each peer message has its own class.
  10918. * src/PendingMessages.h: Removed.
  10919. * src/PendingMessages.cc: Removed. The sending process was moved to
  10920. each message class.
  10921. * src/RequestSlotMan.h: Removed.
  10922. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10923. SendMessageQueue.
  10924. * src/RequestMessage.h: New class.
  10925. * src/RequestMessage.cc: New class.
  10926. * src/CancelMessage.h: New class.
  10927. * src/CancelMessage.cc: New class.
  10928. * src/BitfieldMessage.h: New class.
  10929. * src/BitfieldMessage.cc: New class.
  10930. * src/ChokeMessage.h: New class.
  10931. * src/ChokeMessage.cc: New class.
  10932. * src/KeepAliveMessage.h: New class.
  10933. * src/KeepAliveMessage.cc: New class.
  10934. * src/PortMessage.h: New class.
  10935. * src/UnchokeMessage.h: New class.
  10936. * src/UnchokeMessage.cc: New class.
  10937. * src/PieceMessage.h: New class.
  10938. * src/PieceMessage.cc: New class.
  10939. * src/HaveMessage.h: New class.
  10940. * src/HaveMessage.cc: New class.
  10941. * src/BitfieldMessage.h: New class.
  10942. * src/BitfieldMessage.cc: New class.
  10943. * src/NotInterestedMessage.h: New class.
  10944. * src/NotInterestedMessage.cc: New class.
  10945. * src/InterestedMessage.h: New class.
  10946. * src/InterestedMessage.cc: New class.
  10947. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10948. (getSendMessageQueue): New function.
  10949. (setSendMessageQueue): New function.
  10950. * src/HandshakeMessage.cc: New class.
  10951. * src/PeerConnection.h (receiveMessage): Changed return value and
  10952. arguments.
  10953. (receiveHandshake): Changed return value and arguments.
  10954. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10955. here.
  10956. (receiveHandshake): Do not create handshake class here.
  10957. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10958. (piece): Removed.
  10959. (syncPiece): Removed.
  10960. (sendInterest): Removed.
  10961. (sendMessages): Removed.
  10962. (createRequestPendingMessage): Removed.
  10963. (checkPieceHash): Removed.
  10964. (erasePieceOnDisk): Removed.
  10965. (getNewPieceAndSendInterest): Removed.
  10966. (onGotNewPice): Removed.
  10967. (onGotWrongPiece): Removed.
  10968. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10969. Removed peerConnection, piece.
  10970. (~PeerInteractionCommand): Removed peerConnection.
  10971. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10972. (syncPiece): Moved to SendMessageQueue.
  10973. (decideChoking): Removed PendingMessage.
  10974. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10975. The action after receiving peer message was moved to each message
  10976. class.
  10977. (onGotNewPice): Moved to SendMessageQueue.
  10978. (onGotWrongPiece): Moved to SendMessageQueue.
  10979. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10980. (sendInterest): Moved to SendMessageQueue.
  10981. (createRequestPendingMessage): Removed.
  10982. (sendMessages): Moved to SendMessageQueue.
  10983. (onAbort): Use SendMessageQueue::abortPiece()
  10984. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10985. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10986. (checkPieceHash): Moved to SendMessageQueue.
  10987. (erasePieceOnDisk): Moved to SendMessageQueue.
  10988. * src/PeerMessageUtil.h
  10989. (createBitfieldMessage): Removed.
  10990. (createHaveMessage): Changed return value and arguments.
  10991. (createBitfieldMessage): Changed return value and arguments.
  10992. (createRequestCancelMessage): Removed.
  10993. (createPieceMessage): Changed return value and arguments.
  10994. (getShortIntParam): New function.
  10995. (checkIndex): Changed arguments.
  10996. (checkBegin): Changed arguments.
  10997. (checkLength): Changed arguments.
  10998. (checkPieceOffset): Removed.
  10999. (checkRange): New function.
  11000. (checkBitfield): Changed arguments.
  11001. (createPeerMessage): Removed.
  11002. (checkIntegrity): Removed.
  11003. (createHandshakeMessage): Changed arguments.
  11004. (createChokeMessage): New function.
  11005. (createUnchokeMessage): New function.
  11006. (createInterestedMessage): New function.
  11007. (createNotInterestedMessage): New function.
  11008. (createRequestMessage): New function.
  11009. (createCancelMessage): New function.
  11010. (createPortMessage): New function.
  11011. * src/PeerMessageUtil.cc
  11012. (createBitfieldMessage): Removed.
  11013. (createHaveMessage): Changed return value and arguments.
  11014. (createBitfieldMessage): Changed return value and arguments.
  11015. (createRequestCancelMessage): Removed.
  11016. (createPieceMessage): Changed return value and arguments.
  11017. (getShortIntParam): New function.
  11018. (checkIndex): Changed arguments.
  11019. (checkBegin): Changed arguments.
  11020. (checkLength): Changed arguments.
  11021. (checkPieceOffset): Removed.
  11022. (checkRange): New function.
  11023. (checkBitfield): Changed arguments.
  11024. (createPeerMessage): Removed.
  11025. (checkIntegrity): Removed.
  11026. (createHandshakeMessage): Changed arguments.
  11027. (createChokeMessage): New function.
  11028. (createUnchokeMessage): New function.
  11029. (createInterestedMessage): New function.
  11030. (createNotInterestedMessage): New function.
  11031. (createRequestMessage): New function.
  11032. (createCancelMessage): New function.
  11033. (createPortMessage): New function.
  11034. * src/PeerMessage.h
  11035. (id): Removed.
  11036. (index): Removed.
  11037. (begin): Removed.
  11038. (length): Removed.
  11039. (bitfield): Removed.
  11040. (bitfieldLength): Removed.
  11041. (block): Removed.
  11042. (blockLength): Removed.
  11043. (inProgress): New variable.
  11044. (cuid): New variable.
  11045. (peer): New variable.
  11046. (sendMessageQueue): New variable.
  11047. (logger): New variable.
  11048. (setBitfield): Removed.
  11049. (getBitfield): Removed.
  11050. (setBlock): Removed.
  11051. (getBlock): Removed.
  11052. (getBitfieldLength): Removed.
  11053. (getBlockLength): Removed.
  11054. (isInProgress): New function.
  11055. (toString): Made pure virtual.
  11056. (check): New function.
  11057. (send): New function.
  11058. (receivedAction): New function.
  11059. (getId): Made pure virtual.
  11060. (setId): Removed.
  11061. (getIndex): Removed.
  11062. (setIndex): Removed.
  11063. (getBegin): Removed.
  11064. (setBegin): Removed.
  11065. (getLength): Removed.
  11066. (setLength): Removed.
  11067. (getCuid): New function.
  11068. (setCuid): New function.
  11069. (getPeer): New function.
  11070. (setPeer): New function.
  11071. (getSendMessageQueue): New function.
  11072. (setSendMessageQueue): New function.
  11073. (ID): Removed.
  11074. * src/PeerMessage.cc
  11075. (setBitfield): Removed.
  11076. (setBlock): Removed.
  11077. (toString): Removed.
  11078. * src/TorrentMan.h
  11079. (getPieceLength): New function.
  11080. (getPieceLength): New function.
  11081. * src/SendMessageQueue.h
  11082. (REQUEST_TIME_OUT): New definition.
  11083. (RequestSlots): New definition.
  11084. (MessageQueue): New definition.
  11085. (requestSlotMan): Removed.
  11086. (pendingMessages): Removed.
  11087. (requestSlots): New variable.
  11088. (messageQueue): New variable.
  11089. (torrentMan): New variable.
  11090. (peerConnection): New variable.
  11091. (peer): New variable.
  11092. (piece): New variable.
  11093. (getNewPieceAndSendInterest): New function.
  11094. (createPeerMessage): New function.
  11095. (createHandshakeMessage): New function.
  11096. (send): Made private.
  11097. (setPeerMessageCommonProperty): New function.
  11098. (deleteAllRequestSlot): New function.
  11099. (deleteRequestMessageInQueue): New function.
  11100. (cancelAllRequest): Made private.
  11101. (cancelAllRequest): Made private.
  11102. (countRequestSlot): Made private.
  11103. (addPendingMessage): Removed.
  11104. (deletePendingPieceMessage): Removed.
  11105. (deletePendingRequestMessage): Removed.
  11106. (addMessage): New function.
  11107. (deletePieceMessageInQueue): New function.
  11108. (deleteTimeoutRequestSlot): Changed argument.
  11109. (deleteCompletedRequestSlot): Changed argument.
  11110. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  11111. (getCorrespondingRequestSlot): New function.
  11112. (countPendingMessage): Removed.
  11113. (countMessageInQueue): New function.
  11114. (getTorrentMan): New function.
  11115. (getPeerConnection): New function.
  11116. (hasDownloadPiece): New function.
  11117. (getDownloadPiece): New function.
  11118. (setDownloadPiece): New function.
  11119. (syncPiece): New function.
  11120. (sendMessages): New function.
  11121. (sendNow): New function.
  11122. (trySendNow): New function.
  11123. (abortPiece): New function.
  11124. (sendHandshake): New function.
  11125. (receiveMessage): New function.
  11126. (receiveHandshake): New function.
  11127. (createRequestMessage): New function.
  11128. (createCancelMessage): New function.
  11129. (createPieceMessage): New function.
  11130. (createHaveMessage): New function.
  11131. (createChokeMessage): New function.
  11132. (createUnchokeMessage): New function.
  11133. (createInterestedMessage): New function.
  11134. (createNotInterestedMessage): New function.
  11135. (createBitfieldMessage): New function.
  11136. (createKeepAliveMessage): New function.
  11137. * src/SendMessageQueue.cc
  11138. (SendMessageQueue): Removed requestSlotMan.
  11139. Instantiated peerConnection here.
  11140. (~SendMessageQueue): Removed requestSlotMan.
  11141. Added deletion of peerConnection and the contents of messageQueue.
  11142. (send): Updated according to the change of messageQueue.
  11143. (addPendingMessage): Renamed to addMessage.
  11144. (addMessage): New function.
  11145. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11146. (deletePieceMessageInQueue): New function.
  11147. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11148. (deleteRequestMessageInQueue): New function.
  11149. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11150. here.
  11151. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11152. (...) was moved here.
  11153. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11154. moved here.
  11155. (deleteCompletedRequestSlot):
  11156. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11157. (getCorrespondingRequestSlot):
  11158. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11159. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11160. (countPendingMessage): Renamed to countMessageInQueue.
  11161. (countMessageInQueue): New function.
  11162. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11163. (receiveHandshake): New function.
  11164. (createHandshakeMessage): New function.
  11165. (receiveMessage): New function.
  11166. (createPeerMessage): New function.
  11167. (syncPiece): New function.
  11168. (getNewPieceAndSendInterest): New function.
  11169. (sendMessages): New function.
  11170. (sendNow): New function.
  11171. (trySendNow): New function.
  11172. (sendHandshake): New function.
  11173. (abortPiece): New function.
  11174. (getDownloadPiece): New function.
  11175. (getPeerMessageCommonProperty): New function.
  11176. (createRequestMessage): New function.
  11177. (createCancelMessage): New function.
  11178. (createPieceMessage): New function.
  11179. (createHaveMessage): New function.
  11180. (createChokeMessage): New function.
  11181. (createUnchokeMessage): New function.
  11182. (createInterestedMessage): New function.
  11183. (createNotInterestedMessage): New function.
  11184. (createBitfieldMessage): New function.
  11185. (createKeepAliveMessage): New function.
  11186. To add simple Content-Disposition support:
  11187. * src/HttpResponseCommand.h (determinFilename): New function.
  11188. * src/HttpResponseCommand.cc (executeInternal):
  11189. Use determinFilename(headers) instead of req->getFile() when comparing
  11190. filename.
  11191. (determinFilename): New function.
  11192. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11193. req->getFile().
  11194. (handleOtherEncoding): Use determinFilename(headers) instead of
  11195. req->getFile().
  11196. * src/Util.h (getContentDispositionFilename): New function.
  11197. * src/Util.cc (getContentDispositionFilename): New function.
  11198. * src/LogFactory.h (release): New function.
  11199. * src/LogFactory.cc (release): New function.
  11200. To fix a bug that causes out-of-bound exception when HTTP status
  11201. line is wrong:
  11202. * src/HttpConnection.cc (receiveResponse): Added a check for header
  11203. size.
  11204. * src/common.h (Deleter): New class.
  11205. * src/SegmentMan.cc
  11206. (~SegmentMan): Added deletion of splitter and diskWriter.
  11207. * src/DownloadEngine.h
  11208. (Commands): Use deque.
  11209. (clearQueue): New function.
  11210. * src/DownloadEngine.cc
  11211. (~DownloadEngine): Added deletion of segmentMan.
  11212. (cleanQueue): New function.
  11213. * src/TorrentDownloadEngine.h
  11214. (TorrentDownloadEngine): The implementation was moved to
  11215. TorrentDownloadEngine.cc.
  11216. (~TorrentDownloadEngine): The implementation was moved to
  11217. TorrentDownloadEngine.cc.
  11218. * src/TorrentDownloadEngine.cc
  11219. (~TorrentDownloadEngine): Added deletion of torrentMan.
  11220. * src/main.cc
  11221. (clearRequest): Removed.
  11222. (handler): Added deletion of e.
  11223. (torrentHandler): Added deletion of te.
  11224. (main): Do not share splitter.
  11225. Use Deleter instead of clearRequest.
  11226. Deletion of classes were updated.
  11227. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11228. * src/main.cc (main): Fixed typo.
  11229. * src/message.h: Fixed typo.
  11230. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  11231. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. To add --select-file command-line option:
  11233. * src/Util.cc
  11234. (unfoldRange): New function.
  11235. (getNum): New function.
  11236. (unfoldSubRange): New function
  11237. * src/main.cc
  11238. (showUsage): Added help message.
  11239. (main): Added --select-file command-line option. Updated the layout of
  11240. file listing.
  11241. * src/common.h
  11242. (Integers): New definition.
  11243. * src/SocketCore.cc
  11244. (writeData): Removed timeout argument.
  11245. (readData): Removed timeout argument.
  11246. (peekData): Removed timeout argument.
  11247. * src/Socket.cc
  11248. (writeData): Removed timeout argument.
  11249. (readData): Removed timeout argument.
  11250. (peekData): Removed timeout argument.
  11251. * Release 0.4.1
  11252. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. To deploy upload rate based choking algorithm:
  11254. * src/PeerInteractionCommand.cc
  11255. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  11256. peer currently used.
  11257. (decideChoking): Deleted the choke/unchoke decision algorithm when
  11258. download completes. Simplified.
  11259. (receiveMessage): Updated.
  11260. * src/TorrentMan.h
  11261. (activePeers): New variable.
  11262. (addActivePeer): New function.
  11263. (getActivePeers): New function.
  11264. (deleteActivePeer): New function.
  11265. * src/TorrentMan.cc
  11266. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  11267. * src/PeerAbstractCommand.cc
  11268. (onAbort): Use peer->resetStatus().
  11269. * src/main.cc
  11270. (PeerChokeCommand.h): Included.
  11271. (main): Added the instance of ChokingCommand to the command queue.
  11272. * src/Peer.h
  11273. (amChoking): Renamed from amChocking
  11274. (chokingRequired): New variable.
  11275. (optUnchoking): New variable.
  11276. (deltaUpload): New variable.
  11277. (deltaDownload): New variable.
  11278. (addDeltaUpload): New function.
  11279. (resetDeltaUpload): New function.
  11280. (addDeltaDownload): New function.
  11281. (resetDeltaDownload): New function.
  11282. (addPeerUpload): Added a call to addDeltaUpload.
  11283. (addPeerDownload): Added a call to addDeltaDownload.
  11284. * src/Peer.cc
  11285. (shouldBeChoking): Renamed from shouldChoke.
  11286. (resetStatus): New function.
  11287. * src/PeerChokeCommand.h: New class.
  11288. * src/PeerChokeCommand.cc: New class.
  11289. To add lazy upload speed limiter:
  11290. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11291. statistics calculation to TorrentDownloadEngine.
  11292. * src/TorrentConsoleDownloadEngine.cc
  11293. (sendStatistics): Renamed from printStatistics.
  11294. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11295. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11296. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11297. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11298. calculation.
  11299. (sendStatistics): New function as pure virtual function.
  11300. (getUploadSpeed): New function.
  11301. * src/TorrentDownloadEngine.cc
  11302. (initStatistics): New function.
  11303. (calculateSpeed): New function.
  11304. (calculateStatistics): New function.
  11305. * src/SendMessageQueue.h
  11306. (uploadLength): New variable.
  11307. (send): Added an argument.
  11308. (setUploadLimit): New function.
  11309. (getUploadLimit): New function.
  11310. * src/SendMessageQueue.cc
  11311. (send): Added upload speed limiter.
  11312. * src/prefs.h
  11313. (PREF_UPLOAD_LIMIT): New definition.
  11314. * src/PeerInteractionCommand.cc
  11315. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11316. * src/main.cc
  11317. (main): Added --upload-limit option
  11318. For bug fixes:
  11319. * src/main.cc
  11320. (showUsage): Corrected --listen-port help
  11321. Other changes:
  11322. * src/TorrentMan.cc
  11323. (getPeer): Return nullPeer if connection is grather than
  11324. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11325. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11326. To add some useful information to the exception message:
  11327. * src/SocketCore.cc : Updated messages.
  11328. * src/SegmentMan.cc :
  11329. * src/TorrentMan.cc : Updated messages.
  11330. * src/MultiDiskWriter.cc : Updated messages.
  11331. * src/Util.cc : Updated messages.
  11332. * src/AbstractDiskWriter.cc : Updated messages.
  11333. * src/PreAllocationDiskWriter.cc : Updated messages.
  11334. * src/message.cc : Added new messages. Updated some messages.
  11335. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  11336. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  11337. Updated threshold from 30 to 15.
  11338. * src/AbstractDiskWriter.h (filename): New variable.
  11339. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  11340. (createFile): Assigned filename.
  11341. * src/main.cc: Updated the help message for http-auth-scheme.
  11342. * Release 0.4.0
  11343. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. To add TrackerUpdateCommand with which replaces
  11345. CompactTrackerResponseProcessor:
  11346. * src/TrackerWatcherCommand.h (req): Removed.
  11347. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  11348. if the number of peer connections are less than 30.
  11349. * src/ByteArrayDiskWriter.h (readData): Implemented.
  11350. * src/SegmentMan.h (diskWriter): New function.
  11351. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  11352. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  11353. (main): Use TrackerUpdateCommand.
  11354. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  11355. (req): New variable.
  11356. (setTrackerResponseProcessor): Removed.
  11357. (getTrackerResponseProcessor): Removed.
  11358. (processTrackerResponse): Removed.
  11359. * src/DownloadEngine.h (diskWriter): Removed.
  11360. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  11361. to torrentMan->processTrackerResponse().
  11362. To add Util::expandBuffer:
  11363. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  11364. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  11365. * src/Util.h (expandBuffer): New function.
  11366. To fix the bug that causes segmentation fault when "-l ." is specified
  11367. in command-line option:
  11368. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  11369. (openFile): New function.
  11370. (closeFile): New function.
  11371. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  11372. (~SimpleLogger): Call closeFile();
  11373. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  11374. * src/main.cc (main): Added a check to see logger is configured
  11375. properly.
  11376. To enable HTTP authentication without specifying "--http-auth-scheme"
  11377. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11378. * src/HttpConnection.cc (createRequest): Send Authorization header
  11379. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11380. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11381. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11382. * src/Peer.cc (shouldChoke): Updated algorithm.
  11383. * src/message.h (EX_AUTH_FAILED): New definition.
  11384. (EX_FILE_OPEN): New definition.
  11385. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11386. if status == 401.
  11387. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11388. if req->isTorrent == true.
  11389. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11390. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11391. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11392. (createFile): Updated message.
  11393. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. To add a readout of estimated remaining time to normal HTTP/FTP
  11395. downloads:
  11396. * src/ConsoleDownloadEngine.h (startup): New variable.
  11397. (startupLength): New variable.
  11398. (isStartupLengthSet): New variable.
  11399. (avgSpeed): New variable.
  11400. (eta): New variable.
  11401. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  11402. estimated remaining time.
  11403. (initStatistics): Initialized newly added variables.
  11404. (calculateStatistics): Calculate average speed and estimated remaining
  11405. time.
  11406. To decouple TorrentDownloadEngine from HttpResponseCommand:
  11407. * src/TrackerDownloadCommand.h: Removed.
  11408. * src/TrackerDownloadCommand.cc: Removed.
  11409. * src/TrackerInitCommand.h: Removed.
  11410. * src/TrackerInitCommand.cc: Removed.
  11411. * src/TrackerUpdateCommand.h: Removed.
  11412. * src/TrackerUpdateCommand.cc: Removed.
  11413. * src/TrackerWatcherCommand.cc (execute): The construction of request
  11414. url written in TrackerInitCommand was moved here. Do not create
  11415. tracker request command if torrentMan->trackers != 0.
  11416. * src/CompactTrackerResponseProcessor.h: New class.
  11417. * src/CompactTrackerResponseProcessor.cc: New class.
  11418. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  11419. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  11420. Decoupled TorrentDownloadEngine from this.
  11421. * src/SegmentMan.h (init): New function.
  11422. * src/SegmentMan.cc (init): New function.
  11423. * src/TorrentMan.h (responseProcessor): New variable.
  11424. (trackers): New variable.
  11425. (setTrackerResponseProcessor): New function.
  11426. (getTrackerResponseProcessor): New function.
  11427. (processTrackerResponse): New function.
  11428. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  11429. (processTrackerResponse): New function.
  11430. * src/main.cc (main): Use ByteArrayDiskWriter and
  11431. CompactTrackerResponseProcessor.
  11432. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  11433. processTrackerResponse().
  11434. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  11435. readout.
  11436. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  11437. which indicates download has completed.
  11438. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  11439. (closeFile): fd >= 0, not fd > 0
  11440. * src/main.cc (main): Added short cut for show-files.
  11441. Added short cut for torrent-file.
  11442. Added new command-line option listen-port.
  11443. Updated i18n messages.
  11444. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11445. To add LogFactory which creates singleton logger:
  11446. * src/LogFactory.h: New class.
  11447. * src/LogFactory.cc: New class.
  11448. * src/Command.h (logger): New variable.
  11449. (Constructor): Use LogFactory.
  11450. * src/AbstractCommand.cc: Use Command::logger
  11451. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  11452. Use LogFactory.
  11453. * src/SegmentSplitter.h : Made logger protected.
  11454. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  11455. * src/SegmentMan.cc (Constructor): Use LogFactory.
  11456. * src/DownloadEngine.h : Made logger protected.
  11457. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  11458. * src/PeerInteractionCommand.cc : Use Command::logger.
  11459. * src/HttpResponseCommand.cc : Use Command::logger.
  11460. * src/SegmentMan.h : Made logger private.
  11461. * src/TorrentMan.h : Made logger private.
  11462. * src/TorrentMan.cc : Use LogFactory.
  11463. * src/FtpNegotiateCommand.cc : Use Command::logger.
  11464. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  11465. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  11466. Use LogFactory.
  11467. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  11468. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  11469. Use LogFactory.
  11470. * src/DownloadCommand.cc : Use Command::logger.
  11471. * src/PeerAbstractCommand.cc : Use Command::logger.
  11472. * src/PeerListenCommand.cc : Use Command::logger.
  11473. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  11474. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  11475. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  11476. * src/TrackerWatcherCommand.cc : Use Command::logger.
  11477. * src/TrackerUpdateCommand.cc : Use Command::logger.
  11478. * src/TrackerDownloadCommand.cc : Use Command::logger.
  11479. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  11480. Use LogFactory.
  11481. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  11482. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  11483. Use LogFactory.
  11484. * src/main.cc (main): Use LogFactory.
  11485. * src/DiskAdaptor.h (logger): New variable.
  11486. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  11487. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  11488. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  11490. parameter to a tracker request.
  11491. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  11492. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  11493. * src/main.cc (setSignalHander): New function.
  11494. (main): Added a handler for SIGTERM.
  11495. (handler): Updated message.
  11496. (torrentHandler): Updated message.
  11497. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11498. * src/TorrentConsoleDownloadEngine.cc
  11499. (onPartialDownloadingCompletes): Renamed as
  11500. onSelectiveDownloadingCompletes.
  11501. (onSelectiveDownloadingCompletes): Updated message.
  11502. To add DiskAdaptor which abstract DiskWriter family:
  11503. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  11504. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  11505. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  11506. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  11507. MultiDiskAdaptor.h.
  11508. (readFileEntry): Changed its arguments.
  11509. (setup): setupDiskWriter is merged into this function.
  11510. (setupDiskWriter): Removed.
  11511. (setFileFilter): New function.
  11512. (readFileEntryFromMetaInfoFile): Updated according to the changes
  11513. made in readFileEntry.
  11514. (getFilePath): Removed.
  11515. (getTempFilePath): Removed.
  11516. (getSegmentFilePath): Updated due to the removal of getFilePath.
  11517. (fixFilename): Removed.
  11518. (copySingleFile): Removed.
  11519. (splitMultiFile): Removed.
  11520. (deleteTempFile): Removed.
  11521. (setFileEntriesToDownload): Removed.
  11522. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  11523. (isSelectiveDownloadingMode): New function.
  11524. (setAllMultiFileRequestedState): Removed.
  11525. (finishPartialDownloadingMode): Renamed as
  11526. finishSelectiveDownloadingMode.
  11527. (finishSelectiveDownloadingMode): New function.
  11528. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  11529. (getSelectedTotalLength): New function.
  11530. (onDownloadComplete): Use diskAdaptor.
  11531. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  11532. (Range): Removed.
  11533. (setMultiFileEntries): Renamed as setFileEntries.
  11534. (setFileEntries): New function.
  11535. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11536. (pieceLength): New variable.
  11537. * src/main.cc (printDownloadCompeleteMessage): New function.
  11538. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11539. (main): Renamed torrent-show-files to show-files.
  11540. Rewritten file contents listing.
  11541. * src/TorrentMan.h (FileEntry): Removed.
  11542. (multiFileTopDir): Removed.
  11543. (multiFileEntries): Removed.
  11544. (diskWriter): Removed.
  11545. (diskAdaptor): New variable.
  11546. * src/DefaultDiskWriter.h (totalLength): New variable.
  11547. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  11548. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  11549. diskWriter.
  11550. * src/TorrentConsoleDownloadEngine.h
  11551. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  11552. (partialTotalLength): Renamed as selectedTotalLength.
  11553. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  11554. openExistingFile, otherwise call initAndOpenFile.
  11555. (closeFile): fd > 0, not fd != 0.
  11556. * src/DirectDiskAdaptor.h: New class.
  11557. * src/DirectDiskAdaptor.cc: New class.
  11558. * src/MultiDiskAdaptor.h: New class.
  11559. * src/MultiDiskAdaptor.cc: New class.
  11560. * src/CopyDiskAdaptor.h: New class.
  11561. * src/CopyDiskAdaptor.cc: New class.
  11562. * src/DiskAdaptor.h: New class.
  11563. * src/DiskAdaptor.cc: New class.
  11564. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  11565. (PREF_SHOW_FILES): New definition.
  11566. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11567. To add the ability to download multi torrent into respective files
  11568. directly:
  11569. * src/DiskWriter.h (openFile): New function.
  11570. (seek): Removed.
  11571. * src/MultiDiskWriter.h: New class.
  11572. * src/MultiDiskWriter.cc: New class.
  11573. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  11574. protected.
  11575. (openFile): New function.
  11576. * src/AbstractDiskWriter.cc (openFile): New function.
  11577. * src/prefs.h (V_FALSE): New definition.
  11578. (PREF_DIRECT_FILE_MAPPING): New definition.
  11579. * src/TorrentMan.h (setupDiskWriter): New function.
  11580. (setAllMultiFileRequestedState): New function.
  11581. (onDownloadComplete): New function.
  11582. * src/TorrentMan.cc : Included MultiDiskWriter.h
  11583. (setupDiskWriter): New function.
  11584. (getFilePath): Updated.
  11585. (getTempFilePath): Updated.
  11586. (getSegmentFilePath): Updated.
  11587. (fixFilename): Updated.
  11588. (deleteTempFile): Updated.
  11589. (setAllMultiFileRequestedState): New function.
  11590. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  11591. (finishPartialDownloadingMode): Reset requested flags.
  11592. (onDownloadComplete): New function.
  11593. * src/main.cc: Added --direct-file-mapping option.
  11594. Use TorrentMan::setupDiskWriter().
  11595. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  11596. onDownloadComplete().
  11597. To fix ETA bug:
  11598. * src/Util.h (difftvsec): New function.
  11599. * src/Util.cc (difftvsec): New function.
  11600. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  11601. type of "elapsed" instead of long long int.
  11602. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  11603. The updates of statistics takes place every 1 seconds.
  11604. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  11605. (calculateSpeed): Changed its argument signature.
  11606. * src/PeerMessage.cc (toString): Fixed message.
  11607. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. To print ETA:
  11609. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  11610. completion handling when dealing with
  11611. TorrentMan::isPartialDownloadingMode() == true.
  11612. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  11613. New function.
  11614. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  11615. (sessionDownloadLength): New variable.
  11616. (avgSpeed): New variable.
  11617. (eta): New variable.
  11618. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  11619. new variables: eta, avgSpeed, startup.
  11620. (calculateSpeed): Calculate average speed and ETA.
  11621. (printStatistics): Added ETA.
  11622. * src/Util.h (secfmt): New function.
  11623. * src/Util.cc (secfmt): New function.
  11624. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11625. To detect "keep alive" flooding:
  11626. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  11627. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  11628. variable: keepAliveCount.
  11629. (detectMessageFlooding): Added "keep alive" flooding detection.
  11630. (receiveMessage): Increase keepAliveCount when "keep alive" message
  11631. received.
  11632. To add the ability to download only specified files in multi-file
  11633. torrent:
  11634. * src/BitfieldMan.h (filterBitfield): New variable.
  11635. (filterEnabled): New variable.
  11636. (setFilterBit): New function.
  11637. (enableFilter): New function.
  11638. (disableFilter): New function.
  11639. (isFilterEnabled): New function.
  11640. (getFilteredTotalLength): New function.
  11641. (getCompletedLength): New function.
  11642. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11643. filterBitfield, filterEnabled.
  11644. (CopyConstructor): Added filterBitfield and filterEnabled.
  11645. (operator==): Added filterBitfield and filterEnabled.
  11646. (Destructor): Added filterBitfield.
  11647. (getMissingIndex): Use filterBitfield.
  11648. (getMissingUnusedIndex): Use filterBitfield.
  11649. (getFirstMissingUnusedIndex): Use filterBitfield.
  11650. (getFirstMissingUnusedIndex): Use filterBitfield.
  11651. (getAllMissingIndexes): Use filterBitfield.
  11652. (countMissingBlock): Use filterBitfield.
  11653. (countBlock): Use filterBitfield.
  11654. (setBitInternal): Added new argument on.
  11655. (setUseBit): Use setBitInternal.
  11656. (unsetUseBit): Use setBitInternal.
  11657. (setBit): Use setBitInternal.
  11658. (unsetBit): Use setBitInternal.
  11659. (isAllBitSet): Use filterBitfield.
  11660. (setFilterBit): New function.
  11661. (addFilter): New function.
  11662. (enableFilter): New function.
  11663. (disableFilter): New function.
  11664. (clearFilter): New function.
  11665. (isFilterEnabled): New function.
  11666. (getFilteredTotalLength): New function.
  11667. (getCompletedLength): New function.
  11668. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11669. Initalized newly added variables.
  11670. [FileEntry](offset): New variable.
  11671. [FileEntry](extracted): New variable.
  11672. [FileEntry](requested): New variable.
  11673. (readFileEntry): New function.
  11674. (option): New variable.
  11675. (splitMultiFile): Removed const qualifier.
  11676. (fixFilename): Removed const qualifier.
  11677. (readFileEntryFromMetaInfoFile): New function.
  11678. (finishPartialDownloadingMode): New function.
  11679. (isPartialDownloadingMode): New function.
  11680. (setFileEntriesToDownload): New function.
  11681. (getCompletedLength): New function.
  11682. (getPartialTotalLength): New function.
  11683. * src/TorrentMan.cc (readFileEntry): New function.
  11684. (setup): Use readFileEntry. If no-preallocation option is specified,
  11685. use DefaultDiskWriter.
  11686. (readFileEntryFromMetaInfoFile): New function.
  11687. (fixFilename): Removed const qualifier.
  11688. (splitMultiFile): Removed const qualifier.
  11689. (setFileEntriesToDownload): New function.
  11690. (isPartialDownloadingMode): New function.
  11691. (finishPartialDownloadingMode): New function.
  11692. (getCompletedLength): New function.
  11693. (getPartialTotalLength): New function.
  11694. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11695. New variable.
  11696. (partialTotalLength): New variable.
  11697. (downloadLength): New variable.
  11698. (totalLength): New variable.
  11699. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11700. Added log.
  11701. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11702. partialTotalLength, downloadLength, totalLength.
  11703. (calculate): Calculate downloadLength and totalLength.
  11704. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11705. * src/main.cc (addCommand): Changed argument signature.
  11706. (main): Added new variable: args. Added new option "torrent-show-files"
  11707. "no-preallocation". Usage is not updated yet.
  11708. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11709. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11710. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. Attempt to add the ability to listing file entries in a .torrent file.
  11712. This feature is not yet complete.
  11713. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11714. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11715. (getName): New function.
  11716. * src/TorrentMan.h (getMultiFileEntries): New function.
  11717. (getName): New function.
  11718. * src/main.cc (main): Use above 2 funtion.
  11719. * Release 0.3.2
  11720. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11722. (detectMessageFlooding): Updated threshold value.
  11723. (checkLongTimePeerChoking): Updated timeout value.
  11724. (getNewPieceAndSendInterest): Added debug log.
  11725. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11726. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11727. (getPeer): Updated.
  11728. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11729. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11730. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11731. is localhost.
  11732. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11733. * src/PendingMessage.cc (processMessage): Not to send piece message
  11734. if peer is not interested in the pieces localhost has.
  11735. * src/Peer.cc (shouldChoke): Updated.
  11736. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11737. * src/Util.cc (isPowerOf): New function.
  11738. * src/Util.h (isPowerOf): New function.
  11739. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11740. whether or not it is power of 2.
  11741. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11742. Added new class SendMessageQueue that includes PendingMessages and
  11743. RequestSlotMan.
  11744. * src/SendMessageQueue.h: New class.
  11745. * src/SendMessageQueue.cc: New class.
  11746. * src/PendingMessage.h: Added new member variable blockIndex and its
  11747. accessors.
  11748. (createRequestMessage): Updated.
  11749. * src/PendingMessage.cc (createRequestMessage): Updated.
  11750. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11751. SendMessageQueue.
  11752. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11753. (receiveMessage): Updated with SendMessageQueue.
  11754. (deletePendingPieceMessage): Removed.
  11755. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11756. (sendInterest): Updated with SendMessageQueue.
  11757. (createRequestPendingMessage): Updated with SendMessageQueue.
  11758. (sendMessages): Updated with SendMessageQueue.
  11759. (onAbort): Updated with SendMessageQueue.
  11760. (keepAlive): Updated with SendMessageQueue.
  11761. (beforeSocketCheck): Updated SendMessageQueue.
  11762. * src/PeerInteractionCommand (sendMessages): Shuffle
  11763. missingBLockIndexes before using it.
  11764. Added its own timeout for peer connection.
  11765. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11766. setter.
  11767. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11768. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11769. Added setTimeout() call.
  11770. (executeInternal): Added setTimeout() call.
  11771. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11772. Added timeout.
  11773. (isTimeoutDetected): Updated.
  11774. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11775. option.
  11776. Added *simple* message flooding checker.
  11777. * src/PeerInteractionCommand.cc (executeInternal):
  11778. Added detectMessageFlooding() call.
  11779. (detectMessageFlooding): New function.
  11780. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11781. (beforeSocketCheck): Added detectMessageFlooding() call.
  11782. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11783. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11784. Removed deletePendingPieceMessage(), getRequestSlot(),
  11785. deleteRequestSlot(), deleteAllRequestSlot().
  11786. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11787. Added checkLongTimePeerChoking() call.
  11788. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11789. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11790. if duplicate == false.
  11791. The parameter "uploaded" and "downloaded" in the tracker request are
  11792. the size since the client sent the "started" event to the tracker.
  11793. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11794. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11795. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11796. getSessionDownloadedSize(), getSessionUploadedSize().
  11797. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11798. getSessionUploadedSize() instead of getDownloadedSize(),
  11799. getUploadedSize().
  11800. * src/PendingMessage.cc (processMessage): Do not send request message
  11801. if the peer is choking the client.
  11802. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11803. less than interval.
  11804. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11805. * configure.in: Added gnutls support. Added several CPP macros.
  11806. * m4/openssl.m4: Added.
  11807. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11808. readData(), peekData(). Added gnutls support.
  11809. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11810. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11811. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11812. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11813. Instead, added a check for whether setup method has executed
  11814. successfully.
  11815. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11816. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11817. * src/Makefile.am: Updated.
  11818. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11819. using whether OpenSSL or gcrypt, depending on the result of configure
  11820. script.
  11821. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11822. messageDigest.h.
  11823. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11824. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11825. Fixed memory leak.
  11826. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11827. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11828. Removed instantiation of TrackerInitCommand. Instead,
  11829. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11830. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11831. ENABLE_SSL.
  11832. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11833. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11834. If a piece is already acquired by another command, delete the request
  11835. slots for the piece.
  11836. * src/TrackerUpdateCommand.cc (execute):
  11837. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11838. Added a check whether peer list is null.
  11839. Fixed the bug that causes sending completed event to the tracker
  11840. several times.
  11841. * src/TrackerInitCommand.cc (execute):
  11842. Fixed the bug that causes sending completed event to the tracker
  11843. several times.
  11844. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11845. by using messageDigest.h.
  11846. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11847. * PeerConnection.cc: Replaced log message "keep-alive" with
  11848. "keep alive".
  11849. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11850. localhost long time.
  11851. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11852. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11853. at most 100 failure entry from the list. If with duplicate = false,
  11854. MAX_PEER_LIST is not checked.
  11855. * PeerListenCommand.cc: Fixed the argument order of log message.
  11856. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11857. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11858. Added warn().
  11859. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11860. Implemented warn().
  11861. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11862. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11863. * Request.h: Added AFTER_COMPLETED event.
  11864. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11865. instead of downloaded size and progress(%) after download completes.
  11866. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11867. message to the peer if it is interested in what localhost has
  11868. downloaded.
  11869. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11870. destination instead of just renaming it.
  11871. * TorrentMan.cc: Added deleteTempFile().
  11872. * PeerAbstractCommand.cc: do not stop execution after download
  11873. completes. This makes localhost a seeder.
  11874. * Util.{h,cc}: Added fileCopy().
  11875. * PeerListenCommand.cc: do not stop execution after download completes.
  11876. This makes localhost a seeder.
  11877. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11878. Added TorrentMan::deleteTempFile() to torrentHandler.
  11879. Initialized the variable dir as ".".
  11880. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11881. Deleted renameSingleFile().
  11882. Added copySingleFile(), deleteTempFile().
  11883. * DownloadEngine.h: Added virtual function afterEachIteration().
  11884. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11885. in onEndOfRun() to afterEachIteration().
  11886. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11887. true.
  11888. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11889. In rangedFileCopy(), added try-catch block to properly close file
  11890. descriptors.
  11891. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11892. Added afterEachIteration(), isFilenameFixed().
  11893. * Peer.cc: Changed choking strategy.
  11894. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11895. * TrackerInitCommand.cc: Send completed event only once.
  11896. * DownloadEngine.cc: Added a call to afterEachIteration().
  11897. * TrackerUpdateCommand.cc: Do not stop execution after download
  11898. completes.
  11899. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11900. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11901. received from a tracker.
  11902. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11903. Decreased the number of failure peers to delete to 0(just comment out
  11904. the line).
  11905. * Release 0.3.1
  11906. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11907. * PeerInteractionCommand.cc: added a call to
  11908. TorrentMan::unadvertisePiece in Destructor.
  11909. * PeerInteractionCommand.cc: make have message sent immediately
  11910. if the size of pending message queue is zero.
  11911. * TorrentMan.cc: set the maximum size of peer list to 250.
  11912. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11913. to deque.
  11914. * Util.cc: fixed rangedFileCopy.
  11915. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11916. to Constructor. Also, moved digest cleanup to Destructor.
  11917. * MetaFileUtil.cc: fixed memory leak
  11918. * replaced std::vector with std::deque.
  11919. * AbstractCommand.cc: casted timeout value to long long int.
  11920. * ChunkedEncoding.cc: fixed memory leak.
  11921. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11922. * SleepCommand.cc: casted timeout value to long long int.
  11923. * Data.cc: fixed memory leak.
  11924. * Data.cc: fixed toLLInt().
  11925. * BitfieldMan.cc: fixed memory leak.
  11926. * TorrentMan.cc: initialized storeDir to ".".
  11927. * TorrentMan.cc: fixed memory leak.
  11928. * TorrentMan.cc: corrected file paths of splitted files.
  11929. * PeerAbstractCommand.cc: casted timeout to long long int.
  11930. * main.cc: added delete(req) and delete(te->diskWriter).
  11931. * RequestSlot.cc: casted timeout value to long long int.
  11932. * Request.cc: fixed memory leak.
  11933. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11934. have the piece.
  11935. * Peer.{h,cc}: added hasPiece(int index).
  11936. * main.cc: corrected addCommand.
  11937. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11938. * BitTorrent protocol support added.
  11939. * Release 0.3.0
  11940. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11942. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11943. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11944. decoding did not work properly.
  11945. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11946. * DownloadEngine.h: included sys/time.h
  11947. * DownloadEngine.cc: remove sys/time.h
  11948. * Makefile.am (SUBDIRS): Add intl.
  11949. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11950. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11951. * main.cc: correct help message for --http-auth-scheme.
  11952. * main.cc: changed e-mail address for bug reports.
  11953. * ja.po: added japanese translation.
  11954. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11955. * SimpleLogger.cc: flush log file instead of stdout.
  11956. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11957. * main.cc: Fixed command-line option: max-tries
  11958. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11959. does not equal to seg.sp.
  11960. * DownloadCommand.cc: If EOF is got from the server and the total size
  11961. of file is not zero, then throw DlRetryEx.
  11962. * main.cc: Set the minium value of min-segment-size to 1024.
  11963. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11964. fails because of a regression since 0.2.0 release.
  11965. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11966. * HttpConnection.cc:
  11967. * common.h: defined the user agent name as macro
  11968. * DownloadEngine.{h, cc}:
  11969. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11970. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11971. * main.cc: Download complete/abort message is now generated by main.
  11972. * Makefile.am (SUBDIRS): Add m4.
  11973. (ACLOCAL_AMFLAGS): New variable.
  11974. (EXTRA_DIST): New variable.
  11975. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11976. * gettext: added gettext functionality
  11977. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11978. * AbstractCommand.cc:
  11979. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11980. unregister its cuid from SegmentMan.
  11981. * DownloadEngine.cc: .aria2 file was written when a downloading
  11982. failed with errors.
  11983. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11984. Added "User-Agent" header to CONNECT proxy request.
  11985. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11986. properly.
  11987. * Logger.h:
  11988. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11989. * ChunkedEncoding.cc: Added #include directive for strings.h
  11990. * Release 0.2.1
  11991. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11992. * Util.{h,cc}: added startsWith().
  11993. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11994. Util::endsWith().
  11995. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11996. * common.h: added #include directive of limit.h.
  11997. * DownloadEngine.cc: added #include directive of sys/time.h and
  11998. algorithm.
  11999. * Exception.h: added #include directive of stdio.h.
  12000. * AbstractCommand.h: added #include directive of sys/time.h.
  12001. * DownloadCommand.h: added #include directive of sys/time.h.
  12002. * *.h: added #include directive of common.h to all base classes.
  12003. subclasses' one was removed.
  12004. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12005. does not define these macros.
  12006. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12007. * Release 0.2.0
  12008. * main.cc:
  12009. * HttpInitiateConnectionCommand.{h,cc}:
  12010. * prefs.h:
  12011. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12012. We can now use GET command in http proxy.
  12013. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12014. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12015. that splits slowest segment of SegmentMan::commands vector.
  12016. This is the default split algorithm of aria2.
  12017. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12018. that splits first segment of SegmentMan::commands vector.
  12019. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12020. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12021. * Segment.h:
  12022. * SegmentMan.cc: Added speed field to Segment.h
  12023. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12024. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12025. * message.h: Change file size related %d to %lld.
  12026. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12027. * FtpInitiateConnectionCommand.{h,cc}:
  12028. * FtpNegotiationCommand.{h,cc}:
  12029. * FtpDownloadCommand.{h,cc}:
  12030. * FtpConnection.{h,cc}: Added FTP support
  12031. * SimpleLogger.cc: Log message now includes time information.
  12032. * main.cc: The value of --http-auth-scheme option is chagned from
  12033. 'BASIC' to 'basic'
  12034. * main.cc: Added --timeout command-line option.
  12035. * main.cc: Added --min-segment-size command-line option.
  12036. * main.cc: Added --max-retries command-line option.
  12037. * prefs.h: option string constants are now defined in prefs.h
  12038. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12039. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12040. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12041. with version 0.1.0's one.
  12042. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12043. * configure.in: Added --enable-ssl option to configure script.
  12044. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12045. cannot permit absoluteURI as Request-URI.
  12046. * HttpConnection.cc: Added Referer support.
  12047. * main.cc: Added referer command-line option.
  12048. * main.cc: Added rety-wait command-line option.
  12049. * Exception.h: Fixed formating bug in Exception::setMsg()
  12050. * SocketCore.{h,cc}:
  12051. * Socket.{h, cc}:
  12052. * Request.cc:
  12053. * InitiateConnectionCommandFactory.cc:
  12054. * HttpRequestCommand.cc: Added HTTPS support.
  12055. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12056. for SocketCore.
  12057. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12058. size is wrong
  12059. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12060. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12061. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12062. * Release 0.1.0