ChangeLog 496 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577
  1. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated reference/see also section.
  3. * README
  4. * doc/aria2c.1.txt
  5. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Reorganized man page based on man man-pages.
  7. * doc/aria2c.1.txt
  8. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  10. because same documents are available in man page. Added
  11. References section.
  12. * README
  13. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  15. PERFORMANCE PROFILE section.
  16. * doc/aria2c.1.txt
  17. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Rewritten the section for configuration file.
  19. * README
  20. * doc/aria2c.1.txt
  21. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Fixed the segmentation fault during execution of choking algorithm
  23. in leecher state because of broken compare operator
  24. implementation.
  25. * src/BtLeecherStateChoke.cc
  26. * src/BtLeecherStateChoke.h
  27. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Open file in binary mode.
  29. * src/CookieStorage.cc
  30. * src/DHTSetup.cc
  31. * src/DHTUtil.cc
  32. * src/Netrc.cc
  33. * src/NsCookieParser.cc
  34. * src/ProtocolDetector.cc
  35. * src/RequestGroupMan.cc
  36. * src/Signature.cc
  37. * src/bencode.cc
  38. * src/download_helper.cc
  39. * src/option_processing.cc
  40. * test/CookieParserTest.cc
  41. * test/DefaultBtProgressInfoFileTest.cc
  42. * test/FileTest.cc
  43. * test/GZipDecoderTest.cc
  44. * test/RequestGroupManTest.cc
  45. * test/SignatureTest.cc
  46. * test/SingleFileAllocationIteratorTest.cc
  47. * test/UriListParserTest.cc
  48. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Removed operator[] because it is ambiguous with built-in []
  50. operator.
  51. * src/array_fun.h
  52. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Fixed compile error
  54. * src/OptionParser.cc
  55. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Added missing call to arrayWrapperConst
  57. * test/array_funTest.cc
  58. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Use array_wrapper instead of array_ptr.
  60. * src/DHTRoutingTableDeserializer.cc
  61. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  63. * src/array_fun.h
  64. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Added array_wrapper template.
  66. * src/array_fun.h
  67. * test/array_funTest.cc
  68. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Use operator T* of array_ptr.
  70. * src/OptionParser.cc
  71. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Use localhost instead of 127.0.0.1
  73. * test/FtpConnectionTest.cc
  74. * test/MSEHandshakeTest.cc
  75. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Added operator T*
  77. * src/array_fun.h
  78. * test/array_funTest.cc
  79. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Use dynamically allocated char array to detect memory access
  81. violation.
  82. * src/DHTRoutingTableDeserializer.cc
  83. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  85. defined.
  86. * src/PeerMessageUtil.cc
  87. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  89. * configure.ac
  90. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Added a check to see struct sockaddr_in has sin_len member.
  92. * configure.ac
  93. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Fixed buffer overrun.
  95. * src/DHTRoutingTableDeserializer.cc
  96. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Added LL for long long int constant.
  98. * test/FtpConnectionTest.cc
  99. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Casted to unsigned int to suppress compiler warning on netbsd.
  101. * src/BtRuntime.h
  102. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Assign the value of tv.tv_sec to time_t timesec instead of giving
  104. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  105. type time_t.
  106. * src/SimpleLogger.cc
  107. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Added test for FtpConnection::receiveSizeResponse().
  109. * test/FtpConnectionTest.cc
  110. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Fix epoll error on the old kernel 2.6.8 or ealier.
  112. * src/EpollEventPoll.cc
  113. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Use Util::parseLLInt instead of sscanf for portability. The
  115. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  116. * src/FtpConnection.cc
  117. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  119. block. It should not filter anything.
  120. * src/BitfieldMan.cc
  121. * src/ConsoleStatCalc.cc
  122. * test/BitfieldManTest.cc
  123. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Fixed the bug that the boolean options that don't take arguments
  125. don't work.
  126. * src/OptionHandlerImpl.h
  127. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Fixed broken selected file BitTorrent download.
  129. * src/MultiDiskAdaptor.cc
  130. * test/MultiDiskAdaptorTest.cc
  131. * test/MultiFileAllocationIteratorTest.cc
  132. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Fixed #define guard for EpollEventPoll
  134. * src/EpollEventPoll.h
  135. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Wait 2 seconds. 1 second is sometimes not enough.
  137. * test/TimeSeedCriteriaTest.cc
  138. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Use localhost instead of 127.0.0.1.
  140. * test/DHTConnectionImplTest.cc
  141. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Suppressed compiler warning.
  143. * src/AdaptiveURISelector.cc
  144. * src/DefaultPieceStorage.cc
  145. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Defined virtual destructor.
  147. * src/MetalinkParserState.h
  148. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Give NULL for second argument of getaddrinfo instead of "0".
  150. * src/NameResolver.cc
  151. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  153. included strptime doesn't parse data for this format.
  154. * src/FtpConnection.cc
  155. * test/FtpConnectionTest.cc
  156. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Removed tests giving -1 for unsigned argument.
  158. * test/SingleFileDownloadContextTest.cc
  159. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Don't use sha256 in tests because it might not be supported by the
  161. SSL library.
  162. * test/MetalinkProcessorTest.cc
  163. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Removed tests giving -1 for unsigned argument.
  165. * test/AlphaNumberDecoratorTest
  166. * test/BitfieldManTest.cc
  167. * test/DefaultBtContextTest.cc
  168. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Fixed compile error without libcares when epoll is available.
  170. * src/EpollEventPoll.cc
  171. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Included fstream instead of iostream.
  173. * test/SignatureTest.cc
  174. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Removed #include <algorithm>
  176. * test/RequestGroupTest.cc
  177. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  179. using RequestGroup::extractURIResult().
  180. * src/AdaptiveURISelector.cc
  181. * src/RequestGroup.cc
  182. * src/RequestGroup.h
  183. * test/RequestGroupTest.cc
  184. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Added tests for array_ptr.
  186. * test/array_funTest.cc
  187. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Don't send ip parameter to a tracker if ip parameter is empty
  189. string.
  190. * src/DefaultBtAnnounce.cc
  191. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Adjusted line feed.
  193. * src/version_usage.cc
  194. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Print tags, possible values when OptionHandlerException is caught.
  196. * src/option_processing.cc
  197. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Changed the message for FatalException.
  199. * src/OptionParser.cc
  200. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Documented --bt-external-ip option in man page. Updated man pages
  202. for --proxy-method option.
  203. * doc/aria2c.1.txt
  204. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Use GET method for FTP via HTTP proxy.
  206. * src/FtpInitiateConnectionCommand.cc
  207. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Changed the default value of --proxy-method option from 'tunnel'
  209. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  210. option.
  211. * src/AbstractCommand.cc
  212. * src/AbstractCommand.h
  213. * src/FtpInitiateConnectionCommand.cc
  214. * src/HttpDownloadCommand.cc
  215. * src/HttpInitiateConnectionCommand.cc
  216. * src/HttpInitiateConnectionCommand.h
  217. * src/OptionHandlerFactory.cc
  218. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Initialized _logger
  220. * src/SelectEventPoll.cc
  221. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  222. Defined a copy constructor for the same type.
  223. * src/SharedHandle.h
  224. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Added OptionParser::parseArg() which internally uses getopt_long
  226. to parse command-line options. All command-line options are now
  227. configured by OptionHandler. No manual editing of struct option*
  228. is required any more.
  229. * src/NameMatchOptionHandler.h
  230. * src/OptionHandler.h
  231. * src/OptionHandlerFactory.cc
  232. * src/OptionHandlerImpl.h
  233. * src/OptionParser.cc
  234. * src/OptionParser.h
  235. * src/array_fun.h
  236. * src/main.cc
  237. * src/option_processing.cc
  238. * test/OptionHandlerTest.cc
  239. * test/OptionParserTest.cc
  240. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Fixed configure error with --disable-epoll
  242. * configure.ac
  243. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Fixed compile error when HAVE_EPOLL is not defined.
  245. Fixed linker error on bigendian systems.
  246. * src/SocketCore.cc
  247. * src/SocketCore.h
  248. * test/DefaultBtProgressInfoFileTest.cc
  249. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Added --bt-external-ip option. You can specify the external IP
  251. address to report to a BitTorrent tracker. Although this function
  252. is named 'external', it can accept any kind of IP addresses.
  253. * src/DefaultBtAnnounce.cc
  254. * src/OptionHandlerFactory.cc
  255. * src/option_processing.cc
  256. * src/prefs.cc
  257. * src/prefs.h
  258. * src/usage_text.h
  259. * test/DefaultBtAnnounceTest.cc
  260. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Extracted the algorithm to find the longest incremental sequence
  262. as max_sequence template.
  263. * src/LongestSequencePieceSelector.cc
  264. * src/a2algo.h
  265. * test/Makefile.am
  266. * test/a2algoTest.cc
  267. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  269. * src/usage_text.h
  270. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Updated doc for --uri-selector, --http-server-listen-port and
  272. --enable-http-server option. Documented --event-poll option.
  273. * doc/aria2c.1.txt
  274. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Updated doc for --enable-http-server.
  276. * src/usage_text.h
  277. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Documented --http-server-listen-port and --enable-http-server in
  279. man page.
  280. * doc/aria2c.1.txt
  281. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  283. translations. Thanks to all translators.
  284. * po/es.po
  285. * po/id.po
  286. * po/it.po
  287. * po/ru.po
  288. * po/uk.po
  289. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Bump up version number to 1.2.0
  291. * configure.ac
  292. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. BtContext::getAnnounceTiers() now returns const reference.
  294. * src/BtContext.h
  295. * src/DefaultBtContext.cc
  296. * src/DefaultBtContext.h
  297. * test/MockBtContext.h
  298. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Change the number of retries for tracker request based on the
  300. number of available tracker in a torrent file.
  301. * src/TrackerWatcherCommand.cc
  302. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Added _maxTries property to RequestGroup and assign the option
  304. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  305. RequestGroup::getMaxTries() instead of
  306. Option::getAsInt(PREF_MAX_TRIES).
  307. * src/AbstractCommand.cc
  308. * src/RequestGroup.cc
  309. * src/RequestGroup.h
  310. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  312. Mandriva. I modified the patch: make RequestGroup have the
  313. timeout value and AdaptiveURISelector directly modifies that
  314. value.
  315. * src/AbstractCommand.cc
  316. * src/AdaptiveURISelector.cc
  317. * src/AdaptiveURISelector.h
  318. * src/FtpNegotiationCommand.cc
  319. * src/RequestGroup.cc
  320. * src/RequestGroup.h
  321. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Fixed compiler warning
  323. * test/IteratableChecksumValidatorTest.cc
  324. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  326. integrated downloads. This PieceSelector subclass finds the
  327. longest continuous sequence in the available missing pieces and
  328. selects the last index of such sequence. This makes HTTP/FTP
  329. connections less interrupted by the pieces obtained by BitTorrent
  330. peers.
  331. * src/DefaultPieceStorage.cc
  332. * src/DefaultPieceStorage.h
  333. * src/LongestSequencePieceSelector.cc
  334. * src/LongestSequencePieceSelector.h
  335. * src/Makefile.am
  336. * src/PieceSelector.h
  337. * src/RarestPieceSelector.h
  338. * src/RequestGroup.cc
  339. * test/BtDependencyTest.cc
  340. * test/DefaultPieceStorageTest.cc
  341. * test/IteratableChecksumValidatorTest.cc
  342. * test/LongestSequencePieceSelectorTest.cc
  343. * test/Makefile.am
  344. * test/SegmentManTest.cc
  345. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Fixed the bug that the average speed is wrong in
  347. http/ftp/BitTorrent integrated download. Only the download bytes
  348. in BitTorrent were considered.
  349. * src/RequestGroup.cc
  350. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Choose port for BitTorrent/DHT randomly from the specified range.
  352. * src/DHTConnectionImpl.cc
  353. * src/PeerListenCommand.cc
  354. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Send HTTP Authorization header only if it is requested by the
  356. server(response 401). There are some exceptions. The authorization
  357. header for proxy is always sent if it is available without request
  358. by the server. If username/password is specified in the URI, it
  359. is immediately sent to the server without request by the server.
  360. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  361. SharedHandle<AuthConfig>().
  362. NetrcAuthResolver::resolveAuthConfig() returns
  363. SharedHandle<AuthConfig>() if no AuthConfig is available.
  364. * src/AbstractAuthResolver.cc
  365. * src/AbstractProxyRequestCommand.cc
  366. * src/AuthConfigFactory.cc
  367. * src/AuthConfigFactory.h
  368. * src/HttpConnection.cc
  369. * src/HttpRequest.cc
  370. * src/HttpRequest.h
  371. * src/HttpResponse.cc
  372. * src/HttpResponseCommand.cc
  373. * src/HttpSkipResponseCommand.cc
  374. * test/AuthConfigFactoryTest.cc
  375. * test/HttpRequestTest.cc
  376. * test/HttpResponseTest.cc
  377. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Remove leading "--" from help keyword and a substring after "="
  379. from help keyword, so that one can query options by '-h--max-' or
  380. '-hmax-peers=10'.
  381. * src/option_processing.cc
  382. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Rewritten PStringVisitor and its implementation.
  384. * src/PStringBuildVisitor.cc
  385. * src/PStringBuildVisitor.h
  386. * src/PStringDatum.h
  387. * src/PStringNumLoop.h
  388. * src/PStringSegment.cc
  389. * src/PStringSegment.h
  390. * src/PStringSelect.h
  391. * src/PStringVisitor.h
  392. * src/download_helper.cc
  393. * test/PStringBuildVisitorTest.cc
  394. * test/ParameterizedStringParserTest.cc
  395. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Persist connection between the built-in HTTP server and a client
  397. if a client supports keep-alive. Fixed the bug that aria2 exits
  398. when the HTTP server receives EOF from a client.
  399. * src/HttpServer.cc
  400. * src/HttpServer.h
  401. * src/HttpServerCommand.cc
  402. * src/HttpServerCommand.h
  403. * src/HttpServerResponseCommand.cc
  404. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Added experimental built-in HTTP server. Currently, when a client
  406. accesses to the server, it responds with the current download
  407. progress. By default, it is disabled. To enable the server, give
  408. --enable-http-server option. To change the default port number
  409. for the server to listen to, use --http-server-listen-port option.
  410. The response HTML is very simple and refreshes it self each 1
  411. second. Because of this refresh, you see flicker in normal web
  412. browser such as Firefox. I recommend to use console-based browser
  413. such as elinks, w3m. To connect to the server, run 'elinks
  414. http://localhost:6800/' while running aria2. Please replace port
  415. number '6800'(which is default) with your preference.
  416. * src/DownloadEngineFactory.cc
  417. * src/HttpHeader.cc
  418. * src/HttpHeader.h
  419. * src/HttpHeaderProcessor.cc
  420. * src/HttpHeaderProcessor.h
  421. * src/HttpListenCommand.cc
  422. * src/HttpListenCommand.h
  423. * src/HttpServer.cc
  424. * src/HttpServer.h
  425. * src/HttpServerCommand.cc
  426. * src/HttpServerCommand.h
  427. * src/HttpServerResponseCommand.cc
  428. * src/HttpServerResponseCommand.h
  429. * src/Makefile.am
  430. * src/OptionHandlerFactory.cc
  431. * src/Util.cc
  432. * src/Util.h
  433. * src/help_tags.h
  434. * src/option_processing.cc
  435. * src/prefs.cc
  436. * src/prefs.h
  437. * src/usage_text.h
  438. * test/HttpHeaderProcessorTest.cc
  439. * test/UtilTest.cc
  440. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Removed.
  442. * src/CheckIntegrityMan.cc
  443. * src/FileAllocationMan.cc
  444. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Made (piece) hash check sequential for each RequestGroup because
  446. simultaneous hash check is slower than sequential execution.
  447. * src/CheckIntegrityCommand.cc
  448. * src/CheckIntegrityDispatcherCommand.cc
  449. * src/CheckIntegrityDispatcherCommand.h
  450. * src/CheckIntegrityMan.h
  451. * src/ConsoleStatCalc.cc
  452. * src/DownloadCommand.cc
  453. * src/DownloadEngine.cc
  454. * src/DownloadEngine.h
  455. * src/DownloadEngineFactory.cc
  456. * src/Makefile.am
  457. * src/Makefile.in
  458. * src/RequestGroup.cc
  459. * src/StatCalc.h
  460. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  462. SequentialDispatcherCommand.
  463. * src/FileAllocationDispatcherCommand.cc
  464. * src/SequentialDispatcherCommand.h
  465. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Rewritten FileAllocationDispatcherCommand using brand new
  467. SequentialDispatcherCommand.
  468. * src/DownloadEngineFactory.cc
  469. * src/FileAllocationCommand.cc
  470. * src/FileAllocationDispatcherCommand.cc
  471. * src/FileAllocationDispatcherCommand.h
  472. * src/Makefile.am
  473. * src/SequentialDispatcherCommand.h
  474. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Replaced FileAllocationMan with
  476. SequentialPicker<FileAllocationEntry>.
  477. * src/BtCheckIntegrityEntry.cc
  478. * src/ConsoleStatCalc.cc
  479. * src/DownloadEngine.cc
  480. * src/DownloadEngine.h
  481. * src/DownloadEngineFactory.cc
  482. * src/FileAllocationCommand.cc
  483. * src/FileAllocationDispatcherCommand.cc
  484. * src/FileAllocationMan.h
  485. * src/Makefile.am
  486. * src/SequentialPicker.h
  487. * src/StatCalc.h
  488. * src/StreamCheckIntegrityEntry.cc
  489. * test/Makefile.am
  490. * test/SequentialPickerTest.cc
  491. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Added doc for adaptive URI selector.
  493. * doc/aria2c.1.txt
  494. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Added doc for adaptive URI selector.
  496. * src/usage_text.h
  497. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Added doc for --bt-max-peers option.
  499. * doc/aria2c.1.txt
  500. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Added doc for --bt-hash-check-seed option.
  502. * doc/aria2c.1.txt
  503. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Documented exit codes.
  505. * doc/aria2c.1.txt
  506. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Added --bt-max-peers option to specify the maximum number of peers
  508. per torrent. 0 means unlimited number of peers.
  509. * src/ActivePeerConnectionCommand.cc
  510. * src/BtRuntime.h
  511. * src/DefaultPeerStorage.cc
  512. * src/DefaultPeerStorage.h
  513. * src/OptionHandlerFactory.cc
  514. * src/RequestGroup.cc
  515. * src/option_processing.cc
  516. * src/prefs.cc
  517. * src/prefs.h
  518. * src/usage_text.h
  519. * test/DefaultPeerStorageTest.cc
  520. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Added --bt-hash-check-seed option. If true is given to this
  522. option, after hash check using --check-integrity option and file
  523. is complete, continue to seed file. If you want to check file and
  524. download it only when it is damaged or incomplete, set this option
  525. to false. This option has effect only on BitTorrent download.
  526. The default value is true(This is the same behavior with the
  527. previous release).
  528. * src/BtCheckIntegrityEntry.cc
  529. * src/OptionHandlerFactory.cc
  530. * src/option_processing.cc
  531. * src/prefs.cc
  532. * src/prefs.h
  533. * src/usage_text.h
  534. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Updated copyright year.
  536. * src/version_usage.cc
  537. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Rewritten the usage text for --bt-request-peer-speed-limit option.
  539. * doc/aria2c.1.txt
  540. * src/usage_text.h
  541. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Made the max value of split option unlimited.
  543. * doc/aria2c.1.txt
  544. * src/OptionHandlerFactory.cc
  545. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Fixed compile warning/error.
  547. * src/DownloadResult.h
  548. * src/HttpDownloadCommand.cc
  549. * src/ServerStat.cc
  550. * test/RequestGroupTest.cc
  551. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Added --event-poll option to select the method for polling events.
  553. The available methods are "select" and "epoll". "epoll" is
  554. available on Linux only. The earlier release has the compile
  555. option to choose from these methods.
  556. * configure.ac
  557. * src/RequestGroupMan.cc
  558. * src/OptionHandlerFactory.cc
  559. * src/EpollEventPoll.h
  560. * src/StreamFileAllocationEntry.cc
  561. * src/a2io.h
  562. * src/SelectEventPoll.h
  563. * src/option_processing.cc
  564. * src/prefs.h
  565. * src/EpollEventPoll.cc
  566. * src/EventPoll.h
  567. * src/SocketCore.h
  568. * src/Makefile.am
  569. * src/main.cc
  570. * src/DownloadEngine.h
  571. * src/SelectEventPoll.cc
  572. * src/DownloadEngine.cc
  573. * src/SocketCore.cc
  574. * src/DownloadEngineFactory.cc
  575. * src/Makefile.in
  576. * src/prefs.cc
  577. * src/usage_text.h
  578. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Included RecoverableException.h from main.cc
  580. * src/main.cc
  581. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  583. now returns last error encountered in the HTTP/FTP downloads as a
  584. exit status value. If all downloads finished successfully, aria2
  585. returns 0. The error code is defined in src/DownloadResult.h.
  586. The error occurred in the download currently in progress is not
  587. reported as a last error. If no error has encountered but there
  588. are in progress or waiting downloads, aria2 returns 7.
  589. * src/AbstractCommand.cc
  590. * src/DlAbortEx.h
  591. * src/DlRetryEx.h
  592. * src/DownloadCommand.cc
  593. * src/DownloadFailureException.h
  594. * src/DownloadResult.h
  595. * src/FtpNegotiationCommand.cc
  596. * src/HttpSkipResponseCommand.cc
  597. * src/Makefile.am
  598. * src/MultiUrlRequestInfo.cc
  599. * src/MultiUrlRequestInfo.h
  600. * src/RecoverableException.h
  601. * src/RequestGroup.cc
  602. * src/RequestGroup.h
  603. * src/RequestGroupMan.cc
  604. * src/RequestGroupMan.h
  605. * src/URIResult.cc
  606. * src/URIResult.h
  607. * src/main.cc
  608. * src/option_processing.cc
  609. * test/RequestGroupTest.cc
  610. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  612. patch adds AdaptiveURISelector, which selects one of the bests
  613. mirrors for first and reserved connections. For supplementary
  614. ones, it returns mirrors which has not been tested yet, and if
  615. each of them already tested, returns mirrors which has to be
  616. tested again. Otherwise, it doesn't return anymore mirrors.
  617. * src/AdaptiveURISelector.cc
  618. * src/AdaptiveURISelector.h
  619. * src/FtpNegotiationCommand.cc
  620. * src/HttpResponseCommand.cc
  621. * src/Makefile.am
  622. * src/Makefile.in
  623. * src/OptionHandlerFactory.cc
  624. * src/RequestGroup.cc
  625. * src/RequestGroup.h
  626. * src/RequestGroupMan.cc
  627. * src/ServerStat.cc
  628. * src/ServerStat.h
  629. * src/ServerStatMan.cc
  630. * src/SpeedCalc.cc
  631. * src/URISelector.h
  632. * src/prefs.cc
  633. * src/prefs.h
  634. * test/RequestGroupManTest.cc
  635. * test/ServerStatManTest.cc
  636. * test/ServerStatTest.cc
  637. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Fixed unit test error.
  639. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  640. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. * Release 1.1.2
  642. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Updated Russian translation. Thanks to the translators.
  644. * po/ru.po
  645. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Added the description of --use-head option to man page.
  647. * doc/aria2c.1.txt
  648. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Bump up version number to 1.1.2
  650. * configure.ac
  651. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Added --use-head option to toggle whether HEAD method should be
  653. used in the first HTTP request. By default aria2 uses HEAD method
  654. as the first request. When the server doesn't recognize HEAD, then
  655. give aria2 --use-head=false to force aria2 to use GET method
  656. instead.
  657. * src/OptionHandlerFactory.cc
  658. * src/RequestGroupMan.cc
  659. * src/option_processing.cc
  660. * src/prefs.cc
  661. * src/prefs.h
  662. * src/usage_text.h
  663. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Fixed the bug that BitTorrent download doesn't finish when REJECT
  665. message is received before CHOKE message. The old implementation
  666. doen't clear the use-bit of the piece when recieved REJECT
  667. message.
  668. * src/DefaultBtMessageDispatcher.cc
  669. * test/DefaultBtMessageDispatcherTest.cc
  670. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. * Release 1.1.1
  672. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Bump up version number to 1.1.1.
  674. * configure.ac
  675. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. Fixed the bug that --summary-interval=0 doesn't work. The summary
  677. is printed repeatedly.
  678. * src/ConsoleStatCalc.cc
  679. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. * Release 1.1.0
  681. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Added ifdef clause for conditional compilation.
  683. * src/main.cc
  684. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  686. translations. Thanks to all translators.
  687. * po/ja.po
  688. * po/ru.po
  689. * po/uk.po
  690. * po/zh_CN.po
  691. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Added the preceding ">>> " before the message "Printing the
  693. contents of file..." to make the output more readable.
  694. * src/main.cc
  695. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Added try-catch block in the loop in showFiles() to continue the
  697. operation even if the exception occurred in one file.
  698. * src/main.cc (showFiles)
  699. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Made messages in showFiles() translatable.
  701. * po/aria2.pot
  702. * src/main.cc
  703. * src/message.h
  704. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Print the contents of Torrent/Metalink files are printed without
  706. -T/-M options.
  707. * src/main.cc
  708. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Escaped '--' with '\--'
  710. * README
  711. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Updated "How to build" section in README. Mentioned about
  713. --with-ca-bundle compile option.
  714. * README
  715. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Bump up version number to 1.1.0.
  717. * configure.ac
  718. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Added a note for --dht-listen-port option.
  720. * doc/aria2c.1.txt
  721. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Update doc for --realtime-chunk-checksum option.
  723. * doc/aria2c.1.txt
  724. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Update doc for --realtime-chunk-checksum option.
  726. * src/usage_text.h
  727. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Updated French, Japanese, Russian and Ukrainian translations.
  729. Thanks to all translators.
  730. * po/fr.po
  731. * po/ja.po
  732. * po/ru.po
  733. * po/uk.po
  734. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Renamed aria2c.pot to aria2.pot
  736. * po/aria2.pot
  737. * po/aria2c.pot: Removed.
  738. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Removed MetaEntry.h
  740. * src/Makefile.am
  741. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Rename file by appending digits if a local file exists and its
  743. file size is larger than that of remote file with --continue
  744. option. The old implementation just throws exception in such case.
  745. * src/RequestGroup.cc
  746. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Fixed the bug that download progress summary is not printed in the
  748. interval specified by the option.
  749. * src/ConsoleStatCalc.cc
  750. * src/ConsoleStatCalc.h
  751. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Fixed compiler warning
  753. * src/Cookie.cc
  754. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Fixed the cookie implementation based on RFC2965.
  756. Now if a value in domain field is not started with dot, then
  757. prepend dot. That means a cookie with domain=sf.net is sent to
  758. wiki.sf.net.
  759. * src/Cookie.cc
  760. * test/CookieParserTest.cc
  761. * test/CookieStorageTest.cc
  762. * test/CookieTest.cc
  763. * test/NsCookieParserTest.cc
  764. * test/Sqlite3MozCookieParserTest.cc
  765. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Fixed the bug that causes corrupted downloads if HTTP pipelining
  767. is enabled and the server doesn't support keep-alive.
  768. * src/AbstractCommand.cc
  769. * src/DownloadCommand.cc
  770. * src/HttpDownloadCommand.cc
  771. * src/HttpDownloadCommand.h
  772. * src/HttpResponseCommand.cc
  773. * src/Request.cc
  774. * src/Request.h
  775. * test/RequestTest.cc
  776. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. Removed Dictionary/List/Data and its related classes.
  778. * src/BencodeVisitor.cc: Removed.
  779. * src/BencodeVisitor.h: Removed.
  780. * src/Data.cc: Removed.
  781. * src/Data.h: Removed.
  782. * src/Dictionary.cc: Removed.
  783. * src/Dictionary.h: Removed.
  784. * src/List.cc: Removed.
  785. * src/List.h: Removed.
  786. * src/Makefile.am
  787. * src/MetaEntry.h: Removed.
  788. * src/MetaEntryVisitor.h: Removed.
  789. * src/MetaFileUtil.cc: Removed.
  790. * src/MetaFileUtil.h: Removed.
  791. * test/BencodeVisitorTest.cc: Removed.
  792. * test/DataTest.cc: Removed.
  793. * test/DictionaryTest.cc: Removed.
  794. * test/ListTest.cc: Removed.
  795. * test/Makefile.am
  796. * test/MetaFileUtilTest.cc: Removed.
  797. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Removed include of MetaEntry.h
  799. * test/DHTMessageTrackerEntryTest.cc
  800. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Use BDE instead of Dictionary/List/Data.
  802. * src/AnnounceList.cc
  803. * src/AnnounceList.h
  804. * test/AnnounceListTest.cc
  805. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Use BDE instead of Dictionary/List/Data.
  807. * src/DHTAbstractMessage.cc
  808. * src/DHTAbstractMessage.h
  809. * src/DHTAnnouncePeerMessage.cc
  810. * src/DHTAnnouncePeerMessage.h
  811. * src/DHTAnnouncePeerReplyMessage.cc
  812. * src/DHTAnnouncePeerReplyMessage.h
  813. * src/DHTFindNodeMessage.cc
  814. * src/DHTFindNodeMessage.h
  815. * src/DHTFindNodeReplyMessage.cc
  816. * src/DHTFindNodeReplyMessage.h
  817. * src/DHTGetPeersMessage.cc
  818. * src/DHTGetPeersMessage.h
  819. * src/DHTGetPeersReplyMessage.cc
  820. * src/DHTGetPeersReplyMessage.h
  821. * src/DHTMessageFactory.h
  822. * src/DHTMessageFactoryImpl.cc
  823. * src/DHTMessageFactoryImpl.h
  824. * src/DHTMessageReceiver.cc
  825. * src/DHTMessageTracker.cc
  826. * src/DHTMessageTracker.h
  827. * src/DHTPingMessage.cc
  828. * src/DHTPingMessage.h
  829. * src/DHTPingReplyMessage.cc
  830. * src/DHTPingReplyMessage.h
  831. * src/DHTQueryMessage.cc
  832. * src/DHTQueryMessage.h
  833. * src/DHTResponseMessage.cc
  834. * src/DHTResponseMessage.h
  835. * test/DHTAnnouncePeerMessageTest.cc
  836. * test/DHTAnnouncePeerReplyMessageTest.cc
  837. * test/DHTFindNodeMessageTest.cc
  838. * test/DHTFindNodeReplyMessageTest.cc
  839. * test/DHTGetPeersMessageTest.cc
  840. * test/DHTGetPeersReplyMessageTest.cc
  841. * test/DHTMessageFactoryImplTest.cc
  842. * test/DHTMessageTrackerTest.cc
  843. * test/DHTPingMessageTest.cc
  844. * test/DHTPingReplyMessageTest.cc
  845. * test/MockDHTMessageFactory.h
  846. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Added tests the case where length < 0 is specified.
  848. * test/BencodeTest.cc
  849. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Fixed memory leak in decoderawstring()
  851. * src/bencode.cc
  852. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Added missing #ifdef guard. Added uc() function for String and
  854. removeKey() for Dict.
  855. * src/bencode.cc
  856. * src/bencode.h
  857. * test/BencodeTest.cc
  858. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Use BDE instead of Dictionary/List/Data.
  860. * src/HandshakeExtensionMessage.cc
  861. * src/HandshakeExtensionMessage.h
  862. * test/HandshakeExtensionMessageTest.cc
  863. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Added --max-overall-upload-limit option. This option limits the
  865. overall upload speed. Stated in help message that the existing
  866. --max-upload-limit option limits the upload speed per each
  867. torrent. Man page is also updated.
  868. * doc/aria2c.1.txt
  869. * src/DefaultBtMessageDispatcher.cc
  870. * src/DefaultBtMessageDispatcher.h
  871. * src/OptionHandlerFactory.cc
  872. * src/PeerInteractionCommand.cc
  873. * src/option_processing.cc
  874. * src/prefs.cc
  875. * src/prefs.h
  876. * src/usage_text.h
  877. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Use BDE instead of Dictionary/List/Data classes.
  879. * src/CompactPeerListProcessor.cc
  880. * src/CompactPeerListProcessor.h
  881. * src/DefaultBtAnnounce.cc
  882. * src/DefaultBtContext.cc
  883. * src/DefaultBtContext.h
  884. * src/DefaultPeerListProcessor.cc
  885. * src/DefaultPeerListProcessor.h
  886. * src/DelegatingPeerListProcessor.cc
  887. * src/DelegatingPeerListProcessor.h
  888. * src/PeerListProcessor.h
  889. * src/UTPexExtensionMessage.cc
  890. * src/Util.h
  891. * src/message.h
  892. * test/DefaultBtContextTest.cc
  893. * test/DefaultPeerListProcessorTest.cc
  894. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Added bencode helper functions and BDE class.
  896. They will replace MetaFileUtil and Dictionary/List/Data classes.
  897. * src/Makefile.am
  898. * src/bencode.cc
  899. * src/bencode.h
  900. * test/BencodeTest.cc
  901. * test/Makefile.am
  902. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Fixed the bug that bad URI is sent to the tracker when the announe
  904. URI in torrent file includes query.
  905. * src/DefaultBtAnnounce.cc
  906. * test/DefaultBtAnnounceTest.cc
  907. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Added Option::blank().
  909. Use !Option::blank(name) instead of Option::defined(name) for
  910. the options that take filename.
  911. * src/MultiUrlRequestInfo.cc
  912. * src/Option.cc
  913. * src/Option.h
  914. * src/main.cc
  915. * src/option_processing.cc
  916. * test/OptionTest.cc
  917. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Documented the default value of --check-certificate option in man
  919. page.
  920. * doc/aria2c.1.txt
  921. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Enabled --check-certificate by default. Added compile
  923. time(configure) option --with-ca-bundle to specify CA bundle.
  924. Warn if --check-certificate=true and --ca-certificate is not
  925. specified or loading CA certificate is failed.
  926. * configure.ac
  927. * src/MultiUrlRequestInfo.cc
  928. * src/OptionHandlerFactory.cc
  929. * src/message.h
  930. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Mentioned https tag in help option.
  932. * doc/aria2c.1.txt
  933. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Added `https' tag to help option category. Added https tag to
  935. --ca-certificate, --certificate, --check-certificate and
  936. --private-key option.
  937. * src/OptionHandlerFactory.cc
  938. * src/help_tags.h
  939. * src/option_processing.cc
  940. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Changed the package name from `aria2c' to `aria2' in order to fix
  942. the packaging issue in Debian and Fedora. The name of the
  943. executable is not changed.
  944. * configure.ac
  945. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Fixed typos
  947. * src/usage_text.h
  948. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Fixed typos and updated doc.
  950. * README
  951. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Fixed typos
  953. * doc/aria2c.1.txt
  954. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Fixed typos
  956. * src/usage_text.h
  957. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Print a message when no files to download.
  959. * src/download_helper.cc
  960. * src/main.cc
  961. * src/message.h
  962. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. RFC3986 complied Percent-Encoding(urlencode).
  964. Use uppercase hexadecimal digits for encoded text instead of lowercase
  965. ones.
  966. * src/Request.cc
  967. * src/Util.cc
  968. * src/Util.h
  969. * test/BtHandshakeMessageTest.cc
  970. * test/DefaultBtAnnounceTest.cc
  971. * test/DefaultBtContextTest.cc
  972. * test/RequestTest.cc
  973. * test/UtilTest.cc
  974. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Fixed the bug that prevents aria2 from downloading 0-length files
  976. via HTTP/FTP.
  977. * src/DefaultBtContext.cc
  978. * src/DefaultBtContext.h
  979. * src/DownloadContext.h
  980. * src/FtpNegotiationCommand.cc
  981. * src/HttpResponseCommand.cc
  982. * src/HttpResponseCommand.h
  983. * src/RequestGroup.cc
  984. * src/SingleFileDownloadContext.cc
  985. * src/SingleFileDownloadContext.h
  986. * test/BtPostDownloadHandlerTest.cc
  987. * test/MetalinkPostDownloadHandlerTest.cc
  988. * test/MockBtContext.h
  989. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  991. * src/option_processing.cc
  992. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Applied aria2-1.0.1-mingw.patch.
  994. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  995. mingw.
  996. Collected 4th and 5th argument types for getsockopt and setsockopt.
  997. * src/SocketCore.cc
  998. * src/a2netcompat.h
  999. * test/SocketCoreTest.cc
  1000. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. * Release 1.0.1
  1002. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Updated Ukrainian and Norwegian Nynorsk translations.
  1004. Thanks to all translators.
  1005. * po/nn.po
  1006. * po/uk.po
  1007. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Don't show download result when -S option is used.
  1009. * src/main.cc
  1010. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Bump up version number to 1.0.1
  1012. * configure.ac
  1013. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Closed files after the test cases in MultiDiskWriterTest::
  1015. testResetDiskWriterEntries(). This will fix the unit test error
  1016. in mingw32 build.
  1017. * test/MultiDiskWriterTest.cc
  1018. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Use HEAD method to get file size from HTTP server for segmented
  1020. downloading.
  1021. The request to the BitTorrent Tracker always uses GET method because
  1022. the response of the tracker is small and it doesn't need segmented
  1023. download.
  1024. * src/FtpNegotiationCommand.cc
  1025. * src/HttpRequest.cc
  1026. * src/HttpResponseCommand.cc
  1027. * src/HttpSkipResponseCommand.cc
  1028. * src/RequestGroup.cc
  1029. * src/RequestGroup.h
  1030. * src/TrackerWatcherCommand.cc
  1031. * test/HttpRequestTest.cc
  1032. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Fixed the bug that causes floating exception when -T option is used and
  1034. no URIs are given.
  1035. * src/download_helper.cc
  1036. * test/DownloadHelperTest.cc
  1037. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1038. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1039. errors in MinGW:
  1040. Closed file after saving server stats (RequestGroupMan.cc)
  1041. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1042. Ignored case & handled 2-digit years (strptime.c)
  1043. Added missing suseconds_t definition (a2time.h)
  1044. Fixed socket CLOSE() define (SocketCore.cc)
  1045. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1046. Changed utime() test values from x000 to x00000 as MinGW failed on
  1047. values less than timezone offset from Unix epoch
  1048. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1049. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1050. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1051. handle negative dates (CookieParserTest.cc)
  1052. * src/a2time.h
  1053. * src/FtpConnection.cc
  1054. * src/RequestGroupMan.cc
  1055. * src/SocketCore.cc
  1056. * src/strptime.c
  1057. * test/CookieParserTest.cc
  1058. * test/CopyDiskAdaptorTest.cc
  1059. * test/FileTest.cc
  1060. * test/FtpConnectionTest.cc
  1061. * test/MultiDiskAdaptorTest.cc
  1062. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1064. * doc/aria2c.1.txt
  1065. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1066. * Release 1.0.0
  1067. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Added '~' to reserved characters.
  1069. * src/Util.cc
  1070. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Do not urlencode Request::url in setUrl() because we want unmodified
  1072. URL using Request::getUrl()
  1073. * src/Request.cc
  1074. * src/Request.h
  1075. * test/RequestTest.cc
  1076. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1078. Thanks to all translators.
  1079. * po/bg.po
  1080. * po/fr.po
  1081. * po/ja.po
  1082. * po/ru.po
  1083. * po/uk.po
  1084. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Bump up version number to 1.0.0
  1086. * configure.ac
  1087. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Added nosqlite3 build to build_test.sh.
  1089. Renamed noxml as expat.
  1090. * build_test.sh
  1091. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Updated INPUT FILE section.
  1093. * doc/aria2c.1.txt
  1094. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1096. on big endian systems because test .aria2 files are made for little
  1097. endian systems.
  1098. * test/DefaultBtProgressInfoFileTest.cc
  1099. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Dropped ares support.
  1101. * README
  1102. * configure.ac
  1103. * m4/libares.m4: Removed.
  1104. * src/AsyncNameResolver.cc
  1105. * src/Makefile.am
  1106. * test/Makefile.am
  1107. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1109. Removed const qualifier from DiskWriter::size().
  1110. * src/AbstractDiskWriter.cc
  1111. * src/AbstractDiskWriter.h
  1112. * src/ByteArrayDiskWriter.cc
  1113. * src/ByteArrayDiskWriter.h
  1114. * src/DiskWriter.h
  1115. * test/ByteArrayDiskWriterTest.cc
  1116. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Fixed the bug that causes segmentation fault/bus error during executing
  1118. choking algorithm while seeding. This is caused by improper
  1119. implementation of compare function which returns inconsistent results
  1120. depending on the timing of last unchoke.
  1121. * src/BtSeederStateChoke.cc
  1122. * src/BtSeederStateChoke.h
  1123. * src/DefaultPeerStorage.cc
  1124. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Removed TODO
  1126. * TODO
  1127. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Added a section that explains how to pass argument to options that
  1129. takes optional arguments with its short form.
  1130. * doc/aria2c.1.txt
  1131. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Added -u for the short form of --max-upload-limit option.
  1133. * doc/aria2c.1.txt
  1134. * src/option_processing.cc
  1135. * src/usage_text.h
  1136. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Added -V for the short form of --check-integrity option.
  1138. Now the argument of --check-integrity option is optional:
  1139. if it is omitted, it is evaluated as true.
  1140. * doc/aria2c.1.txt
  1141. * src/option_processing.cc
  1142. * src/usage_text.h
  1143. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Made the default value of --ftp-pasv option set to true and it can take
  1145. true/false values.
  1146. * src/OptionHandlerFactory.cc
  1147. * src/option_processing.cc
  1148. * src/usage_text.h
  1149. * doc/aria2c.1.txt
  1150. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Given custom random number generator to std::random_shuffle.
  1152. * src/AnnounceList.cc
  1153. * src/BtLeecherStateChoke.cc
  1154. * src/BtSeederStateChoke.cc
  1155. * src/DefaultBtRequestFactory.cc
  1156. * src/MetalinkEntry.cc
  1157. * src/RarestPieceSelector.cc
  1158. * src/SimpleRandomizer.cc
  1159. * src/SimpleRandomizer.h
  1160. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Now the default value of --enable-direct-io is true.
  1162. * src/OptionHandlerFactory.cc
  1163. * doc/aria2c.1.txt
  1164. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Erase peer before executing onReturningPeer and onErasingPeer
  1166. because choking algorithm called from onReturningPeer doesn't
  1167. like erasing peer in the active peer list.
  1168. * src/DefaultPeerStorage.cc
  1169. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Instead of creating special filename in createDownloadResult() if
  1171. inMemoryDownload() is true, now it is done in getFilePath().
  1172. * src/RequestGroup.cc
  1173. * test/RequestGroupTest.cc
  1174. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1176. processed in memory. This is the fix for previous comment out.
  1177. * src/MemoryBufferPreDownloadHandler.cc
  1178. * src/RequestGroup.cc
  1179. * src/RequestGroup.h
  1180. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Commented out the code which sets virtual directory path "[MEMORY]"
  1182. propagate directory to store to following RequestGroup.
  1183. * src/MemoryBufferPreDownloadHandler.cc
  1184. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Bump up version number to 1.0.0b
  1186. * configure.ac
  1187. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Added input_uris.txt to EXTRA_DIST
  1189. * test/Makefile.am
  1190. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Removed PeerObject.h from Makefile.am
  1192. * src/Makefile.am
  1193. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Avoid slow seeding
  1195. * src/PeerInteractionCommand.cc
  1196. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Updated usage for -i option.
  1198. * src/usage_text.h (TEXT_INPUT_FILE)
  1199. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Added INPUT FILE section to man page.
  1201. Escaped fake URLs.
  1202. * doc/aria2c.1.txt
  1203. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Fixed wrong note position for -o option.
  1205. * doc/aria2c.1.txt
  1206. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Fixed compile error without SSL/XML library.
  1208. * src/DefaultBtProgressInfoFile.cc
  1209. * src/DefaultBtProgressInfoFile.h
  1210. * src/FileMetalinkParserState.cc
  1211. * src/RequestGroup.h
  1212. * src/SocketCore.cc
  1213. * src/SocketCore.h
  1214. * src/VerificationMetalinkParserState.cc
  1215. * src/download_helper.h
  1216. * src/main.cc
  1217. * test/DefaultBtProgressInfoFileTest.cc
  1218. * test/DownloadHelperTest.cc
  1219. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Rewritten URI handling functions. They are now provided as a testable
  1221. functions.
  1222. * src/Makefile.am
  1223. * src/RequestGroup.cc
  1224. * src/RequestGroup.h
  1225. * src/download_helper.cc
  1226. * src/download_helper.h
  1227. * src/main.cc
  1228. * test/DownloadHelperTest.cc
  1229. * test/Makefile.am
  1230. * test/input_uris.txt
  1231. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Quickly terminate commands when ctrl-c is pressed.
  1233. * src/DownloadEngine.cc
  1234. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Quickly terminate idle commands when download finished.
  1236. * src/AbstractCommand.cc
  1237. * src/DownloadCommand.cc
  1238. * src/DownloadEngine.cc
  1239. * src/DownloadEngine.h
  1240. * src/SleepCommand.cc
  1241. * src/SleepCommand.h
  1242. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Added the ability to specify output filename and directory in input
  1244. file.
  1245. Additional parameters are added in the following line of URIs
  1246. with proceeding white space(s), 1 parameter in 1 line.
  1247. The parameter names are the same with the command-line option name
  1248. without proceeding "--". Not all the options are available here:
  1249. at the moment, 'dir' and 'out' options are avialable.
  1250. Please note that out option has no effect against Metalink or BitTorrent
  1251. downloads.
  1252. Example input file:
  1253. http://host/foo-1.1.tar.bz2
  1254. out=foo.tar.bz2
  1255. dir=/tmp/downloads
  1256. http://host/thundermonkey-2.0.tar.bz2
  1257. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1258. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1259. thundermonkey-2.0.tar.bz2 is saved as
  1260. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1261. * src/BtPostDownloadHandler.cc
  1262. * src/Metalink2RequestGroup.cc
  1263. * src/Metalink2RequestGroup.h
  1264. * src/MetalinkPostDownloadHandler.cc
  1265. * src/UriListParser.cc
  1266. * src/UriListParser.h
  1267. * src/main.cc
  1268. * test/Metalink2RequestGroupTest.cc
  1269. * test/UriListParserTest.cc
  1270. * test/filelist1.txt
  1271. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Fixed error when SSL library is not found.
  1273. * configure.ac
  1274. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Cross referenced among -s, -C and -j options.
  1276. Updated usage of -C and -s options.
  1277. * src/usage_text.h
  1278. * doc/aria2c.1.txt
  1279. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Fixed bad cast in 32bit platforms.
  1281. * test/DefaultPieceStorageTest.cc
  1282. (DefaultPieceStorageTest::testGetCompletedLength)
  1283. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Fixed unit test fails on 32bit platforms.
  1285. * test/CookieParserTest.cc
  1286. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Show an average download speed in Download results.
  1288. * src/BtFileAllocationEntry.cc
  1289. * src/DefaultPieceStorage.cc
  1290. * src/DownloadContext.cc
  1291. * src/DownloadContext.h
  1292. * src/DownloadResult.h
  1293. * src/RequestGroup.cc
  1294. * src/RequestGroupMan.cc
  1295. * src/StreamFileAllocationEntry.cc
  1296. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Fixed the bug that metalink file is not processed if Content-Type
  1298. field has a paramter.
  1299. * src/HttpResponse.cc
  1300. * src/HttpResponse.h
  1301. * test/HttpResponseTest.cc
  1302. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Removed unused code.
  1304. * src/DefaultBtAnnounce.cc
  1305. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1307. the value larger than DefaultPieceStorage::getTotalLength() when
  1308. in flight pieces are involved.
  1309. * src/DefaultPieceStorage.cc
  1310. * test/DefaultPieceStorageTest.cc
  1311. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Bump up version number to 1.0.0a.
  1313. * configure.ac
  1314. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Updated configure.ac
  1316. * configure.ac
  1317. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Added usege for proxy.
  1319. * doc/aria2c.1.txt
  1320. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Added usage for --ca-certificate, --certificate, --private-key and
  1322. --check-certificate options.
  1323. * doc/aria2c.1.txt
  1324. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Updated man page
  1326. * doc/aria2c.1.txt
  1327. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Added --no-proxy option. It receives comman separated hostname or
  1329. domains to which proxy should not be used.
  1330. aria2 honors the environment variable no_proxy to override no-proxy
  1331. value in configuration file. The user can override the environment
  1332. variable no_proxy with --no-proxy command-line option.
  1333. * src/AbstractCommand.cc
  1334. * src/OptionHandlerFactory.cc
  1335. * src/option_processing.cc
  1336. * src/prefs.cc
  1337. * src/prefs.h
  1338. * src/usage_text.h
  1339. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1341. The CA certificates are specified in --ca-certificate option.
  1342. By default, the verification is disabled. Use --check-certificate
  1343. option to enable it.
  1344. * src/HttpRequestCommand.cc
  1345. * src/LibgnutlsTLSContext.cc
  1346. * src/LibgnutlsTLSContext.h
  1347. * src/LibsslTLSContext.cc
  1348. * src/LibsslTLSContext.h
  1349. * src/MultiUrlRequestInfo.cc
  1350. * src/OptionHandlerFactory.cc
  1351. * src/SocketCore.cc
  1352. * src/SocketCore.h
  1353. * src/a2functional.h
  1354. * src/message.h
  1355. * src/option_processing.cc
  1356. * src/prefs.cc
  1357. * src/prefs.h
  1358. * src/usage_text.h
  1359. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Added client certificate authentication for SSL/TLS.
  1361. Currently a private key must be decrypted for use with aria2.
  1362. If a user accidentally gives encrypted file to aria2 then following
  1363. thing happens:
  1364. If encrypted private key is given to aria2, it behaves differently
  1365. depending on the ssl library it uses. If aria2 built with openssl then
  1366. openssl prompts the user for password. If aria2 build with gnutls then
  1367. aria2 exists with error at start up.
  1368. * src/DownloadEngineFactory.cc
  1369. * src/MultiUrlRequestInfo.cc
  1370. * src/OptionHandlerFactory.cc
  1371. * src/option_processing.cc
  1372. * src/prefs.cc
  1373. * src/prefs.h
  1374. * src/usage_text.h
  1375. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Introduced TLSContext that holds TLS related data that can be shared
  1377. with multiple SSL connections.
  1378. * src/DownloadEngineFactory.cc
  1379. * src/LibgnutlsTLSContext.cc
  1380. * src/LibgnutlsTLSContext.h
  1381. * src/LibsslTLSContext.cc
  1382. * src/LibsslTLSContext.h
  1383. * src/Makefile.am
  1384. * src/SocketCore.cc
  1385. * src/SocketCore.h
  1386. * src/TLSContext.h
  1387. * src/message.h
  1388. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Fixed the bug that the DiskWriter of the first FileEntry whose
  1390. `needsFileAllocation' property is false is not created
  1391. even if it shares a piece with next FileEntry which `requested' property
  1392. is true.
  1393. Fixed the bug that zero-length file is not created if pre file
  1394. allocation is not done.
  1395. * src/MultiDiskAdaptor.cc
  1396. * src/MultiDiskAdaptor.h
  1397. * test/MultiDiskAdaptorTest.cc
  1398. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1399. Added the ability to pool proxy connection.
  1400. The conneciton in FTP with proxy-method=GET is not pooled.
  1401. Proxy-Connection header will not be sent when sending CONNECT method.
  1402. * src/DownloadEngine.cc
  1403. * src/DownloadEngine.h
  1404. * src/FtpFinishDownloadCommand.cc
  1405. * src/FtpInitiateConnectionCommand.cc
  1406. * src/FtpNegotiationCommand.cc
  1407. * src/HttpDownloadCommand.cc
  1408. * src/HttpInitiateConnectionCommand.cc
  1409. * src/HttpRequest.cc
  1410. * src/HttpRequest.h
  1411. * src/HttpResponse.cc
  1412. * src/HttpSkipResponseCommand.cc
  1413. * test/HttpRequestTest.cc
  1414. * test/HttpResponseTest.cc
  1415. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1416. Handle date before epoch.
  1417. To create *bad* Time object, call Time::null().
  1418. * src/CookieParser.cc
  1419. * src/FtpConnection.cc
  1420. * src/FtpConnection.h
  1421. * src/FtpNegotiationCommand.cc
  1422. * src/RequestGroup.cc
  1423. * src/TimeA2.cc
  1424. * src/TimeA2.h
  1425. * test/CookieParserTest.cc
  1426. * test/FtpConnectionTest.cc
  1427. * test/TimeTest.cc
  1428. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1429. Added support for following envrionment variables: http_proxy,
  1430. https_proxy, ftp_proxy and all_proxy.
  1431. Each variable is equivalent to the aria2 option whose name is the
  1432. variable name with '_' replaced with '-'.
  1433. They overrides options specified in aria2.conf file.
  1434. The envrionment variables can be overrode using command-line option.
  1435. * src/option_processing.cc
  1436. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1437. Renamed --http-proxy-method as --proxy-method.
  1438. * src/AbstractCommand.cc
  1439. * src/FtpInitiateConnectionCommand.cc
  1440. * src/HttpInitiateConnectionCommand.cc
  1441. * src/OptionHandlerFactory.cc
  1442. * src/option_processing.cc
  1443. * src/prefs.cc
  1444. * src/prefs.h
  1445. * src/usage_text.h
  1446. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1447. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1448. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1449. Above 3 options and --http-proxy option can handle proxy in URL format
  1450. like: http://user:passwd@host:port.
  1451. If a proxy requires user/password, they must be specified in a URL.
  1452. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1453. instead.
  1454. * src/AbstractCommand.cc
  1455. * src/AbstractCommand.h
  1456. * src/AbstractProxyRequestCommand.cc
  1457. * src/AbstractProxyRequestCommand.h
  1458. * src/AuthConfigFactory.cc
  1459. * src/AuthConfigFactory.h
  1460. * src/FtpFinishDownloadCommand.cc
  1461. * src/FtpInitiateConnectionCommand.cc
  1462. * src/FtpInitiateConnectionCommand.h
  1463. * src/FtpNegotiationCommand.cc
  1464. * src/FtpTunnelRequestCommand.cc
  1465. * src/FtpTunnelRequestCommand.h
  1466. * src/HttpDownloadCommand.cc
  1467. * src/HttpInitiateConnectionCommand.cc
  1468. * src/HttpInitiateConnectionCommand.h
  1469. * src/HttpProxyRequestCommand.cc
  1470. * src/HttpProxyRequestCommand.h
  1471. * src/HttpRequest.cc
  1472. * src/HttpRequest.h
  1473. * src/HttpRequestCommand.cc
  1474. * src/HttpRequestCommand.h
  1475. * src/HttpSkipResponseCommand.cc
  1476. * src/InitiateConnectionCommand.cc
  1477. * src/InitiateConnectionCommand.h
  1478. * src/OptionHandlerFactory.cc
  1479. * src/OptionHandlerImpl.h
  1480. * src/Request.cc
  1481. * src/option_processing.cc
  1482. * src/prefs.cc
  1483. * src/prefs.h
  1484. * src/usage_text.h
  1485. * test/AuthConfigFactoryTest.cc
  1486. * test/HttpRequestTest.cc
  1487. * test/OptionHandlerTest.cc
  1488. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1489. Execute choking algorithm when unchoked and interested peer is
  1490. disconected.
  1491. * src/DefaultPeerStorage.cc
  1492. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1493. Added testcase for BtNotInterestedMessage from unchoked peer.
  1494. * test/BtNotInterestedMessageTest.cc
  1495. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1496. Execute choking algorithm when BtInterestedMessage arrives from
  1497. unchoked peer.
  1498. * src/BtInterestedMessage.cc
  1499. * src/BtInterestedMessage.h
  1500. * src/DefaultBtMessageFactory.cc
  1501. * test/BtInterestedMessageTest.cc
  1502. * test/MockPeerStorage.h
  1503. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1504. AuthConfigFactory is now part of DownloadEngine.
  1505. * src/AbstractProxyRequestCommand.cc
  1506. * src/AuthConfigFactory.h
  1507. * src/DownloadEngine.cc
  1508. * src/DownloadEngine.h
  1509. * src/FtpConnection.cc
  1510. * src/FtpConnection.h
  1511. * src/FtpNegotiationCommand.cc
  1512. * src/HttpConnection.cc
  1513. * src/HttpRequest.cc
  1514. * src/HttpRequest.h
  1515. * src/HttpRequestCommand.cc
  1516. * src/HttpResponse.cc
  1517. * src/HttpResponseCommand.cc
  1518. * src/HttpSkipResponseCommand.cc
  1519. * src/MultiUrlRequestInfo.cc
  1520. * src/main.cc
  1521. * test/FtpConnectionTest.cc
  1522. * test/HttpRequestTest.cc
  1523. * test/HttpResponseTest.cc
  1524. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1525. Corrected catched exception type.
  1526. * src/ServerStatMan.cc
  1527. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1528. DNSCache is now part of DownloadEngine.
  1529. * src/DNSCache.h
  1530. * src/DownloadEngine.cc
  1531. * src/DownloadEngine.h
  1532. * src/InitiateConnectionCommand.cc
  1533. * src/MultiUrlRequestInfo.cc
  1534. * test/Makefile.am
  1535. * test/Makefile.in
  1536. * test/SimpleDNSCacheTest.cc
  1537. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1538. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1539. DownloadEngine.
  1540. * src/ActivePeerConnectionCommand.cc
  1541. * src/BtSetup.cc
  1542. * src/CUIDCounter.h
  1543. * src/DHTSetup.cc
  1544. * src/DownloadCommand.cc
  1545. * src/DownloadEngine.cc
  1546. * src/DownloadEngine.h
  1547. * src/DownloadEngineFactory.cc
  1548. * src/FileAllocationDispatcherCommand.cc
  1549. * src/InitiatorMSEHandshakeCommand.cc
  1550. * src/PeerInitiateConnectionCommand.cc
  1551. * src/PeerInteractionCommand.cc
  1552. * src/PeerListenCommand.cc
  1553. * src/RequestGroup.cc
  1554. * src/StreamFileAllocationEntry.cc
  1555. * src/TrackerWatcherCommand.cc
  1556. * src/main.cc
  1557. * test/RequestGroupManTest.cc
  1558. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1559. Implemented commented code in BtSeederStateChoke
  1560. * src/BtSeederStateChoke.cc
  1561. * src/Peer.cc
  1562. * src/Peer.h
  1563. * src/PeerInteractionCommand.cc
  1564. * src/PeerSessionResource.cc
  1565. * src/PeerSessionResource.h
  1566. * test/MockBtMessageDispatcher.h
  1567. * test/PeerSessionResourceTest.cc
  1568. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1569. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1570. its object.
  1571. * src/AbstractBtMessage.cc
  1572. * src/ActivePeerConnectionCommand.cc
  1573. * src/ActivePeerConnectionCommand.h
  1574. * src/BtContextAwareCommand.cc
  1575. * src/BtContextAwareCommand.h
  1576. * src/BtExtendedMessage.cc
  1577. * src/BtExtendedMessage.h
  1578. * src/BtInterestedMessage.cc
  1579. * src/BtInterestedMessage.h
  1580. * src/BtNotInterestedMessage.cc
  1581. * src/BtNotInterestedMessage.h
  1582. * src/BtRegistry.cc
  1583. * src/BtRegistry.h
  1584. * src/BtSeederStateChoke.cc
  1585. * src/BtSetup.cc
  1586. * src/DHTGetPeersCommand.cc
  1587. * src/DHTGetPeersCommand.h
  1588. * src/DHTPeerAnnounceEntry.cc
  1589. * src/DHTPeerAnnounceEntry.h
  1590. * src/DHTPeerAnnounceStorage.cc
  1591. * src/DHTPeerAnnounceStorage.h
  1592. * src/DHTPeerLookupTask.cc
  1593. * src/DHTPeerLookupTask.h
  1594. * src/DHTSetup.cc
  1595. * src/DHTSetup.h
  1596. * src/DHTTaskFactory.h
  1597. * src/DHTTaskFactoryImpl.cc
  1598. * src/DHTTaskFactoryImpl.h
  1599. * src/DefaultBtAnnounce.cc
  1600. * src/DefaultBtInteractive.cc
  1601. * src/DefaultBtInteractive.h
  1602. * src/DefaultBtMessageDispatcher.cc
  1603. * src/DefaultBtMessageDispatcher.h
  1604. * src/DefaultBtMessageFactory.cc
  1605. * src/DefaultBtMessageFactory.h
  1606. * src/DefaultBtMessageReceiver.cc
  1607. * src/DefaultBtProgressInfoFile.cc
  1608. * src/DefaultBtProgressInfoFile.h
  1609. * src/DefaultBtRequestFactory.cc
  1610. * src/DefaultBtRequestFactory.h
  1611. * src/DefaultExtensionMessageFactory.cc
  1612. * src/DefaultExtensionMessageFactory.h
  1613. * src/DefaultPeerStorage.cc
  1614. * src/DefaultPeerStorage.h
  1615. * src/DownloadEngine.cc
  1616. * src/DownloadEngine.h
  1617. * src/InitiatorMSEHandshakeCommand.cc
  1618. * src/InitiatorMSEHandshakeCommand.h
  1619. * src/MSEHandshake.cc
  1620. * src/MSEHandshake.h
  1621. * src/Makefile.am
  1622. * src/Makefile.in
  1623. * src/PeerChokeCommand.cc
  1624. * src/PeerChokeCommand.h
  1625. * src/PeerInitiateConnectionCommand.cc
  1626. * src/PeerInitiateConnectionCommand.h
  1627. * src/PeerInteractionCommand.cc
  1628. * src/PeerInteractionCommand.h
  1629. * src/PeerObject.h
  1630. * src/PeerReceiveHandshakeCommand.cc
  1631. * src/PeerReceiveHandshakeCommand.h
  1632. * src/ReceiverMSEHandshakeCommand.cc
  1633. * src/RequestGroup.cc
  1634. * src/RequestGroup.h
  1635. * src/RequestGroupMan.cc
  1636. * src/RequestGroupMan.h
  1637. * src/SeedCheckCommand.cc
  1638. * src/SeedCheckCommand.h
  1639. * src/ShareRatioSeedCriteria.h
  1640. * src/SimpleBtMessage.cc
  1641. * src/TrackerWatcherCommand.cc
  1642. * src/TrackerWatcherCommand.h
  1643. * src/UTPexExtensionMessage.cc
  1644. * src/UTPexExtensionMessage.h
  1645. * test/BtCancelMessageTest.cc
  1646. * test/BtChokeMessageTest.cc
  1647. * test/BtExtendedMessageTest.cc
  1648. * test/BtInterestedMessageTest.cc
  1649. * test/BtNotInterestedMessageTest.cc
  1650. * test/BtPieceMessageTest.cc
  1651. * test/BtPortMessageTest.cc
  1652. * test/BtRegistryTest.cc
  1653. * test/BtRejectMessageTest.cc
  1654. * test/BtRequestMessageTest.cc
  1655. * test/DHTPeerAnnounceEntryTest.cc
  1656. * test/DHTPeerAnnounceStorageTest.cc
  1657. * test/DefaultBtMessageDispatcherTest.cc
  1658. * test/DefaultBtMessageFactoryTest.cc
  1659. * test/DefaultBtProgressInfoFileTest.cc
  1660. * test/DefaultBtRequestFactoryTest.cc
  1661. * test/DefaultExtensionMessageFactoryTest.cc
  1662. * test/MSEHandshakeTest.cc
  1663. * test/MockDHTTaskFactory.h
  1664. * test/ShareRatioSeedCriteriaTest.cc
  1665. * test/UTPexExtensionMessageTest.cc
  1666. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1667. Fixed compiler warning.
  1668. * test/UtilTest.cc
  1669. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1670. Treat Cookie object as session cookie if expiry = 0 is given.
  1671. With this change, you can specify session scoped cookies in an external
  1672. file setting expiry value to 0.
  1673. * src/Cookie.cc
  1674. * src/Cookie.h
  1675. * test/CookieParserTest.cc
  1676. * test/CookieStorageTest.cc
  1677. * test/CookieTest.cc
  1678. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1679. Changed signature of DHTMessageFactory::createResponseMessage().
  1680. Removed unused validateIDMatch.
  1681. * src/DHTMessageFactory.h
  1682. * src/DHTMessageFactoryImpl.cc
  1683. * src/DHTMessageFactoryImpl.h
  1684. * src/DHTMessageTracker.cc
  1685. * test/DHTMessageFactoryImplTest.cc
  1686. * test/MockDHTMessageFactory.h
  1687. Dropped DHT message coming from same ID of localhost.
  1688. * src/DHTMessageReceiver.cc
  1689. Rejected adding node whose ID is the same as localhost's.
  1690. * src/DHTRoutingTable.cc
  1691. * test/BtPortMessageTest.cc
  1692. * test/DHTRoutingTableTest.cc
  1693. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1694. Pool connection when redirection occurs with Content-Length = 0.
  1695. * src/HttpSkipResponseCommand.cc
  1696. * src/HttpSkipResponseCommand.h
  1697. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1698. Fixed the bug that causes time out when redirection occurs with
  1699. content-length 0.
  1700. * src/HttpResponseCommand.cc
  1701. * src/HttpSkipResponseCommand.cc
  1702. * src/HttpSkipResponseCommand.h
  1703. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1704. Now each status legends is shown only when it appears in Download
  1705. Result. If Download Result has no item, then status legend will not
  1706. be printed.
  1707. * src/RequestGroupMan.cc
  1708. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1709. Removed duplicate creation of OptionHandlers.
  1710. * src/option_processing.cc
  1711. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1712. Fixed the bug that causes segmentation fault when accessing files which
  1713. don't exist or are not included in --select-file option while
  1714. validating chunk checksum.
  1715. * src/MultiDiskAdaptor.cc
  1716. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1717. Fixed compiler warning.
  1718. * test/UtilTest.cc
  1719. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1720. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1721. * src/IteratableChecksumValidator.cc
  1722. * src/IteratableChunkChecksumValidator.cc
  1723. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1724. * Release 0.16.2
  1725. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1726. Added Serbian translation. Updated Ukrainian translation.
  1727. Thanks to all translators.
  1728. * po/sr.po
  1729. * po/uk.po
  1730. * po/LINGUAS
  1731. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1732. Bump up version number to 0.16.2
  1733. * configure.ac
  1734. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1735. Added length equality test to operator== to drop a piece message
  1736. whose length does not match to the requested one.
  1737. * src/RequestSlot.cc
  1738. * test/DefaultBtMessageDispatcherTest.cc
  1739. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1740. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1741. recieved.
  1742. In this fix, if a request larger than 16KiB length is received, aria2
  1743. disconnects the peer.
  1744. * src/BtConstants.h
  1745. * src/PeerMessageUtil.cc
  1746. * src/PeerMessageUtil.h
  1747. * test/BtRequestMessageTest.cc
  1748. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1749. * Release 0.16.1
  1750. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1751. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1752. * doc/aria2c.1.txt
  1753. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1754. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1755. Updated French, Simplified Chinese and Japanese translations.
  1756. Thanks to all translators.
  1757. en@quot and en@boldquot are also added.
  1758. * po/LINGUAS
  1759. * po/fr.po
  1760. * po/ja.po
  1761. * po/uk.po
  1762. * po/vi.po
  1763. * po/zh_CN.po
  1764. * po/zh_TW.po
  1765. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1766. Bump up version number to 0.16.1.
  1767. * configure.ac
  1768. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1769. Updated README.
  1770. * README
  1771. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1773. not to replace '--' with em dash character.
  1774. * doc/aria2c.1.txt
  1775. * doc/makeman
  1776. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1777. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1778. every SEC seconds.
  1779. * src/DownloadEngineFactory.cc
  1780. * src/OptionHandlerFactory.cc
  1781. * src/option_processing.cc
  1782. * src/usage_text.h
  1783. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1784. Fixed compile warning on linux-amd64
  1785. * src/FtpConnection.cc
  1786. * src/IteratableChunkChecksumValidator.cc
  1787. * src/MultiDiskAdaptor.cc
  1788. Fixed the bug that unit test fails on linux-amd64
  1789. * test/UtilTest.cc
  1790. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1791. Added --dht-file-path option to change the path to dht.dat, which is a
  1792. serialized DHT routing table.
  1793. * src/OptionHandlerFactory.cc
  1794. * src/option_processing.cc
  1795. * src/usage_text.h
  1796. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1797. Fixed possible underflow.
  1798. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1799. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1800. Fixed the bug that last character in URI is not encoded.
  1801. * src/Request.cc
  1802. * test/RequestTest.cc
  1803. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1804. Fixed the bug that referer header field contains fragment.
  1805. Now Request class removes fragment part of URI and encodes it
  1806. in Request::setUri() and setReferer().
  1807. * src/Request.h
  1808. * src/Request.cc
  1809. * test/RequestTest.cc
  1810. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1811. Added missing m4 macros.
  1812. * m4/cppunit.m4
  1813. * m4/libgcrypt.m4
  1814. * m4/libgnutls-extra.m4
  1815. * m4/libgnutls.m4
  1816. * m4/libxml2.m4
  1817. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1818. Fixed compile error with gcc-4.4(snapshot)
  1819. * src/File.cc
  1820. * src/FtpConnection.cc
  1821. * src/OptionHandlerImpl.h
  1822. * src/Util.cc
  1823. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1824. Removed assert()
  1825. * src/SocketBuffer.cc (SocketBuffer::send)
  1826. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1827. Changed the type of _numNewConnection to unsigned int.
  1828. * src/ActivePeerConnectionCommand.cc
  1829. * src/ActivePeerConnectionCommand.h
  1830. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1831. * Release 0.16.0
  1832. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1833. Updated doc
  1834. * README
  1835. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1836. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1837. translations. Thanks to all translators.
  1838. * po/bg.po
  1839. * po/de.po
  1840. * po/fr.po
  1841. * po/ja.po
  1842. * po/zh_CN.po
  1843. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1844. Bump up version number to 0.16.0.
  1845. * configure.ac
  1846. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1847. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1848. int32_t.
  1849. Changed the type of count to int32_t.
  1850. * src/Metalink2RequestGroup.cc
  1851. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1852. Added test for Time::elapsed(time_t).
  1853. * test/TimeTest.cc
  1854. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1855. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1856. Util::difftv() should be used instead.
  1857. * src/TimeA2.cc
  1858. * src/TimeA2.h
  1859. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1860. Made socket for dht connections non-blocking
  1861. * src/DHTAbstractMessage.cc
  1862. * src/DHTAbstractMessage.h
  1863. * src/DHTConnection.h
  1864. * src/DHTConnectionImpl.cc
  1865. * src/DHTConnectionImpl.h
  1866. * src/DHTMessage.h
  1867. * src/DHTMessageDispatcherImpl.cc
  1868. * src/DHTMessageDispatcherImpl.h
  1869. * src/DHTUnknownMessage.cc
  1870. * src/DHTUnknownMessage.h
  1871. * src/SocketCore.cc
  1872. * src/SocketCore.h
  1873. * test/MockDHTMessage.h
  1874. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Changed the type of offset to int.
  1876. * src/ParameterizedStringParser.cc
  1877. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. Made getAsInt() return int32_t
  1879. * src/Option.h
  1880. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1881. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1882. build.
  1883. * configure.ac
  1884. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1885. Use sqlite3_open if sqlite3_open_v2 is not available.
  1886. * src/Sqlite3MozCookieParser.cc
  1887. * src/Sqlite3MozCookieParser.h
  1888. * m4/sqlite3.m4
  1889. * test/Sqlite3MozCookieParserTest.cc
  1890. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1891. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1892. * src/BtPieceMessage.cc
  1893. * src/DHTPeerAnnounceStorage.cc
  1894. * src/DefaultPieceStorage.cc
  1895. * src/DownloadCommand.cc
  1896. * src/DownloadEngine.cc
  1897. * src/FtpConnection.cc
  1898. * src/PeerConnection.cc
  1899. * src/PeerMessageUtil.cc
  1900. * src/RequestGroup.cc
  1901. * src/RequestGroupMan.cc
  1902. * src/SimpleBtMessage.cc
  1903. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1904. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  1905. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  1906. * src/AbstractDiskWriter.cc
  1907. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1908. Don't set Request::supportsPersistentConnection() in HttpConnection
  1909. since this code is also used in AbstractProxyResponseCommand.
  1910. Moved those code to HttpResponse.
  1911. * src/HttpResponse.cc
  1912. * src/HttpResponse.h
  1913. * src/HttpConnection.cc
  1914. * src/HttpConnection.h
  1915. * src/HttpResponseCommand.cc
  1916. * test/HttpResponseTest.cc
  1917. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1918. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1919. The configuration is minimum: no torrent, no metalink, so there may be
  1920. other compile error on their code.
  1921. * src/a2netcompat.h
  1922. * src/File.cc
  1923. * src/File.h
  1924. * src/SocketCore.cc
  1925. * src/SocketCore.h
  1926. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1927. Made a socket of incoming peer non-blocking.
  1928. * src/PeerListenCommand.cc
  1929. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1930. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  1931. whole message data is not sent in one send() call.
  1932. * src/BtPieceMessage.cc
  1933. * src/BtPieceMessage.h
  1934. * src/PeerConnection.cc
  1935. * src/PeerConnection.h
  1936. * src/SimpleBtMessage.cc
  1937. * src/SimpleBtMessage.h
  1938. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1939. Fixed the bug that aria2 downloads faster than max-download-limit when
  1940. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  1941. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  1942. , instead of sum of them.
  1943. * src/ActivePeerConnectionCommand.cc
  1944. * src/DefaultBtInteractive.cc
  1945. * src/DownloadCommand.cc
  1946. * src/PeerInteractionCommand.cc
  1947. * src/PeerReceiveHandshakeCommand.cc
  1948. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1949. Fixed the bug that HTTPS download fails.
  1950. * src/AbstractCommand.cc
  1951. * src/AbstractCommand.h
  1952. * src/DownloadCommand.cc
  1953. * src/FtpConnection.cc
  1954. * src/HttpConnection.cc
  1955. * src/HttpRequestCommand.cc
  1956. * src/HttpResponseCommand.cc
  1957. * src/HttpSkipResponseCommand.cc
  1958. * src/MSEHandshake.cc
  1959. * src/PeerConnection.cc
  1960. * src/SocketCore.cc
  1961. * src/SocketCore.h
  1962. Fixed the bug that aria2 doesn't download whole content body and cannot
  1963. reuse connection if chunked transfer encoding and gzip content encoding
  1964. are set.
  1965. * src/DownloadCommand.cc
  1966. * src/HttpSkipResponseCommand.cc
  1967. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1968. Updated man page.
  1969. * doc/aria2c.1.txt
  1970. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1971. When error occurred while aria2 was parsing an .aria2.conf file, print
  1972. the usage of the option that caused error.
  1973. * src/option_processing.cc
  1974. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1975. Fixed compile error on OptionHandlerException
  1976. * src/Makefile.am
  1977. * src/OptionHandlerException.cc
  1978. * src/OptionHandlerException.h
  1979. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1980. Moved message of the error to OptionHandlerException.h
  1981. * src/NameMatchOptionHandler.h
  1982. * src/OptionHandlerException.h
  1983. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1984. When error occurs while aria2 is parsing an command-line option, print
  1985. the usage of the option.
  1986. * src/Makefile.am
  1987. * src/NameMatchOptionHandler.h
  1988. * src/OptionHandlerException.h
  1989. * src/option_processing.cc
  1990. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1991. Reverted previous change.
  1992. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1993. username is not in URI.
  1994. * src/HttpRequest.cc
  1995. * src/Request.cc
  1996. * test/HttpRequestTest.cc
  1997. * test/RequestTest.cc
  1998. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1999. Now colon is required for username and password in FTP URL, like:
  2000. ftp://username:password@host.
  2001. If colon is not there, aria2 don't parse it as a username. For example,
  2002. aria2 don't retrieve username from ftp://username@host.
  2003. This fix was made in order to login FTP server via non-transparent ftp
  2004. proxy.
  2005. * src/Request.cc
  2006. * test/RequestTest.cc
  2007. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2008. Use netrc for HTTP.
  2009. Now FTP user/password is sent in Authorization header when
  2010. --ftp-via-http-proxy=get is given.
  2011. * src/AuthConfigFactory.cc
  2012. * src/HttpRequest.cc
  2013. * src/HttpRequest.h
  2014. * src/NetrcAuthResolver.cc
  2015. * src/NetrcAuthResolver.h
  2016. * src/OptionHandlerFactory.cc
  2017. * src/option_processing.cc
  2018. * src/prefs.cc
  2019. * src/prefs.h
  2020. * test/AuthConfigFactoryTest.cc
  2021. * test/HttpRequestTest.cc
  2022. * test/NetrcAuthResolverTest.cc
  2023. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2024. Issue PWD command first and get working directory and use it as a prefix
  2025. for CWD command.
  2026. * src/DownloadEngine.cc
  2027. * src/DownloadEngine.h
  2028. * src/FtpConnection.cc
  2029. * src/FtpConnection.h
  2030. * src/FtpFinishDownloadCommand.cc
  2031. * src/FtpInitiateConnectionCommand.cc
  2032. * src/FtpNegotiationCommand.cc
  2033. * src/FtpNegotiationCommand.h
  2034. * test/FtpConnectionTest.cc
  2035. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2036. Removed default user/pass for FTP user/pass, since it should not have
  2037. precedence over netrc configuration by default.
  2038. * src/OptionHandlerFactory.cc
  2039. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2040. Added debug log for socket event.
  2041. * src/AbstractCommand.cc
  2042. * src/PeerAbstractCommand.cc
  2043. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2044. Log microseconds.
  2045. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2046. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2047. Replaced HelpItem.cc with OptionHandler.cc.
  2048. * po/POTFILES.in
  2049. Updated po files with 'make update-po'
  2050. * po/aria2c.pot
  2051. * po/*.po
  2052. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2053. Removed possible values from the text.
  2054. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2055. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2056. Removed unused preferences:
  2057. PREF_NO_PREALLOCATION
  2058. PREF_STDOUT_LOG
  2059. PREF_TRACKER_MAX_TRIES
  2060. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2061. PREF_MIN_SEGMENT_SIZE
  2062. * src/option_processing.cc
  2063. * src/prefs.cc
  2064. * src/prefs.h
  2065. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2066. Integrated HelpItem into OptionParser to ease the workload for adding
  2067. new options. Removed default value from usage text.
  2068. * src/HelpItem.cc: Removed.
  2069. * src/HelpItem.h: Removed.
  2070. * src/HelpItemFactory.cc: Removed.
  2071. * src/HelpItemFactory.h: Removed.
  2072. * src/Makefile.am
  2073. * src/Makefile.in
  2074. * src/NameMatchOptionHandler.h
  2075. * src/OptionHandler.cc
  2076. * src/OptionHandler.h
  2077. * src/OptionHandlerFactory.cc
  2078. * src/OptionHandlerImpl.h
  2079. * src/OptionParser.cc
  2080. * src/OptionParser.h
  2081. * src/TagContainer.cc: Removed.
  2082. * src/TagContainer.h: Removed.
  2083. * src/TaggedItem.cc: Removed.
  2084. * src/TaggedItem.h: Removed.
  2085. * src/main.cc
  2086. * src/option_processing.cc
  2087. * src/usage_text.h
  2088. * src/version_usage.cc
  2089. * test/HelpItemTest.cc: Removed.
  2090. * test/Makefile.am
  2091. * test/Makefile.in
  2092. * test/OptionHandlerTest.cc
  2093. * test/OptionParserTest.cc
  2094. * test/TagContainerTest.cc: Removed.
  2095. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2096. Moved `TransferStat stat = ...' to inside the `if' clause.
  2097. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2098. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2099. Fixed the bug that a block in a piece is requested when same block is
  2100. already requested to the same peer in end game mode.
  2101. * src/BtRequestFactory.h
  2102. * src/DefaultBtInteractive.cc
  2103. * src/DefaultBtRequestFactory.cc
  2104. * src/DefaultBtRequestFactory.h
  2105. * src/DefaultPieceStorage.cc
  2106. * src/DefaultPieceStorage.h
  2107. * src/PieceStorage.h
  2108. * src/UnknownLengthPieceStorage.cc
  2109. * src/UnknownLengthPieceStorage.h
  2110. * test/DefaultBtRequestFactoryTest.cc
  2111. * test/DefaultPieceStorageTest.cc
  2112. * test/MockBtRequestFactory.h
  2113. * test/MockPieceStorage.h
  2114. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2115. Removed _uploadLength and _downloadLength from PeerSessionResource
  2116. and use PeerStat::_sessionUploadLength and
  2117. PeerStat::_sessionDownloadLength.
  2118. * src/PeerSessionResource.cc
  2119. * src/PeerSessionResource.h
  2120. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2121. Fixed the bug that prefixLength of split bucket which doesn't include
  2122. local node ID is incremented.
  2123. * src/DHTBucket.cc
  2124. * src/DHTBucket.h
  2125. * test/DHTBucketTest.cc
  2126. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2127. Added cookies.sqlite to EXTRA_DIST
  2128. * test/Makefile.am
  2129. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2130. Added Turkish translation. Updated French, German, Russian and
  2131. Simplified Chinese translations. Thanks to all translators.
  2132. * po/LINGUAS
  2133. * po/de.po
  2134. * po/fr.po
  2135. * po/ru.po
  2136. * po/tr.po
  2137. * po/zh_CN.po
  2138. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2139. Added deliminating text to the beginning of the log so that one can find
  2140. where the log starts easily.
  2141. * src/main.cc
  2142. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2143. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2144. to fix compile error when async DNS is not enabled by configuration.
  2145. * src/AbstractCommand.cc
  2146. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2147. If establishing conneciton to a server is failed, then mark error on
  2148. its ServerStat.
  2149. Added the cause of error to log when error event occurred.
  2150. Moved message string to message.h for translation.
  2151. * src/AbstractCommand.cc
  2152. * src/AbstractCommand.h
  2153. * src/FtpNegotiationCommand.cc
  2154. * src/HttpRequestCommand.cc
  2155. * src/PeerAbstractCommand.cc
  2156. * src/message.h
  2157. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2158. Added the function to get error message from socket.
  2159. * src/SocketCore.cc
  2160. * src/SocketCore.h
  2161. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2162. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2163. * src/RequestGroupMan.cc
  2164. * src/RequestGroupMan.h
  2165. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2166. If error event is received in epoll, then abort download immediately.
  2167. * src/AbstractCommand.cc
  2168. * src/Command.cc
  2169. * src/Command.h
  2170. * src/DownloadEngine.cc
  2171. * src/PeerAbstractCommand.cc
  2172. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2173. Added usage message for --uri-selector, --server-stat-of,
  2174. --server-stat-in, --server-stat-timeout options.
  2175. * src/HelpItemFactory.cc
  2176. * src/usage_text.h
  2177. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2178. Added upper limit of FTP response buffer. The current implementation
  2179. uses 4096bytes as a limit.
  2180. * src/FtpConnection.cc
  2181. * src/FtpConnection.h
  2182. * test/FtpConnectionTest.cc
  2183. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2184. Use non-blocking socket for TCP communication to avoid possible
  2185. blocking due to buffer full.
  2186. * src/AbstractProxyRequestCommand.cc
  2187. * src/FtpConnection.cc
  2188. * src/FtpConnection.h
  2189. * src/FtpNegotiationCommand.cc
  2190. * src/FtpNegotiationCommand.h
  2191. * src/HttpConnection.cc
  2192. * src/HttpConnection.h
  2193. * src/HttpRequestCommand.cc
  2194. * src/InitiatorMSEHandshakeCommand.cc
  2195. * src/InitiatorMSEHandshakeCommand.h
  2196. * src/MSEHandshake.cc
  2197. * src/MSEHandshake.h
  2198. * src/Makefile.am
  2199. * src/PeerConnection.cc
  2200. * src/PeerConnection.h
  2201. * src/PeerInteractionCommand.cc
  2202. * src/PeerListenCommand.cc
  2203. * src/ReceiverMSEHandshakeCommand.cc
  2204. * src/ReceiverMSEHandshakeCommand.h
  2205. * src/SocketBuffer.cc
  2206. * src/SocketBuffer.h
  2207. * src/SocketCore.cc
  2208. * src/SocketCore.h
  2209. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2210. Call setStatusRealtime() in constructor.
  2211. * src/RealtimeCommand.cc
  2212. * src/RealtimeCommand.h
  2213. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2214. Call Download::setNoWait(true) to execute newly created command without
  2215. a pause.
  2216. * src/AbstractCommand.cc
  2217. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2218. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2219. found' error from HTTP/FTP server NUM times without getting single
  2220. bytes of data, then force the download to fail.
  2221. Basically aria2 tris all URIs available. So if long list of URIs are
  2222. specified in Metalink, then aria2 will take a long time to fail
  2223. eventually if all URIs are outdated. This option eases this situation
  2224. to limit the number of servers to try.
  2225. * src/FtpNegotiationCommand.cc
  2226. * src/HelpItemFactory.cc
  2227. * src/HttpResponseCommand.cc
  2228. * src/OptionHandlerFactory.cc
  2229. * src/PeerStat.h
  2230. * src/RequestGroup.cc
  2231. * src/RequestGroup.h
  2232. * src/SegmentMan.cc
  2233. * src/SegmentMan.h
  2234. * src/option_processing.cc
  2235. * src/prefs.cc
  2236. * src/prefs.h
  2237. * src/usage_text.h
  2238. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2239. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2240. response even if more than one response is in it.
  2241. * src/FtpConnection.cc
  2242. * src/FtpConnection.h
  2243. * test/FtpConnectionTest.cc
  2244. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2245. Merged from stable-0.15
  2246. * m4/libcares.m4
  2247. Use pkg-config
  2248. * m4/sqlite3.m4
  2249. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2250. Removed unnecessary if statement.
  2251. * src/DefaultPieceStorage.cc (initPieceStorage)
  2252. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2253. Added --connect-timeout option to specify connect timeout in seconds.
  2254. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2255. connecting to BitTorrent peer is not controlled by this option.
  2256. * src/AbstractProxyRequestCommand.cc
  2257. * src/FtpNegotiationCommand.cc
  2258. * src/HelpItemFactory.cc
  2259. * src/HttpRequestCommand.cc
  2260. * src/OptionHandlerFactory.cc
  2261. * src/option_processing.cc
  2262. * src/prefs.cc
  2263. * src/prefs.h
  2264. * src/usage_text.h
  2265. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2266. Added help message for -R option.
  2267. * src/HelpItemFactory.cc
  2268. * src/usage_text.h
  2269. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2270. Added the message that the time is in local time zone.
  2271. * src/RequestGroup.cc
  2272. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2273. Implemented the ability to get timestamp from remote FTP server using
  2274. MDTM command described in RFC3659.
  2275. * src/FtpConnection.cc
  2276. * src/FtpConnection.h
  2277. * src/FtpNegotiationCommand.cc
  2278. * src/FtpNegotiationCommand.h
  2279. * test/FtpConnectionTest.cc
  2280. * test/Makefile.am
  2281. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2282. Implemented the ability to get timestamp from remote HTTP server and
  2283. apply it to local file. To enable this feature, --remote-time option
  2284. is added. No usage text has been written yet.
  2285. If several servers returns difference timestamp, then aria2 uses latest
  2286. one.
  2287. * src/CopyDiskAdaptor.cc
  2288. * src/CopyDiskAdaptor.h
  2289. * src/DirectDiskAdaptor.cc
  2290. * src/DirectDiskAdaptor.h
  2291. * src/DiskAdaptor.h
  2292. * src/File.cc
  2293. * src/File.h
  2294. * src/HttpHeader.cc
  2295. * src/HttpHeader.h
  2296. * src/HttpResponse.cc
  2297. * src/HttpResponse.h
  2298. * src/HttpResponseCommand.cc
  2299. * src/HttpResponseCommand.h
  2300. * src/MultiDiskAdaptor.cc
  2301. * src/MultiDiskAdaptor.h
  2302. * src/OptionHandlerFactory.cc
  2303. * src/RequestGroup.cc
  2304. * src/RequestGroup.h
  2305. * src/RequestGroupMan.cc
  2306. * src/option_processing.cc
  2307. * src/prefs.cc
  2308. * src/prefs.h
  2309. * test/CopyDiskAdaptorTest.cc
  2310. * test/FileTest.cc
  2311. * test/Makefile.am
  2312. * test/Makefile.in
  2313. * test/MultiDiskAdaptorTest.cc
  2314. * test/TestUtil.cc
  2315. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2316. Fixed the bug that DiskWriterEntry is not created when its
  2317. FileEntry.isRequested() is false and it doesn't share a piece with
  2318. other FileEntries that are requested. This bug causes segmentation fault
  2319. in the end.
  2320. * src/MultiDiskAdaptor.cc
  2321. * src/MultiDiskAdaptor.h
  2322. * src/MultiFileAllocationIterator.cc
  2323. * test/MultiDiskAdaptorTest.cc
  2324. * test/MultiFileAllocationIteratorTest.cc
  2325. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2326. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2327. called if the number of file entries are greater than max open files.
  2328. * src/AbstractSingleDiskAdaptor.cc
  2329. * src/AbstractSingleDiskAdaptor.h
  2330. * src/DiskAdaptor.h
  2331. * src/MultiDiskAdaptor.cc
  2332. * src/MultiDiskAdaptor.h
  2333. * test/MultiDiskAdaptorTest.cc
  2334. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2335. Added a constuctor that receives struct timeval.
  2336. Added operator<.
  2337. * src/TimeA2.cc
  2338. * src/TimeA2.h
  2339. * test/TimeTest.cc
  2340. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2341. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2342. * src/CookieParser.cc
  2343. * test/CookieParserTest.cc
  2344. * test/HttpResponseTest.cc
  2345. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2346. Implmented the functions to parse date.
  2347. * src/TimeA2.cc
  2348. * src/TimeA2.h
  2349. * test/TimeTest.cc
  2350. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Added "Firefox3 Cookie" feature to FeatureConfig
  2352. * src/FeatureConfig.cc
  2353. * src/FeatureConfig.h
  2354. * test/FeatureConfigTest.cc
  2355. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2356. Bump up version number to 0.16.0b
  2357. * configure.ac
  2358. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2359. Use pkg-config if is is available.
  2360. * m4/openssl.m4
  2361. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2362. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2363. * src/BtAnnounce.h
  2364. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2365. If an error occurred with a URI, remove identical URI from remaining
  2366. URI list because it is likely that same error occurred in the end and it
  2367. is waste of time.
  2368. * src/AbstractCommand.cc
  2369. * src/RequestGroup.cc
  2370. * src/RequestGroup.h
  2371. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2372. Removed wrong comment.
  2373. * src/DefaultPeerStorage.cc
  2374. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2376. Added return value of getpid() to argument of srand() to achieve more
  2377. randomized value.
  2378. * src/SimpleRandomizer.cc
  2379. * src/SimpleRandomizer.h
  2380. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2381. Contact tracker frequently when the number of connections are 0 and
  2382. download is not finished yet.
  2383. * src/ActivePeerConnectionCommand.cc
  2384. * src/BtAnnounce.h
  2385. * src/DefaultBtAnnounce.cc
  2386. * src/DefaultBtAnnounce.h
  2387. * test/MockBtAnnounce.h
  2388. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2389. Moved threshold values to UTPexExtensionMessage.
  2390. * src/DefaultBtInteractive.cc
  2391. * src/Peer.cc
  2392. * src/Peer.h
  2393. * src/UTPexExtensionMessage.cc
  2394. * src/UTPexExtensionMessage.h
  2395. * test/UTPexExtensionMessageTest.cc
  2396. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2397. Added _incoming member to Peer class and made it true if the peer
  2398. initiated connection. Don't add those peer to UTPex message.
  2399. If extended handshake is received, assign _incoming to false.
  2400. * src/DefaultBtInteractive.cc
  2401. * src/HandshakeExtensionMessage.cc
  2402. * src/Peer.cc
  2403. * src/Peer.h
  2404. * src/PeerListenCommand.cc
  2405. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2406. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2407. Encoding Decoder. Removed size threshold for turning off on the fly
  2408. inflation because resulting file may or may not be inflated depending
  2409. on the file size and I think it is not expected by users.
  2410. This change fixes segmentation fault when Metalink file contains gzipped
  2411. file and its filesize is provided.
  2412. * src/HttpResponseCommand.cc
  2413. * src/HttpResponseCommand.h
  2414. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Made Cookie immutable.
  2416. * src/Cookie.cc
  2417. * src/Cookie.h
  2418. * src/CookieParser.cc
  2419. * src/CookieParser.h
  2420. * src/CookieStorage.cc
  2421. * test/CookieParserTest.cc
  2422. * test/CookieStorageTest.cc
  2423. * test/NsCookieParserTest.cc
  2424. * test/Sqlite3MozCookieParserTest.cc
  2425. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2426. Removed CookieBox, CookieBoxFactory.
  2427. * src/CookieBox.cc
  2428. * src/CookieBox.h
  2429. * src/CookieBoxFactory.cc
  2430. * src/CookieBoxFactory.h
  2431. * src/Makefile.am
  2432. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2433. Use CookieStorage class instead of CookieBox class.
  2434. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2435. * src/AbstractProxyRequestCommand.cc
  2436. * src/CookieStorage.cc
  2437. * src/DownloadEngine.cc
  2438. * src/DownloadEngine.h
  2439. * src/HttpConnection.cc
  2440. * src/HttpConnection.h
  2441. * src/HttpRequest.cc
  2442. * src/HttpRequest.h
  2443. * src/HttpRequestCommand.cc
  2444. * src/HttpResponse.cc
  2445. * src/HttpResponseCommand.cc
  2446. * src/HttpSkipResponseCommand.cc
  2447. * src/Makefile.am
  2448. * src/MultiUrlRequestInfo.cc
  2449. * src/Request.cc
  2450. * src/Request.h
  2451. * src/main.cc
  2452. * test/AllTest.cc
  2453. * test/CookieStorageTest.cc
  2454. * test/CookieTest.cc
  2455. * test/HttpRequestTest.cc
  2456. * test/HttpResponseTest.cc
  2457. * test/Makefile.am
  2458. * test/NsCookieParserTest.cc
  2459. * test/Sqlite3MozCookieParserTest.cc
  2460. * test/nscookietest.txt
  2461. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2462. Updated
  2463. * test/Cookies.sqlite
  2464. * test/nscookietest.txt
  2465. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2466. Added tests for CookieStorage::load()
  2467. * test/CookieStorageTest.cc
  2468. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2469. Added CookieStorage class which is based on RFC2109 and manages cookies
  2470. more strictly than CookieBox and CookieBoxFactory class.
  2471. * src/CookieStorage.cc
  2472. * src/CookieStorage.h
  2473. * src/Cookie.cc
  2474. * src/Cookie.h
  2475. * test/CookieStorageTest.cc
  2476. * test/CookieTest.cc
  2477. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2478. Fixed the bug that commands are created more than the number of pieces.
  2479. * src/RequestGroup.cc
  2480. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2481. Fixed infinite loop bug in FTP when SIZE command failed.
  2482. * src/FtpNegotiationCommand.cc
  2483. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2484. Removed DirectDiskAdaptorTest.h
  2485. * test/Makefile.am
  2486. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2487. Fixed chunk checksum validation cannot detect trailing garbage data.
  2488. BUG#2074141
  2489. * src/AbstractSingleDiskAdaptor.cc
  2490. * src/AbstractSingleDiskAdaptor.h
  2491. * src/CheckIntegrityEntry.cc
  2492. * src/CheckIntegrityEntry.h
  2493. * src/DiskAdaptor.h
  2494. * src/MultiDiskAdaptor.cc
  2495. * src/MultiDiskAdaptor.h
  2496. * src/RequestGroup.cc
  2497. * test/DirectDiskAdaptorTest.cc
  2498. * test/MultiDiskAdaptorTest.cc
  2499. * test/TestUtil.cc
  2500. * test/TestUtil.h
  2501. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2502. Bump up version number of dht.dat file to 3. In version 3 format, time
  2503. is stored in 64bit, network byte order.
  2504. New build can load old format(version 2) but it saves the file in new
  2505. format. It means once you used new build, your dht.dat becomes
  2506. incompatible with older build.
  2507. * src/DHTRoutingTableDeserializer.cc
  2508. * src/DHTRoutingTableSerializer.cc
  2509. * test/DHTRoutingTableSerializerTest.cc
  2510. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2512. * test/Makefile.am
  2513. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2514. Bump up version number of .aria2 control file to 0001.
  2515. New aria2 can still load version 0000 file but it saves the file in
  2516. version 0001 format. It means that new aria2 can resume download
  2517. started by old aria2 but the opposite is not true.
  2518. * src/DefaultBtProgressInfoFile.cc
  2519. * src/DefaultBtProgressInfoFile.h
  2520. * test/DefaultBtProgressInfoFileTest.cc
  2521. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2522. Added ntoh64 and hton64 as inline functions.
  2523. * src/Util.cc
  2524. * test/UtilTest.cc
  2525. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2526. Added sqlite3 depenency and Firefox3 cookie support.
  2527. * README
  2528. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2529. State that firefox3 cookie is supported explicitly in the usage.
  2530. * src/usage_text.h
  2531. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2532. Externalized message.
  2533. * src/RequestGroupMan.cc
  2534. * src/message.h
  2535. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2536. Save temporary file first and rename to the destination on success.
  2537. Added test cases.
  2538. * src/RequestGroupMan.cc
  2539. * test/RequestGroupManTest.cc
  2540. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2541. Fixed the bug that the number of connected peer is exceeding the limit
  2542. (55 by default) in seeding mode.
  2543. Multiplied 0.8 to _maxUploadSpeedLimit.
  2544. * src/ActivePeerConnectionCommand.cc
  2545. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Clear table item.
  2547. * src/Dictionary.cc
  2548. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2549. Fixed error handling of lseek.
  2550. * src/AbstractDiskWriter.cc
  2551. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2552. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2553. style cookie file.
  2554. * src/usage_text.h
  2555. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2556. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2557. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2558. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2559. * src/Util.cc
  2560. * src/Util.h
  2561. * src/CookieParser.cc
  2562. * test/UtilTest.cc
  2563. * test/CookieParserTest.cc
  2564. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2565. Separate the implementation to load old mozilla format of cookie to
  2566. NsCookieParser class.
  2567. * src/CookieBoxFactory.cc
  2568. * src/CookieBoxFactory.h
  2569. * src/NsCookieParser.cc
  2570. * src/NsCookieParser.h
  2571. * test/NsCookieParserTest.cc
  2572. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2573. Made parse() const
  2574. * src/Sqlite3MozCookieParser.cc
  2575. * src/Sqlite3MozCookieParser.h
  2576. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2577. Added firefox3 cookie support based on the patch submitted by
  2578. tizianomueller.
  2579. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2580. this functionality.
  2581. * configure.ac
  2582. * m4/sqlite3.m4
  2583. * src/CookieBoxFactory.cc
  2584. * src/CookieBoxFactory.h
  2585. * src/Makefile.am
  2586. * src/Makefile.in
  2587. * src/Sqlite3MozCookieParser.cc
  2588. * src/Sqlite3MozCookieParser.h
  2589. * src/main.cc
  2590. * test/CookieBoxFactoryTest.cc
  2591. * test/Makefile.am
  2592. * test/Makefile.in
  2593. * test/Sqlite3MozCookieParserTest.cc
  2594. * test/badcookies.sqlite
  2595. * test/cookies.sqlite
  2596. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2597. Added Danish and Greek translations.
  2598. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2599. Great thanks to all translators.
  2600. * po/LINGUAS
  2601. * po/el.po
  2602. * po/da.po
  2603. * po/es.po
  2604. * po/ca.po
  2605. * po/nn.po
  2606. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. Fixed man page: --follow-bittorrent should be --follow-torrent
  2608. * doc/aria2c.1.txt
  2609. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2610. Fixed: numCommand is less than the value specified in -C option.
  2611. * src/RequestGroup.cc
  2612. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. Fixed occasional assertion failure in PieceSegment.
  2614. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2615. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2616. creation of duplicate segments and one of the segment was finished then
  2617. assertion failure was caused.
  2618. * src/SegmentMan.cc
  2619. * test/SegmentManTest.cc
  2620. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2621. Added options to load/save the server's performance/status to a file
  2622. and the timeout to drop their data.
  2623. --server-stat-of=FILE specifies the file to which performance data
  2624. is saved.
  2625. --server-stat-if=FILE specifies the file to read previously saved
  2626. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2627. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2628. TIMEOUT is specified in seconds and the default value is 24hours.
  2629. * src/MultiUrlRequestInfo.cc
  2630. * src/OptionHandlerFactory.cc
  2631. * src/RequestGroupMan.cc
  2632. * src/RequestGroupMan.h
  2633. * src/ServerStatMan.cc
  2634. * src/ServerStatMan.h
  2635. * src/option_processing.cc
  2636. * src/prefs.cc
  2637. * src/prefs.h
  2638. * test/ServerStatManTest.cc
  2639. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2640. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2641. * src/ServerStatMan.cc
  2642. * src/ServerStatMan.h
  2643. * test/ServerStatManTest.cc
  2644. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2645. Implemented ServerStatMan::load(...) function and its test case.
  2646. * src/ServerStat.cc
  2647. * src/ServerStat.h
  2648. * src/ServerStatMan.cc
  2649. * test/ServerStatManTest.cc
  2650. * test/ServerStatTest.cc
  2651. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2652. Use time_t instead of int32_t. Use int64_t where milli second is
  2653. expected.
  2654. * src/TimeA2.cc
  2655. * src/TimeA2.h
  2656. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Implemented ServerStatMan::save(...) function and its test case.
  2658. * src/ServerStat.cc
  2659. * src/ServerStat.h
  2660. * src/ServerStatMan.cc
  2661. * src/ServerStatMan.h
  2662. * test/ServerStatManTest.cc
  2663. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2664. Now aria2 uses name attribute in Metalink as local filename in
  2665. BitTorrent downloads. BUG#2033999
  2666. * src/BtContext.h
  2667. * src/BtDependency.cc
  2668. * src/DefaultBtContext.cc
  2669. * src/DefaultBtContext.h
  2670. * src/SingleFileDownloadContext.cc
  2671. * src/SingleFileDownloadContext.h
  2672. * test/BtDependencyTest.cc
  2673. * test/DefaultBtContextTest.cc
  2674. * test/MockBtContext.h
  2675. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2676. Added AC_C_BIGENDIAN
  2677. * src/configure.ac
  2678. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Limited numCommand less than or equal to the number of piece.
  2680. * src/RequestGroup.cc
  2681. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2682. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2683. directive.
  2684. * test/DefaultPieceStorageTest.cc
  2685. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2686. Fixed memory leak in test code
  2687. * test/AnnounceListTest.cc
  2688. * test/DefaultPeerListProcessorTest.cc
  2689. * test/DefaultPeerStorageTest.cc
  2690. * test/MetaFileUtilTest.cc
  2691. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2692. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2693. * src/DefaultPieceStorage.cc
  2694. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2695. Initialized _directIOAllowed
  2696. * src/MultiDiskAdaptor.cc
  2697. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2698. Fixed memory leak
  2699. * src/GZipDecoder.cc
  2700. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2701. Fixed memory leak
  2702. * src/MetalinkParserStateMachine.cc
  2703. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2704. Fixed memory leak
  2705. * src/Dictionary.cc
  2706. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2707. Fixed memory leak
  2708. * src/IteratableChunkChecksumValidator.h
  2709. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2710. Fixed unmatched malloc/free.
  2711. * src/IteratableChunkChecksumValidator.cc
  2712. * src/IteratableChecksumValidator.cc
  2713. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2714. Removed max chunk size check. This change fixes BUG#2040169
  2715. * src/ChunkedDecoder.cc
  2716. * src/ChunkedDecoder.h
  2717. * test/ChunkedDecoderTest.cc
  2718. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Implemented download speed based URI selection algorithm.
  2720. Introduced new option --uri-selector.
  2721. If --uri-selector=feedback is given, aria2 uses download speed observed
  2722. in the previous downloads and chooses fastest server in the URI list.
  2723. Currently at most 10 URIs are considered to introduce randomeness for
  2724. finding better servers. The speed is average download speed in the
  2725. downloads.
  2726. On the other hand, if --uri-selector=inorder is given, which is default,
  2727. URI is tried in order in URI list.
  2728. The usage text for the new option has not been written yet.
  2729. * src/AbstractCommand.cc
  2730. * src/DownloadCommand.cc
  2731. * src/DownloadEngine.cc
  2732. * src/DownloadEngineFactory.cc
  2733. * src/InOrderURISelector.cc
  2734. * src/InOrderURISelector.h
  2735. * src/OptionHandlerFactory.cc
  2736. * src/PeerStat.h
  2737. * src/RequestGroup.cc
  2738. * src/RequestGroup.h
  2739. * src/RequestGroupMan.cc
  2740. * src/RequestGroupMan.h
  2741. * src/SegmentMan.cc
  2742. * src/SegmentMan.h
  2743. * src/ServerStat.cc
  2744. * src/ServerStat.h
  2745. * src/ServerStatMan.cc
  2746. * src/ServerStatMan.h
  2747. * src/ServerStatURISelector.cc
  2748. * src/ServerStatURISelector.h
  2749. * src/URISelector.h
  2750. * src/option_processing.cc
  2751. * src/prefs.cc
  2752. * src/prefs.h
  2753. * test/InOrderURISelectorTest.cc
  2754. * test/RequestGroupManTest.cc
  2755. * test/ServerStatManTest.cc
  2756. * test/ServerStatURISelectorTest.cc
  2757. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2758. * Release 0.15.1+2
  2759. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2760. Bump up version number to 0.15.1+2
  2761. * configure.ac
  2762. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2764. * m4/aria2_arg.m4
  2765. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. * Release 0.15.1+1
  2767. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2768. Bump up version number to 0.15.1+1
  2769. * configure.ac
  2770. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2771. Fixed the bug that causes segmentaion fault when resuming download
  2772. using metalink without size tag. Reproducible only using HTTP URI.
  2773. * src/HttpResponseCommand.cc
  2774. * src/FtpNegotiationCommand.cc
  2775. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2776. * Release 0.15.1
  2777. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2778. Updated Bulgarian and French translations, thanks to all translators.
  2779. * po/bg.po
  2780. * po/fr.po
  2781. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2782. Bump up version number to 0.15.1
  2783. * configure.ac
  2784. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. Avoid repeated call of gettimeofday() when calculating speed.
  2786. * src/SpeedCalc.cc
  2787. * src/SpeedCalc.h
  2788. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2789. Removed writable check when socket's send buffer is full in BitTorrent
  2790. downloads to lower CPU usage.
  2791. * src/PeerInteractionCommand.cc
  2792. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2793. Fixed broken gzip inflation.
  2794. Turn off segmented downloading if gzip content is smaller than or equal
  2795. to 1MiB and inflate the data on the fly, because HTTP response header
  2796. doesn't contain the length of inflated file we can't determin where
  2797. the chunk of data should be written.
  2798. On the other hand, if gzip content is larger than 1MB, then turn off
  2799. on the fly inflation, because some servers returns "content-type: gzip"
  2800. for *.tgz, *.gz files.
  2801. * src/DownloadCommand.cc
  2802. * src/HttpResponseCommand.cc
  2803. * src/HttpResponseCommand.h
  2804. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2805. Applied tizianomueller's patch to fix compile error.
  2806. * test/BitfieldManTest.cc
  2807. * test/BtRequestMessageTest.cc
  2808. * test/DefaultBtContextTest.cc
  2809. * test/DefaultDiskWriterTest.cc
  2810. * test/DefaultPieceStorageTest.cc
  2811. * test/HttpHeaderProcessorTest.cc
  2812. * test/HttpResponseTest.cc
  2813. * test/Metalink2RequestGroupTest.cc
  2814. * test/MetalinkParserControllerTest.cc
  2815. * test/MetalinkProcessorTest.cc
  2816. * test/PeerSessionResourceTest.cc
  2817. * test/UtilTest.cc
  2818. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. * Release 0.15.0
  2820. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2821. Reordered src files in POTFILES.in so that usage text appears first.
  2822. * po/POTFILES.in
  2823. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2824. Bump up version number to 0.15.0
  2825. * configure.ac
  2826. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2827. Added Bulgarian translation.
  2828. Updated Catalan, Spanish, French and Japanese translations.
  2829. Thanks to all translators.
  2830. * po/LINGUAS
  2831. * po/bg.po
  2832. * po/ca.po
  2833. * po/es.po
  2834. * po/fr.po
  2835. * po/ja.po
  2836. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2837. Updated feature list. Added libz for dependency section.
  2838. Added a description about unit testing using CppUnit.
  2839. * README
  2840. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2841. Added a test for libz. Quoted where it is necessary.
  2842. * build_test.sh
  2843. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Added GZip to `Enabled Features' list.
  2845. * src/FeatureConfig.cc
  2846. * src/FeatureConfig.h
  2847. * test/FeatureConfigTest.cc
  2848. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2849. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2850. the transfer has not yet started.
  2851. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2852. * src/SegmentMan.cc
  2853. * src/SegmentMan.h
  2854. * test/SegmentManTest.cc
  2855. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Cache last calculated average download/upload speed.
  2857. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2858. cached value.
  2859. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2860. * src/PeerStat.h
  2861. * src/SpeedCalc.cc
  2862. * src/SpeedCalc.h
  2863. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Call parseUrl directly.
  2865. * src/Request.cc (resetUrl)
  2866. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2867. Supported absolute/relative path in Location header field.
  2868. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2869. * src/HttpHeader.cc
  2870. * src/HttpHeader.h
  2871. * src/HttpResponse.cc
  2872. * src/HttpSkipResponseCommand.cc
  2873. * src/Request.cc
  2874. * test/HttpHeaderTest.cc
  2875. * test/HttpResponseTest.cc
  2876. * test/RequestTest.cc
  2877. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2878. Changed help text for --load-cookie option.
  2879. * doc/aria2c.1.txt
  2880. * src/usage_text.h
  2881. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2882. Regenerated test/Makefile.in to remove stale ChangeLog.
  2883. * test/Makefile.in
  2884. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2885. Updated po files.
  2886. * po/aria2c.pot
  2887. * po/*.po
  2888. * po/*.gmo
  2889. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Bump up version number to 0.15.0b
  2891. * configure.ac
  2892. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2893. Externalize messages.
  2894. * src/RequestGroupMan.cc
  2895. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  2896. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. Use File::exists() instead of File::isFile() to allow non-regular file
  2898. such as block special files.
  2899. * src/AbstractDiskWriter.cc
  2900. * src/MultiDiskWriter.cc
  2901. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  2903. * src/gai_strerror.h
  2904. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Fixed compile error. Thanks gknauf for the patch.
  2906. * src/asctime_r.c
  2907. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2908. Included asctime_r.h from a2time.h.
  2909. * src/a2time.h
  2910. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2911. Added a message "aria2 doesn't verify signature" to log message when
  2912. signature file is saved.
  2913. * src/RequestGroupMan.cc
  2914. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2915. Added the ability to save signature when download is completed if
  2916. signature is available. The filename of signature file is the path to
  2917. download file followed by ".sig". If it already exists, then signature
  2918. will not be saved.
  2919. * src/RequestGroupMan.cc
  2920. * src/Signature.cc
  2921. * test/SignatureTest.cc
  2922. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. Updated the descriptions for --bt-seed-unverified.
  2924. * doc/aria2c.1
  2925. * doc/aria2c.1.html
  2926. * doc/aria2c.1.txt
  2927. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2928. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  2929. that this is not going to verify files using piece hashes.
  2930. * src/HelpItemFactory.cc
  2931. * src/OptionHandlerFactory.cc
  2932. * src/RequestGroup.cc
  2933. * src/option_processing.cc
  2934. * src/prefs.cc
  2935. * src/prefs.h
  2936. * src/usage_text.h
  2937. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2938. Added the ability to retrieve signature from Metalink file.
  2939. A retrieved signature is stored in Signature class and it is held by
  2940. DownloadContext class. Note that aria2 doesn't verify signature.
  2941. * src/DownloadContext.cc
  2942. * src/DownloadContext.h
  2943. * src/Makefile.am
  2944. * src/Makefile.in
  2945. * src/Metalink2RequestGroup.cc
  2946. * src/MetalinkEntry.cc
  2947. * src/MetalinkEntry.h
  2948. * src/MetalinkParserController.cc
  2949. * src/MetalinkParserController.h
  2950. * src/MetalinkParserStateMachine.cc
  2951. * src/MetalinkParserStateMachine.h
  2952. * src/Signature.cc
  2953. * src/Signature.h
  2954. * src/SignatureMetalinkParserState.cc
  2955. * src/SignatureMetalinkParserState.h
  2956. * src/VerificationMetalinkParserState.cc
  2957. * src/VerificationMetalinkParserState.h
  2958. * test/Metalink2RequestGroupTest.cc
  2959. * test/MetalinkParserControllerTest.cc
  2960. * test/MetalinkProcessorTest.cc
  2961. * test/test.xml
  2962. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2963. Close DiskAdaptor after renaming file.
  2964. * src/RequestGroup.cc
  2965. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2966. Corrected indentation
  2967. * src/DefaultBtProgressInfoFile.cc
  2968. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2969. Moved the calls of std::ios::exceptions() inside of try-catch block
  2970. because if an error occurred in constructor of std::fstream, then
  2971. exception is thrown immediately when std::ios::exceptions() is called
  2972. which results unhandled exception and aria2c aborts.
  2973. * src/DefaultBtProgressInfoFile.cc
  2974. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2975. Added the test for the previous change in DefaultBtContext.cc
  2976. * test/DefaultBtContextTest.cc
  2977. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2978. Fixed the bug that causes infinite loop when the number of pieces are
  2979. fewer than allowed fast set size which is 10 by default.
  2980. * src/DefaultBtContext.cc
  2981. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2982. Updated the descriptions for -j, -s. Added --bt-seed.
  2983. * doc/aria2c.1
  2984. * doc/aria2c.1.html
  2985. * doc/aria2c.1.txt
  2986. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2988. aria2 seeds previously downloaded files without validating piece hashs.
  2989. * src/HelpItemFactory.cc
  2990. * src/OptionHandlerFactory.cc
  2991. * src/RequestGroup.cc
  2992. * src/option_processing.cc
  2993. * src/prefs.cc
  2994. * src/prefs.h
  2995. * src/usage_text.h
  2996. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2997. Updated DESCRIPTION of man page.
  2998. * doc/aria2c.1
  2999. * doc/aria2c.1.html
  3000. * doc/aria2c.1.txt
  3001. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3002. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3003. Don't define `struct addrinfo' when __sun is defined.
  3004. * src/getaddrinfo.h
  3005. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3007. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3008. second argument is of type `struct _stati64'. Otherwise it is defined as
  3009. `struct stat'.
  3010. * src/AbstractDiskWriter.cc
  3011. * src/File.cc
  3012. * src/File.h
  3013. * src/a2io.h
  3014. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3015. Fixed the compile error in hurd-i386
  3016. See the original bug report:
  3017. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3018. * src/a2io.h
  3019. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3020. Code cleanup.
  3021. * src/PeerAbstractCommand.cc
  3022. * src/PeerAbstractCommand.h
  3023. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Removed TransferEncoding.
  3025. * src/DownloadCommand.cc
  3026. * src/DownloadCommand.h
  3027. * src/HttpResponseCommand.cc
  3028. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3029. Updated po files.
  3030. * po/aria2c.pot
  3031. * po/*.po
  3032. * po/*.gmo
  3033. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3034. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3035. * src/A2STR.cc
  3036. * src/A2STR.h
  3037. * src/ChunkedDecoder.cc
  3038. * src/ChunkedDecoder.h
  3039. * src/ChunkedEncoding.cc: Removed
  3040. * src/ChunkedEncoding.h: Removed
  3041. * src/DownloadCommand.cc
  3042. * src/DownloadCommand.h
  3043. * src/HttpDownloadCommand.cc
  3044. * src/HttpResponse.cc
  3045. * src/HttpResponse.h
  3046. * src/HttpResponseCommand.cc
  3047. * src/HttpSkipResponseCommand.cc
  3048. * src/HttpSkipResponseCommand.h
  3049. * src/Makefile.am
  3050. * src/TransferEncoding.h: Removed
  3051. * test/ChunkedDecoderTest.cc
  3052. * test/ChunkedEncodingTest.cc: Removed
  3053. * test/HttpResponseTest.cc
  3054. * test/Makefile.am
  3055. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Use append instead of insert.
  3057. * src/GZipDecoder.cc
  3058. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Updated doc
  3060. * src/Decoder.h
  3061. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Updated usage text for -s option.
  3063. * src/usage_text.h
  3064. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3066. * src/Request.cc
  3067. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3068. Cleaned up configure.ac.
  3069. * configure.ac
  3070. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3071. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3072. AC_ARG_ENABLE.
  3073. * configure.ac
  3074. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3075. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3076. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3077. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3078. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3079. fly and writes decoded data to a local disk.
  3080. * README
  3081. * README.html
  3082. * configure.ac
  3083. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3084. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3085. * m4/libz.m4
  3086. * src/Decoder.h
  3087. * src/DownloadCommand.cc
  3088. * src/DownloadCommand.h
  3089. * src/Exception.h
  3090. * src/GZipDecoder.cc
  3091. * src/GZipDecoder.h
  3092. * src/HttpHeader.cc
  3093. * src/HttpHeader.h
  3094. * src/HttpRequest.cc
  3095. * src/HttpRequest.h
  3096. * src/HttpResponse.cc
  3097. * src/HttpResponse.h
  3098. * src/HttpResponseCommand.cc
  3099. * src/Makefile.am
  3100. * test/GZipDecoderTest.cc
  3101. * test/HttpRequestTest.cc
  3102. * test/HttpResponseTest.cc
  3103. * test/Makefile.am
  3104. * test/Makefile.in
  3105. * test/gzip_decode_test.gz
  3106. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3107. Clarified usage of -j option.
  3108. * src/usage_text.h
  3109. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3110. Disabled getting size from the response of RETR.
  3111. If SIZE command failed, then disable resuming and segmented downloading.
  3112. * src/FtpConnection.cc
  3113. * src/FtpConnection.h
  3114. * src/FtpNegotiationCommand.cc
  3115. * src/FtpNegotiationCommand.h
  3116. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. Use digits to find first byte of file size, which makes the intention
  3118. of the code clearer.
  3119. * src/FtpConnection.cc
  3120. Don't call validateTotalLength() when size is 0.
  3121. * src/FtpNegotiationCommand.cc
  3122. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Updated po files.
  3124. * po/aria2c.pot
  3125. * po/*.gmo
  3126. * po/*.po
  3127. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Clarified usage text for --split option.
  3129. * src/usage_text.h
  3130. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3131. Bump up version number to 0.15.0dev. "dev" means "development"
  3132. version, which means I started the development of the next release!
  3133. * src/configure.ac
  3134. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3135. If FTP server returns negative response with REST raw command and
  3136. requested range is not 0, throw exception. If requested range is 0,
  3137. continue download a file from 0 byte.
  3138. * src/FtpNegotiationCommand.cc
  3139. * src/FtpNegotiationCommand.h
  3140. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3141. Supported FTP server which don't recognize SIZE raw command.
  3142. If SIZE raw command is failed, aria2 will try to get file size
  3143. from the response of RETR raw command. If both attempts are failed,
  3144. then resuming and segmented downloading are disabled.
  3145. * src/FtpConnection.cc
  3146. * src/FtpConnection.h
  3147. * src/FtpNegotiationCommand.cc
  3148. * src/FtpNegotiationCommand.h
  3149. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. * Release 0.14.0+1
  3151. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Bump up version number to 0.14.0+1
  3153. * src/configure.ac
  3154. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3155. Fixed the code that refers static member variable from non-static
  3156. context.
  3157. * src/DefaultPeerStorage.cc
  3158. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3159. * Release 0.14.0
  3160. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Added build test script
  3162. * build_test.sh
  3163. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Updated ja.po
  3165. * src/ja.po
  3166. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3167. Bump up version number to 0.14.0
  3168. * src/configure.ac
  3169. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3170. Updated ja.po and fr.po. Great thanks for french translators and
  3171. Sebastien WILLEMIJNS.
  3172. * po/fr.po
  3173. * po/ja.po
  3174. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. Added configure option to enable/disable epoll support.
  3176. * configure.ac
  3177. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3178. Updated man page.
  3179. * doc/aria2c.1.txt
  3180. * doc/aria2c.1
  3181. * doc/aria2c.1.html
  3182. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3183. Added missing default value '5' to the usage of --split option.
  3184. * src/HelpItemFactory.cc
  3185. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Filled up pieces based on the number of missing blocks, rather than
  3187. simplay the number of piece * block length.
  3188. * src/BtRequestFactory.h
  3189. * src/DefaultBtInteractive.cc
  3190. * src/DefaultBtInteractive.h
  3191. * src/DefaultBtRequestFactory.cc
  3192. * src/DefaultBtRequestFactory.h
  3193. * src/Piece.cc
  3194. * src/Piece.h
  3195. * test/BitfieldManTest.cc
  3196. * test/DefaultBtRequestFactoryTest.cc
  3197. * test/MockBtRequestFactory.h
  3198. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3199. Made _epEvents a member variable.
  3200. * src/DownloadEngine.cc
  3201. * src/DownloadEngine.h
  3202. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Cancel download if http redirect is bounded more than 20 times.
  3204. * src/AbstractCommand.cc
  3205. * src/HttpSkipResponseCommand.cc
  3206. * src/Request.cc
  3207. * src/Request.h
  3208. * test/RequestTest.cc
  3209. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Fixed unhandled exception(removed keyword `new').
  3211. * src/SocketCore.cc (initEPOLL)
  3212. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3213. Removed visit(const MetaEntry*)
  3214. * src/MetaEntryVisitor.h:
  3215. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3216. and made them virtual.
  3217. * src/BencodeVisitor.h
  3218. * src/BencodeVisitor.cc
  3219. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3220. Updated po files.
  3221. * po/aria2c.pot
  3222. * po/*.po
  3223. * po/*.gmo
  3224. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3226. the number of socket to watch out.
  3227. * src/PeerInteractionCommand.cc
  3228. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. When there is not enough space in disk when writing a chunk of data,
  3230. aria2 now prints the message to the console to warn user and aborts
  3231. its download. Not all downloads are canceled because some downloads
  3232. may use another disk or partition. BUG#1640332
  3233. * src/AbstractDiskWriter.cc
  3234. * src/PeerAbstractCommand.cc
  3235. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3236. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3237. setHaltRequested(true) to cancel download.
  3238. * src/PeerInteractionCommand.h
  3239. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3241. socket from int to sock_t as sockets are unsigned in Windows.
  3242. For AsyncNameResolver, DownloadEngine, I did additional modification
  3243. for the portion of the code changed according to epoll support.
  3244. I defined sock_t in a2netcompat.h to use sock_t without including
  3245. SocketCore.h.
  3246. * src/AsyncNameResolver.cc
  3247. * src/AsyncNameResolver.h
  3248. * src/DownloadEngine.cc
  3249. * src/DownloadEngine.h
  3250. * src/SocketCore.cc
  3251. * src/SocketCore.h
  3252. * src/a2netcompat.h
  3253. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3254. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3255. changes in the patch were applied.
  3256. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3257. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3258. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3259. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3261. a2io.h and common.h were modified.
  3262. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3263. MinGW.
  3264. * src/common.h: Changed off_t to 64 bit in MinGW.
  3265. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3267. only a2netcompat.h is modified.
  3268. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3269. directives.
  3270. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3272. only gai_strerror.h is modified.
  3273. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3274. winsock errors in MinGW.
  3275. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3276. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3277. follow sources are applied.
  3278. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3279. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3280. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3281. I included locale.h from Platform.cc.
  3282. * src/main.cc: Moved common setup/teardown code to Platform class.
  3283. * test/AllTest.cc: Use Platform class.
  3284. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3285. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3286. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3287. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3288. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3289. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3290. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3291. aria2-0.13.2+1-mingw-2.patch.
  3292. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3293. systems which don't have termious.h. I moved the directive inside of
  3294. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3295. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3296. anyway.
  3297. * src/asctime_r.h
  3298. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3299. I added 2nd argument to the prototype declaration.
  3300. * src/StringFormat.cc: Get rid of vasprintf.
  3301. * src/getaddrinfo.h: Fixed constants.
  3302. * configure.ac: Added the check for asctime_r function.
  3303. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3304. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Added writable test for Socket when the sending message is in progress.
  3306. Usually the sending message is piece message. Without wriable check,
  3307. upload latency is dropped to more than 1sec.
  3308. * src/PeerInteractionCommand.cc
  3309. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3310. Create only requested files and files which shares a piece with
  3311. requested file in multi-torrent downloads. Directory structures are
  3312. also created in the same rule.
  3313. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3314. DiskWriterEntry as in the previous implementation.
  3315. * src/MultiDiskWriter.cc
  3316. * src/MultiFileAllocationIterator.cc
  3317. * src/MultiFileAllocationIterator.h
  3318. * test/MultiFileAllocationIteratorTest.cc
  3319. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3320. Commented out -lprofiler
  3321. * src/Makefile.am
  3322. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Bump up version number to 0.14.0b.
  3324. * src/configure.ac
  3325. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3326. Actively establish connection to peers in seeding, when peer cache
  3327. is not full and max upload speed limit is not reached.
  3328. * src/ActivePeerConnectionCommand.cc
  3329. * src/ActivePeerConnectionCommand.h
  3330. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3331. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3332. to make room more fleshy, recently found peers.
  3333. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3334. it.
  3335. * src/DefaultPeerStorage.cc
  3336. * test/DefaultPeerStorageTest.cc
  3337. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3338. Returns cached data only when the previous receiveHandshake() is called
  3339. with peek = true.
  3340. * src/PeerConnection.cc (receiveHandshake)
  3341. * src/PeerConnection.h (receiveHandshake)
  3342. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3343. Changed default value of -s option from 1 to 5.
  3344. Also max value of -s option is changed from 5 to 16.
  3345. * src/HelpItemFactory.cc
  3346. * src/OptionHandlerFactory.cc
  3347. * src/option_processing.cc
  3348. * src/usage_text.h
  3349. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Changed -s options behavior. Now it means the number of connections
  3351. made simultaneously in each http/ftp download.
  3352. If 1 URL is specified, the behavior is the same with old implementation.
  3353. If -s N is given and more than N URLs are specified, first N URLs are
  3354. used and remaining URLs are used for backup. If less than N URLs are
  3355. specified, some of URLs are used more than once so that totally N
  3356. connections are made simultaneously.
  3357. * src/main.cc
  3358. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Included missing iosfwd or ostream header.
  3360. * src/RequestGroupMan.cc
  3361. * src/TaggedItem.cc
  3362. * src/TaggedItem.h
  3363. * src/Util.cc
  3364. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3366. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3367. * src/HttpConnection.cc: Included missing sstream.
  3368. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3369. Added --bt-max-open-files option.
  3370. * src/DefaultPieceStorage.cc
  3371. * src/HelpItemFactory.cc
  3372. * src/MultiDiskAdaptor.cc
  3373. * src/MultiDiskAdaptor.h
  3374. * src/OptionHandlerFactory.cc
  3375. * src/option_processing.cc
  3376. * src/prefs.cc
  3377. * src/prefs.h
  3378. * src/usage_text.h
  3379. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Fixed the bug that aria2 aborts when a path to a directory is given
  3381. in command-line.
  3382. * src/ProtocolDetector.cc
  3383. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3384. Limited the number files opened in each BitTorrent download. The default
  3385. value is 100. The option to change this value will be added.
  3386. * src/MultiDiskAdaptor.cc
  3387. * src/MultiDiskAdaptor.h
  3388. * src/MultiFileAllocationIterator.cc
  3389. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Fixed the bug that HTTP downloads don't start with old libraries.
  3391. * src/HttpHeaderProcessor.cc
  3392. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3393. Use empty() instead of size() > 0.
  3394. * src/HttpConnection.cc
  3395. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. Drop connection if the incoming peer ID is the same with localhost's
  3397. one. The previous implementation drops connection when incoming peer's
  3398. IP address is the same with localhost's one.
  3399. * src/PeerListenCommand.cc
  3400. * src/DefaultBtInteractive.cc
  3401. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3402. Returns cached data without checking whether socket is readable
  3403. if the cache is available.
  3404. * src/PeerConnection.cc (receiveHandshake)
  3405. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. Included stdint.h
  3407. * src/common.h
  3408. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Removed duplicate HAVE_GETTIMEOFDAY
  3410. * src/Makefile.am
  3411. * src/Makefile.in
  3412. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3413. Use interval as a minInterval when minInterval is not supplied.
  3414. * src/DefaultBtAnnounce.cc
  3415. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3416. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3417. attempt is failed, then 2nd attempt get kicked out more quickly.
  3418. And it is now static const member of DefaultBtAnnounce.
  3419. * src/DefaultBtAnnounce.h
  3420. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3422. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3423. * src/ActivePeerConnectionCommand.cc
  3424. * src/BtConstants.h
  3425. * src/BtRuntime.h
  3426. * src/DHTGetPeersCommand.cc
  3427. * src/DefaultBtAnnounce.cc
  3428. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3429. BtRuntime::MAX_PEERS.
  3430. * src/DefaultPeerStorage.h
  3431. * src/InitiatorMSEHandshakeCommand.cc
  3432. * src/PeerInitiateConnectionCommand.cc
  3433. * src/PeerInteractionCommand.cc
  3434. * src/PeerReceiveHandshakeCommand.cc
  3435. * src/TrackerWatcherCommand.cc
  3436. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3437. Always Connect to _numNewConnection
  3438. * src/ActivePeerConnectionCommand.cc
  3439. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Made `begin' unsigned int.
  3441. * src/GrowSegment.h
  3442. * src/Piece.cc
  3443. * src/Piece.h
  3444. * src/PiecedSegment.cc
  3445. * src/PiecedSegment.h
  3446. * src/Segment.h
  3447. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3448. Calculate piece hash when data is arrived if the data is arrived in
  3449. order. This removes additional read operation for hash calculation.
  3450. If the data is arrived in out of order, the hash is calucated when the
  3451. piece is completed. This is the same behavior as the old implementation.
  3452. * src/BtPieceMessage.cc
  3453. * src/DefaultBtProgressInfoFile.cc
  3454. * src/DefaultPieceStorage.cc
  3455. * src/DownloadCommand.cc
  3456. * src/DownloadCommand.h
  3457. * src/DownloadEngine.cc
  3458. * src/GrowSegment.cc
  3459. * src/GrowSegment.h
  3460. * src/Piece.cc
  3461. * src/Piece.h
  3462. * src/PiecedSegment.cc
  3463. * src/PiecedSegment.h
  3464. * src/Segment.h
  3465. * test/PieceTest.cc
  3466. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3467. Try to keep the ordering of outgoing piece message.
  3468. * src/DefaultBtMessageDispatcher.cc
  3469. (DefaultBtMessageDispatcher::sendMessages)
  3470. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Fixed busy loop when error/hup epoll events occur.
  3472. * src/AbstractCommand.cc
  3473. * src/PeerAbstractCommand.cc
  3474. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Added --bt-request-peer-speed-limit option, which was a constant
  3476. SLOW_SPEED_THRESHOLD.
  3477. * src/ActivePeerConnectionCommand.cc
  3478. * src/ActivePeerConnectionCommand.h
  3479. * src/BtConstants.h
  3480. * src/HelpItemFactory.cc
  3481. * src/OptionHandlerFactory.cc
  3482. * src/PeerReceiveHandshakeCommand.cc
  3483. * src/option_processing.cc
  3484. * src/prefs.cc
  3485. * src/prefs.h
  3486. * src/usage_text.h
  3487. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3488. Removed repeated call of getTopDirPath(). Instead, call it once and
  3489. cache the result.
  3490. * src/MultiDiskAdaptor.cc
  3491. * src/MultiDiskAdaptor.h
  3492. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3493. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3494. Fixed compile error on debian etch.
  3495. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3496. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3497. it is undefined.
  3498. * src/Util.cc (ULLONG_MAX)
  3499. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3500. Added epoll support. Use epoll if it is available. If not, use select.
  3501. When async dns is enabled in compile time, epoll support is enabled
  3502. only when aria2 is built with c-ares. This condition statement is
  3503. defined in a2io.h.
  3504. Currently aria2 supports both c-ares and ares, but ares is maintained
  3505. for quite a while and debian already has c-ares package, ares support
  3506. will be dropped in the future version.
  3507. * configure.ac
  3508. * src/AbstractCommand.cc
  3509. * src/AsyncNameResolver.cc
  3510. * src/AsyncNameResolver.h
  3511. * src/Command.cc
  3512. * src/Command.h
  3513. * src/DownloadEngine.cc
  3514. * src/DownloadEngine.h
  3515. * src/PeerAbstractCommand.cc
  3516. * src/SocketCore.cc
  3517. * src/SocketCore.h
  3518. * src/a2io.h
  3519. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3521. directive.
  3522. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Do not do write operation to /dev/null file.
  3524. * src/LogFactory.cc
  3525. * src/SimpleLogger.cc
  3526. Replaced vasprintf with vsnprintf
  3527. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3528. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3529. * src/BtRequestMessage.cc
  3530. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3531. for segmentation fault caused by previous commit.
  3532. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3533. Reduced the usage of gettimeofday().
  3534. * src/DefaultBtMessageDispatcher.cc
  3535. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3536. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3537. * src/RequestSlot.cc
  3538. * src/RequestSlot.h
  3539. (RequestSlot::isTimeout)
  3540. Made RequestSlot have a reference to Piece object to avoid find
  3541. Piece repeatedly.
  3542. * src/DefaultBtMessageDispatcher.cc
  3543. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3544. * src/RequestSlot.cc
  3545. * src/RequestSlot.h
  3546. (RequestSlot::getPiece)
  3547. * test/DefaultBtMessageDispatcherTest.cc
  3548. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. * src/TimeA2.cc
  3550. * src/TimeA2.h
  3551. (Time::difference): New function.
  3552. (Time::elapsed): Done optimization.
  3553. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3554. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3555. directive.
  3556. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3557. * src/option_processing.cc: Added missing `defined' keyword to #if
  3558. directive.
  3559. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3560. Bump up version number to 0.13.2+1
  3561. * src/configure.ac
  3562. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3563. Refactored broken outstanding piece handling.
  3564. * src/DefaultPieceStorage.cc
  3565. * src/DefaultPieceStorage.h
  3566. * src/Piece.cc
  3567. * src/Piece.h
  3568. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3569. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3570. name collision of static variable and predefined macro.
  3571. * src/BtContext.cc
  3572. * src/BtContext.h
  3573. * src/CookieBoxFactory.cc
  3574. * src/CookieBoxFactory.h
  3575. * src/CookieParser.cc
  3576. * src/CookieParser.h
  3577. * src/DefaultBtContext.cc
  3578. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. * src/RequestGroup.cc
  3580. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3581. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3582. * Release 0.13.2
  3583. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3584. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3585. * po/fr.po
  3586. * po/ja.po
  3587. * po/aria2c.pot
  3588. * po/*.po
  3589. * po/*.gmo
  3590. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3591. Bump up version number to 0.13.2
  3592. * src/configure.ac
  3593. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3594. Refactord.
  3595. * src/RequestGroupMan.cc
  3596. (removeStoppedGroup)
  3597. (fillRequestGroupFromReserver)
  3598. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Fixed compile error on Ubuntu.
  3600. * src/BtPieceMessage.cc
  3601. * src/MessageDigestHelper.cc
  3602. * src/Util.cc
  3603. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3604. Fixed compile error when configured with --disable-bittorrent
  3605. * test/DownloadHandlerFactoryTest.cc
  3606. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. Done make update-po
  3608. * po/aria2c.pot
  3609. * po/*.po
  3610. * po/*.gmo
  3611. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3612. Bump up version number to 0.13.2rc.
  3613. * src/configure.ac
  3614. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3615. Made option name bold. Updated SYNOPSIS to make it more readable.
  3616. * doc/aria2c.1.txt
  3617. * doc/aria2c.1
  3618. * doc/aria2c.1.html
  3619. * src/version_usage.cc
  3620. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Refactored. Use std::string instead of size and char*.
  3622. * Data.cc
  3623. * Data.h
  3624. * test/Data.cc
  3625. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3626. Added trimSelf(). Rewritten trim() to use trimSelf().
  3627. * Util.cc
  3628. * Util.h
  3629. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3631. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Fixed compile error when configured with --disable-metalink.
  3633. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3634. * test/FeatureConfigTest.cc
  3635. * test/DownloadHandlerFactoryTest.cc
  3636. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3637. Fixed compile error when configured with --without-gnutls
  3638. --without-openssl
  3639. * src/main.cc
  3640. * test/DefaultBtProgressInfoFileTest.cc
  3641. * test/SegmentManTest.cc
  3642. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3643. Fixed compile error with OpenSSL.
  3644. * src/IteratableChunkChecksumValidator.cc
  3645. * src/LibsslDHKeyExchange.h
  3646. * src/MessageDigestHelper.cc
  3647. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3648. Revert the default value of --max-concurrent-downloads to 5.
  3649. Revert the default value of --metalink-servers to 5.
  3650. Man pages was also updated.
  3651. * src/option_processing.cc
  3652. * doc/aria2c.1.txt
  3653. * doc/aria2c.1.html
  3654. * doc/aria2c.1
  3655. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3656. Returns const reference:
  3657. DownloadContext::getPieceHash, DownloadContext::getName,
  3658. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3659. BtContext::getInfoHashAsString,
  3660. * src/BtContext.h
  3661. * src/DefaultBtContext.cc
  3662. * src/DefaultBtContext.h
  3663. * src/DownloadContext.h
  3664. * src/SingleFileDownloadContext.h
  3665. * test/MockBtContext.h
  3666. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. * src/RequestGroup.h (getDir): Removed.
  3668. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Returns const reference. The internal urlencode function was optimized
  3670. a little bit.
  3671. * src/Request.cc
  3672. * src/Request.h
  3673. * src/HttpRequest.cc
  3674. * src/HttpRequest.h
  3675. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3676. Defined option name and possible values as std::string to reduce
  3677. temporary string object creation in runtime.
  3678. * src/HelpItemFactory.cc
  3679. * src/LogFactory.cc
  3680. * src/Option.cc
  3681. * src/OptionHandlerFactory.cc
  3682. * src/option_processing.cc
  3683. * src/prefs.cc
  3684. * src/prefs.h
  3685. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Return const reference.
  3687. * src/DownloadHandlerConstants.cc
  3688. * src/DownloadHandlerConstants.h
  3689. (getMetalinkExtensions)
  3690. (getMetalinkContentTypes)
  3691. (getBtExtensions)
  3692. (getBtContentTypes)
  3693. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. * src/HttpHeader.cc (get): Rewritten.
  3695. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3696. Make HttpHeader::getFirst(...) return const reference.
  3697. * src/HttpHeader.cc
  3698. * src/HttpHeader.h
  3699. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3701. it with V_TRUE.
  3702. * src/DefaultPieceStorage.cc
  3703. * src/DownloadCommand.cc
  3704. * src/FtpNegotiationCommand.cc
  3705. * src/HttpRequest.cc
  3706. * src/InitiateConnectionCommand.cc
  3707. * src/RequestGroup.cc
  3708. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Made Option::get(...) return const reference of std::string.
  3710. * src/Option.cc
  3711. * src/Option.h
  3712. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. Replaced std:copy with insert.
  3714. * src/DefaultBtMessageDispatcher.cc
  3715. * src/DefaultPieceStorage.cc
  3716. * src/DownloadEngineFactory.cc
  3717. * src/RequestGroup.cc
  3718. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Included SocketCore.h to fix compiler warning.
  3720. * src/InitiateConnectionCommand.cc
  3721. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Put piece selection strategy algorithm to RarestPieceSelector class,
  3723. Added a switch to choose whether randomized selection so that unit
  3724. tests emit same results in, possibly, win32.
  3725. * src/DefaultPieceStorage.cc
  3726. * src/DefaultPieceStorage.h
  3727. * src/RarestPieceSelector.cc
  3728. * src/RarestPieceSelector.h
  3729. * test/DefaultPieceStorageTest.cc
  3730. * test/RarestPieceSelectorTest.cc
  3731. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Don't pool connection if HTTP proxy is enabled.
  3733. * src/FtpFinishDownloadCommand.cc
  3734. * src/FtpNegotiationCommand.cc
  3735. * src/HttpSkipResponseCommand.cc
  3736. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3738. * src/AbstractCommand.cc
  3739. * src/AbstractCommand.h
  3740. * src/ActivePeerConnectionCommand.cc
  3741. * src/FtpInitiateConnectionCommand.cc
  3742. * src/HttpInitiateConnectionCommand.cc
  3743. * src/InitiateConnectionCommandFactory.cc
  3744. * src/PeerAbstractCommand.cc
  3745. * src/PeerAbstractCommand.h
  3746. * src/PeerInitiateConnectionCommand.cc
  3747. * src/TrackerWatcherCommand.cc
  3748. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Sort RequestSlot in ascending order and manipulate them using
  3750. lower_bound.
  3751. * src/DefaultBtMessageDispatcher.cc
  3752. * src/DefaultBtMessageDispatcher.h
  3753. (getMessageQueue): Added const qualifier.
  3754. (getRequestSlots): Added const qualifier.
  3755. (sendMessages): Use empty() instead of size().
  3756. (doCancelSendingPieceAction): Use HandleEvent object.
  3757. (doAbortOutstandingRequestAction): Rewritten.
  3758. (doChokedAction): Rewritten.
  3759. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3760. (isOutstandingRequest): Rewritten.
  3761. (getOutstandingRequest): Rewritten.
  3762. (removeOutstandingRequest): Rewritten.
  3763. (addOutstandingRequest): Rewritten.
  3764. * src/RequestSlot.cc
  3765. * src/RequestSlot.h
  3766. (operator=): Rewritten.
  3767. (operator!=): New function.
  3768. (operator<): New function.
  3769. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3770. * src/DefaultBtRequestFactory.cc
  3771. (doChokedAction): Rewritten.
  3772. (removeCompletedPiece): Rewritten.
  3773. (removeTargetPiece): Rewritten.
  3774. (createRequestMessages): Added the debug log.
  3775. (createRequestMessagesOnEndGame: Added the debug log.
  3776. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3777. Added the debug log message.
  3778. * src/BtPieceMessage.cc (doReceivedAction)
  3779. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3781. used lower_bound to process them rather than linear search.
  3782. * src/DHTPeerAnnounceStorage.cc
  3783. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3785. peer has at least one completed piece.
  3786. * src/Peer.cc
  3787. * src/Peer.h
  3788. * src/PeerInteractionCommand.cc
  3789. * src/PeerSessionResource.cc
  3790. * src/PeerSessionResource.h
  3791. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Removed unnecessary sorting
  3793. * src/DefaultPieceStorage (DefaultPieceStorage)
  3794. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3795. Rewritten the portion of the code that mangaes allowed fast indexes.
  3796. * src/PeerSessionResource.cc
  3797. * src/PeerSessionResource.h
  3798. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Removed the invalid string including '\r' from ru.po and
  3800. did make update-po.
  3801. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Added --log-level and --summary-interval to man page.
  3803. * doc/aria2c.1.txt
  3804. * doc/aria2c.1.html
  3805. * doc/aria2c.1
  3806. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3807. Added --log-level option to specify log level. Log messages under
  3808. the specified level are not output. Default value is `debug'.
  3809. * src/HelpItemFactory.cc
  3810. * src/LogFactory.cc
  3811. * src/LogFactory.h
  3812. * src/Logger.h
  3813. * src/OptionHandlerFactory.cc
  3814. * src/SimpleLogger.cc
  3815. * src/SimpleLogger.h
  3816. * src/main.cc
  3817. * src/option_processing.cc
  3818. * src/prefs.h
  3819. * src/usage_text.h
  3820. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3821. Print download progress summary of all parallel downloads in specified
  3822. interval, default 60 secs. While aria2 could download several files
  3823. in parallel (see -j option), it displayed just first download progress,
  3824. and the other downloads are hidden from the users. This new feature
  3825. prints all downloads currently in-progress to the console so that you
  3826. can check the status of all downloads. The interval can be adjusted
  3827. by --summary-interval option.
  3828. The progress readout is now cut so that all fits in the one line of
  3829. console.
  3830. * src/ConsoleStatCalc.cc
  3831. * src/ConsoleStatCalc.h
  3832. * src/HelpItemFactory.cc
  3833. * src/OptionHandlerFactory.cc
  3834. * src/RequestGroupMan.cc
  3835. * src/RequestGroupMan.h
  3836. * src/main.cc
  3837. * src/option_processing.cc
  3838. * src/prefs.h
  3839. * src/usage_text.h
  3840. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3842. * src/DownloadEngine.cc (DownloadEngine)
  3843. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3845. defined.
  3846. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3847. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Use erase+lower_bound+insert instead of sort.
  3849. * src/DefaultPieceStorage.cc (addPieceStats)
  3850. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3852. * src/A2STR.cc
  3853. * src/A2STR.h
  3854. * src/OptionParser.cc (parse)
  3855. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Defined fake filename `[tracker.announce]' as static const std::string.
  3857. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3858. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Defined default filename `index.html' as static const std::string
  3860. * src/SingleFileDownloadContext.cc
  3861. * src/SingleFileDownloadContext.h
  3862. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Defined "[MEMORY]" as static const std::string.
  3864. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3865. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Defined control file's version number as static const std::string.
  3867. * src/DefaultBtProgressInfoFile.cc
  3868. * src/DefaultBtProgressInfoFile.h
  3869. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Use Request::METHOD_GET
  3871. * src/RequestGroup.cc (createNextCommandWithAdj)
  3872. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Defined "OK", "ERR", "INPR" as static const std::string
  3874. * src/RequestGroupMan.cc (showDownloadResults)
  3875. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3876. Defined default client used in extended handshake as static const
  3877. std::string
  3878. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3879. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3880. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3881. * src/HttpConnection.cc (eraseConfidentialInfo)
  3882. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Defined default ftp user and password as static const std::string
  3884. * src/AuthConfigFactory.cc
  3885. * src/AuthConfigFactory.h
  3886. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Defined strings used in netrc as static const std::string
  3888. * src/Netrc.cc
  3889. * src/Netrc.h
  3890. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3891. Defined HTTP status as static const std::string
  3892. * src/AbstractProxyResponseCommand.cc
  3893. * src/HttpHeader.cc
  3894. * src/HttpHeader.h
  3895. * src/HttpResponse.cc
  3896. * src/HttpResponseCommand.cc
  3897. * src/HttpSkipResponseCommand.cc
  3898. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Defined "\r\n", "A", "I" as static const std::string
  3900. * src/A2STR.cc
  3901. * src/A2STR.h
  3902. * src/FtpConnection.cc
  3903. * src/FtpConnection.h
  3904. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Added COLON_C(".") and used it in Request::parseUrl()
  3906. * src/A2STR.cc
  3907. * src/A2STR.h
  3908. * src/Request.cc (parseUrl)
  3909. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3910. Changed the type of padName from `const std::string&' to `const char*'.
  3911. * src/MSEHandshake.cc (verifyPadLength)
  3912. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. Defined "sha1" as static const std::string.
  3914. * src/MetalinkParserController.cc
  3915. * src/MetalinkParserController.h
  3916. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3917. Defined message digest algorithm name as static const std::string
  3918. * src/DHTTokenTracker.cc
  3919. * src/DHTUtil.cc
  3920. * src/DefaultBtContext.cc
  3921. * src/MSEHandshake.cc
  3922. * src/MessageDigestHelper.cc
  3923. * src/Peer.cc
  3924. * src/messageDigest.cc
  3925. * src/messageDigest.h
  3926. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Made string literals used in SAX parser static const std::string.
  3928. * src/FileMetalinkParserState.cc
  3929. * src/FileMetalinkParserState.h
  3930. * src/FilesMetalinkParserState.cc
  3931. * src/FilesMetalinkParserState.h
  3932. * src/InitialMetalinkParserState.cc
  3933. * src/InitialMetalinkParserState.h
  3934. * src/MetalinkMetalinkParserState.cc
  3935. * src/MetalinkMetalinkParserState.h
  3936. * src/PiecesMetalinkParserState.cc
  3937. * src/PiecesMetalinkParserState.h
  3938. * src/ResourcesMetalinkParserState.cc
  3939. * src/ResourcesMetalinkParserState.h
  3940. * src/VerificationMetalinkParserState.cc
  3941. * src/VerificationMetalinkParserState.h
  3942. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3943. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  3944. * src/A2STR.cc
  3945. * src/A2STR.h
  3946. * src/File.cc
  3947. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3948. Defined static const std::string IP("ip"), PORT("port") and use them
  3949. instead of string literals.
  3950. * src/DefaultPeerListProcessor.cc
  3951. * src/DefaultPeerListProcessor.h
  3952. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3953. Made string literals for torrent file processing static const
  3954. std::string.
  3955. * src/BtContext.cc
  3956. * src/BtContext.h
  3957. * src/DefaultBtContext.cc
  3958. * src/DefaultBtContext.h
  3959. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Made string literal for tracker response static const std::string
  3961. * src/BtAnnounce.cc
  3962. * src/BtAnnounce.h
  3963. * src/DefaultBtAnnounce.cc
  3964. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Use DHTMessage::T instead of "t".
  3966. * src/DHTMessageTracker.cc (messageArrived)
  3967. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Made keyName static const. Made trimmed charset static const
  3969. std::string.
  3970. * src/Util.cc (getContentDispositionFilename)
  3971. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3972. Made USER_AGENT const. Made "/" static const std::string.
  3973. * src/A2STR.cc
  3974. * src/A2STR.h
  3975. * src/HttpRequest.cc
  3976. * src/HttpRequest.h
  3977. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Made string listeral to static const std::string:
  3979. "Content-Range", "Content-Length"
  3980. * src/HttpHeader.cc
  3981. * src/HttpHeader.h
  3982. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3983. Made string listeral to static const std::string.
  3984. * src/HttpConnection.cc
  3985. * src/HttpHeader.cc
  3986. * src/HttpHeader.h
  3987. * src/HttpResponse.cc
  3988. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Made string listeral to static const std::string.
  3990. * src/A2STR.cc
  3991. * src/A2STR.h
  3992. * src/SimpleLogger.cc
  3993. * src/SimpleLogger.h
  3994. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3995. Made string literal to static const std::string.
  3996. Rewritten CookieParser::setField.
  3997. * src/A2STR.cc
  3998. * src/A2STR.h
  3999. * src/CookieBoxFactory.cc
  4000. * src/CookieBoxFactory.h
  4001. * src/CookieParser.cc
  4002. * src/CookieParser.h
  4003. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Made string literal to static const std::string
  4005. * src/DHTAbstractMessage.cc
  4006. * src/DHTAnnouncePeerMessage.cc
  4007. * src/DHTAnnouncePeerMessage.h
  4008. * src/DHTAnnouncePeerReplyMessage.cc
  4009. * src/DHTAnnouncePeerReplyMessage.h
  4010. * src/DHTFindNodeMessage.cc
  4011. * src/DHTFindNodeMessage.h
  4012. * src/DHTFindNodeReplyMessage.cc
  4013. * src/DHTFindNodeReplyMessage.h
  4014. * src/DHTGetPeersMessage.cc
  4015. * src/DHTGetPeersMessage.h
  4016. * src/DHTGetPeersReplyMessage.cc
  4017. * src/DHTGetPeersReplyMessage.h
  4018. * src/DHTMessage.cc
  4019. * src/DHTMessage.h
  4020. * src/DHTMessageFactoryImpl.cc
  4021. * src/DHTMessageReceiver.cc
  4022. * src/DHTPingMessage.cc
  4023. * src/DHTPingMessage.h
  4024. * src/DHTPingReplyMessage.cc
  4025. * src/DHTPingReplyMessage.h
  4026. * src/DHTQueryMessage.cc
  4027. * src/DHTQueryMessage.h
  4028. * src/DHTResponseMessage.cc
  4029. * src/DHTResponseMessage.h
  4030. * src/DHTUnknownMessage.cc
  4031. * src/DHTUnknownMessage.h
  4032. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4033. Made string literal to static const std::string
  4034. * src/BtChokeMessage.cc (toString)
  4035. * src/BtHaveAllMessage.cc (toString)
  4036. * src/BtHaveNoneMessage.cc (toString)
  4037. * src/BtInterestedMessage.cc (toString)
  4038. * src/BtNotInterestedMessage.cc (toString)
  4039. * src/BtUnchokeMessage.cc (toString)
  4040. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Replaced "" with static const variable A2STR::NIL.
  4042. Replaced string comparison against "" with std::string::empty().
  4043. Added PROTO_* to Request class and use them as a protocol string
  4044. constant.
  4045. Made "started", "stopped", "completed" static const variable in
  4046. AnnounceList class.
  4047. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4048. Updated translations. Great thanks to translators.
  4049. * po/ca.po
  4050. * po/de.po
  4051. * po/fr.po
  4052. * po/it.po
  4053. * po/ja.po
  4054. * po/ru.po
  4055. * po/zh_CN.po
  4056. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Updated man page; categorized options and fixed typo.
  4058. * doc/aria2c.1.txt
  4059. * doc/aria2c.1.html
  4060. * doc/aria2c.1
  4061. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Removed const ref
  4063. * src/MetalinkEntry.cc (AddProtocolPreference)
  4064. * src/RequestGroup.cc (FindServerHostByHostname)
  4065. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4066. Rewritten Accept-Features handling.
  4067. * src/HttpRequestCommand.cc (createHttpRequest)
  4068. * src/a2functional.h
  4069. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Changed method signature:
  4071. DHTAbstractNodeLookupTask::toEntries
  4072. * src/DHTAbstractNodeLookupTask.cc
  4073. * src/DHTAbstractNodeLookupTask.h
  4074. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4075. Changed method signature:
  4076. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4077. * src/BtContext.h
  4078. * src/DefaultBtContext.cc
  4079. * src/DefaultBtContext.h
  4080. * src/DefaultBtInteractive.cc
  4081. * test/DefaultBtContextTest.cc
  4082. * test/MockBtContext.h
  4083. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Changed method signature:
  4085. MultiFileAllocationIterator::makeDiskWriterEntries
  4086. * src/MultiFileAllocationIterator.cc
  4087. * src/MultiFileAllocationIterator.h
  4088. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Changed method sinature:
  4090. MetalinkEntry::toFileEntry,
  4091. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4092. Metalinker::queryEntry
  4093. * src/Metalink2RequestGroup.cc
  4094. * src/MetalinkEntry.cc
  4095. * src/MetalinkEntry.h
  4096. * src/MetalinkHelper.cc
  4097. * src/MetalinkHelper.h
  4098. * src/Metalinker.cc
  4099. * src/Metalinker.h
  4100. * src/main.cc
  4101. * test/MetalinkHelperTest.cc
  4102. * test/MetalinkerTest.cc
  4103. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4104. Changed method sinature:
  4105. RequestGroup::getURIs
  4106. * src/RequestGroup.cc
  4107. * src/RequestGroup.h
  4108. * test/Metalink2RequestGroupTest.cc
  4109. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4110. Changed method signature:
  4111. PeerListProcessor::extractPeer
  4112. * src/CompactPeerListProcessor.cc
  4113. * src/CompactPeerListProcessor.h
  4114. * src/DefaultBtAnnounce.cc
  4115. * src/DefaultPeerListProcessor.cc
  4116. * src/DefaultPeerListProcessor.h
  4117. * src/DelegatingPeerListProcessor.cc
  4118. * src/DelegatingPeerListProcessor.h
  4119. * src/PeerListProcessor.h
  4120. * src/UTPexExtensionMessage.cc
  4121. * test/DefaultPeerListProcessorTest.cc
  4122. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4123. Changed method signature:
  4124. BtRequestFactory::createRequestMessages,
  4125. BtRequestFactory::createRequestMessagesOnEndGame
  4126. * src/BtRequestFactory.h
  4127. * src/DefaultBtInteractive.cc
  4128. * src/DefaultBtRequestFactory.cc
  4129. * src/DefaultBtRequestFactory.h
  4130. * test/DefaultBtRequestFactoryTest.cc
  4131. * test/MockBtRequestFactory.h
  4132. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Changed method signature:
  4134. PieceStorage::getInFlightPieces
  4135. * src/DefaultBtProgressInfoFile.cc
  4136. * src/DefaultPieceStorage.cc
  4137. * src/DefaultPieceStorage.h
  4138. * src/PieceStorage.h
  4139. * src/UnknownLengthPieceStorage.cc
  4140. * src/UnknownLengthPieceStorage.h
  4141. * test/DefaultBtProgressInfoFileTest.cc
  4142. * test/MockPieceStorage.h
  4143. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Changed method signature:
  4145. PostDownloadHandler::getNextRequestGroups
  4146. Metalink2RequestGroup::generate
  4147. RequestGroup::postDownloadProcessing
  4148. * src/BtPostDownloadHandler.cc
  4149. * src/BtPostDownloadHandler.h
  4150. * src/Metalink2RequestGroup.cc
  4151. * src/Metalink2RequestGroup.h
  4152. * src/MetalinkPostDownloadHandler.cc
  4153. * src/MetalinkPostDownloadHandler.h
  4154. * src/PostDownloadHandler.h
  4155. * src/RequestGroup.cc
  4156. * src/RequestGroup.h
  4157. * src/RequestGroupMan.cc
  4158. * src/main.cc
  4159. * test/BtPostDownloadHandlerTest.cc
  4160. * test/Metalink2RequestGroupTest.cc
  4161. * test/MetalinkPostDownloadHandlerTest.cc
  4162. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Rewritten AccRequestGroup
  4164. * src/main.cc
  4165. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Rewritten.
  4167. * src/TaggedItem.cc (toTagString)
  4168. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4169. Rewritten Accept-Features handling.
  4170. * src/HttpRequestCommand.cc (createHttpRequest)
  4171. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Rewritten accept types handling.
  4173. * HttpRequest.cc (createRequest)
  4174. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Rewritten
  4176. * src/FeatureConfig.cc (featureSummary)
  4177. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Changed method signature:
  4179. PeerStorage::getActivePeers
  4180. * src/DHTPeerAnnounceEntry.cc
  4181. * src/DefaultPeerStorage.cc
  4182. * src/DefaultPeerStorage.h
  4183. * src/PeerStorage.h
  4184. * test/DefaultPeerStorageTest.cc
  4185. * test/MockPeerStorage.h
  4186. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. Changed method signature:
  4188. DHTPeerAnnounceStorage::getPeers,
  4189. DHTPeerAnnounceEntry::getPeers
  4190. * src/DHTGetPeersMessage.cc
  4191. * src/DHTPeerAnnounceEntry.cc
  4192. * src/DHTPeerAnnounceEntry.h
  4193. * src/DHTPeerAnnounceStorage.cc
  4194. * src/DHTPeerAnnounceStorage.h
  4195. * test/DHTAnnouncePeerMessageTest.cc
  4196. * test/DHTPeerAnnounceEntryTest.cc
  4197. * test/DHTPeerAnnounceStorageTest.cc
  4198. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4199. Changed method signature:
  4200. NameResolver::resolve
  4201. * src/DHTEntryPointNameResolveCommand.cc
  4202. * src/InitiateConnectionCommand.cc
  4203. * src/NameResolver.cc
  4204. * src/NameResolver.h
  4205. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Changed method signature:
  4207. PieceStorage::getAdvertisedPieceIndexes
  4208. * src/DefaultBtInteractive.cc
  4209. * src/DefaultPieceStorage.cc
  4210. * src/DefaultPieceStorage.h
  4211. * src/PieceStorage.h
  4212. * src/UnknownLengthPieceStorage.h
  4213. * test/MockPieceStorage.h
  4214. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Changed method signature:
  4216. SegmentMan::getInFlightSegment
  4217. * src/AbstractCommand.cc
  4218. * src/SegmentMan.cc
  4219. * src/SegmentMan.h
  4220. * test/SegmentManTest.cc
  4221. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. Changed method signature:
  4223. DHTAbstractNodeLookupTask::getNodesFromMessage
  4224. * src/DHTAbstractNodeLookupTask.cc
  4225. * src/DHTAbstractNodeLookupTask.h
  4226. * src/DHTNodeLookupTask.cc
  4227. * src/DHTNodeLookupTask.h
  4228. * src/DHTPeerLookupTask.cc
  4229. * src/DHTPeerLookupTask.h
  4230. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4232. * src/AbstractCommand.cc
  4233. * src/BtCheckIntegrityEntry.cc
  4234. * src/BtCheckIntegrityEntry.h
  4235. * src/BtFileAllocationEntry.cc
  4236. * src/BtFileAllocationEntry.h
  4237. * src/BtSetup.cc
  4238. * src/BtSetup.h
  4239. * src/CheckIntegrityCommand.cc
  4240. * src/CheckIntegrityEntry.h
  4241. * src/ChecksumCheckIntegrityEntry.cc
  4242. * src/ChecksumCheckIntegrityEntry.h
  4243. * src/DHTSetup.cc
  4244. * src/DHTSetup.h
  4245. * src/DownloadEngine.cc
  4246. * src/FileAllocationCommand.cc
  4247. * src/FileAllocationEntry.h
  4248. * src/RequestGroup.cc
  4249. * src/RequestGroup.h
  4250. * src/RequestGroupMan.cc
  4251. * src/RequestGroupMan.h
  4252. * src/StreamCheckIntegrityEntry.cc
  4253. * src/StreamCheckIntegrityEntry.h
  4254. * src/StreamFileAllocationEntry.cc
  4255. * src/StreamFileAllocationEntry.h
  4256. * src/TrackerWatcherCommand.cc
  4257. * src/a2functional.h
  4258. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4259. Changed method signature:
  4260. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4261. DHTBucket::getGoodNodes,
  4262. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4263. * src/BNode.cc
  4264. * src/BNode.h
  4265. * src/DHTAbstractNodeLookupTask.cc
  4266. * src/DHTAutoSaveCommand.cc
  4267. * src/DHTBucket.cc
  4268. * src/DHTBucket.h
  4269. * src/DHTBucketRefreshTask.cc
  4270. * src/DHTFindNodeMessage.cc
  4271. * src/DHTGetPeersMessage.cc
  4272. * src/DHTRoutingTable.cc
  4273. * src/DHTRoutingTable.h
  4274. * test/BNodeTest.cc
  4275. * test/DHTBucketTest.cc
  4276. * test/DHTRoutingTableTest.cc
  4277. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. In piece selection functions, Pass std::deque<...> by reference rather
  4279. than returning it.
  4280. * src/BitfieldMan.cc
  4281. * src/BitfieldMan.h
  4282. * src/DefaultBtRequestFactory.cc
  4283. * src/DefaultPieceStorage.cc
  4284. * src/Piece.cc
  4285. * src/Piece.h
  4286. * test/BitfieldManTest.cc
  4287. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Implemented rarest piece first piece selection strategy.
  4289. * src/AbstractBtMessage.cc
  4290. * src/AbstractBtMessage.h
  4291. * src/BitfieldMan.cc
  4292. * src/BitfieldMan.h
  4293. * src/BtBitfieldMessage.cc
  4294. * src/BtHaveAllMessage.cc
  4295. * src/BtHaveMessage.cc
  4296. * src/DefaultPieceStorage.cc
  4297. * src/DefaultPieceStorage.h
  4298. * src/PeerInteractionCommand.cc
  4299. * src/PieceStorage.h
  4300. * src/UnknownLengthPieceStorage.h
  4301. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. Rewritten readData and writeData.
  4303. * src/MultiDiskAdaptor.cc
  4304. * src/MultiDiskAdaptor.h
  4305. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Move \n out of the message "Usage: ...".
  4307. * src/version_usage.cc
  4308. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Bump up version number to 0.13.2b.
  4310. * configure.ac
  4311. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Added const qualifier to argument Exception& e.
  4313. * src/Logger.h
  4314. * src/SimpleLogger.cc
  4315. * src/SimpleLogger.h
  4316. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Pool connection when CWD, SIZE command fails.
  4318. * src/FtpNegotiationCommand.cc
  4319. * src/FtpNegotiationCommand.h
  4320. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4322. * src/HttpResponseCommand.cc
  4323. * src/HttpSkipResponseCommand.cc
  4324. * src/HttpSkipResponseCommand.h
  4325. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4326. Pool connection when a server returns 4xx, 5xx responses.
  4327. * src/HttpNullDownloadCommand.cc
  4328. * src/HttpNullDownloadCommand.h
  4329. * src/HttpResponse.cc
  4330. * src/HttpResponse.h
  4331. * src/HttpResponseCommand.cc
  4332. * src/HttpResponseCommand.h
  4333. * test/HttpResponseTest.cc
  4334. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Print usage when no URL is specifed or bad command-line option is
  4336. specified.
  4337. * src/HelpItemFactory.cc
  4338. * src/help_tags.h
  4339. * src/option_processing.cc
  4340. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Removed duplicate log message.
  4342. * src/AbstractCommand.cc (asyncResolveHostname)
  4343. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4344. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4345. Changed -j option's default value from 5 to 1.
  4346. Added new examples using protocol auto detection feature.
  4347. Removed -T, -M usage where it can be omitted.
  4348. * doc/aria2c.1.txt
  4349. * doc/aria2c.1.html
  4350. * doc/aria2c.1.txt
  4351. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Updated command-line usage text, so that it tells users that they
  4353. can specify any number of torrent files and metalink files in
  4354. command-line.
  4355. * src/version_usage.cc
  4356. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Changed the default value of -j option to 1.
  4358. * src/HelpItemFactory.cc
  4359. * src/option_processing.cc
  4360. * src/usage_text.h
  4361. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Added the ability to reuse connection in FTP and it is enabled by
  4363. default. It can be disabled by --ftp-reuse-connection=false option.
  4364. * src/Command.cc
  4365. * src/DownloadCommand.cc
  4366. * src/FtpDownloadCommand.cc
  4367. * src/FtpDownloadCommand.h
  4368. * src/FtpFinishDownloadCommand.cc
  4369. * src/FtpFinishDownloadCommand.h
  4370. * src/FtpInitiateConnectionCommand.cc
  4371. * src/FtpNegotiationCommand.cc
  4372. * src/FtpNegotiationCommand.h
  4373. * src/HelpItemFactory.cc
  4374. * src/Makefile.am
  4375. * src/Makefile.in
  4376. * src/OptionHandlerFactory.cc
  4377. * src/option_processing.cc
  4378. * src/prefs.h
  4379. * src/usage_text.h
  4380. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4381. Call Command::transitStatus() before calling Command::execute(),
  4382. so that the status change made in execute() is not cleared.
  4383. * src/DownloadEngine.cc
  4384. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4385. Removed forward declaration of SocketCore class.
  4386. * src/HttpDownloadCommand.h
  4387. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4389. in InitiateConnectionCommandFactory. They should be set only when
  4390. the protocol is HTTP or HTTPS.
  4391. * src/InitiateConnectionCommandFactory.cc
  4392. * src/RequestGroup.cc
  4393. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4394. Fixed infinite loop in checksum checking.
  4395. * src/IteratableChecksumValidator.cc
  4396. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4397. Set _supportsPersistentConnection to true by default.
  4398. * src/Request.cc
  4399. * src/RequestGroup.cc
  4400. * test/HttpRequestTest.cc
  4401. * test/RequestTest.cc
  4402. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4403. Added timeout to socket pool. The default timeout is 15 seconds,
  4404. which is the same value Apache uses.
  4405. * src/DownloadEngine.cc
  4406. * src/DownloadEngine.h
  4407. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Fixed misuse of multimap::find()
  4409. * src/HttpHeader.cc
  4410. * test/HttpHeaderTest.cc
  4411. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4413. option.
  4414. The asynchronous DNS is not capable of IPv6 yet.
  4415. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4416. least for HTTP download.
  4417. * src/AbstractCommand.cc
  4418. * src/AbstractCommand.h
  4419. * src/AsyncNameResolver.cc
  4420. * src/AsyncNameResolver.h
  4421. * src/DHTEntryPointNameResolveCommand.cc
  4422. * src/DHTEntryPointNameResolveCommand.h
  4423. * src/DownloadEngine.cc
  4424. * src/DownloadEngine.h
  4425. * src/FtpInitiateConnectionCommand.cc
  4426. * src/FtpInitiateConnectionCommand.h
  4427. * src/HelpItemFactory.cc
  4428. * src/HttpInitiateConnectionCommand.cc
  4429. * src/HttpInitiateConnectionCommand.h
  4430. * src/InitiateConnectionCommand.cc
  4431. * src/InitiateConnectionCommand.h
  4432. * src/Makefile.am
  4433. * src/Makefile.in
  4434. * src/NameResolver.cc
  4435. * src/NameResolver.h
  4436. * src/OptionHandlerFactory.cc
  4437. * src/SocketCore.cc
  4438. * src/SocketCore.h
  4439. * src/Util.cc
  4440. * src/Util.h
  4441. * src/option_processing.cc
  4442. * src/prefs.h
  4443. * src/usage_text.h
  4444. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Updated man page: --quiet, --header were added.
  4446. --metalink-servers and --enable-http-keep-alive option were updated.
  4447. * doc/aria2c.1
  4448. * doc/aria2c.1.html
  4449. * doc/aria2c.1.txt
  4450. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Enable HTTP keep-alive by default.
  4452. * src/HelpItemFactory.cc
  4453. * src/option_processing.cc
  4454. * src/usage_text.h
  4455. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Disable http keep-alive if the remote server is not HTTP/1.1.
  4457. * src/HttpConnection.cc
  4458. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. Receive content body of 302 response so that the connection can be
  4460. reused later when http keep-alive is enabled.
  4461. * src/HttpNullDownloadCommand.cc
  4462. * src/HttpNullDownloadCommand.h
  4463. * src/HttpResponseCommand.cc
  4464. * src/HttpResponseCommand.h
  4465. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. const SharedHandle<Request> -> const SharedHandle<Request>&
  4467. * src/FtpDowndloadCommand.cc
  4468. * src/FtpDowndloadCommand.h
  4469. * src/HttpDownloadCommand.cc
  4470. * src/HttpDownloadCommand.h
  4471. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Fixed the bug that the control file(.aria2 file) is not renamed
  4473. according to tryAutoFileRenaming().
  4474. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4475. its control file exist, use them and continue download.
  4476. The old implementation didn't take into account of control file's
  4477. existence, so basically you couldn't continue download of renamed file.
  4478. * src/BtProgressInfoFile.h
  4479. * src/DefaultBtProgressInfoFile.cc
  4480. * src/DefaultBtProgressInfoFile.h
  4481. * src/NullProgressInfoFile.h
  4482. * src/RequestGroup.cc
  4483. * test/DefaultBtProgressInfoFileTest.cc
  4484. * test/MockBtProgressInfoFile.h
  4485. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Change the default value of --metalink-servers option from `5' to `1'.
  4487. * src/HelpItemFactory.cc
  4488. * src/option_processing.cc
  4489. * src/usage_text.h
  4490. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Reimplemented transparent metalink using Accept request header.
  4492. * src/HttpRequest.cc
  4493. * src/HttpRequest.h
  4494. * src/HttpRequestCommand.cc
  4495. * src/Metalink2RequestGroup.cc
  4496. * src/RequestGroup.cc
  4497. * src/RequestGroup.h
  4498. * test/HttpRequestTest.cc
  4499. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Bump up version number to 0.13.2a
  4501. * configure.ac
  4502. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Updated configure.ac using the result of autoscan.
  4504. * configure.ac
  4505. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Fixed compilation error without gcrypt/openssl.
  4507. * src/DownloadCommand.cc
  4508. * src/DownloadCommand.h
  4509. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4510. Reorganized version information so that it can be displayed in a
  4511. standard terminal screen without scrolling.
  4512. Removed http, ftp from Configuration section, because they are always
  4513. enabled.
  4514. * src/FeatureConfig.cc
  4515. * src/FeatureConfig.h
  4516. * src/main.cc
  4517. * src/messageDigest.cc
  4518. * src/messageDigest.h
  4519. * src/version_usage.cc
  4520. * test/FeatureConfigTest.cc
  4521. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4522. Masked user ID in log.
  4523. * src/FtpConnection.cc (sendUser)
  4524. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4525. Removed query part from filename in HTTP download. The query part means
  4526. the substring after "?" in URL. Firefox seems do the same thing.
  4527. A query part is sometimes very long and not suitable to filename,
  4528. so I think it is better to remove it from filename.
  4529. * src/HttpRequest.cc
  4530. * src/HttpRequest.h
  4531. * src/Request.cc
  4532. * src/Request.h
  4533. * test/HttpRequestTest.cc
  4534. * test/RequestTest.cc
  4535. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Rewritten Exception class. Throw exception object, not its pointer and
  4537. catch by reference, so that remove problematic delete operator for
  4538. catched exception.
  4539. * src/Exception.cc
  4540. * src/Exception.h
  4541. * test/ExceptionTest.cc
  4542. * src/*: All files throwing/catching exception.
  4543. * test/*: All files throwing/catching exception.
  4544. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Now auto protocol detection is enabled without -Z option.
  4546. But there is a important difference between with/without -Z optoin.
  4547. For example, if you type:
  4548. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4549. then, aria2 interprets there are 3 request groups:
  4550. (1) http://host/file, http://mirror/file <-- multi-source download
  4551. (2) file1.torrent
  4552. (3) file2.metalink
  4553. On the other hand, if you invoke above command with -Z option, it is
  4554. interpreted as 4 request groups:
  4555. (1) http://host/file
  4556. (2) file1.torrent
  4557. (3) file2.metalink
  4558. (4) http://mirror/file
  4559. I think usually user don't mix multi-source URLs and torrent files, so
  4560. there is no big problem here.
  4561. * src/main.cc
  4562. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Fixed the bug that causes segmentaion fault when reading XML containing
  4564. unescapsed character like '&'.
  4565. Also a modification was made which avoids adding unnecessary
  4566. characters stack and appending unused string.
  4567. * src/ExpatMetalinkProcessor.cc
  4568. * src/FileMetalinkParserState.h
  4569. * src/FilesMetalinkParserState.h
  4570. * src/FinMetalinkParserState.h
  4571. * src/HashMetalinkParserState.h
  4572. * src/InitialMetalinkParserState.h
  4573. * src/LanguageMetalinkParserState.h
  4574. * src/MetalinkMetalinkParserState.h
  4575. * src/MetalinkParserState.h
  4576. * src/MetalinkParserStateMachine.cc
  4577. * src/MetalinkParserStateMachine.h
  4578. * src/OSMetalinkParserState.h
  4579. * src/PieceHashMetalinkParserState.h
  4580. * src/PiecesMetalinkParserState.h
  4581. * src/ResourcesMetalinkParserState.h
  4582. * src/SizeMetalinkParserState.h
  4583. * src/SkipTagMetalinkParserState.h
  4584. * src/URLMetalinkParserState.h
  4585. * src/VerificationMetalinkParserState.h
  4586. * src/VersionMetalinkParserState.h
  4587. * src/XML2SAXMetalinkProcessor.cc
  4588. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Added StringFormat class, which internally calls vasprintf.
  4590. operator<< is defined for this class, so it can be used with iostream
  4591. classes nicely. SimpleLogger and following functions are rewritten
  4592. using StringFormat class.
  4593. Besides, now Logger class's methods are non-const, many classes
  4594. that has a const Logger* as a member variable are modified to remove
  4595. const qualifier from the variable declaration.
  4596. * src/HelpItemFactory.cc
  4597. * src/Request.cc
  4598. * src/SimpleLogger.cc
  4599. * src/StringFormat.cc
  4600. * src/StringFormat.h
  4601. * src/Util.cc
  4602. * src/option_processing.cc
  4603. * src/version_usage.cc
  4604. * test/StringFormatTest.cc
  4605. * src/*.h: The classes that has const Logger* as a member variable.
  4606. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4608. failed. Also fixed memory link when exception is thrown there.
  4609. * src/main.cc (AccRequestGroup)
  4610. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Added build-in "Accept-Features" support. For now only "metalink" is
  4612. used in this header field.
  4613. This "metalink" value is removed from the list when connecting URLs
  4614. fed by metalink file to avoid loop in "transparent" metlaink.
  4615. * src/HttpRequest.cc
  4616. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4617. header is also held in this variable. Also renamed setUserHeaders as
  4618. addHeader and it was rewritten to add header not just to clear the old
  4619. value.
  4620. * src/HttpRequestCommand.cc
  4621. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4622. from "Accept-Features" list.
  4623. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4624. default.
  4625. * src/RequestGroup.h
  4626. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4627. * src/a2functional.h: Included <string> because Concat class depends on
  4628. it.
  4629. * test/HttpRequestTest.cc
  4630. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Added comment
  4632. * src/RequestGroup.cc (createNextCommand)
  4633. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Capitalized METHOD_GET and METHOD_HEAD
  4635. * src/Request.cc
  4636. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4637. Added getDownloadResults() method
  4638. * src/RequestGroupMan.cc
  4639. * src/RequestGroupMan.h
  4640. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Fixed the bug that aria2 exits when commands is empty() but
  4642. _routineCommands are not.
  4643. * src/DownloadEngine.cc
  4644. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Use the default value pulled from Option object in HelpItemFactory.
  4646. except options whose defualt value is embedded in a usage text.
  4647. * src/HelpItemFactory.cc
  4648. * src/HelpItemFactory.h
  4649. * src/option_processing.cc
  4650. * src/version_usage.cc
  4651. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Added --quiet option to make aria2 quiet (no console output).
  4653. --quiet option is tagged with ADVANCED.
  4654. * src/HelpItemFactory.cc
  4655. * src/LogFactory.cc
  4656. * src/LogFactory.h
  4657. * src/MultiUrlRequestInfo.cc
  4658. * src/MultiUrlRequestInfo.h
  4659. * src/NullStatCalc.h: New class. This class prints nothing.
  4660. * src/OptionHandlerFactory.cc
  4661. * src/main.cc
  4662. * src/option_processing.cc
  4663. * src/prefs.h
  4664. * src/usage_text.h
  4665. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4666. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4667. * src/HelpItemFactory.cc (createHelpItems):
  4668. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Fixed compilation error in ExpatMetalinkProcessor.cc
  4670. * src/ExpatMetalinkProcessor.cc
  4671. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Reuse socket if the origin server supports HTTP keep-alive and
  4673. --enable-http-keep-alive or --enable-http-pipelining is given.
  4674. The current implementation doesn't reuse the connections established
  4675. against proxy server.
  4676. * src/AbstractCommand.cc
  4677. * src/DownloadEngine.cc
  4678. * src/DownloadEngine.h
  4679. * src/HttpDownloadCommand.cc
  4680. * src/HttpInitiateConnectionCommand.cc
  4681. * src/HttpResponseCommand.cc
  4682. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Rewritten HTTP keep-alive and pipelining routine.
  4684. * src/AbstractCommand.cc
  4685. * src/HttpConnection.cc
  4686. * src/HttpDownloadCommand.cc
  4687. * src/HttpRequest.cc
  4688. * src/HttpRequestCommand.cc
  4689. * src/HttpResponseCommand.cc
  4690. * src/Request.cc
  4691. * src/Request.h
  4692. * src/RequestGroup.cc
  4693. * test/HttpRequestTest.cc
  4694. * test/HttpResponseTest.cc
  4695. * test/RequestTest.cc
  4696. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4697. Added missing setUserHeaders call
  4698. * src/HttpRequestCommand.cc
  4699. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4701. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4702. waste of time because it is more likey false.
  4703. * src/FileAllocationDispatcherCommand.cc (execute)
  4704. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4705. Now HTTP status and version are a member variable of HttpHeader.
  4706. HTTP status is processed as a string, not integer.
  4707. * src/AbstractProxyResponseCommand.cc
  4708. * src/HttpConnection.cc
  4709. * src/HttpHeader.cc
  4710. * src/HttpHeader.h
  4711. * src/HttpHeaderProcessor.cc
  4712. * src/HttpHeaderProcessor.h
  4713. * src/HttpResponse.cc
  4714. * src/HttpResponse.h
  4715. * test/HttpHeaderProcessorTest.cc
  4716. * test/HttpResponseTest.cc
  4717. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Added --header option. You can specify any number of additional HTTP headers
  4719. like:
  4720. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4721. Unlike other commad-line option, you can use --header option multiple times.
  4722. * src/HelpItemFactory.cc
  4723. * src/HttpRequest.{cc, h}
  4724. * src/HttpRequestCommand.cc
  4725. * src/OptionHandlerFactory.cc
  4726. * src/OptionHandlerImpl.h
  4727. * src/option_processing.cc
  4728. * src/prefs.h
  4729. * src/usage_text.h
  4730. * test/HttpRequestTest.cc (testUserHeaders)
  4731. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4732. Eliminates the time lag between sequential downloads and commands in
  4733. the same RequestGroup.
  4734. In old implementation, aria2 occasionally waits 1 seconds before
  4735. executing next command or RequestGroup.
  4736. This is really a waste of time, and new implementation eliminates
  4737. this unnecessary time lag.
  4738. * src/AbstractCommand.cc
  4739. * src/AutoSaveCommand.cc
  4740. * src/CheckIntegrityCommand.cc
  4741. * src/Command.{cc, h}
  4742. * src/DownloadEngine.{cc, h}
  4743. * src/DownloadEngineFactory.cc
  4744. * src/FileAllocationCommand.cc
  4745. * src/FileAllocationDispatcherCommand.cc
  4746. * src/FillRequestGroupCommand.cc
  4747. * src/FtpInitiateConnectionCommand.cc
  4748. * src/HaveEraseCommand.cc
  4749. * src/HttpInitiateConnectionCommand.cc
  4750. * src/HttpResponseCommand.cc
  4751. * src/RealtimeCommand.cc
  4752. * src/RequestGroup.cc
  4753. * src/RequestGroupMan.cc
  4754. * src/StreamFileAllocationEntry.cc
  4755. * src/TimeBasedCommand.{cc, h}
  4756. * src/TimedHaltCommand.cc
  4757. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4759. keyword explicit and SharedHandle's default constructor initializes
  4760. its internal obj to null, old implementation initializes it using
  4761. obj's default constructor.
  4762. To assign null, write SharedHandle<T> x(...); x.reset();
  4763. TODO: test/SharedHandleTest.cc needs more tests.
  4764. * src/SharedHandle.h
  4765. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4766. Fixed type in man page.
  4767. * doc/aria2c.1.txt
  4768. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4770. * src/SimpleLogger.{cc, h}
  4771. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4772. Implemented auto protocol detection.
  4773. Now you can do:
  4774. aria2c -Z http://host/file file1.torrent file2.metalink
  4775. (Note: -Z option is required for auto protcol detection.)
  4776. Then aria2c downloads 3 files simultaneously:
  4777. 1. http://host/file
  4778. 2. file1.torrent <-- read local torrent file
  4779. 3. file2.metalink <-- read local Metalink file.
  4780. Same thing goes with -i option. Assume your uris.txt contans:
  4781. http://host/file
  4782. file1.torrent
  4783. file2.metalink
  4784. Then you can do: aria2c -i uris.txt
  4785. (Note: -Z option is not needed if -i option is given.)
  4786. * src/main.cc
  4787. * src/ProtocolDetector.{cc, h}
  4788. * test/ProtocolDetectorTest.cc
  4789. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4791. installed
  4792. * src/ARC4Encryptor.h
  4793. * src/ARC4Decryptor.h
  4794. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Renamed argument from 'errno' to 'err', since errno is confused with
  4796. errno defined in errno.h.
  4797. * src/LibgcryptARC4Decryptor.h
  4798. * src/LibgcryptARC4Context.h
  4799. * src/LibgcryptDHKeyExchange.h
  4800. * src/LibgcryptARC4Encryptor.h
  4801. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Rewritten choking algorithm.
  4803. * src/PeerChokeCommand.{cc, h}
  4804. * src/BtInterestedMessage.cc
  4805. * src/PeerSessionResource.{cc, h}
  4806. * src/DefaultPeerStorage.{cc, h}
  4807. * src/BtNotInterestedMessage.cc
  4808. * src/DefaultBtMessageDispatcher.{cc, h}
  4809. * src/BtMessageDispatcher.h
  4810. * src/Peer.{cc, h}
  4811. * src/BtLeecherStateChoke.{cc, h}
  4812. * src/BtSetup.cc
  4813. * src/BtSeederStateChoke.{cc, h}
  4814. * src/PeerStorage.h
  4815. * test/MockPeerStorage.h
  4816. * test/MockBtMessageDispatcher.h
  4817. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Fixed compilation error on x84-64 platform.
  4819. * src/AuthConfig.cc: Included ostream.
  4820. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4821. Rewritten getBasename() and getDirname(), without standard library
  4822. basename(), dirname().
  4823. * src/File.cc
  4824. * test/FileTest.cc
  4825. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4826. Added Simplified Chinese translation. Also updated the following
  4827. translations: Polish, Dutch, German. Great thanks to all translators.
  4828. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Suppress content-range error when 'Content-Range' response header
  4830. doesn't contains bytes-unit specifier 'bytes'
  4831. * src/HttpHeader.cc (getRange)
  4832. * test/HttpHeaderTest.cc
  4833. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4834. Fixed compilation error with g++-4.3
  4835. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Added missing include files for MinGW
  4837. * test/HttpHeaderProcessorTest.cc
  4838. * test/DHTRoutingTableSerializerTest.cc
  4839. * test/DHTRoutingTableDeserializerTest.cc
  4840. * test/UriListParserTest.cc
  4841. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Now download line is printed nicely with no garbage at the end of
  4843. line. I use ioctl to get the columns of terminal.
  4844. If stdout is redirected to another device, instead of carriage return,
  4845. end of line '\n' character is used. This is feature request#1909659
  4846. * src/ConsoleStatCalc.cc (calculateStat)
  4847. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Included a2time.h
  4849. * src/DHTMessageDispatcher.h
  4850. * src/DHTMessageEntry.h
  4851. * src/DHTReplaceNodeTask.h
  4852. * src/DHTMessageTracker.h
  4853. * src/Util.h
  4854. * src/CookieBox.h
  4855. * src/SocketCore.h
  4856. * src/DefaultBtMessageDispatcher.h
  4857. * src/SocketCore.cc
  4858. * src/Util.cc
  4859. * src/DHTPingTask.h
  4860. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Fixed high memory footprint when DHT is enabled.
  4862. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4863. queued than it is processed and the queue is getting longer. As a
  4864. consequence, momory usage is increased.
  4865. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4866. replacement cache in DHTBucket which is described in Kademlia paper.
  4867. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4868. DHTReplaceNodeTask.
  4869. * src/DHTBucket.{h, cc}
  4870. (cacheNode): New function.
  4871. (getCachedNodes): New function.
  4872. (dropNode): Push back cached node to _nodes.
  4873. * test/DHTBucketTest.cc
  4874. (testCacheNode): New test
  4875. (testDropNode): New test
  4876. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4878. the unused 4KB memory when ssl is not used.
  4879. * src/SocketCore.cc
  4880. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Added summary log for peer announce storage.
  4882. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4883. Removed cast
  4884. * src/DefaultPeerStorage.cc (addPeer)
  4885. Log exception message
  4886. * src/DHTMessageTracker.cc (handleTimeout)
  4887. Fixed casting
  4888. * test/HttpRequestTest.cc
  4889. * test/MetalinkProcessorTest.cc
  4890. * test/PieceTest.cc
  4891. * test/MetalinkEntryTest.cc
  4892. * test/SequenceTest.cc
  4893. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. * src/ParameterizedStringParser.cc (createLoop):
  4895. Removed unused variable sstep.
  4896. * src/AlphaNumberDecorator.h (decode): Rewritten.
  4897. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4898. * src/Util.{h, cc}
  4899. (parseUInt): New function.
  4900. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  4901. The actual range is uint32_t.
  4902. * test/UtilTest.cc
  4903. * src/ParameterizedStringParser.cc:
  4904. Use Util::parseUInt() for loop variables.
  4905. * test/ParameterizedStringParserTest.cc
  4906. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  4907. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Rewritten the functions for binding port.
  4909. * src/DHTConnectionImpl.{h, cc}
  4910. * src/PeerListenCommand.{h, cc}
  4911. * src/DHTSetup.cc
  4912. * src/BtSetup.cc
  4913. * test/DHTConnectionImplTest.cc
  4914. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. type cleanup for allmost all remaining files.
  4916. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Type clarification
  4918. * src/PeerSessionResource.{h, cc}
  4919. * src/DefaultPieceStorage.{h, cc}
  4920. * src/Peer.{h, cc}
  4921. * test/PeerSessionResourceTest.cc
  4922. Use div function
  4923. * src/BtPieceMessage.cc (erasePieceOnDisk)
  4924. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4925. Type clarification
  4926. * src/DefaultPeerStorage.{h, cc}
  4927. * test/DefaultPeerStorageTest.cc
  4928. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Type clarification: size_t for length or size, uint64_t for file
  4930. length, off_t for file offset.
  4931. * src/DefaultBtProgressInfoFile.cc
  4932. * src/DefaultBtContext.{h, cc}
  4933. * src/DefaultBtInteractive.cc
  4934. * src/DownloadCommand.{h, cc}
  4935. * src/IteratableChunkChecksumValidator.{h, cc}
  4936. * src/SegmentMan.{h, cc}
  4937. * src/SingleFileDownloadContext.{h, cc}
  4938. * src/IteratableChecksumValidator.{h, cc}
  4939. * src/BtContext.h
  4940. * src/IteratableValidator.h
  4941. * src/DownloadContext.h
  4942. * test/SingleFileDownloadContextTest.cc
  4943. * test/DefaultBtContextTest.cc
  4944. * test/MockBtContext.h
  4945. * test/Metalink2RequestGroupTest.cc
  4946. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Type clarification: size_t for length or size, uint64_t for file
  4948. length, off_t for file offset.
  4949. * src/PiecedSegment.cc
  4950. * src/GrowSegment.h
  4951. * src/DefaultBtRequestFactory.h
  4952. * src/DefaultBtProgressInfoFile.cc
  4953. * src/UnknownLengthPieceStorage.h
  4954. * src/DefaultPieceStorage.cc
  4955. * src/UnknownLengthPieceStorage.cc
  4956. * src/DefaultBtInteractive.cc
  4957. * src/GrowSegment.cc
  4958. * src/BitfieldMan.h
  4959. * src/DownloadCommand.cc
  4960. * src/BtRequestFactory.h
  4961. * src/PiecedSegment.h
  4962. * src/DefaultPieceStorage.h
  4963. * src/Piece.cc
  4964. * src/DefaultBtRequestFactory.cc
  4965. * src/PieceStorage.h
  4966. * src/Segment.h
  4967. * src/Piece.h
  4968. * src/BitfieldMan.cc
  4969. * src/Util.cc
  4970. * test/DefaultBtProgressInfoFileTest.cc
  4971. * test/DefaultPieceStorageTest.cc
  4972. * test/MockPieceStorage.h
  4973. * test/BtRequestMessageTest.cc
  4974. * test/DefaultBtMessageDispatcherTest.cc
  4975. * test/BitfieldManTest.cc
  4976. * test/GrowSegmentTest.cc
  4977. * test/PieceTest.cc
  4978. * test/SegmentTest.cc
  4979. * test/SegmentManTest.cc
  4980. * test/DefaultBtRequestFactoryTest.cc
  4981. * test/MockBtRequestFactory.h
  4982. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Fixed compilation error with --disable-nls
  4984. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4985. in gettext.h causes the problem.
  4986. * src/common.h
  4987. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Removed subPiece related functions.
  4989. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4990. * src/DefaultPieceStorage.{h, cc}
  4991. * test/PieceTest.cc
  4992. * test/DefaultPieceStorageTest.cc
  4993. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Use unsigned char for data store.
  4995. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Bump up version number to 0.13.0+1
  4997. * configure.ac
  4998. * Release 0.13.0+1
  4999. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Changed inactive connection timeout to 120.
  5001. To accept more mulually interested peers, disconnect peer when there
  5002. is no interest between us after certain time passed.
  5003. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5004. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5006. when compiled with async DNS support.
  5007. * src/DownloadEngine.cc
  5008. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5009. value '10' will be a little bit short when some DNS servers are
  5010. offline and several DNS servers are tried. It should be configured
  5011. by command-line option.
  5012. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5013. Merged Ross's mingw patch.
  5014. * src/DHTRoutingTableDeserializer.cc
  5015. * src/DHTRoutingTableSerializer.cc
  5016. * src/Platform.{h, cc}
  5017. * src/timegm.h
  5018. * src/gettimeofday.h
  5019. * src/getaddrinfo.h
  5020. * src/SocketCore.h
  5021. * src/common.h
  5022. * src/inet_aton.h
  5023. * src/DownloadEngine.h
  5024. * src/gai_strerror.h
  5025. * src/a2netcompat.h
  5026. * configure.ac
  5027. * configure
  5028. * aclocal.m4
  5029. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Included missing iostream.
  5031. * test/AllTest.cc
  5032. * test/BtDependencyTest.cc
  5033. * test/BtExtendedMessageTest.cc
  5034. * test/DHTConnectionImplTest.cc
  5035. * test/DHTMessageFactoryImplTest.cc
  5036. * test/DHTMessageTrackerEntryTest.cc
  5037. * test/DHTNodeTest.cc
  5038. * test/DHTRoutingTableSerializerTest.cc
  5039. * test/DefaultBtAnnounceTest.cc
  5040. * test/DefaultBtContextTest.cc
  5041. * test/DefaultBtMessageFactoryTest.cc
  5042. * test/DefaultExtensionMessageFactoryTest.cc
  5043. * test/HandshakeExtensionMessageTest.cc
  5044. * test/HttpResponseTest.cc
  5045. * test/MetalinkProcessorTest.cc
  5046. * test/MultiFileAllocationIteratorTest.cc
  5047. * test/SocketCoreTest.cc
  5048. * test/UTPexExtensionMessageTest.cc
  5049. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Reorganized includes.
  5051. * src/NameResolver.cc
  5052. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Fixed compilation error without ares/c-ares
  5054. * src/NameResolver.h:
  5055. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. Added a test for large file.
  5057. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5058. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5059. Fixed the bug that file size is ignored if size > INT32_MAX
  5060. * src/SizeMetalinkParserState.cc (endElement):
  5061. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Bump up version number to 0.13.0
  5063. * configure.ac
  5064. * Release 0.13.0
  5065. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Updated Makfefile.am to make 'make dist' work.
  5067. Now packaged filename is aria2c-VERSION.tar.bz2.
  5068. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5069. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5070. Large file support is now configured by configure script.
  5071. * configure.ac
  5072. Removed unsused source files
  5073. * src/
  5074. * test/
  5075. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5076. Peer.h and BtContext.h respectively.
  5077. * src/Peer.h
  5078. * src/BtContext.h
  5079. Updated translations.
  5080. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5081. translations. Great thanks to all translators!;)
  5082. * po/*.{po, gmo}
  5083. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5085. statically declared sha1 MessageDigestContext.
  5086. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5087. initialization of short-lived MessageDigestContext.
  5088. * src/MessageDigestHelper.{h, cc}
  5089. * src/main.cc
  5090. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5091. the initialization of MessageDigestContext every time in validating
  5092. chunk checksum.
  5093. * src/DownloadCommand.{h, cc}
  5094. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5095. Add a file descriptor which connected to fast peer(latency<1500) to
  5096. select(). This change reduced CPU load.
  5097. * src/PeerInteractionCommand.cc
  5098. * src/DefaultBtInteractive.{h, cc}
  5099. * src/BtInteractive.h
  5100. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5101. Fixed the previous insufficient fix for possible busy loop.
  5102. * src/MSEHandshake.cc (identifyHandshakeType)
  5103. Removed unused functions.
  5104. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5105. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Fixed possible busy loop if first 20 bytes are not received for a few
  5107. minutes.
  5108. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5109. * src/ReceiverMSEHandshakeCommand.cc
  5110. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Fixed compilation error
  5112. * src/ExpatMetalinkProcessor.cc
  5113. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5114. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5115. * src/DHTBucket.cc
  5116. Removed unnecessary cast.
  5117. * src/HandshakeExtensionMessage.cc
  5118. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5120. is missing.
  5121. * src/OptionHandlerFactory.cc
  5122. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5123. Fixed the bug that HAVE message is not sent for a piece they are
  5124. downloaded fom http/ftp server before any BitTorrent handshake is done
  5125. with peers.
  5126. * src/DefaultBtInteractive.cc
  5127. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5129. * src/Makefile.am
  5130. * src/Makefile.in
  5131. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Updated README. Added html version of README and man page.
  5133. * README
  5134. * README.html
  5135. * readme2html: Shell script to generate README.html from README using
  5136. asciidoc.
  5137. * doc/aria2c.1.html
  5138. * doc/makeman: Added the line to generate aria2c.1.html
  5139. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Fixed offset calculation.
  5141. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5142. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Rewritten itos and uitos using template. llitos and ullitos are
  5144. replaced with itos and uitos respectively.
  5145. * src/Util.{h, cc}
  5146. * test/UtilTest.cc
  5147. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5149. of the number of bytes required for storing public key and shared
  5150. secret.
  5151. * src/LibgcryptDHKeyExchange.h
  5152. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5153. * src/MSEHandshake.cc
  5154. * test/DHKeyExchangeTest.cc
  5155. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Removed since they are not used.
  5157. * src/Xml2MetalinkProcessor.{h, cc}
  5158. * src/Socket.cc
  5159. * src/SegmentSplitter.{h, cc}
  5160. * test/Xml2MetalinkProcessorTest.cc
  5161. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Fixed the bug that prevents aria2 from stopping other than by pressing
  5163. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5164. option. aria2 doesn't stop even after --seed-time is satisfied and
  5165. continues to output blank lines in the console.
  5166. * src/ReceiverMSEHandshakeCommand.cc
  5167. * src/PeerReceiveHandshakeCommand.cc
  5168. * src/PeerListenCommand.cc
  5169. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. Bump up version number to 0.13.0rc
  5171. * configure.ac
  5172. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Updated man page and some usage text.
  5174. * doc/aria2c.1.txt
  5175. * src/usage_text.h
  5176. * po/*.{po, gmo}
  5177. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5178. Updated translations. Added Finnish and Hebrew translations.
  5179. Great thanks to all translators!
  5180. * po/*.{po, gmo}
  5181. * po/LINGUAS
  5182. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5183. Log more detailed information about each message.
  5184. * src/DHTQueryMessage.{h, cc}
  5185. * src/DHTGetPeersMessage.{h, cc}
  5186. * src/DHTFindNodeReplyMessage.{h, cc}
  5187. * src/DHTGetPeersReplyMessage.{h, cc}
  5188. * src/DHTAnnouncePeerMessage.{h, cc}
  5189. * src/DHTResponseMessage.{h, cc}
  5190. * src/DHTFindNodeMessage.{h, cc}
  5191. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Use constants defined in prefs.h
  5193. * src/option_processing.cc
  5194. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5196. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Make room for future enchancements for IPv6 addresses.
  5198. Bump up version number of dht.dat file format to 2.
  5199. Not compatible with previous version.
  5200. * src/DHTRoutingTableSerializer.cc
  5201. * src/DHTRoutingTableDeserializer.cc
  5202. * test/DHTRoutingTableSerializerTest.cc
  5203. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Added handling for the return values from
  5205. PeerMessageUtil::createcompact().
  5206. * src/DefaultBtContext.cc (computeFastSet):
  5207. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Fixed abort when peer's ip address is IPv4-mapped address.
  5209. * src/DefaultBtContext.cc (computeFastSet)
  5210. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5211. cannot handle IPv4-mapped addresses.
  5212. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5213. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Proper return value handling for OpenSSL functions.
  5215. * src/LibsslDHKeyExchange.h
  5216. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5217. Random bytes generation using libgcrypt and OpenSSL.
  5218. * src/DHTUtil.{h, cc}
  5219. * test/DHTUtilTest.cc
  5220. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5222. received.
  5223. * src/DHTMessageReceiver.cc (receiveMessage)
  5224. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. Fixed the bug that a return code is always 0. BUG#1897704
  5226. If error occurred during the download or there exist unfinished
  5227. downloads, aria2 returns with code 1.
  5228. * src/RequestGroupMan.{h, cc}
  5229. * src/MultiUrlRequestInfo.{h, cc}
  5230. * src/main.cc
  5231. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. IPv6 support for SocketCore class.
  5233. TODO: In SocketCore::establishConnection(), this is insufficient to
  5234. determin the failure of connect() here because the socket is
  5235. non-blocking state. The next addresses should be tried after select().
  5236. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5237. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5238. instead which address family independent.
  5239. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5240. information in a compact peer format which is for IPv4 only.
  5241. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5242. this is a spec of BitTorrent protocol.
  5243. * src/SocketCore.{h, cc}
  5244. * src/PeerMessageUtil.cc
  5245. * test/SocketCoreTest.cc
  5246. * test/PeerMessageUtilTest.cc
  5247. * test/DHTConnectionImplTest.cc
  5248. Handle IPv4-mapped addresses.
  5249. * src/DHTNode.cc: Now identity is determined by node id.
  5250. * src/DHTMessageTrackerEntry.cc
  5251. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5252. should handle it.
  5253. * src/DHTRoutingTableDeserializer.cc
  5254. * src/DHTMessageFactoryImpl.cc
  5255. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Change the unit of --stop option from a minute to a second.
  5257. * src/usage_text.h
  5258. * src/DownloadEngineFactory.cc
  5259. * src/OptionHandlerFactory.cc
  5260. * src/message.h
  5261. * src/TimedHaltCommand.cc
  5262. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Make listening socket non-block mode.
  5264. * src/FtpConnection.cc
  5265. * src/FtpNegotiationCommand.{h, cc}
  5266. * src/PeerListenCommand.cc
  5267. Fixed the bug that cause slow ftp negotiation.
  5268. * src/FtpNegotiationCommand.{h, cc}
  5269. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Added basic tag to --enable-dht, --dht-listen-port option.
  5271. * src/HelpItemFactory.cc (createHelpItems)
  5272. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Updated text.
  5274. * src/usage_text.h
  5275. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5277. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Determin _threadtholdSpeed in each constructor for
  5279. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5280. * src/ActivePeerConnectionCommand.{h, cc}
  5281. * src/PeerReceiveHandshakeCommand.{h, cc}
  5282. * src/BtSetup.cc
  5283. * src/BtConstants.h
  5284. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Added --bt-min-crypto-level and --bt-require-crypto options.
  5286. * src/OptionHandlerFactory.cc
  5287. * src/MSEHandshake.cc
  5288. * src/HelpItemFactory.cc
  5289. * src/option_processing.cc
  5290. * src/ReceiverMSEHandshakeCommand.cc
  5291. * src/prefs.h
  5292. * src/DefaultBtAnnounce.cc
  5293. * src/InitiatorMSEHandshakeCommand.cc
  5294. * src/usage_text.h
  5295. * test/MSEHandshakeTest.cc
  5296. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Bump version number to 0.13.0b
  5298. * configure.ac
  5299. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5300. Updated doc.
  5301. * src/MessageDigestHelper.h:
  5302. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Use raw message digest as a token instead of its hexadecimal
  5304. representation.
  5305. * src/DHTTokenTracker.cc (generateToken)
  5306. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Added Message Stream Encryption(MSE) support.
  5308. Currently, aria2 accepts incoming connections with Obfuscation Header
  5309. and legacy BitTorrent Header and establishes connections with
  5310. Obfuscation Header first and if failed then retry with legacy
  5311. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5312. choose ARC4. The new option to change the default behavior is planned.
  5313. For tracker extension, "supportcrypto=1" is added statically.
  5314. * src/PeerInitiateConnectionCommand.{h, cc}
  5315. * src/PeerConnection.{h, cc}
  5316. * src/HandleRegistry.h
  5317. * src/SocketCore.h
  5318. * src/PeerReceiveHandshakeCommand.{h, cc}
  5319. * src/BtRegistry.{h, cc}
  5320. * src/PeerListenCommand.cc
  5321. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5322. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5323. * src/MSEHandshake.{h, cc}
  5324. * src/ARC4Encryptor.h
  5325. * src/ARC4Decryptor.h
  5326. * src/LibgcryptARC4Encryptor.h
  5327. * src/LibgcryptARC4Decryptor.h
  5328. * src/LibgcryptARC4Context.h
  5329. * src/LibsslARC4Encryptor.h
  5330. * src/LibsslARC4Decryptor.h
  5331. * src/LibsslARC4Context.h
  5332. * src/DHKeyExchange.h
  5333. * src/LibgcryptDHKeyExchange.h
  5334. * src/LibsslDHKeyExchange.h
  5335. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5336. * test/DefaultBtAnnounceTest.cc
  5337. * test/ARC4Test.cc
  5338. * test/DHKeyExchangeTest.cc
  5339. Removed prepareForRetry() because it is not used.
  5340. * src/PeerAbstractCommand.{h, cc}
  5341. * src/PeerInteractionCommand.{h, cc}
  5342. * src/PeerInitiateConnectionCommand.{h, cc}
  5343. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Added the ability to load nodes from torrent file. These nodes are
  5345. added to the routing table when downloading that torrent.
  5346. * src/BtContext.h
  5347. * src/DefaultBtContext.{h, cc}
  5348. * src/DHTSetup.cc
  5349. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5350. hostname and port pair, and resolves all of them.
  5351. * src/NameResolver.{h, cc}: Added reset().
  5352. * src/RequestGroup.cc
  5353. * test/DefaultBtContextTest.cc
  5354. * test/MockBtContext.h
  5355. Removed assert() from DefaultBtContext and throw exception instead.
  5356. * src/DefaultBtContext.cc
  5357. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Fixed segmentation fault bug when exiting if dht is disabled.
  5359. * src/RequestGroup.cc
  5360. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Fixed typo in log message and define the message in message.h
  5362. * src/TimedHaltCommand.cc
  5363. * src/message.h
  5364. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Included RecoverableException.h to fix compilation error.
  5366. * test/DHTMessageFactoryImplTest.cc
  5367. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5369. * test/DHTPingMessageTest.cc
  5370. * test/DHTGetPeersMessageTest.cc
  5371. * test/DHTFindNodeMessageTest.cc
  5372. * test/DHTAnnouncePeerMessageTest.cc
  5373. * test/MockDHTMessage.h
  5374. * test/MockDHTMessageFactory.h
  5375. * test/MockDHTMessageDispatcher.h: New class.
  5376. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5378. virtual.
  5379. * src/DHTMessageDispatcher.h
  5380. * src/DHTMessageDispatcherImpl.{h, cc}
  5381. * src/DHTSetup.cc
  5382. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Adding handling of DHT error message. Just log error message and
  5384. throw exception.
  5385. * src/DHTMessageFactoryImpl.cc
  5386. * test/DHTMessageFactoryImplTest.cc
  5387. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Added handling of dynamic cast failure.
  5389. * src/DHTNodeLookupTask.cc
  5390. * src/DHTPeerLookupTask.cc
  5391. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Added the ability to stop aria2 itself when given time has passed
  5393. from start. Use --stop option to specify time in minutes.
  5394. When 0 is given, this feature is disabled.
  5395. * src/OptionHandlerFactory.cc
  5396. * src/TimeBasedCommand.h: Make _interval protected scope.
  5397. * src/HelpItemFactory.cc
  5398. * src/option_processing.cc
  5399. * src/prefs.h
  5400. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5401. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5402. Without this modification, the result list shows "ERR" when aria2 is
  5403. stopped by --stop option. It should be "INPR".
  5404. * src/DownloadEngine.{h, cc}
  5405. * src/DownloadEngineFactory.cc
  5406. * src/usage_text.h
  5407. * src/TimedHaltCommand.{h, cc}: New class.
  5408. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Bootstrap through node added by port message.
  5410. Currently bootstrap is executed if the number of buckets in routing
  5411. table is 1.
  5412. * src/BtPortMessage.{h, cc}
  5413. * src/DefaultBtMessageFactory.{h, cc}
  5414. * src/PeerInteractionCommand.cc
  5415. * test/BtPortMessageTest.cc
  5416. * test/MockDHTTask.h
  5417. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Extract the Peer class's member variables, which are only needed after
  5419. PeerInteractionCommand, into PeerSessionResource class.
  5420. This class is instantiated in PeerInteractionCommand class's ctor and
  5421. released in its dtor.
  5422. This will make Peer class lightweight and uses less memory for peers
  5423. which are not connected and wait in the queue.
  5424. * src/PeerChokeCommand.cc
  5425. * src/PeerSessionResource.{h, cc}
  5426. * src/PeerInteractionCommand.cc
  5427. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5428. * src/DefaultBtInteractive.cc
  5429. * src/BtPieceMessage.cc
  5430. * src/BtInterestedMessage.cc
  5431. * src/BtUnchokeMessage.cc
  5432. * src/DefaultPeerStorage.{h, cc}
  5433. * src/PeerInitiateConnectionCommand.cc
  5434. * src/ActivePeerConnectionCommand.cc
  5435. * src/BtNotInterestedMessage.cc
  5436. * src/DefaultBtMessageDispatcher.cc
  5437. * src/BtChokeMessage.cc
  5438. * src/BtRequestMessage.cc
  5439. * src/Peer.{h, cc}
  5440. * src/BtRegistry.h
  5441. * src/TrackerWatcherCommand.cc
  5442. * src/PeerReceiveHandshakeCommand.cc
  5443. * test/BtExtendedMessageTest.cc
  5444. * test/BtAllowedFastMessageTest.cc
  5445. * test/BtCancelMessageTest.cc
  5446. * test/DefaultPieceStorageTest.cc
  5447. * test/BtBitfieldMessageTest.cc
  5448. * test/BtHaveMessageTest.cc
  5449. * test/BtNotInterestedMessageTest.cc
  5450. * test/BtRequestMessageTest.cc
  5451. * test/PeerSessionResourceTest.cc
  5452. * test/DefaultBtMessageDispatcherTest.cc
  5453. * test/PeerTest.cc
  5454. * test/BtInterestedMessageTest.cc
  5455. * test/BtRejectMessageTest.cc
  5456. * test/BtChokeMessageTest.cc
  5457. * test/DefaultPeerStorageTest.cc
  5458. * test/BtHaveNoneMessageTest.cc
  5459. * test/BtHaveAllMessageTest.cc
  5460. * test/DefaultExtensionMessageFactoryTest.cc
  5461. * test/BtUnchokeMessageTest.cc
  5462. * test/DefaultBtMessageFactoryTest.cc
  5463. * test/HandshakeExtensionMessageTest.cc
  5464. * test/UTPexExtensionMessageTest.cc
  5465. * test/DefaultBtRequestFactoryTest.cc
  5466. * test/BtPieceMessageTest.cc
  5467. Removed typedef PeerStats.
  5468. * src/PeerStat.h
  5469. * src/SegmentMan.cc
  5470. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Added std namespace to copy, remove_copy, back_inserter,
  5472. front_inserter.
  5473. * src/RequestGroupMan.cc
  5474. * src/DefaultPieceStorage.cc
  5475. * src/StreamFileAllocationEntry.cc
  5476. * src/BtFileAllocationEntry.cc
  5477. * src/RequestGroup.cc
  5478. * src/MetalinkEntry.cc
  5479. * src/DelegatingPeerListProcessor.cc
  5480. * src/DefaultBtRequestFactory.cc
  5481. * src/DefaultBtMessageDispatcher.cc
  5482. * src/version_usage.cc: Included <algorithm>
  5483. * src/main.cc
  5484. * src/MetalinkParserController.cc
  5485. * src/DefaultBtContext.cc
  5486. * src/DownloadEngineFactory.cc
  5487. * src/a2algo.h
  5488. Removed.
  5489. * test/StreamUriListParserTest.cc
  5490. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5492. ActivePeerConnectionCommand when it is given and
  5493. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5494. * src/ActivePeerConnectionCommand.{h, cc}
  5495. * src/BtSetup.cc
  5496. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Only add socket to DownloadEngine's select routine when peer or
  5498. localhost is unchoked and interested. This lowers CPU usage a
  5499. little bit.
  5500. * src/PeerInteractionCommand.cc
  5501. * src/PeerAbstractCommand.{h, cc}
  5502. * src/BtInteractive.h
  5503. * src/DefaultBtInteractive.{h, cc}
  5504. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5505. Revert previous change because get_peers message is needed for
  5506. announce_peer anyway.
  5507. * src/DHTGetPeersCommand.cc
  5508. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Request peers thought DHT only when download hasn't finished.
  5510. * src/DHTGetPeersCommand.cc
  5511. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5513. * src/DHTBucketRefreshTask.{h, cc}
  5514. * src/DHTSetup.cc
  5515. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5517. standard classes.
  5518. Included string.h where mem* function are used.
  5519. Added namespace aria2.
  5520. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Create directory before saving DHT routing table.
  5522. Now ios::failure is now handled properly.
  5523. * src/DHTAutoSaveCommand.cc
  5524. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5525. Removed unnecessary cerr.
  5526. * src/DownloadEngine.cc
  5527. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. Catch exception inside DHTMessageReceiver::receiveMessage().
  5529. Log unknown message.
  5530. * src/DHTMessageReceiver.{h, cc}
  5531. * src/DHTMessageFactory.h
  5532. * src/DHTMessageFactoryImpl.{h, cc}
  5533. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5534. * src/DHTInteractionCommand.cc
  5535. * src/DHTUnknownMessage.{h, cc}
  5536. * test/DHTUnknownMessageTest.cc
  5537. * test/MockDHTMessageFactory.h
  5538. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5539. Commented out ip address comparison because a host can have multiple
  5540. ip addresses and it is hard to predict the hostname is resolved into
  5541. which one.
  5542. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5543. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. * po/Makefile.in: Removed since this is generated by configure.
  5545. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Fixed compiler warning about redefinition of SIZE_MAX.
  5547. Use common.h instead of config.h directly here.
  5548. * src/Platform.{h, cc}
  5549. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5550. here.
  5551. * common.h
  5552. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5553. Updated gettext related files.
  5554. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5555. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5556. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Added DHT functionality, compatible with mainline.
  5558. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5559. You may need to specify entry point to DHT network using
  5560. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5561. Use --dht-listen-port to specify port number. Make sure that your
  5562. firewall configuration can pass through UDP traffic to the port.
  5563. The routing table is saved in $HOME/.aria2/dht.dat.
  5564. * src/DHT*
  5565. * src/BNode.{h, cc}
  5566. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5567. particular torrent.
  5568. * src/Data.cc: Rewritten ctor.
  5569. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5570. --dht-entry-point.
  5571. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5572. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5573. ends, remove BtContext from DHTPeerAnnounceStorage.
  5574. * src/BtPortMessage.{h, cc}: Rewritten.
  5575. * src/message.h
  5576. * src/OptionHandlerImpl.cc
  5577. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5578. --dht-entry-point.
  5579. * src/Dictionary.{h, cc} (remove): New function.
  5580. * src/prefs.h
  5581. * src/DefaultBtMessageFactory.h
  5582. * src/BtHandshakeMessage.cc
  5583. * src/ActivePeerConnectionCommand.cc
  5584. * src/SocketCore.{h, cc}: Added datagram socket support.
  5585. * src/DefaultBtMessageFactory.cc
  5586. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5587. Create DHT commands.
  5588. * src/BtMessageFactory.h
  5589. * src/PeerMessageUtil.{h, cc}
  5590. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5591. Fixed the bug that log file is not written when configuration file doesn't exist.
  5592. This is caused by using Logger class before LogFactory is not configured.
  5593. BUG #1875079
  5594. * src/option_processing.cc
  5595. Warning message "configuration doesn't exist" is only printed when --conf is
  5596. given.
  5597. * src/option_processing.cc
  5598. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5600. ShaVisitor is now deprecated and slated to be removed.
  5601. * src/DefaultBtContext.cc
  5602. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Externalize message to message.h
  5604. * src/Platform.cc
  5605. * src/message.h
  5606. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Set default domain and default path to cookie.
  5608. * src/HttpResponse.cc
  5609. * src/CookieBox.{h, cc}
  5610. * src/CookieParser.{h, cc}
  5611. * test/CookieParserTest.cc
  5612. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. Added --no-conf and --conf-path command-line option.
  5614. --no-conf option disables loading aria2.conf file.
  5615. --conf-path option changes the configuration file path. The default
  5616. file path is $HOME/.aria2/aria2.conf
  5617. Added a warning message when the configuration file is not found.
  5618. * src/HelpItemFactory.cc
  5619. * src/option_processing.cc
  5620. * src/prefs.h
  5621. * src/usage_text.h
  5622. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Added the message to inform users that other help categories are
  5624. available in -h option.
  5625. * src/version_usage.cc
  5626. * src/TagContainer.{h, cc}
  5627. * test/TagContainerTest.cc
  5628. * src/TaggedItem.{h, cc}
  5629. * test/TaggedItemTest.cc
  5630. * src/HelpItem.h
  5631. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5633. from PiecedSegment's ctor.
  5634. Previously Piece::getAllMissingBlockIndexes() is called from
  5635. PiecedSegment() but it is rather expensive since only first element is
  5636. used.
  5637. * src/PiecedSegment.cc
  5638. * src/Piece.{h, cc}
  5639. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5641. each time these functions are called.
  5642. * src/BitfieldMan.{h, cc}
  5643. * test/BitfieldManTest.cc
  5644. * src/array_fun.h
  5645. * test/array_funTest.cc
  5646. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5647. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5648. filtered. Removed unnecessary cast to int32_t.
  5649. * src/BitfieldMan.{h, cc}
  5650. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5652. payload length(4bytes) are received. This happens because lenbufLength
  5653. is not updated in this particular case and successive call of
  5654. receiveMessage() overwrites payload length with bytes recieved which
  5655. are payload body.
  5656. * src/PeerConnection.{h, cc}
  5657. * src/message.h
  5658. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5660. peer if there are peers that have same ipaddr and port.
  5661. I've experiened segmentation fault and "pure virtual function was
  5662. called" error.
  5663. * src/Peer.h
  5664. * test/PeerTest.cc
  5665. * src/DefaultPeerStorage.cc
  5666. * test/DefaultPeerStorageTest.cc
  5667. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5668. Removed a call to isPowerOf() because it is no longer necessary here
  5669. and a request block is not always power of 2.
  5670. BUG#1866924
  5671. * src/PeerMessageUtil.cc (checkLength)
  5672. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Fixed the bug that always first found Segment is removed from
  5674. usedSegmentEntries. Removed unused functions.
  5675. * src/SegmentMan.{h, cc}
  5676. * test/SegmentManTest.cc
  5677. Fixed the bug that ServerHost is not removed.
  5678. * src/RequestGroup.cc
  5679. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Fixed the bug that SegmentMan::completeSegment() is not called
  5681. even if Segment is complete when --lowest-speed-limit is enabled.
  5682. BUG#1864525
  5683. * src/DownloadCommand.{h, cc}
  5684. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Fixed: hash algorithm 'sha1' is always used.
  5686. * src/DownloadCommand.cc (validatePieceHash)
  5687. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Added --enable-peer-exchange command-line option.
  5689. * src/OptionHandlerFactory.cc
  5690. * src/HelpItemFactory.cc
  5691. * src/option_processing.cc
  5692. * src/usage_text.h
  5693. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Move extension from BtRuntime to ExtensionMessageFactory, because
  5695. extension can be specified per peer, not per torrent.
  5696. * src/DefaultBtInteractive.cc
  5697. * src/BtRuntime.h
  5698. * src/ExtendedMessagingAware.h
  5699. * src/ExtensionMessageFactory.h
  5700. * src/DefaultExtensionMessageFactory.cc
  5701. * test/DefaultExtensionMessageFactoryTest.cc
  5702. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Added categorized option help. Specify category using --help option.
  5704. Also added the ability to search options in forward match.
  5705. * src/HelpItem.{h, cc}
  5706. * test/HelpItemTest.cc
  5707. * src/HelpItemFactory.{h, cc}
  5708. * src/TagContainer.{h, cc}
  5709. * test/TagContainerTest.cc
  5710. * src/option_processing.cc
  5711. * src/prefs.h
  5712. * src/TaggedItem.{h, cc}
  5713. * test/TaggedItemTest.cc
  5714. * src/version_usage.cc
  5715. * src/help_tags.h
  5716. * src/usage_text.h
  5717. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Fixed segmentation fault when bad torrent metainfo is parsed.
  5719. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5720. and then throw exception or skip it.
  5721. * src/DefaultBtContext.{h, cc}
  5722. * test/DefaultBtContextTest.cc
  5723. * src/AnnounceList.cc
  5724. * src/CompactPeerListProcessor.cc
  5725. * src/message.h
  5726. * src/DefaultBtAnnounce.{h, cc}
  5727. * test/DefaultBtAnnounceTest.cc
  5728. * src/BencodeVisitor.cc
  5729. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5730. Added missing "B"(=Byte). So now the message looks like this:
  5731. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5732. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5733. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Show the seed ratio after torrent downloads.
  5735. For example, after torrent download completed and --seed-time and
  5736. --seed-ratio conditions are fulfilled, following message is printed
  5737. right after "Download complete: .....":
  5738. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5739. * src/RequestGroupMan.cc
  5740. * src/RequestGroup.{h, cc}
  5741. * src/message.h
  5742. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Remove a defunct control file. A defunct control file means that while
  5744. it exists, but the corresponding download file is missing.
  5745. After its removal, a download restarts from the beginning.
  5746. * src/RequestGroup.cc
  5747. * src/message.h
  5748. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Allocate bitfield in Peer when it is really used. More specifically,
  5750. bitfield in Peer is allocated after the connection is established and
  5751. deallocated when the connection is dropped.
  5752. Since 2 parameters(piece length and total length) was removed from the
  5753. constructor of Peer class, many test classes were modified accordingly.
  5754. See svn log for more detailed information.
  5755. * src/PeerInteractionCommand.cc
  5756. * src/CompactPeerListProcessor.cc
  5757. * src/Peer.cc
  5758. * src/DefaultPeerListProcessor.cc
  5759. * src/PeerListenCommand.cc
  5760. * src/PeerReceiveHandshakeCommand.cc
  5761. Fixed memory leak
  5762. * src/Piece.cc
  5763. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5764. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5765. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5766. command-line options.
  5767. * src/option_processing.cc
  5768. * src/ActivePeerConnectionCommand.cc
  5769. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Send have message to peer if it already has the piece.
  5771. * src/BtHaveMessage.{h, cc}
  5772. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5774. port.
  5775. * src/DefaultPeerStorage.{h, cc}
  5776. * test/DefaultPeerStorageTest.cc
  5777. * src/HandshakeExtensionMessage.cc
  5778. * test/HandshakeExtensionMessageTest.cc
  5779. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5780. * src/PeerStorage.h
  5781. * test/MockPeerStorage.h
  5782. * src/PeerListenCommand.cc
  5783. * src/PeerReceiveHandshakeCommand.cc
  5784. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Added --metalink-enable-unique-protocol option.
  5786. * src/Metalink2RequestGroup.cc
  5787. * src/option_processing.cc
  5788. * src/prefs.h
  5789. * src/version_usage.cc
  5790. * doc/aria2c.1.txt
  5791. * doc/aria2c.1
  5792. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Allow a peer in incomingPeer to be added peers.
  5794. * src/DefaultPeerStorage.cc
  5795. * test/DefaultPeerStorageTest.cc
  5796. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5798. I could reproduce this bug in following procedure:
  5799. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5800. 2. Restart aria2.
  5801. 3. You see the download stopped around 99%.
  5802. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5803. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5804. If timeout is reached, then _nextCommand is unused and it may contains
  5805. segments and they won't be canceled. Actually, timeout is not needed
  5806. here because if the server dropped connection, then retry is made.
  5807. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Added uTorrent compatible Peer Exchange.
  5809. * src/BencodeVisitor.{h, cc}
  5810. * test/BencodeVisitorTest.cc
  5811. * src/BtConstants.h
  5812. * src/BtContext.h: Added 'private' flag.
  5813. * src/BtExtendedMessage.{h, cc}
  5814. * test/BtExtendedMessageTest.cc
  5815. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5816. reserved field.
  5817. * test/BtHandshakeMessageTest.cc
  5818. * src/BtMessageFactory.h
  5819. * src/BtRegistry.h
  5820. * src/BtRuntime.h: This class holds default extension message IDs for
  5821. aria2. By default, aria2 uses ID 8 for ut_pex.
  5822. * src/DefaultBtContext.cc
  5823. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5824. When it is true, aria2 enables ut_pex. This value is set by
  5825. PeerInteractionCommand.
  5826. * src/DefaultBtMessageFactory.{h, cc}
  5827. * test/DefaultBtMessageFactoryTest.cc
  5828. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5829. handling to DefaultBtInteractive class.
  5830. * src/DefaultExtensionMessageFactory.{h, cc}
  5831. * test/DefaultExtensionMessageFactoryTest.cc
  5832. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5833. the container(peers and incomingPeers. The equality is determined by
  5834. Peer::id).
  5835. * test/DefaultPeerStorageTest.cc
  5836. * src/ExtensionMessage.h
  5837. * test/MockExtensionMessage.h
  5838. * src/ExtensionMessageFactory.h
  5839. * test/MockExtensionMessageFactory.h
  5840. * src/HandshakeExtensionMessage.{h, cc}
  5841. * test/HandshakeExtensionMessageTest.cc
  5842. * src/MetaEntry.h
  5843. * src/Peer.{h, cc}
  5844. * src/PeerInteractionCommand.cc
  5845. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5846. addIncomingPeer.
  5847. * src/PeerMessageUtil.{h, cc}
  5848. * src/PeerObject.h
  5849. * src/UTPexExtensionMessage.{h, cc}
  5850. * test/UTPexExtensionMessageTest.cc
  5851. * src/message.h
  5852. * src/prefs.h
  5853. Fixed the bug that returns incomplete data when it contains null
  5854. character. A convenient constructor was also added.
  5855. * src/Data.{h, cc}
  5856. Rewritten.
  5857. * src/CompactPeerListProcessor.cc
  5858. Fixed typos.
  5859. * src/message.h
  5860. * src/MetaFileUtil.cc
  5861. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Added "Status Legend" label to the explanation text of 'stat' in
  5863. download result and moved it to the last. BUG#1848214
  5864. * src/RequestGroupMan.cc
  5865. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5867. * src/Makefie.am
  5868. * test/Makefile.am
  5869. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Fixed the bug that prevents aria2 from loading cookie file when expire
  5871. value is greater than 2^31-1. BUG#1851066
  5872. * src/CookieBoxFactory.cc
  5873. * test/CookieBoxFactoryTest.cc
  5874. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Fixed possible memory leak when an exception is thrown.
  5876. * src/XML2SAXMetalinkProcessor.cc
  5877. Added Expat support. If both libxml2 and Expat are installed, then
  5878. libxml2 is used by default.
  5879. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5880. ExpatMetalinkProcessor according to the configuration.
  5881. * src/ExpatMetalinkProcessor.{h, cc}
  5882. * src/main.cc: Removed libxml2 specific header and init/free function.
  5883. * src/MetalinkProcessorFactory.{h, cc}
  5884. * src/MetalinkHelper.cc
  5885. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5886. * src/MetalinkProcessor.h
  5887. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5888. MetalinkProcessorTest is used instead.
  5889. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5890. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5891. MetalinkProcessorFactory::newInstance().
  5892. * m4/libexpat.m4
  5893. * configure.ac: Added configuration options for libexpat.
  5894. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. Disabled -s option in metalink download.
  5896. * src/Metalink2RequestGroup.cc
  5897. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. If several protocols are available for a mirror in metalink file,
  5899. aria2 now use one of them. --metalink-preferred-protocol option was
  5900. added to specify the preference of protocol.
  5901. * src/AbstractCommand.cc
  5902. * src/OptionHandlerFactory.cc
  5903. * src/ServerHost.{h, cc}
  5904. * src/Metalink2RequestGroup.cc
  5905. * src/RequestGroup.{h, cc}
  5906. * test/RequestGroupTest.cc
  5907. * src/option_processing.cc
  5908. * src/prefs.h
  5909. * src/HttpResponseCommand.cc
  5910. * src/MetalinkResource.{h, cc}
  5911. * src/FtpNegotiationCommand.cc
  5912. * src/MetalinkEntry.{h, cc}
  5913. * src/MetalinkEntryTest.cc
  5914. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. Code cleanup and added debug log.
  5916. * src/PeerConnection.cc
  5917. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Compiler error fix: applied the patch by Tiziano Mueller
  5919. * src/RequestGroup.cc
  5920. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Fixed the bug: only first announce URL is tried in AnnounceTier,
  5922. in stopped and completed event.
  5923. * src/AnnounceList.{h, cc}
  5924. * test/AnnounceListTest.cc
  5925. * src/DefaultBtAnnounce.cc
  5926. * test/DefaultBtAnnounceTest.cc
  5927. Sorted URLs.
  5928. * test/Metalink2RequestGroupTest.cc
  5929. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Removed unnecessary string copy. Updated doc and corrected indentation.
  5931. * src/Base64.cc
  5932. Fixed compilation warnings
  5933. * test/DataTest.cc
  5934. * test/HttpRequestTest.cc
  5935. * test/MetaFileUtilTest.cc
  5936. * test/RequestTest.cc
  5937. * Release 0.12.0
  5938. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Updated translations
  5940. * po/{de,fr,ja,nl,ru}.po
  5941. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  5942. translations. Many thanks to translators.
  5943. * po/{ca,es,it,pt_BR,sv}.po
  5944. * po/LINGUAS
  5945. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5946. Added a notice about URL
  5947. * src/version_usage.cc
  5948. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5949. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5950. aria2 repeatedly sends stopped request when tracker returns error code.
  5951. * src/AnnounceList.cc
  5952. * test/AnnounceListTest.cc
  5953. * src/AnnounceTier.h
  5954. Added a message when ctrl-c is hit.
  5955. Now second ctrl-c is also handled in signal handler.
  5956. * src/RequestGroupMan.{h, cc}
  5957. * src/RequestGroup.{h, cc}
  5958. * src/MultiUrlRequestInfo.cc
  5959. * src/DownloadEngine.cc
  5960. * src/TrackerWatcherCommand.cc
  5961. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Code cleanup
  5963. * src/Base64.cc (encode)
  5964. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Changed Direct/IO enable/disable procesure in file allocation routine.
  5966. * src/SingleFileAllocationIterator.cc
  5967. (SingleFileAllocationIterator):
  5968. Disable directIO if offset is not multiple of 512.
  5969. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5970. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5971. Enable created SingleFileAllocationIterator's directIO.
  5972. * src/FileAllocationEntry.cc
  5973. (FileAllocationEntry): Enable directIO here.
  5974. (~FileAllocationEntry): Disable directIO here.
  5975. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5977. * src/Peer.{h, cc}
  5978. * src/DefaultPieceStorage.cc
  5979. * test/DefaultPieceStorageTest.cc
  5980. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Rewritten direct I/O support routine
  5982. * src/SingleFileAllocationIterator.cc
  5983. * src/MultiDiskAdaptor.{h, cc}
  5984. * src/ByteArrayDiskWriter.h
  5985. * src/AbstractSingleDiskAdaptor.h
  5986. * src/AbstractDiskWriter.cc
  5987. * src/DefaultPieceStorage.cc
  5988. * src/DiskWriter.h
  5989. * src/BinaryStream.h
  5990. * src/IteratableChunkChecksumValidator.cc
  5991. * src/IteratableChecksumValidator.cc
  5992. * src/CheckIntegrityEntry.cc
  5993. * src/FileAllocationEntry.cc
  5994. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Fixed typo
  5996. * src/version_usage.cc
  5997. Updated doc
  5998. * doc/aria2c.1.txt
  5999. * doc/aria2c.1
  6000. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Fixed compile error without message digest support.
  6002. * src/FileMetalinkParserState.cc
  6003. * src/MetalinkParserController.{h, cc}
  6004. * test/XML2SAXMetalinkProcessorTest.cc
  6005. * test/MetalinkParserControllerTest.cc
  6006. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Enable direct I/O support in checksum checking.
  6008. * src/IteratableChunkChecksumValidator.{h, cc}
  6009. * test/IteratableChunkChecksumValidatorTest.cc
  6010. * src/CheckIntegrityEntry.cc
  6011. * src/PieceHashCheckIntegrityEntry.cc
  6012. * src/IteratableChecksumValidator.{h, cc}
  6013. * src/BtCheckIntegrityEntry.cc: Added doc.
  6014. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Added --allow-piece-length-change option.
  6016. * src/DefaultBtProgressInfoFile.cc
  6017. * test/DefaultBtProgressInfoFileTest.cc
  6018. * src/OptionHandlerFactory.cc
  6019. * src/option_processing.cc
  6020. * src/prefs.h
  6021. * src/version_usage.cc
  6022. * doc/aria2c.1.txt
  6023. * doc/aria2c.1
  6024. Fixed: duplicated result entry appears when exception is thrown in
  6025. RequestGroup::createInitiateConnectionCommand().
  6026. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6027. Add RequestGroup to _requestGroup after RequetGroup::
  6028. createInitiateConnectionCommand() succeeds.
  6029. Externalized message
  6030. * src/XML2SAXMetalinkProcessor.cc
  6031. * src/message.h
  6032. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6033. Forced download abort when received negative response from http/ftp
  6034. server.
  6035. * src/HttpResponseCommand.cc
  6036. * src/FtpNegotiationCommand.cc
  6037. * src/HttpResponse.cc
  6038. * src/FtpConnection.cc
  6039. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6041. the predecessor, Xml2MetalinkParser class.
  6042. I tested them against 94KB metalink file with 1234 chunk checksums.
  6043. The new one parsed it in 22msec, while it took 6000msec with old one.
  6044. * src/XML2SAXMetalinkProcessor.{h, cc}
  6045. * test/XML2SAXMetalinkProcessorTest.cc
  6046. * src/MetalinkParserController.{h, cc}
  6047. * test/MetalinkParserControllerTest.cc
  6048. * src/MetalinkParserState.h: Also added 16 subclasses.
  6049. * src/main.cc
  6050. * src/Metalink2RequestGroup.cc
  6051. * src/MetalinkHelper.cc
  6052. * src/MetalinkEntry.cc
  6053. * src/ChunkChecksum.h
  6054. Rewritten Base64 class for better performance.
  6055. * src/Base64.{h, cc}
  6056. * test/Base64Test.cc
  6057. * src/HttpRequest.cc
  6058. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Fixed the bug#1841757: aria2 will connect to server to only get
  6060. file size.
  6061. * src/StreamFileAllocationEntry.cc
  6062. * src/option_processing.cc
  6063. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6064. downloads.
  6065. * src/FtpNegotiationCommand.cc
  6066. Suppressed wrong message when finding PreDownloadHandler
  6067. * src/RequestGroup.cc
  6068. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Updated usage
  6070. * src/version_usage.cc
  6071. Updated man page
  6072. * doc/aria2c.1.txt
  6073. * doc/aria2c.1
  6074. Updated po files
  6075. * po/aria2c.pot
  6076. * po/*.po
  6077. * po/*.gmo
  6078. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Eliminated g++-4.2 warning
  6080. * src/DownloadHandlerConstants.{h, cc}
  6081. * src/Util.cc
  6082. * test/MetaFileUtilTest.cc
  6083. * test/PStringBuildVisitorTest.cc
  6084. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6085. * src/RequestGroup.cc
  6086. * src/BtCheckIntegrityEntry.cc
  6087. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. Fixed a2io.h
  6089. * src/a2io.h
  6090. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Added direct I/O support. The current implementation uses O_DIRECT,
  6092. which is not posix standard and is tested on linux 2.6.21.
  6093. Currently only file allocation uses direct I/O.
  6094. * src/SingleFileAllocationIterator.{h, cc}
  6095. * test/SingleFileAllocationIteratorTest.cc
  6096. * src/MultiFileAllocationIterator.{h, cc}
  6097. * test/MultiFileAllocationIteratorTest.cc
  6098. * src/BinaryStream.h
  6099. * src/DiskWriter.h
  6100. * src/AbstractDiskWriter.{h, cc}
  6101. * src/ByteArrayDiskWriter.h
  6102. * src/DiskAdaptor.h
  6103. * src/AbstractSingleDiskAdaptor.{h, cc}
  6104. * src/MultiDiskAdaptor.{h, cc}
  6105. * src/FileAllocationEntry.cc
  6106. * src/Util.{h, cc}
  6107. * src/OptionHandlerFactory.cc
  6108. * src/prefs.h
  6109. * src/version_usage.cc
  6110. * src/option_processing.cc
  6111. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6112. handleException.
  6113. * src/MultiFileAllocationIterator.cc
  6114. Added EINTR handling
  6115. * src/SocketCore.cc
  6116. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Updated usage
  6118. * src/version_usage.cc
  6119. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Applied Ross's patch for MinGW port.
  6121. * src/DownloadEngine.h
  6122. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Set Content-Type to SingleFileDownloadContext when http response is
  6124. received.
  6125. * src/HttpResponseCommand.cc
  6126. * src/HttpResponse.{h, cc}
  6127. * test/HttpResponseTest.cc
  6128. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6129. Rewritten to add content-type support.
  6130. * src/DownloadHandler.{h, cc}
  6131. * src/BtPostDownloadHandler.{h, cc}
  6132. * test/BtPostDownloadHandlerTest.cc
  6133. * src/MetalinkPostDownloadHandler.{h, cc}
  6134. * test/MetalinkPostDownloadHandlerTest.cc
  6135. * src/PostDownloadHandler.{h, cc}
  6136. * src/DownloadHandlerConstants.{h, cc}
  6137. * src/RequestGroup.cc
  6138. * src/HttpResponseCommand.cc
  6139. * src/FtpNegotiationCommand.cc
  6140. * src/SingleFileDownloadContext.{h, cc}
  6141. * src/RequestGroup.h
  6142. * src/RequestGroupCriteria.h
  6143. * src/ContentTypeRequestGroupCriteria.h
  6144. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6145. If it is give, metalink/torrent file is not written to the disk, but
  6146. just is kept in memory. Parsing is occurred on memory.
  6147. * src/MetalinkHelper.{h, cc}
  6148. * src/MetalinkProcessor.h
  6149. * src/Xml2MetalinkProcessor.{h, cc}
  6150. * test/Xml2MetalinkProcessorTest.cc
  6151. * src/DownloadHandlerFactory.{h, cc}
  6152. * test/DownloadHandlerFactoryTest.cc
  6153. * src/PreDownloadHandler.{h, cc}
  6154. * src/OptionHandlerFactory.cc
  6155. * src/DefaultBtContext.{h, cc}
  6156. * test/DefaultBtContextTest.cc
  6157. * src/version_usage.cc
  6158. * src/Metalink2RequestGroup.{h, cc}
  6159. * src/RequestGroup.{h, cc}
  6160. * src/a2functional.h
  6161. * test/a2functionalTest.cc
  6162. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6163. * src/OptionHandlerImpl.h
  6164. * src/prefs.h
  6165. * src/Util.{h, cc}
  6166. * test/UtilTest.cc
  6167. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6168. memory usage.
  6169. * src/RequestGroupMan.{h, cc}
  6170. * src/DownloadEngine.cc
  6171. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6172. WeakHandle to SharedHandle because WeakHandle could be null.
  6173. * src/RequestGroup.{h, cc}
  6174. * src/DownloadEngineFactory.cc
  6175. * src/DownloadResult.h
  6176. Set totalLength after download finished
  6177. * src/UnknownLengthPieceStorage.{h, cc}
  6178. Keep torrent file specified in metalink in memory.
  6179. * src/Metalink2RequestGroup.cc
  6180. * src/BtDependency.cc
  6181. * src/TrueRequestGroupCriteria.h
  6182. Fixed the bug: seekg is used where seekp should be used.
  6183. * src/ByteArrayDiskWriter.cc
  6184. * test/ByteArraydiskWriterTest.cc
  6185. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Fixed syntax error
  6187. * test/SequenceTest.cc
  6188. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6190. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6191. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6192. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6193. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6194. Added the check to see whether ares_host_callback accepts timeouts
  6195. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6196. * src/NameResolver.{h, cc}
  6197. * m4/libcares.m4
  6198. * configure.ac: Set C++ for language choice.
  6199. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Fixed: compilation fails without c-ares/ares
  6201. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6202. Generate http/ftp commands only when download is incomplete.
  6203. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6204. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Corrected typo. Examples are removed since they are available in man
  6206. page.
  6207. * src/version_usage.cc
  6208. Updated man page.
  6209. * doc/aria2c.1
  6210. * doc/aria2c.1.txt
  6211. * doc/makeman: Commented out sed command.
  6212. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Throw DlAbortEx when a remote file is not found.
  6214. * src/HttpResponse.cc
  6215. * src/FtpNegotiationCommand.cc
  6216. * src/message.h
  6217. Overwrite an existing file if --allow-overwrite=true is given.
  6218. * src/RequestGroup.cc
  6219. Removed unused functions
  6220. * src/AbstractCommand.h
  6221. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. Removed 'extern' from 'extern typedef ...' in src/*.h
  6223. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6224. Updated usage
  6225. * src/version_usage.cc
  6226. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Trim announce URL
  6228. * src/DefaultBtContext.cc
  6229. * test/ShaVisitorTest.cc
  6230. Trim argument s. Give trimed s to exception constructor.
  6231. * src/Util.cc (parseInt)(parseLLInt)
  6232. * test/UtilTest.cc
  6233. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Set precision back to 1.
  6235. * src/ConsoleStatCalc.cc (calculateStat)
  6236. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Replaced strtol with Util::parseInt
  6238. * src/ChunkedEncoding.cc
  6239. * src/HttpConnection.cc
  6240. * src/CookieBoxFactory.cc
  6241. * src/ParameterizedStringParser.cc
  6242. * src/Util.cc
  6243. * test/UtilTest.cc
  6244. * test/OptionHandlerTest.cc
  6245. * src/Request.cc
  6246. Throw exception when empty string is given. The message for exception
  6247. changed.
  6248. * src/Util.cc (parseInt)(parseLLInt)
  6249. * src/message.h
  6250. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6252. set to 1.
  6253. * src/ConsoleStatCalc.cc (calculateStat)
  6254. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Preallocate non-requested file which is adjacent forward to requested
  6256. file('requested' files means the files given in --select-file option)
  6257. if they share a same piece.
  6258. This fixes long pause in the file system which doesn't support sparse
  6259. files like FAT32 while downloading.
  6260. * src/MultiFileAllocationIterator.{h, cc}
  6261. * test/MultiFileAllocationIteratorTest.cc
  6262. * src/FileEntry.{h, cc}
  6263. Removed unused _option.
  6264. * src/MultiDiskAdaptor.h
  6265. * test/MultiDiskAdaptorTest.cc
  6266. * src/DefaultPieceStorage.cc
  6267. Set the default value of --seed-ratio to 1.0.
  6268. If 0.0 is given, then seeding continues regardless of share ratio.
  6269. * src/version_usage.cc
  6270. * src/option_processing.cc
  6271. * src/BtSetup.cc
  6272. * doc/aria2c.1.txt
  6273. * doc/aria2c.1
  6274. Fixed: Selective download is not working in BitTorrent
  6275. * src/RequestGroup.cc
  6276. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6277. * src/PieceStorage.h
  6278. * test/MockPieceStorage.h
  6279. * src/UnknownLengthPieceStorage.h
  6280. * src/DefaultPieceStorage.{h, cc}
  6281. * src/Metalink2RequestGroup.cc
  6282. * src/RequestGroup.cc
  6283. * src/Sequence.h
  6284. * test/SequenceTest.cc
  6285. * src/IntSequence.h
  6286. * src/message.h
  6287. * src/Util.{h, cc}
  6288. * test/UtilTest.cc
  6289. Added new function 'parse' to catch exception thrown by subclass's
  6290. parseArg
  6291. * src/OptionHandler.h
  6292. * src/OptionParser.cc
  6293. * src/NameMatchOptionHandler.h
  6294. * src/OptionHandlerImpl.h
  6295. * test/OptionHandlerTest.cc
  6296. Added IntegerRangeOptionHandler. Used for --listen-port and
  6297. --select-file. Now --listen-port accepts range of port.
  6298. * src/OptionHandlerFactory.cc
  6299. * src/version_usage.cc
  6300. * src/OptionHandlerImpl.h
  6301. * src/option_processing.cc
  6302. * src/BtSetup.cc
  6303. * src/PeerListenCommand.{h, cc}
  6304. * doc/aria2c.1.txt
  6305. * doc/aria2c.1
  6306. Implemented operator< for Exception class to provide easy way to print
  6307. exception stack trace.
  6308. * src/Exception.{h, cc}
  6309. * src/main.cc
  6310. * src/option_processing.cc
  6311. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. * src/version_usage.cc
  6313. (showVersion): Reworked.
  6314. (showUsage): Added examples.
  6315. Removed Hint for total length and file name.
  6316. * src/Metalink2RequestGroup.cc
  6317. * src/RequestGroup.{h, cc}
  6318. * src/HttpResponseCommand.cc
  6319. * src/FtpNegotiationCommand.cc
  6320. Now --follow-torrent and --follow-metalink option work properly.
  6321. * src/RequestGroup.cc
  6322. Updated man page
  6323. * doc/aria2c.1.txt
  6324. * doc/aria2c.1
  6325. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Removed.
  6327. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6328. Use Segment::operator==()
  6329. * src/HttpConnection.cc
  6330. * src/Segment.h
  6331. Updated usage
  6332. * src/version_usage.cc
  6333. Added EINTR treatment.
  6334. * src/SocketCore.cc
  6335. * src/AbstractDiskWriter.cc
  6336. Rewritten.
  6337. * src/Util.cc (rangedFileCopy)
  6338. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Fixed typo.
  6340. * src/version_usage.cc
  6341. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Implemented. Now -c option works fine.
  6343. * src/DefaultPieceStorage.cc (markPiecesDone)
  6344. * test/DefaultPieceStorageTest.cc
  6345. Removed.
  6346. * src/SegmentMan.{h, cc}
  6347. (markAllPiecesDone)
  6348. (markPieceDone)
  6349. Synchronized po files with
  6350. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6351. * src/fr.po
  6352. * src/ru.po
  6353. * src/de.po
  6354. * src/ja.po
  6355. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Added ifdef and some modifications to compile without BitTorrent,
  6357. Metalink, MessageDigest
  6358. support.
  6359. * src/PieceHashCheckIntegrityEntry.cc
  6360. * src/MetalinkEntry.h
  6361. * src/version_usage.cc
  6362. * src/main.cc
  6363. * src/DownloadEngine.{h, cc}
  6364. * src/Metalink2RequestGroup.cc
  6365. * src/Peer.cc
  6366. * src/RequestGroup.cc
  6367. * src/MetalinkHelper.cc
  6368. * test/DefaultPieceStorageTest.cc
  6369. * test/MetalinkPostDownloadHandlerTest.cc
  6370. * test/Metalink2RequestGroupTest.cc
  6371. Hide TOTAL SPD when all downloads complete.
  6372. * src/ConsoleStatCalc.cc
  6373. Log target system information.
  6374. * src/main.cc
  6375. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Now --metalink-location accepts a comma-deliminated list of locations.
  6377. * src/MetalinkEntry.{h, cc}
  6378. * test/MetalinkEntryTest.cc
  6379. * src/version_usage.cc
  6380. * src/Metalink2RequestGroup.cc
  6381. * src/Xml2MetalinkProcessor.cc
  6382. * test/Xml2MetalinkProcessorTest.cc
  6383. * doc/aria2c.1.txt
  6384. * doc/aria2c.1
  6385. * src/Util.cc (toUpper)(toLower): Rewritten.
  6386. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Added the ability to detect duplicate download entry which is about to
  6388. download the same file other RequestGroup is downloading.
  6389. * src/RequestGroup.cc
  6390. * src/HttpResponseCommand.cc
  6391. * src/FtpNegotiationCommand.cc
  6392. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. Recalculates download progress when loading a control file,
  6394. if the piece length of DownloadContext is different from the one saved
  6395. in the control file. Currently in-flight pieces are ignored.
  6396. * src/DefaultBtProgressInfoFile.cc
  6397. * test/DefaultBtProgressInfoFileTest.cc
  6398. * src/Util.{h, cc}
  6399. * test/UtilTest.cc
  6400. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Do not rotate tiers in announce-list.
  6402. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6403. AnnounceList::allTiersFailed() used instead to detect whether all
  6404. tiers are tried and failed.
  6405. * test/DefaultBtAnnounceTest.cc
  6406. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6407. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6408. * test/AnnounceListTest.cc
  6409. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6410. clause. Catch RecoverableException instead of DlRetryEx instead.
  6411. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Implemented checksum validation feature(1 checksum for each file)
  6413. The validation takes place after the download.
  6414. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6415. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6416. * src/CheckIntegrityCommand.cc: Changed log message.
  6417. * src/Metalink2RequestGroup.cc: Set checksum to
  6418. SingleFileDownloadContext.
  6419. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6420. PieceHashCheckIntegrity class.
  6421. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6422. PieceHashCheckIntegrity class.
  6423. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6424. * src/IteratableValidator.h: New class.
  6425. * src/message.h
  6426. * src/CheckIntegrityEntry.{h, cc}
  6427. * src/IteratableChunkChecksumValidator.{h, cc}
  6428. * src/SingleFileDownloadContext.h
  6429. * src/DownloadCommand.cc
  6430. --allow-overwrite=true is no longer needed to check file integrity
  6431. before download in BitTorrent download.
  6432. * src/RequestGroup.cc (getInitialCommand)
  6433. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6434. throws exception.
  6435. * src/RequestGroupMan.cc (getInitialCommands)
  6436. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. urlencode the given url inside Request::parseUrl(...)
  6438. * src/Request.{h, cc}
  6439. * src/Util.{h, cc}
  6440. * test/RequestTest.cc
  6441. Removed #!metalink3! notation support because it is deleted from
  6442. the metalink specification.
  6443. * src/Request.{h, cc}
  6444. * test/RequestTest.cc
  6445. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Don't connect server before checking file integrity at startup, if
  6447. filesize and output file path are known.
  6448. * src/AbstractCommand.cc
  6449. * src/StreamFileAllocationEntry.cc
  6450. * src/Metalink2RequestGroup.cc
  6451. * src/RequestGroup.{h, cc}
  6452. * src/HttpResponseCommand.cc
  6453. * src/FtpNegotiationCommand.cc
  6454. Added DownloadFailureException. If it is thrown, RequestGroup should
  6455. halt.
  6456. * src/AbstractCommand.cc
  6457. * src/DownloadFailureException.h
  6458. * src/RequestGroup.cc
  6459. Catch RecoverableException, instead of DlAbortEx.
  6460. * src/RequestGroupMan.cc
  6461. * src/FillRequestGroupCommand.cc
  6462. * src/MetaFileUtil.cc
  6463. * src/IteratableChunkChecksumValidator.cc
  6464. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6465. getGID())
  6466. * src/CheckIntegrityCommand.cc
  6467. * src/message.h
  6468. Print gid instead of idx.
  6469. * src/RequestGroupMan.cc
  6470. Removed exception throwers declaration.
  6471. * src/DirectDiskAdaptor.{h, cc}
  6472. * src/SocketCore.{h, cc}
  6473. * src/MultiDiskAdaptor.{h, cc}
  6474. * src/HttpConnection.{h, cc}
  6475. * src/HttpResponse.{h, cc}
  6476. * src/DiskAdaptor.{h, cc}
  6477. * src/CopyDiskAdaptor.{h, cc}
  6478. * src/MultiDiskAdaptor.{h, cc}
  6479. * src/HttpHeaderProcessor.{h, cc}
  6480. * src/AbstractSingleDiskAdaptor.{h, cc}
  6481. * src/Util.{h, cc}
  6482. * test/UtilTest.cc
  6483. * src/DefaultDiskWriter.{h, cc}
  6484. * src/FtpConnection.{h, cc}
  6485. * src/AbstractDiskWriter.{h, cc}
  6486. Removed duplicate code.
  6487. * src/StreamCheckIntegrityEntry.cc
  6488. Removed unnecessary include.
  6489. * src/DiskWriter.h
  6490. Included Exception.h
  6491. * src/option_processing.cc
  6492. Included 2 files and added doc
  6493. * src/TrackerWatcherCommand.cc
  6494. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6495. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Changed CheckIntegrityEntry interface so that it can define
  6497. the action when all the chunk checksums are valid.
  6498. * src/CheckIntegrityEntry.h
  6499. * src/StreamCheckIntegrityEntry.{h, cc}
  6500. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6501. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6502. to exit rather than doing seeding. So, it would be good to toggle this
  6503. behavior.
  6504. * src/CheckIntegrityCommand.cc
  6505. * src/AbstractCommand.cc
  6506. * src/RequestGroup.cc
  6507. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6508. Reflect the download length of in-flight pieces.
  6509. It makes the download length readout more precise.
  6510. * src/DefaultPieceStorage.{h, cc}
  6511. * test/DefaultPieceStorageTest.cc
  6512. * src/a2functional.h
  6513. * test/a2functionalTest.cc
  6514. Lower CPU load when --max-download-limit is used.
  6515. There is up and down in speed indicator when enabling
  6516. http-pipelining but a download goes well. I think the problem is that
  6517. because http-pipelining is enabled, DownloadCommand is created for
  6518. each segment and in its constructor, PeerStat::downloadStart() is
  6519. called. In PeerStat::downloadStart(), speed calculation object is
  6520. reseted, which makes download speed zero.
  6521. * src/DownloadCommand.cc
  6522. Rewritten using accumulate.
  6523. * src/RequestGroupMan.cc (calculateStat)
  6524. Code clearnup.
  6525. * src/FtpNegotiationCommand.cc
  6526. * src/HttpResponseCommand.cc
  6527. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. Fixed: Can not resume: aria2 reports download already finished.
  6529. * src/AbstractCommand.{h, cc}
  6530. * src/HttpResponseCommand.cc
  6531. * src/FtpNegotiateCommand.cc
  6532. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Now a file is stored in the directory specified in .metalnk file
  6534. (file[@name]).
  6535. * src/Metalink2RequestGroup.cc
  6536. Create the directory structure when opening the file if it doesn't
  6537. exist.
  6538. * src/AbstractDiskWriter.cc
  6539. * src/Util.{h, cc}
  6540. * src/File.h
  6541. * test/UtilTest.cc
  6542. Removed file name comparison
  6543. * src/Metalink2RequestGroup.cc
  6544. * src/HttpResponseCommand.cc
  6545. Rewritten using Util::mkdirs()
  6546. * src/FileEntry.cc (setupDir)
  6547. * test/FileEntryTest.cc
  6548. Updated doc
  6549. * src/SingleFileDownloadContext.h
  6550. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Now SleepCommand dispatches nextCommand when halt is requested.
  6552. It avoids a possible long wait after hitting CTRL-C.
  6553. * src/SleepCommand.{h, cc}
  6554. * src/RequestGroupAware.{h, cc}
  6555. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6557. to open listen port, then remove the port number from the tracker
  6558. request.
  6559. * src/DefaultBtAnnounce.cc
  6560. * test/DefaultBtAnnounceTest.cc
  6561. * test/MockPieceStorage.h
  6562. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6563. them more testable.
  6564. * src/DefaultBtAnnounce.{h, cc}
  6565. * src/DefaultBtContext.{h, cc}
  6566. * src/Util.{h, cc}
  6567. * test/DefaultBtAnnounceTest.cc
  6568. * test/DefaultBtContextTest.cc
  6569. * test/UtilTest.cc
  6570. Added 'B' to upload bytes readout.
  6571. * src/ConsoleStatCalc.cc
  6572. Now the listen port for BitTorrent download is opened when it is
  6573. needed.
  6574. * src/DownloadEngineFactory.cc
  6575. * src/BtSetup.{h, cc}
  6576. * src/PeerListenCommand.{h, cc}
  6577. Now an exception thrown while parsing tracker response is now logged.
  6578. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6579. called, which means no retry is made in this case, assuming a tracker
  6580. has a problem.
  6581. * src/TrackerWatcherCommand.cc
  6582. Fixed: downloading a file whose length is unkown fails.
  6583. * src/DownloadCommand.cc
  6584. Simplified prepareForNextSegment()
  6585. * src/DownloadCommand.cc
  6586. Updated
  6587. * po/POTFILES.in
  6588. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Re-implemented a file listing for Metalink, which was dropped while
  6590. http/ftp/torrent integration was being implemented.
  6591. * src/MetalinkHelper.{h, cc}: New class.
  6592. * test/MetalinkHelperTest.cc
  6593. * src/main.cc
  6594. * src/Metalink2RequestGroup.cc
  6595. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Added the ability to display the detailed torrent file information.
  6597. Now -S option gives not only a file listing, but also total download
  6598. length, info hash, announce URI, piece length, the number of pieces,
  6599. and mode(single or multi-torrent).
  6600. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6601. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6602. KiB)
  6603. * test/UtilTest.cc
  6604. * src/main.cc
  6605. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Added ftp://USER:PASSWD@Servername automatic parsing.
  6607. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6608. _password. Recognize username and password in URI.
  6609. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6610. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6611. * src/RequestFactory.{h, cc}: Removed.
  6612. * src/AuthConfigFactory.{h, cc}: New class.
  6613. * src/FtpConnection.cc: Use AuthConfigFactory.
  6614. * src/HttpRequest.cc: Use AuthConfigFactory.
  6615. * test/HttpRequestTest.cc: Updated.
  6616. * test/RequestTest.cc: Updated.
  6617. * test/AuthConfigFactoryTest.cc: New class.
  6618. * test/RequestFactoryTest.cc: Removed.
  6619. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Use RequestGroup::allDownloadFinished() to decide whether the control
  6621. file should be removed or saved.
  6622. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6623. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6624. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Use File::renameTo()
  6626. * src/DefaultBtProgressInfoFile.cc
  6627. Added --no-file-allocation-limit command-line option.
  6628. * src/version_usage.cc
  6629. * src/option_processing.cc
  6630. * src/OptionHandlerFactory.cc
  6631. * src/RequestGroup.{h, cc}
  6632. * src/BtCheckIntegrityEntry.cc
  6633. * src/StreamCheckIntegrityEntry.cc
  6634. * src/prefs.h
  6635. * doc/aria2c.1.txt
  6636. * doc/aria2c.1
  6637. Now prealloc is the default value for --file-allocation option.
  6638. * src/version_usage.cc
  6639. * src/option_processing.cc
  6640. * doc/aria2c.1.txt
  6641. * doc/aria2c.1
  6642. Don't URL-encode user-agent.
  6643. * src/HttpRequest.cc
  6644. Updated translations
  6645. * po/LINGUAS: Added nl for Dutch translation.
  6646. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6647. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6648. * po/POTFILES.in: Updated.
  6649. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6650. Added the ability to recognize url-list in a torrent file.
  6651. The retrieved URLs are attached to the corresponding FileEntry.
  6652. * src/DefaultBtContext.{h, cc}
  6653. * src/FileEntry.{h, cc}
  6654. * test/DefaultBtContextTest.cc
  6655. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6657. after the download finishes.
  6658. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6660. the data smaller than block length.
  6661. A block length can be specified by constructor's argument.
  6662. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6663. Get a missing piece in the range of given FileEntry. This function is
  6664. not used in the program yet.
  6665. * src/Util.h: Added some macros.
  6666. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Added HTTP/1.1 keep alive and pipelining support.
  6668. See --enable-http-keep-alive and --enable-http-pipelining option.
  6669. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6670. Segment.
  6671. * src/HttpDownloadCommand.{h, cc}
  6672. * src/OptionHandlerFactory.cc
  6673. * src/HttpConnection.{h, cc}
  6674. * src/version_usage.cc
  6675. * src/HttpInitiateConnectionCommand.cc
  6676. * src/FtpInitiateConnectionCommand.cc
  6677. * src/Segment.h
  6678. * src/HttpRequestCommand.{h, cc}
  6679. * src/option_processing.cc
  6680. * src/prefs.h
  6681. * src/HttpResponseCommand.cc
  6682. * src/SegmentMan.{h, cc}
  6683. * src/FtpNegotiateCommand.cc
  6684. * src/HttpProxyResponseCommand.cc
  6685. * src/Request.cc
  6686. * src/HttpRequest.cc
  6687. * src/DownloadCommand.cc
  6688. * test/HttpRequestTest.cc
  6689. * test/RequestTest.cc
  6690. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6692. finished.
  6693. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6695. catching it inside the method.
  6696. When no file entry is found in a metalink without querying user
  6697. preferences, throw the exception with the error message that suggests
  6698. metalink file is probably broken.
  6699. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6700. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6702. processed.
  6703. * src/RequestGroupMan.cc (removeStoppedGroup)
  6704. Added debug message.
  6705. * src/BtPostDownloadHandler.cc
  6706. * src/MetalinkPostDownloadHandler.cc
  6707. * src/PostDownloadHandler.{h, cc}
  6708. * src/RequestGroup.cc
  6709. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6711. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6713. stops and there are any unfinished or in-progress downloads.
  6714. Added the legend of "stat".
  6715. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Throw exception when chunck checksum verification fails.
  6717. * src/DownloadCommand.cc (validatePieceHash): New function.
  6718. * src/PiecedSegment.{h, cc} (clear): New function.
  6719. * src/GrowSegment.{h, cc} (clear): New function.
  6720. * src/Segment.h (clear): New function.
  6721. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6722. * test/SegmentTest.cc
  6723. * test/GrowSegmentTest.cc
  6724. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Do not send referer when redirected.
  6726. * src/Request.cc (redirectUrl)
  6727. * test/RequestTest.cc
  6728. * test/HttpRequestTest.cc
  6729. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Implemented BitTorrent/http/ftp integrated download.
  6731. I've rewritten lots of files and now some headers have forward
  6732. class declarations to reduce compile time.
  6733. The implementation is extremely alpha stage, I recommend to use this
  6734. for testing purpose only.
  6735. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Fixed the compilation error on 64bit platform.
  6737. * test/HttpHeaderProcessorTest.cc
  6738. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Merged Ross's patch that fixes compilation problem in MinGW
  6740. * test/DefaultBtProgressInfoFileTest.cc
  6741. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Updated fr.po by sebone
  6743. * po/fr.po
  6744. Updated man page.
  6745. * doc/aria2c.1.txt
  6746. * Release 0.11.3
  6747. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6749. failure in Metalink.
  6750. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Automatically save *.aria2 control file of http/ftp download in every
  6752. 60 seconds.
  6753. * src/AutoSaveCommand.{h, cc}: New class.
  6754. * src/TimeBasedCommand.{h, cc}: New class.
  6755. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6756. Disable parameterized URI support by default. Added -P option to
  6757. enable the feature.
  6758. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6759. * src/OptionHandlerFactory.cc
  6760. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6761. Updated Japanese translation.
  6762. * po/ja.po
  6763. Updated man page.
  6764. * doc/aria2c.1.txt
  6765. * Release 0.11.3-rc
  6766. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6768. it is successful, then renamed to *.aria2.
  6769. This prevents *.aria2 file from being truncated or corrupted when
  6770. file system becomes out of space.
  6771. * src/DefaultBtProgressInfoFile.cc (save)
  6772. * src/SegmentMan.cc (save)
  6773. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6774. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Reduced the fragmentation of bitfield in http/ftp download.
  6776. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6777. * test/BitfieldManTest.cc
  6778. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Added the ability to disable segmented download in .metalink.
  6780. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6781. 'url' tag.
  6782. * src/MetalinkEntry.{h, cc}
  6783. * src/RequestResource.{h, cc}
  6784. * src/MetalinkRequestInfo.cc
  6785. * src/Xml2MetalinkProcessor.cc
  6786. * test/Xml2MetalinkProcessorTest.cc
  6787. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Added parameterized URI support.
  6789. * src/main.cc: -Z option added.
  6790. * src/OptionHandlerFactory.cc
  6791. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6792. * src/PStringDatum.h: New class.
  6793. * src/PStringSegment.{h,cc}: New class.
  6794. * src/PStringNumLoop.h: New class.
  6795. * src/PStringSelect.h: New class.
  6796. * src/NumberDecorator.h: New class.
  6797. * src/FixedWidthNumberDecorator.h: New class.
  6798. * src/AlphaNumberDecorator.h: New class.
  6799. * src/PStringVisitor.h: New class.
  6800. * src/PStringBuildVisitor.{h,cc}: New class.
  6801. * src/ParameterizedStringParser.{h,cc}: New class.
  6802. * src/Util.{h,cc}
  6803. (isNumber): New function.
  6804. (isLowercase): New function.
  6805. (isUppercase): New function.
  6806. (alphaToNum): New function.
  6807. * test/ParameterizedStringParserTest.cc: New class.
  6808. * test/AlphaNumberDecoratorTest.cc: New class.
  6809. * test/PStringBuildVisitorTest.cc: New class.
  6810. * test/UtilTest.cc
  6811. (testIsNumber): New function.
  6812. (testIsLowercase): New function.
  6813. (testIsUppercase): New function.
  6814. (testAlphaToNum): New function.
  6815. Added '\n' after the error message
  6816. * src/RequestInfo.h (printDownloadAbortMessage)
  6817. Added auto file renaming feature in http(s)/ftp download.
  6818. * src/main.cc: Added --auto-file-renaming command-line option.
  6819. * src/OptionHandlerFactory.cc
  6820. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6821. * src/RequestGroup.{h, cc}
  6822. (shouldCancelDownloadForSafety): Rewritten
  6823. (tryAutoFileRenaming): New function.
  6824. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6825. * src/HttpResponseCommand.cc
  6826. (executeInternal): Removed the call to RequestGroupMan::
  6827. isSameFileBeingDownloaded()
  6828. * src/FtpNegotiateCommand.cc
  6829. (recvSize): Removed the call to RequestGroupMan::
  6830. isSameFileBeingDownloaded()
  6831. * test/RequestGroupTest.cc: New class.
  6832. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6834. IO.
  6835. * src/DefaultBtProgressInfoFile.cc
  6836. * src/MetaFileUtil.cc
  6837. * src/SimpleLogger.cc
  6838. * src/SegmentMan.cc
  6839. * src/Util.cc
  6840. * src/Platform.cc
  6841. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6843. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6845. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6846. Fixed the bug that prevents file allocation is not done when
  6847. dowloading multi-torrent file.
  6848. * src/AbstractDiskWriter.cc (openFile)
  6849. Increase the maximum number of -j option from 15 to 45.
  6850. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6851. Added fr.po, thanks to Charles Landemaine.
  6852. * po/fr.po
  6853. * po/LINGUAS
  6854. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6855. gcc 3.4.4 support:
  6856. * src/DefaultBtContext.cc: int32_t -> int
  6857. * src/main.cc: int -> int32_t, int32_t -> int
  6858. * src/messageDigest.h: uint32_t -> unsigned int
  6859. * src/NameResolver.h: int32_t -> int
  6860. * src/PeerConnection.cc: int -> int32_t
  6861. * src/SpeedCalc.cc: int32_t -> int
  6862. * src/TrackerUpdateCommand.h: int -> int32_t
  6863. * src/Util.cc: int32_t -> int
  6864. * src/Util.h: int32_t -> int
  6865. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6866. * test/AnnounceListTest.cc: int -> int32_t
  6867. * test/ChunkedEncodingTest.cc: int -> int32_t
  6868. * test/DataTest.cc: int -> int32_t
  6869. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6870. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6871. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6872. * test/FeatureConfigTest.cc: int -> int32_t
  6873. * test/MetalinkEntryTest.cc: int -> int32_t
  6874. * test/MockBtRequestFactory.h: int -> int32_t
  6875. * test/MockPieceStorage.h: int -> int32_t
  6876. * test/OptionTest.cc: int -> int32_t
  6877. * test/RequestTest.cc: int -> int32_t
  6878. * test/SegmentManTest.cc: int -> int32_t
  6879. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6880. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6881. Move sleep functions to Util class:
  6882. * src/Util.cc
  6883. (sleep): New function.
  6884. (usleep): New function.
  6885. * src/DownloadCommand.cc: sleep -> Util::sleep
  6886. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6887. MinGW build enhancements. The following files are added:
  6888. * src/timegm.{c,h}
  6889. Changes to support the above new files:
  6890. * configure.ac
  6891. * src/Makefile.am
  6892. * src/a2time.h
  6893. * src/Util.cc:
  6894. * src/strptime.c: Added support for %Z option.
  6895. Fixed MinGW non-blocking bug.
  6896. * src/SocketCore.cc
  6897. * src/HttpRequestCommand.cc
  6898. Miscellenous build fixes/enhancements.
  6899. * configure.ac: Added summary report.
  6900. * src/Platform.h: Tweaked #include's.
  6901. * src/a2netcompat.h: Tweaked #include's.
  6902. * src/strptime.h: Tweaked #include's.
  6903. * src/gai_strerror.c: Tweaked #include's.
  6904. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  6905. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  6906. * src/gettimeofday.h: Added HAVE_CONFIG_H
  6907. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Increased the initial connection size in BitTorrent download to 40.
  6909. * src/BtRuntime.h
  6910. Added the usage message of --peer-id-prefix option.
  6911. * src/main.cc
  6912. * Release 0.11.2
  6913. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. MessageDigestHelper is introduced in order to simplify the use
  6915. of message digest. Removed repeated code.
  6916. The message digest algorithm is now specified by string, like "sha1",
  6917. "md5".
  6918. * src/messageDigest.{h, cc}
  6919. * src/MessageDigestHelper.{h, cc}: New class.
  6920. * src/DefaultPieceStorage.cc
  6921. * src/DefaultBtContext.{h, cc}
  6922. (computeFastSet): New function.
  6923. (setInfoHash): Added for unit testing.
  6924. (setNumPieces): Added for unit testing.
  6925. * src/DefaultBtInteractive.cc
  6926. * src/BtPieceMessage.cc
  6927. * src/Peer.cc
  6928. * src/Checksum.h
  6929. * src/message.h
  6930. * src/IteratableChecksumValidator.h
  6931. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  6932. inside it.
  6933. * src/SegmentMan.{h, cc}
  6934. (checkIntegrity): Removed.
  6935. * src/IteratableChunkChecksumValidator.{h, cc}
  6936. * src/Util.h
  6937. (sha1Sum): Removed.
  6938. (simpleMessageDigest): Removed.
  6939. (fileChecksum): Removed.
  6940. (computeFastSet): Removed.
  6941. * src/ShaVisitor.cc
  6942. * src/ChunkChecksum.h
  6943. * src/DownloadCommand.cc
  6944. Removed messageDigest virtual functions.
  6945. * src/MultiDiskAdaptor.{h, cc}
  6946. * src/DiskAdaptor.h
  6947. * src/ByteArrayDiskWriter.h
  6948. * src/DiskWriter.h
  6949. * src/DiskAdaptorWriter.h
  6950. * src/AbstractSingleDiskAdaptor.{h, cc}
  6951. * src/AbstractDiskWriter.{h, cc}
  6952. Fixed comilation error when message digest is disabled.
  6953. * src/MetalinkEntry.{h, cc}
  6954. * src/MetalinkRequestInfo.cc
  6955. Removed srandom and random.
  6956. * src/SimpleRandomizer.h
  6957. Added size() virtual function to DiskAdaptor
  6958. * src/MultiDiskAdaptor.h
  6959. Fixed the bug that causes that files are not opened correctly in
  6960. multi-file torrent.
  6961. * src/TorrentRequestInfo.cc
  6962. * src/MultiDiskAdaptor.cc
  6963. Added SHA256 support
  6964. * src/messageDigest.cc
  6965. * src/Xml2MetalinkProcessor.cc
  6966. Show supported message digest algorithms
  6967. * src/main.cc
  6968. Updated contact info.
  6969. * src/main.cc
  6970. Applied Ross's patch
  6971. * src/a2netcompat.h
  6972. * src/main.cc
  6973. Fixed the bug that prevents a remote metalink from not being processed
  6974. even if '-o foo.metalink' is specified.
  6975. * src/MetalinkRequestInfo.cc
  6976. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Merged Dan's patch:
  6978. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6979. Use va_copy to avoid core dump on amd64:
  6980. * src/SimpleLogger.cc
  6981. Updated contact info.
  6982. * src/main.cc
  6983. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6984. digest is not available.
  6985. * src/MetalinkEntry.h
  6986. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Make a2netcompat.h include a2io.h to fix compilation error:
  6988. * src/a2netcompat.h
  6989. * src/SocketCore.cc: Removed include of a2io.h
  6990. * src/Util.cc: Removed include of a2io.h
  6991. Gather time related functions to a2time.h:
  6992. * src/a2time.h: New file.
  6993. * src/DefaultPeerStorage.cc
  6994. * src/SimpleLogger.cc
  6995. * src/Util.{h, cc}
  6996. * src/SimpleRandomizer.h
  6997. * src/TimeA2.{h,cc}
  6998. * src/DownloadCommand.cc
  6999. * src/main.cc
  7000. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7001. a2netcompat.h:
  7002. * src/NameResolver.cc
  7003. Fixed compilation error without openssl:
  7004. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7005. Added default block to suppress compiler warnings:
  7006. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7007. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7008. MinGW build enhancements. The following files are added:
  7009. * src/gai_strerror.{c,h}
  7010. * src/gettimeofday.{c,h}
  7011. Changes to support the above new files:
  7012. * configure.ac
  7013. * src/Makefile.am
  7014. * src/a2netcompat.h
  7015. * src/TimeA2.cc
  7016. * src/DefaultPeerStorage.cc
  7017. * src/NameResolver.cc: removed mingw_strerror() function.
  7018. * src/SocketCore.cc: removed mingw_strerror() function.
  7019. Miscellaneous MinGW build fixes.
  7020. * src/a2io.h: Use _lseeki64() instead of lseek()
  7021. * src/common.h
  7022. * src/DefaultFileAllocator.cc
  7023. * src/GlowFileAllocator.cc
  7024. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7025. * src/NameResolver.cc
  7026. (callback): Changed int32_t to int.
  7027. (resolve): Changed int32_t to int.
  7028. * src/Platform.cc
  7029. * src/Platform.h
  7030. * test/MultiDiskWriterTest.cc
  7031. * test/PeerMessageUtilTest.cc
  7032. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7033. Other enhancements and fixes.
  7034. * src/HttpRequestCommand.cc
  7035. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7036. * src/SocketCore.cc:
  7037. (error): New function to abstract errno/WSAGetLastError().
  7038. (errorMsg): New function to abstract errno/WSAGetLastError().
  7039. (initiateSecureConnection): Added more detailed error reporting.
  7040. * src/SocketCore.h: Added private variable blocking, to allow
  7041. proper handling of OpenSSL psuedo-errors.
  7042. * src/message.h
  7043. (EX_SSL_INIT_FAILURE)
  7044. (EX_SSL_IO_ERROR)
  7045. (EX_SSL_PROTOCOL_ERROR)
  7046. (EX_SSL_UNKNOWN_ERROR)
  7047. (EX_SSL_CONNECT_ERROR)
  7048. (EX_SOCKET_BLOCKING)
  7049. (EX_SOCKET_NONBLOCKING)
  7050. (EX_SOCKET_UNKNOWN_ERROR)
  7051. * src/Util.cc
  7052. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7053. reserved name.
  7054. (httpGMT): Fixed typo.
  7055. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Merged Ross's win32 patch(manually)
  7057. In the course of merging, following files are added.
  7058. * src/strptime.{h,c}
  7059. * src/libgen.{h,c}
  7060. * src/inet_aton.{h,c}
  7061. * src/Platform.{h,cc}
  7062. * src/localtime_r.{h,c}
  7063. * src/getaddrinfo.{h,c}
  7064. I've gethered network related things, and put them to following file:
  7065. * src/a2netcompat.h
  7066. Also io related things are put to following file:
  7067. * src/a2io.h
  7068. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7069. * src/message.h
  7070. (MSG_ALLOCATION_COMPLETED)
  7071. (EX_TOO_LARGE_FILE)
  7072. (EX_SIZE_MISMATCH)
  7073. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7074. (EX_INVALID_CHUNK_CHECKSUM)
  7075. (EX_INVALID_RANGE_HEADER)
  7076. * src/FileAllocationCommand.cc
  7077. * src/HttpResponse.cc
  7078. * src/RequestGroup.cc
  7079. * src/MultiDiskAdaptor.cc
  7080. * src/OptionHandlerImpl.h
  7081. * src/HttpResponseCommand.cc
  7082. * src/FtpNegotiateCommand.cc
  7083. * src/IteratableChecksumValidator.cc
  7084. * src/SegmentMan.cc
  7085. * src/ChunkChecksumValidator.cc
  7086. Added Randomizer::getRandomNumber(long int)
  7087. * src/Randomizer.h (getRandomNumber)
  7088. * src/SimpleRandomizer.h (getRandomNumber)
  7089. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7090. * src/Util.cc (randomAlpha): Use this new function.
  7091. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Converted int's to in32_t. long long int's are also converted to
  7093. int64_t
  7094. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Fixed the bug that prevents cookies from being sent to the server
  7096. if the domain of cookie is FQDN and starts with ".".
  7097. * src/Cookie.cc (match)
  7098. To add the ability to change peer id.
  7099. * src/DefaultBtContext.h
  7100. (_peerIdPrefix): New variable
  7101. (setPeerIdPrefix): New function.
  7102. * src/torrentRequestInfo.cc
  7103. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7104. DefaultBtContext.
  7105. * src/main.cc (main): Added peer-id-prefix command-line option.
  7106. The usage message is not added yet.
  7107. * src/DefaultBtContext.cc
  7108. (generatePeerId): Use _peerIdPrefix.
  7109. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7110. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Fixed the bug that prevents filename in content-disposition from
  7112. being retrieved when filename is not quoted.
  7113. * src/Util.cc (getContentDispositionFilename)
  7114. Fixed the bug that causes infinate loop and memory leak when file open
  7115. operation failed.
  7116. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7117. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Fixed the bug that causes segfault when all URIs specified are
  7119. unsupported.
  7120. * src/RequestGroupMan.cc (getInitialCommands)
  7121. Check if RequestGroup::createNextCommand() returns empty list of
  7122. commands.
  7123. * src/RequestGroup.cc (createNextCommand)
  7124. Change log level from info to error so that users can notice that
  7125. an error occurred.
  7126. Fixed the bug that causes segfault when a zero-sized file is
  7127. downloaded.
  7128. * src/BitfieldMan.cc (isAllBitSet)
  7129. Return true if bitfieldLength is 0.
  7130. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. * src/main.cc
  7132. (showUsage): Added 3 usage examples for metalink download.
  7133. Replace MetalinkChunkChecksum with ChunkChecksum.
  7134. * src/MetalinkChunkChecksum.h: Removed.
  7135. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7136. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7137. * src/Xml2MetalinkProcessor.cc
  7138. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7139. * src/MetalinkRequestInfo.cc (execute)
  7140. * Release 0.11.1
  7141. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Reads URIs from stdin when "-i -" is specified.
  7143. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7144. * src/UriListParser.h, src/UriListParser.cc: New class.
  7145. * src/StreamUriListParser.h: New class.
  7146. * src/FileUriListParser.h: New class.
  7147. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7148. instead of UriFileListParser.
  7149. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Made console readout more readable.
  7151. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7152. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Fix the bug that causes -s option not to work.
  7154. * src/main.cc (main)
  7155. * src/a2algo.h: New file.
  7156. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Create directory structure specified in metalink file.
  7158. * src/RequestGroup.h, src/RequestGroup.cc
  7159. (initAndOpenFile): Create a directory to store files if it does not
  7160. exist.
  7161. (getDir): New function.
  7162. Added ETA and download speed for an individual file to readout.
  7163. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7164. * src/RequestGroup.h
  7165. (calculateDownloadSpeed): New function.
  7166. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Made -S option work with metalink file and provided selective download
  7168. to metalink.
  7169. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7170. (filename): Removed.
  7171. (file): New variable.
  7172. (size): Removed.
  7173. (operator=): Updated.
  7174. (getPath): New function.
  7175. (getLength): New function.
  7176. (toFileEntry): New function.
  7177. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7178. (execute): Use toStream.
  7179. (showFileEntry): Removed.
  7180. * src/MetalinkRequestInfo.h
  7181. (targetFiles): New variable.
  7182. (setTargetFiles): New variable.
  7183. * src/MetalinkRequestInfo.cc
  7184. (execute): Added the ability to print file information included in
  7185. a metalink file.
  7186. Added selective download mode to metalink.
  7187. * src/main.cc
  7188. (showUsage): Updated to denote that -S and --select-file options are
  7189. applicable to metalink.
  7190. * src/FileEntry.h
  7191. (operator=): New function.
  7192. (getBasename): New function.
  7193. (getDirname): New function.
  7194. * src/Util.h, src/Util.cc
  7195. (toStream): New function.
  7196. * src/Xml2MetalinkProcessor.cc: Updated.
  7197. Made aria2 work with metalink with directory structure.
  7198. * src/File.h, src/File.cc
  7199. (getBasename): New function.
  7200. (getDirname): New function.
  7201. * src/RequestGroup.h, src/RequestGroup.cc
  7202. (_topDir): New variable.
  7203. (setTopDir): New function.
  7204. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7205. Rewrote HTTP header parsing with stringstream.
  7206. * src/HttpConnection.h, src/HttpConnection.cc
  7207. (HttpRequestEntry): New class.
  7208. (headerBuf): Removed.
  7209. (headerBufLength): Removed.
  7210. (outstandingHttpRequests): Now its element type is
  7211. HttpRequestEntryHandle.
  7212. (findEndOfHeader): Removed.
  7213. (receiveResponse): Rewritten.
  7214. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7215. Updated doc for -j option to notice that it should be used with -i
  7216. option.
  7217. * src/main.cc (showUsage)
  7218. Removed unused classes.
  7219. * src/RequestInfo.h
  7220. (FileInfo): Removed.
  7221. (checksum): Removed.
  7222. (fileInfo): Removed.
  7223. (setChecksum): Removed.
  7224. (getChecksum): Removed.
  7225. (getFileInfo): Removed.
  7226. Use ISO units.
  7227. * src/ConsoleDownloadEngine.cc
  7228. * src/TorrentConsoleDownloadEngine.cc
  7229. * src/Util.cc (abbrevSize)
  7230. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Added the default listening ports to the help message.
  7232. * src/main.cc (showUsage)
  7233. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Reduce the number of calls to gettimeofday to lower CPU load.
  7235. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7236. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7237. * src/Peer.h (calculateUploadSpeed): New function.
  7238. (calculateDownloadSpeed): New function.
  7239. * src/DefaultPeerStorage.cc
  7240. (CalculateStat): Added _now variable.
  7241. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7242. and Peer::calculateUploadSpeed(const struct timeval&)
  7243. Drop connection if no request or piece message is exchanged in
  7244. a certain interval.
  7245. * src/DefaultBtInteractive.h
  7246. (btRuntime): New variable.
  7247. (inactiveCheckPoint): New variable.
  7248. (checkActiveInteraction): New function.
  7249. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7250. request or piece message is received.
  7251. (checkActiveInteraction): New function.
  7252. (doInteractionProcessing): Call checkActiveInteraction.
  7253. Fixed the bug that causes remote Metalink and Torrent files are not
  7254. processed.
  7255. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7256. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Changed format of log file.
  7258. * src/SimpleLogger.cc
  7259. * Release 0.11.0
  7260. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. * src/AbstractCommand.cc
  7262. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7263. MSG_MAX_TRY from error to info.
  7264. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7265. * src/message.h
  7266. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7267. (MSG_DOWNLOAD_ABORTED): Added %s.
  7268. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7269. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7270. * src/PeerAbstractCommand.cc
  7271. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7272. * src/Request.h
  7273. (cookieBox): Made ShardHandle.
  7274. * src/RequestGroup.h, src/RequestGroup.cc
  7275. (createNextCommandWithAdj): New function.
  7276. * src/FileAllocationCommand.cc
  7277. (executeInternal): Use createNextCommandWithAdj().
  7278. * src/CheckIntegrityCommand.cc
  7279. (executeInternal): Use createNextCommandWithAdj().
  7280. Added --load-cookies command-option.
  7281. * src/OptionHandlerFactory.cc
  7282. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7283. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7284. Now aria2 can handle cookie's expiration date.
  7285. * src/Cookie.h (expires): Changed its type to time_t.
  7286. * src/main.cc: Added --load-cookies command-line option.
  7287. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7288. * src/Util.h, src/Util.cc (httpGMT): New function.
  7289. * src/Request.cc (Request): Initialize cookieBox using
  7290. CookieBoxFactory.
  7291. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7292. * src/CookieParser.h, src/CookieParser.cc: New class.
  7293. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7294. * src/HttpResponseCommand.cc
  7295. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7296. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7297. download.
  7298. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Added -j command-line option.
  7300. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7301. * src/main.cc
  7302. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7303. Rewritten using stringstream.
  7304. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7305. Rewritten using stringstream.
  7306. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. Make download size shown in MB, KB.
  7308. * src/ConsoleDownloadEngine.h (sendStatistics)
  7309. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7310. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Accept incoming connections if download rate is low.
  7312. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7313. (_lowestSpeedLimit): New variable.
  7314. (setLowestSpeedLimit): New function.
  7315. (execute): Accept incoming connections if download rate is low.
  7316. MAX_PEERS is ignored in this case.
  7317. Disable PREF_OUT in multiple concurrent download:
  7318. * src/RequestGroup.h, src/RequestGroup.cc
  7319. (setUserDefinedFilename): New function.
  7320. * src/DownloadEngineFactory.cc
  7321. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7322. concurrent download.
  7323. * src/DefaultSegmentManFactory.cc
  7324. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7325. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7327. Added its overloaded method.
  7328. * src/RequestGroup.h
  7329. (_numConcurrentCommand): New variable.
  7330. (setNumConcurrentCommand): New function.
  7331. * src/RequestGroup.cc
  7332. Abort download if same file is being downloaded concurrently.
  7333. * src/RequestGroup.h, src/RequestGroupMan.cc
  7334. (isSameFileBeingDownloaded): New function.
  7335. * src/HttpResponseCommand.cc (executeInternal)
  7336. * src/FtpNegotiateCommand.cc (recvSize)
  7337. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7338. * main.cc: Added help message for -i option.
  7339. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7341. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7342. * src/MetalinkEntry.h
  7343. (checksum): Changed to ChecksumHandle
  7344. * src/MetalinkRequestInfo.cc
  7345. (checksum): Changed to ChecksumHandle
  7346. * src/File.cc
  7347. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7348. * src/common.h
  7349. (DIR_OPEN_MODE): New definition
  7350. * src/RequestGroup.cc
  7351. (prepareForNextAction): Added an argument.
  7352. * src/message.h
  7353. (MSG_GOOD_CHECKSUM): New definition
  7354. (MSG_BAD_CHECKSUM): New definition
  7355. * src/HttpResponseCommand.cc
  7356. (handleDefaultEncoding): Continue download sequence in new
  7357. non-segmented download.
  7358. * src/FileAllocationEntry.h
  7359. (_nextDownloadCommand): New variable.
  7360. * src/DownloadCommand.cc
  7361. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7362. available.
  7363. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7364. * src/IteratableChecksumValidator.h,
  7365. src/IteratableChecksumValidator.cc: New class.
  7366. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7367. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Change file mode to 666:
  7369. * src/common.h (OPEN_MODE): New definition.
  7370. * src/File.cc
  7371. * src/Util.cc
  7372. * src/Directry.cc
  7373. * src/AbstractDiskWriter.cc
  7374. Change the level of log message "download aborted" to debug:
  7375. * src/PeerAbstractCommand.cc (execute)
  7376. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7377. * src/TrackerWatcherCommand.cc
  7378. (createCommand): Sleep some seconds after request failed.
  7379. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7380. then abort tracker request.
  7381. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. * Added the simultaneous download feature.
  7383. * src/main.cc: Print "Exception caught: " when exception is caught.
  7384. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7385. * src/ActivePeerConnectionCommand.cc
  7386. * src/PeerInteractionCommand.cc
  7387. * src/BtRuntime.h
  7388. (cuidCounter): Removed.
  7389. (getNewCuid): Removed.
  7390. * src/DownloadEngineFactory.cc
  7391. * src/PeerListenCommand.cc
  7392. * src/TrackerUpdateCommand.cc
  7393. * src/PeerInitiateConnectionCommand.cc
  7394. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. * src/PeerAbstractCommand.cc
  7396. (onAbort): Call PeerStorage::returnPeer()
  7397. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7398. (incomingPeers): New variable.
  7399. (addIncomingPeer): New function.
  7400. (returnPeer): New function.
  7401. (onErasingPeer): New function.
  7402. (addPeer): push_back -> push_front
  7403. (getActivePeers): Rewritten.
  7404. (calculateStat): Rewritten.
  7405. * src/PeerStorage.h
  7406. (TransferStat::copy): New function.
  7407. (TransferStat::TransferStat): New function.
  7408. (TransferStat::operator=): New function.
  7409. (addIncomingPeer): New function.
  7410. (returnPeer): New function.
  7411. * src/PeerListenCommand.cc
  7412. (execute): Use PeerStorage::addIncomingPeer() instead of
  7413. Peer::addPeer().
  7414. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Connect to a peer actively when download speed is lower than specified
  7416. speed in torrent download:
  7417. * src/ActivePeerConnectionCommand.h: New class.
  7418. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7420. * src/main.cc: Fixed the bug that prevents download if .netrc
  7421. doesn't exist.
  7422. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. To cache resolved hostname:
  7424. * src/AbstractCommand.h, src/AbstractCommand.cc
  7425. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7426. Added dns cache.
  7427. * src/FtpInitiateConnectionCommand.cc
  7428. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7429. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7430. NameResolver working without ares.
  7431. * src/TorrentRequestInfo.cc
  7432. (execute): Don't cache dns in torrent download.
  7433. * src/HttpInitiateConnectionCommand.cc
  7434. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7435. * src/DNSCache.h: New class.
  7436. * src/UrlRequestInfo.cc
  7437. (execute): Use dns cache.
  7438. In http request, suppress port number in http request header if port
  7439. is 80 or 443:
  7440. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7441. request header if port is 80 or 443.
  7442. (createProxyRequest): Allways send port number.
  7443. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. To add the command-line option which disables netrc support:
  7445. * src/OptionHandlerFactory.cc
  7446. (createOptionHandlers): Added PREF_NO_NETRC.
  7447. * src/main.cc: Added -n option.
  7448. * src/prefs.h (PREF_NO_NETRC): New definition.
  7449. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7450. V_TRUE.
  7451. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7452. is V_FALSE. This may get configurable in the future release.
  7453. To clear peer's error status by time basis:
  7454. * src/PeerAbstractCommand.cc
  7455. (onAbort): Call Peer::startBadCondition().
  7456. * src/Peer.h, src/Peer.cc
  7457. (error): Removed.
  7458. (_badConditionStartTime): New variable.
  7459. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7460. (startBadCondition): New function.
  7461. (isGood): New function.
  7462. * src/DefaultPeerStorage.cc
  7463. (addPeer): Use Peer::isGood().
  7464. (FindFinePeer): Use Peer::isGood().
  7465. Always include port number in http request header:
  7466. * src/HttpRequest.cc (getHostText): Always include port number in
  7467. http request header.
  7468. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. To the ability to read options from a config file:
  7470. * src/main.cc: Command-line parameter validation is delegated to
  7471. OptionHandler class.
  7472. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7473. * src/Option.h, src/Option.cc (clear): New function.
  7474. * src/OptionParser.h, src/OptionParser.cc: New class.
  7475. * src/OptionHandler.h: New class.
  7476. * src/NameMatchOptionHandler.h: New class.
  7477. * src/OptionHandlerImpl.h: New classes.
  7478. * src/prefs.h: '_' -> '-'
  7479. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7480. (FTP_PASV): New definition.
  7481. * src/Util.h, src/Util.cc (getRealSize): New function.
  7482. To disable netrc support if .netrc file does not have correct
  7483. permissions:
  7484. * src/File.h, src/File.cc (mode): New function.
  7485. To prevent confidential information to be logged:
  7486. * src/HttpConnection.h, src/HttpConnection.cc
  7487. (eraseConfidentialInfo): New function.
  7488. (sendRequest): Call eraseConfidentialInfo().
  7489. (sendProxyRequest): Call eraseConfidentialInfo().
  7490. * src/main.cc: Validate permissions of .netrc file.
  7491. To add --user-agent command-line option:
  7492. * src/main.cc: Added new command line option: --user-agent
  7493. * src/prefs.h (PREF_USER_AGENT): New definition.
  7494. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7495. parameter to HttpRequest object.
  7496. * src/AbstractProxyRequestCommand.cc
  7497. (executeInternal): Set user-agent option parameter to HttpRequest
  7498. object.
  7499. Marged the patches from Dan Fandrich.
  7500. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Use filename and size from Metalink file instead of sending HEAD
  7502. request:
  7503. * src/UrlRequestInfo.h
  7504. (_filename): New variable.
  7505. (_totalLength): New variable.
  7506. (setTotalLength): New variable.
  7507. (setFilename): New variable.
  7508. * src/MetalinkRequestInfo.cc
  7509. (execute): Set filename and size to UrlRequestInfo
  7510. * src/UrlRequestInfo.cc
  7511. (execute): Use filename and size from Metalink instead of seding
  7512. HEAD request to servers.
  7513. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. To add the ability to resume downloading a partially downloaded file
  7515. which is downloaded from the beginning:
  7516. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7517. takes this role.
  7518. * src/main.cc: Added -c option.
  7519. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7520. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7521. * src/prefs.h (PREF_CONTINUE): New definition.
  7522. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7523. * src/DefaultDiskWriter.cc
  7524. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7525. * src/AbstractDiskWriter.h
  7526. (glowFileAllocator): New variable.
  7527. * src/AbstractDiskWriter.cc
  7528. (openExistingFile): Now preallocate file space from the end of the
  7529. existing file if totalLength argument is specified and grater than 0.
  7530. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7531. to download exists in local, continue the download of the file.
  7532. --allow-overwrite=true is assumed in this context.
  7533. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7534. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7535. Throw exception if --check-integrity=true is specified but chunk
  7536. checksums are not provided:
  7537. * src/UrlRequestInfo.cc
  7538. Do not print URLs to stdout:
  7539. * src/UrlRequestInfo.cc
  7540. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. * src/Request.h: Use AuthResolver to get authentication information.
  7542. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7543. set to RequestFactory object.
  7544. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7545. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7546. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7547. create Request object.
  7548. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7549. To integrate Netrc into exsiting classes:
  7550. * src/Request.h
  7551. (_userDefinedAuthConfig): New variable.
  7552. (findNetrcAuthenticator): New function.
  7553. (segment): Removed.
  7554. (setUserDefinedAuthConfig): New function.
  7555. (resolveHttpAuthConfigItem): New function.
  7556. (resolveFtpAuthConfigItem): New function.
  7557. (resolveHttpProxyAuthConfigItem): New function.
  7558. * src/HttpRequest.h
  7559. (authConfig): Removed.
  7560. (proxyAuthConfig): Removed.
  7561. (setAuthConfig): Removed.
  7562. (setProxyAuthConfig): Removed.
  7563. * src/UrlRequest.h
  7564. (getHeadResult): Added a parameter: authConfigHandle
  7565. * src/common.h
  7566. (SingletonHolder.h): New include.
  7567. * src/main.cc
  7568. (Netrc.h): New include.
  7569. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7570. Added initial value of PREF_NETRC_PATH.
  7571. Added the initialization of netrc.
  7572. * src/AuthConfig.h: New class.
  7573. * src/prefs.h
  7574. (PREF_NETRC_PATH): New definition.
  7575. * src/HttpAuthConfig.h: Removed.
  7576. * src/Netrc.cc
  7577. (getRequiredNextToken): New function.
  7578. (skipMacdef): New function.
  7579. (parse): Rewritten.
  7580. * src/Netrc.h
  7581. (getRequiredNextToken): New function.
  7582. (skipMacdef): New function.
  7583. * src/Util.h, src/Util.cc
  7584. (getHomeDir): New function.
  7585. * src/TrackerWatcherComand.cc
  7586. (createRequestCommand): Use AuthConfig.
  7587. * src/FtpConnection.cc
  7588. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7589. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7590. * src/Request.cc
  7591. (findNetrcAuthenticator): New function.
  7592. (resolveHttpAuthConfigItem): New function.
  7593. (resolveFtpAuthConfigItem): New function.
  7594. (resolveHttpProxyAuthConfigItem): New function.
  7595. * src/UrlRequestInfo.cc: Use AuthConfig.
  7596. * src/HttpRequest.cc
  7597. (createRequest): Use authConfig.
  7598. (getProxyAuthString): Use authConfig.
  7599. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7600. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7601. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. To reduce overhead to find commands whose socket is either
  7603. readable or writable in the download engine loop:
  7604. * src/Command.h, src/Command.cc
  7605. (STATUS): New enum.
  7606. (status): New variable.
  7607. (statusMatch): New function.
  7608. (setStatusActive): New function.
  7609. (setStatusInactive): New function.
  7610. * src/DownloadEngine.h, src/DownloadEngine.cc
  7611. (executeCommand): New function.
  7612. (run): Simplified.
  7613. (waitData): Call Command::setStatusActive() when command's socket is
  7614. readable or writable.
  7615. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. To handle Segment as SegmentHandle:
  7617. * src/AbstractCommand.cc (execute): Rewritten.
  7618. * src/SegmentMan.h: Segment -> SegmentHandle
  7619. Introducded HttpResponse class, HttpRequest class to improve code
  7620. extensiveness and make it clear:
  7621. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7622. HttpResponse class.
  7623. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7624. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7625. * src/HttpConnection.cc: Contruction of http request were moved to
  7626. HttpRequest class.
  7627. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7628. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7629. * src/HttpAuthConfig.h: New class.
  7630. * src/Range.h: New class.
  7631. To make FtpTunnel{Request, Response}Command and
  7632. HttpProxy{Request, Response}Command derived from
  7633. AbstractProxy{Request, Response}Command:
  7634. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7635. Derived from AbstractProxyRequestCommand class.
  7636. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7637. Derived from AbstractProxyResponseCommand class.
  7638. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7639. Derived from AbstractProxyRequestCommand class.
  7640. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7641. Derived from AbstractProxyResponseCommand class.
  7642. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7643. : New class.
  7644. * src/AbstractProxyResponseCommand.h,
  7645. src/AbstractProxyResponseCommand.cc: New class.
  7646. To add netrc support:
  7647. * src/Netrc.h, src/Netrc.cc: New class.
  7648. * src/Util.h, src/Util.cc (split): New function.
  7649. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7650. "Content-Range" header instead of "Range" header.
  7651. * src/HttpHeader.h
  7652. (getStatus): Removed.
  7653. (setStatus): Removed.
  7654. * src/Segment.h
  7655. (getPositionToWrite): New function.
  7656. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. * src/HttpHeader.h
  7658. (Range.h): New include.
  7659. (status): New variable.
  7660. (HttpHeader): Initialized status with 0.
  7661. (getStatus): New function.
  7662. (setStatus): New function.
  7663. (getRange): New function.
  7664. (HttpHeaderHandle): New function.
  7665. * src/HttpHeader.cc
  7666. (getRange): New function.
  7667. * src/Request.h
  7668. (RequestWeakHandle): New definition.
  7669. * src/HttpConnection.h
  7670. (HttpConnectionHandle): New type definition.
  7671. * src/HttpConnection.cc
  7672. (receiveResponse): Set HTTP status to headers.
  7673. * src/main.cc
  7674. (showUsage): Fixed typo.
  7675. * src/Segment.h
  7676. (SegmentHandle): New type definition.
  7677. * src/BitfieldMan.h
  7678. (getMissingUnusedLength): New function.
  7679. * src/BitfieldMan.cc
  7680. (getMissingUnusedLength): New function.
  7681. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. To fix static initialization order problem:
  7683. * src/BitfieldManFactory.h
  7684. (defaultRandomizer): Removed.
  7685. (factory): New variable.
  7686. (getNewFactory): Removed.
  7687. (getFactoryInstance): New function.
  7688. (setDefaultRandomizer): Rewritten.
  7689. (getDefaultRandomizer): Rewritten.
  7690. * src/BitfieldManFactory.cc
  7691. (defaultRandomizer): Removed.
  7692. (factory): Initialized to 0.
  7693. (BitfieldManFactory): Initialized randomizer to 0.
  7694. * src/DefaultPieceStorage.cc
  7695. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7696. * src/Peer.cc
  7697. (Peer): getNewFactory() -> getFactoryInstance()
  7698. * src/SegmentMan.cc
  7699. (initBitfield): getNewFactory() -> getFactoryInstance()
  7700. * src/Piece.cc
  7701. (Piece): getNewFactory() -> getFactoryInstance()
  7702. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. To fix the bug that causes crash on Max OS X:
  7704. * src/SimpleRandomizer.h
  7705. (getInstance): Create new instance if the static variable is null.
  7706. * src/SimpleRandomizer.cc
  7707. (randomizer): Initialized to 0.
  7708. * src/BitfieldManFactory.h
  7709. (getNewFactory): Removed the call to setRandomizer().
  7710. To fix the miscalculation of the range of checksum:
  7711. * src/BitfieldMan.h
  7712. (isBitSetOffsetRange): New function.
  7713. * src/BitfieldMan.cc
  7714. (isBitSetOffsetRange): New function.
  7715. * src/SegmentMan.cc
  7716. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7717. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7718. * Release 0.10.1
  7719. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. To lower CPU usage in BitTorrent download when --max-upload-limit
  7721. command-line option specified:
  7722. * src/DefaultBtMessageDispatcher.cc
  7723. (sendMessages): Calculate uploading speed only when current message
  7724. is uploading data and is not sent yet.
  7725. * src/DefaultPeerStorage.h
  7726. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7727. * src/HttpResponseCommand.cc
  7728. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7729. This fixes compile error in Soralis 10.
  7730. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. To fix segfault in Metalink download:
  7732. * src/UrlRequestInfo.h
  7733. (filename): Removed.
  7734. (totalLength): Removed.
  7735. (setTotalLength): Removed.
  7736. (setFilename): Removed.
  7737. * src/MetalinkRequestInfo.cc
  7738. (execute): Do not set filename and totalLength to reqInfo.
  7739. Set chunk checksum to reqInfo if it is not null.
  7740. * src/HttpResponseCommand.cc
  7741. (executeInternal): Fixed filename in log.
  7742. (handleDefaultEncoding): Removed the call to initBitfield() and
  7743. markAllPiecesDone().
  7744. (handleOtherEncoding): Added HEAD method handling.
  7745. * src/FtpNegotiateCommand.cc
  7746. (executeInternal): Added SEQ_HEAD_OK handling.
  7747. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7748. return false.
  7749. * src/FtpNegotiateCommand.h
  7750. (SEQ_HEAD_OK): New definition.
  7751. * src/SegmentMan.cc
  7752. (initBitfield): Delete bitfield.
  7753. (isChunkChecksumValidationReady): Fixed the condition.
  7754. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7755. works fine.
  7756. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. * src/Xml2MetalinkProcessor.h
  7758. (xpathExists): New function.
  7759. * src/Xml2MetalinkProcessor.cc
  7760. (xpathExists): New function.
  7761. Not to send HEAD request if filename and size are available in Metalink
  7762. file:
  7763. * src/UrlRequestInfo.h
  7764. (filename): New variable.
  7765. (totalLength): New variable.
  7766. (setTotalLength): New function.
  7767. (setFilename): New function.
  7768. * src/MetalinkRequestInfo.cc
  7769. (execute): Set filename and size to UrlRequestInfo.
  7770. * src/MetalinkEntry.cc
  7771. (MetalinkEntry): Initialize size with 0.
  7772. * src/UrlRequestInfo.cc
  7773. (execute): Set filename and size to SegmentMan.
  7774. Not to download rest of the files after selected files are downloaded
  7775. in BitTorrent:
  7776. * src/PieceStorage.h
  7777. (allDownloadFinished): New function.
  7778. * src/DefaultBtAnnounce.cc
  7779. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7780. downloadFinished.
  7781. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7782. * src/DefaultPieceStorage.cc
  7783. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7784. Commented out the call to finishSelectiveDownloadingMode().
  7785. (downloadFinished): Call isFilteredAllBitSet() instead of
  7786. isAllBitSet().
  7787. (allDownloadFinished): New function.
  7788. * src/DefaultBtInteractive.cc
  7789. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7790. downloadFinished().
  7791. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7792. * src/TorrentDownloadEngine.cc
  7793. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7794. * src/BitfieldMan.h
  7795. (isFilteredAllBitSet): New function.
  7796. * src/ShareRatioSeedCriteria.h
  7797. (PieceStorage.h): New include.
  7798. (pieceStorage): New variable.
  7799. (evaluate):
  7800. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7801. * src/BitfieldMan.cc
  7802. (isFilteredAllBitSet): New function.
  7803. (isAllBitSet): Filter is not took into account.
  7804. Rename --force-truncate as --allow-overwrite:
  7805. * src/TorrentRequestInfo.cc
  7806. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7807. * src/main.cc
  7808. (showUsage): --force-truncate -> --allow-overwrite
  7809. * src/message.h
  7810. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7811. * src/prefs.h
  7812. (PREF_FORCE_TRUNCATE): Removed.
  7813. (PREF_ALLOW_OVERWRITE): New definition.
  7814. * src/SegmentMan.cc
  7815. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7816. * src/MetalinkRequestInfo.cc
  7817. (execute): Queueing message are now logged in info level.
  7818. * src/common.h
  7819. (LONG_LONG_MAX): Removed.
  7820. (LONG_LONG_MIN): Removed.
  7821. * src/HttpResponseCommand.cc
  7822. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7823. * src/FtpNegotiateCommand.cc
  7824. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7825. * src/main.cc
  7826. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7827. command-line option.
  7828. (main): Added --check-integriy and --realtime-chunk-checksum
  7829. command-line option.
  7830. --force-truncate -> --allow-overwrite
  7831. Set initial value of --check-integrity option to false.
  7832. Don't show usage when error occurs while persing command-line options.
  7833. Removed deprecated --upload-limit option.
  7834. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7836. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7837. * src/BtAllowedFastMessage.cc:
  7838. * src/BtBitfieldMessage.cc
  7839. * src/BtCancelMessage.cc
  7840. * src/BtChokeMessage.cc
  7841. * src/BtHaveAllMessage.cc
  7842. * src/BtHaveMessage.cc
  7843. * src/BtHaveNoneMessage.cc
  7844. * src/BtInterestedMessage.cc
  7845. * src/BtNotInterestedMessage.cc
  7846. * src/BtPieceMessage.cc
  7847. * src/BtPortMessage.cc
  7848. * src/BtRejectMessage.cc
  7849. * src/BtRequestMessage.cc
  7850. * src/BtSuggestPieceMessage.cc
  7851. * src/BtUnchokeMessage.cc
  7852. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7853. files are affected.
  7854. * src/ChunkChecksumValidator.cc
  7855. * src/SegmentMan.cc
  7856. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. To add chunk checksum validation:
  7858. * src/MetalinkEntry.h
  7859. (MetalinkChunkChecksum.h): New include.
  7860. (chunkChecksum): New variable.
  7861. * src/Request.h
  7862. (method): New variable.
  7863. (setMethod): New function.
  7864. (getMethod): New function.
  7865. (METHOD_GET): New static constant.
  7866. (METHOD_HEAD): New static constant.
  7867. * src/Xml2MetalinkProcessor.h
  7868. (getPieceHash): New function.
  7869. * src/PieceStorage.h
  7870. (markAllPiecesDone): New function.
  7871. (checkIntegrity): New function.
  7872. * src/FileAllocator.h
  7873. (NullFileAllocationMonitor.h): New include.
  7874. (FileAllocator): Initialize fileAllocationMonitor with new
  7875. NullFileAllocationMonitor().
  7876. * src/MultiDiskAdaptor.h
  7877. (messageDigest.h): Remove include.
  7878. (ctx): Removed.
  7879. (hashUpdate): Added ctx.
  7880. (MultiDiskAdaptor): Removed ctx.
  7881. (sha1Sum): Renamed as messageDigest.
  7882. (messageDigest): New function.
  7883. * src/UrlRequestInfo.h
  7884. (HeadResult): New class.
  7885. (digestAlgo): New variable.
  7886. (chunkChecksumLength): New variable.
  7887. (chunkChecksums): New variable.
  7888. (getHeadResult): New function.
  7889. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7890. (setDigestAlgo): New function.
  7891. (setChunkChecksumLength): New function.
  7892. (setChunkChecksums): New function.
  7893. * src/DefaultPieceStorage.cc
  7894. (DiskAdaptorWriter.h): New include.
  7895. (ChunkChecksumValidator.h): New include.
  7896. (markAllPiecesDone): New function.
  7897. (checkIntegrity): New function.
  7898. * src/DefaultBtContext.h
  7899. (getPieceHashes): New function.
  7900. * src/TorrentRequestInfo.cc
  7901. (execute): Try to validate chunk checksum if file already exists and
  7902. .aria2 file doesn't there and user allows aria2 to overwrite it.
  7903. * src/messageDigest.h
  7904. (~MessageDigestContext): Added digestFree().
  7905. * src/MetalinkRequestInfo.cc
  7906. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  7907. * src/DiskAdaptor.h
  7908. (messageDigest.h): New include.
  7909. (sha1Sum): Renamed as messageDigest.
  7910. (messageDigest): New function.
  7911. * src/DownloadCommand.h
  7912. (PeerStat.h): New include.
  7913. (maxDownloadSpeedLimit): New variable.
  7914. (startupIdleTime): New variable.
  7915. (lowestDownloadSpeedLimit): New variable.
  7916. (peerStat): New variable.
  7917. (setMaxDownloadSpeedLimit): New function.
  7918. (setStartupIdleTime): New function.
  7919. (setLowestDownloadSPeedLimit): New function.
  7920. * src/BtContext.h
  7921. (getPieceHashes): New function.
  7922. * src/main.cc
  7923. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  7924. option to true for testing purpose.
  7925. * src/BtPieceMessage.cc
  7926. (checkPieceHash): Use messageDigest
  7927. * src/DownloadEngine.cc
  7928. (SetDescriptor): Removed.
  7929. (AccumulateActiveCommand): Removed.
  7930. (waitData): Rewritten.
  7931. (updateFdSet): Rewritten.
  7932. * src/MultiDiskAdaptor.cc
  7933. (hashUpdate): Added ctx.
  7934. (sha1Sum): Renamed as messageDigest.
  7935. (messageDigest): New function.
  7936. * src/BitfieldMan.h
  7937. (isBitRangeSet): New function.
  7938. (unsetBitRange): New function.
  7939. * src/ByteArrayDiskWriter.h
  7940. (sha1Sum): Renamed as messageDigest.
  7941. (messageDigest): New function.
  7942. * src/ConsoleDownloadEngine.cc
  7943. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  7944. * src/DiskWriter.h
  7945. (messageDigest.h): New include.
  7946. (sha1Sum): Renamed as messageDigest.
  7947. (messageDigest): New function.
  7948. * src/ChunkChecksumValidator.h: New class.
  7949. * src/DiskAdaptorWriter.h: New class.
  7950. * src/prefs.h
  7951. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7952. (PREF_CHECK_INTEGRITY): New definition.
  7953. * src/HttpResponseCommand.cc
  7954. (handleDefaultEncoding): Added method "HEAD" handling.
  7955. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7956. (handleOtherEncoding):
  7957. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7958. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7959. startupIdleTime, lowestDownloadSpeedLimit to command.
  7960. * src/SegmentMan.h
  7961. (getSegmentEntryByIndex): New function.
  7962. (getSegmentEntryByCuid): New function.
  7963. (getSegmentEntryIteratorByCuid): New function.
  7964. (diskWriter): DiskWriter -> DiskWriterHandle
  7965. (pieceHashes): New variable.
  7966. (chunkHashLength): New variable.
  7967. (digestAlgo): New variable.
  7968. (FindPeerStat): Removed.
  7969. (getPeerStat): Rewritten.
  7970. (markAllPiecesDone): New function.
  7971. (checkIntegrity): New function.
  7972. (tryChunkChecksumValidation): New function.
  7973. (isChunkChecksumValidationReady): New function.
  7974. * src/BitfieldMan.cc
  7975. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7976. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7977. blocks to 0.
  7978. (isBitRangeSet): New function.
  7979. (unsetBitRange): New function.
  7980. * src/FtpNegotiateCommand.cc
  7981. (executeInternal): Set maxDownloadSpeedLimit,
  7982. startupIdleTime, lowestDownloadSpeedLimit to command.
  7983. (recvSize): Added method "HEAD" handling.
  7984. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7985. * src/AbstractSingleDiskAdaptor.cc
  7986. (sha1Sum): Renamed as messageDigest.
  7987. (messageDigest): New function.
  7988. * src/AbstractSingleDiskAdaptor.h
  7989. (sha1Sum): Renamed as messageDigest.
  7990. (messageDigest): New function.
  7991. * src/Util.h
  7992. (indexRange): New function.
  7993. * src/MetalinkEntry.cc
  7994. (MetalinkEntry): Initialized chunkChecksum to 0.
  7995. * src/ShaVisitor.cc
  7996. (~ShaVisitor): Removed the call to ctx.digestFree().
  7997. * src/SegmentMan.cc
  7998. (ChunkChecksumValidator.h): New include.
  7999. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8000. to DIGEST_ALGO_SHA1.
  8001. (~SegmentMan): Removed diskWriter.
  8002. (FindSegmentEntryByIndex): Removed.
  8003. (FindSegmentEntryByCuid): Removed.
  8004. (checkoutSegment): Rewritten.
  8005. (findSlowerSegmentEntry): Rewritten.
  8006. (getSegment): Rewritten.
  8007. (updateSegment): Rewritten.
  8008. (completeSegment): Rewritten.
  8009. (markAllPiecesDone): New function.
  8010. (checkIntegrity): New function.
  8011. (isChunkChecksumValidationReady): New function.
  8012. (tryChunkChecksumValidation): New function.
  8013. * src/Xml2MetalinkProcessor.cc
  8014. (getEntry): Get size and set it to entry.
  8015. Get chunk checksum and set it to entry.
  8016. (getPieceHash): New function.
  8017. * src/Util.cc
  8018. (sha1Sum): Removed ctx.digestFree()
  8019. (fileChecksum): Removed ctx.digestFree()
  8020. (indexRange): New function.
  8021. * src/Request.cc
  8022. (METHOD_GET): New variable.
  8023. (METHOD_HEAD): New variable.
  8024. (Request): Added method.
  8025. * src/UrlRequestInfo.cc
  8026. (FatalException.h): New include.
  8027. (message.h): New include.
  8028. (operator<<): Added operator<< for class HeadResult.
  8029. (getHeadResult): New function.
  8030. (execute): Get filename and size in separate download engine.
  8031. * src/ChunkChecksumValidator.cc: New class.
  8032. * src/DownloadCommand.cc:
  8033. (DownloadCommand): Added peerStat.
  8034. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8035. the value from Option.
  8036. The buffer size is now 16KB.
  8037. Use peerStat member instead of getting it from SegmentMan.
  8038. Use startupIdleTime member instead of gettingit from Option.
  8039. Added chunk checksum validation.
  8040. * src/AbstractDiskWriter.cc
  8041. (AbstractDiskWriter): Removed ctx.
  8042. (~AbstractDiskWriter): Removed ctx.digestFree()
  8043. (writeDataInternal): Returns the return value of write.
  8044. (readDataInternal): Returns the return value of read.
  8045. (sha1Sum): Renamed as messageDigest
  8046. (messageDigest): New function.
  8047. * src/AbstractDiwkWriter.h
  8048. (messageDigest.h): Removed include.
  8049. (ctx): Removed.
  8050. (sha1Sum): Renamed as messageDigest
  8051. (messageDigest): New function.
  8052. * src/DefaultPieceStorage.h
  8053. (markAllPiecesDone): New function.
  8054. (checkIntegrity): New function.
  8055. * src/NullFileAllocationMonitor.h: New class.
  8056. * src/MetalinkChunkChecksum.h: New class.
  8057. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. To decrease CPU usage in bittorrent download, calculation results in
  8059. BitfieldMan were cached and realtime fetching PeerObject was removed
  8060. with WeakHandle introduced. Option values are set to the objects
  8061. by setter before download begins.
  8062. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8063. * src/DefaultBtRequestFactory.h
  8064. (dispatcher): BtMessageDispatcherHandle ->
  8065. BtMessageDispatcherWeakHandle.
  8066. (messageFactory): New variable.
  8067. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8068. BtMessageDispatcherWeakHandle.
  8069. (setBtMessageFactory): New function.
  8070. * src/DefaultBtMessageDispatcher.cc:
  8071. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8072. from Option.
  8073. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8074. feating the value from Option.
  8075. Use messageFactory member.
  8076. * src/PeerInteractionCommand.cc
  8077. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8078. Add reverse dependencies to factory object.
  8079. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8080. dispatcher.
  8081. Set messageFactory to receiver.
  8082. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8083. btInteractive.
  8084. Set receiver to peerObject.
  8085. Set maxDownloadSpeedLimit to this.
  8086. (executeInternal): Use maxDownloadSpeedLimit member.
  8087. * src/BtChokeMessage.cc
  8088. (doReceivedAction): Use dispatcher, requestFactory member.
  8089. (onSendComplete): Use dispatcher member.
  8090. * src/PeerInteractionCommand.h
  8091. (maxDownloadSpeedLimit): New variable.
  8092. * src/DefaultBtMessageReceiver.h
  8093. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8094. (dispatcher):
  8095. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8096. (messageFactory): New variable.
  8097. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8098. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8099. (setDispatcher):
  8100. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8101. (setBtMessageFactory): New function.
  8102. * src/DefaultBtInteractive.cc
  8103. (initiateHandshake): Use messageFactory member.
  8104. (addBitfieldMessageToQueue): Use messageFactory member.
  8105. (addAllowedFastMessageToQueue): Use messageFactory member.
  8106. (decideChoking): Use messageFactory member.
  8107. (checkHave): Use messageFactory member.
  8108. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8109. (receiveMessages): Use maxDownloadSpeedLimit member.
  8110. (decideInterest): Use messageFactory member.
  8111. * src/BtRequestMessage.cc
  8112. (doReceivedAction): Use messageFactory, dispatcher member.
  8113. (onQueued): Use dispatcher member.
  8114. * src/BtPieceMessage.cc
  8115. (doReceivedAction): Use dispatcher member.
  8116. (send): Use peerConnection member.
  8117. (onWrongPiece): Use requestFactory member.
  8118. (handleChokingEvent): Use messageFactory, dispatcher member.
  8119. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8120. * src/BtMessageDispatcher.h
  8121. (BtMessageDispatcherWeakHandle): New type definition.
  8122. * src/SimpleBtMessage.cc
  8123. (send): Use peerConnection member.
  8124. * src/BtRejectMessage.cc
  8125. (doReceivedAction): Use dispatcher member.
  8126. * src/DefaultBtMessageDispatcher.h
  8127. (Option.h): Removed include.
  8128. (messageFactory): New variable.
  8129. (option): Removed.
  8130. (maxUploadSpeedLimit): New variable.
  8131. (requestTimeout): New variable.
  8132. (DefaultBtMessageDispatcher): Removed option.
  8133. Added maxUploadSpeedLimit, requestTimeout.
  8134. (setOption): Removed.
  8135. (getOption): Removed.
  8136. (setMaxUploadSpeedLimit): New function.
  8137. (setRequestTimeout): New function.
  8138. (setBtMessageFactory): New function.
  8139. * src/DefaultBtInteractive.h
  8140. (btMessageReceiver):
  8141. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8142. (dispatcher):
  8143. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8144. (btRequestFactory):
  8145. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8146. (peerConnection):
  8147. PeerConnectionHandle -> PeerConnectionWeakHandle
  8148. (messageFactory): New variable.
  8149. (option): Removed.
  8150. (keepAliveInterval): New variable.
  8151. (maxDownloadSpeedLimit): New variable.
  8152. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8153. (setBtMessageReceiver):
  8154. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8155. (setDispatcher):
  8156. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8157. (setBtRequestFactory):
  8158. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8159. (setPeerConnection):
  8160. PeerConnectionHandle -> PeerConnectionWeakHandle
  8161. (setOption): Removed.
  8162. (setKeepAliveInterval): New function.
  8163. (setMaxDownloadSpeedLimit): New function.
  8164. (setBtMessageFactory): New function.
  8165. * src/BitfieldMan.h
  8166. (cachedNumMissingBlock): New variable.
  8167. (cachedNumFilteredBlock): New variable.
  8168. (cachedCompletedLength): New variable.
  8169. (cachedFilteredComletedLength): New variable.
  8170. (cachedFilteredTotalLength): New variable.
  8171. (countMissingBlockNow): New function.
  8172. (countFilteredBlockNow): New function.
  8173. (getFilteredTotalLengthNow): New function.
  8174. (getCompletedLengthNow): New function.
  8175. (getFilteredCompletedLengthNow): New function.
  8176. (updateCache): New function.
  8177. * src/AbstractBtMessage.h
  8178. (BtMessageDispatcher.h): New include.
  8179. (PeerConnection.h): New include.
  8180. (BtRequestFactory.h): New include
  8181. (BtMessageFactory.h): New include.
  8182. (dispatcher): New variable.
  8183. (messageFactory): New variable.
  8184. (peerConnection: New variable.
  8185. (setBtMessageDispatcher): New function.
  8186. (setPeerConnection): New function.
  8187. (setBtMessageFactory): New function.
  8188. (setBtRequestFactory): New function.
  8189. * src/DefaultBtMessageFactory.cc
  8190. (setCommonProperty): Set dispatcher, requestFactory, this,
  8191. peerConnection to msg.
  8192. * src/BtRegistry.h
  8193. (BT_MESSAGE_RECEIVER): New macro.
  8194. * src/PeerConnection.h
  8195. (PeerConnectionWeakHandle): New type definition.
  8196. * src/BtMessageFactory.h
  8197. (BtMessageFactoryWeakHandle): New type definition.
  8198. * src/BitfieldMan.cc
  8199. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8200. cachedCompletedLength, cachedFilteredComletedLength,
  8201. cachedFilteredTotalLength.
  8202. Call updateCache().
  8203. (countMissingBlock): Return cachedNumMissingBlock.
  8204. (countMissingBlockNow): New function.
  8205. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8206. (countFilteredBlockNow): New function.
  8207. (setBit): Call updateCache().
  8208. (unsetBit): Call updateCache().
  8209. (setBitfield): Call updateCache().
  8210. (clearAllBit): Call updateCache().
  8211. (setAllBit): Use setBitInternal instead of setBit.
  8212. Call updateCache().
  8213. (addFilter): Call updateCache().
  8214. (enableFilter): Call updateCache().
  8215. (disableFilter): Call updateCache().
  8216. (clearFilter): Call updateCache().
  8217. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8218. (getFilteredTotalLengthNow): New function.
  8219. (getCompletedLength): Return cachedCompletedLength.
  8220. (getCompletedLengthNow): New function.
  8221. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8222. (getFilteredCompletedLengthNow): New function.
  8223. (updateCache): New function.
  8224. * src/BtMessageReceiver.h
  8225. (BtMessageReceiverWeakHandle): New type definition.
  8226. * src/DefaultBtMessageReceiver.cc
  8227. (receiveHandshake): Use messageFactory member.
  8228. (sendHandshake): Use messageFactory member.
  8229. (receiveMessage): Use messageFactory member.
  8230. * src/DefaultBtMessageFactory.h
  8231. (dispatcher): New variable.
  8232. (requestFactory): New variable.
  8233. (peerConnection): New variablle.
  8234. (setBtMessageDispatcher): New function.
  8235. (setBtRequestFactory): New function.
  8236. (setPeerConnection): New function.
  8237. * src/SharedHandle.h
  8238. (RefCount): New class.
  8239. (WeakHandle): New class.
  8240. * src/PeerObject.h
  8241. (BtMessageReceiver.h): New include.
  8242. (PeerObject): Added btMessageReceiver.
  8243. (btMessageReceiver): New variable.
  8244. * src/Util.cc
  8245. (countBit): Simplified.
  8246. * src/BtCancelMessage.cc
  8247. (doReceivedAction): Use dispatcher member.
  8248. * src/BtRequestFactory.h
  8249. (BtRequestFactoryWeakHandle): New type definition.
  8250. * src/PeerStorage.h
  8251. (downloadSpeed): int -> uint32_t
  8252. (uploadSpeed): int -> uint32_t
  8253. (sessionDownloadLength): long long int -> uint64_t
  8254. (sessionUploadLength): long long int -> uint64_t
  8255. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. To add RecoverableException, FatalException:
  8257. * src/AbstractCommand.cc
  8258. (onAbort): Exception -> RecoverableException
  8259. * src/PeerAbstractCommand.h
  8260. (RecoverableException.h): New include.
  8261. (onAbort): Exception -> RecoverableException.
  8262. * src/PeerInteractionCommand.cc
  8263. (onAbort): Exception -> RecoverableException.
  8264. * src/PeerAbstractCommand.cc
  8265. (execute): Exception -> RecoverableException.
  8266. (onAbort): Exception -> RecoverableException.
  8267. * src/TorrentRequestInfo.cc
  8268. (execute): Exception -> RecoverableException.
  8269. * src/MetalinkRequestInfo.cc
  8270. (execute): Exception -> RecoverableException.
  8271. * src/MetaFileUtil.cc: RecoverableException.
  8272. * src/AbstractCommand.h
  8273. (onAbort): Exception -> RecoverableException.
  8274. * src/DlRetryEx.h: Exception -> RecoverableException.
  8275. * src/DlAbortEx.h: Exception -> RecoverableException.
  8276. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8277. * src/Util.cc: Exception -> RecoverableException.
  8278. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8279. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8280. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8281. To make ID static const int
  8282. * src/BtInterestedMessage.h
  8283. (ID_t): Removed.
  8284. (ID): New variable.
  8285. (getId): Made non-const.
  8286. * src/BtPieceMessage.h
  8287. (ID_t): Removed.
  8288. (ID): New variable.
  8289. (getId): Made non-const.
  8290. * src/BtChokeMessage.h
  8291. (ID_t): Removed.
  8292. (ID): New variable.
  8293. (getId): Made non-const.
  8294. * src/BtHaveAllMessage.h
  8295. (ID_t): Removed.
  8296. (ID): New variable.
  8297. (getId): Made non-const.
  8298. * src/BtKeepAliveMessage.h
  8299. (ID_t): Removed.
  8300. (ID): New variable.
  8301. (getId): Made non-const.
  8302. * src/BtHandshakeMessage.h
  8303. (ID): New variable.
  8304. (getId): Made non-const.
  8305. * src/BtSuggestPieceMessage.h
  8306. (ID_t): Removed.
  8307. (ID): New variable.
  8308. (getId): Made non-const.
  8309. * src/BtPortMessage.h
  8310. (ID_t): Removed.
  8311. (ID): New variable.
  8312. (getId): Made non-const.
  8313. * src/AbstractBtMessage.h
  8314. (id): Removed.
  8315. (AbstractBtMessage): Removed id.
  8316. (getId): Removed.
  8317. * src/BtHaveMessage.h
  8318. (ID_t): Removed.
  8319. (ID): New variable.
  8320. (getId): Made non-const.
  8321. * src/BtAllowedFastMessage.h
  8322. (ID_t): Removed.
  8323. (ID): New variable.
  8324. (getId): Made non-const.
  8325. * src/BtCancelMessage.h
  8326. (ID_t): Removed.
  8327. (ID): New variable.
  8328. (getId): Made non-const.
  8329. * src/BtNotInterestedMessage.h
  8330. (ID_t): Removed.
  8331. (ID): New variable.
  8332. (getId): Made non-const.
  8333. * src/BtChokeMessage.h
  8334. (ID_t): Removed.
  8335. (ID): New variable.
  8336. (getId): Made non-const.
  8337. * src/BtRejectMessage.h
  8338. (ID_t): Removed.
  8339. (ID): New variable.
  8340. (getId): Made non-const.
  8341. * src/BtBitfieldMessage.h
  8342. (ID_t): Removed.
  8343. (ID): New variable.
  8344. (getId): Made non-const.
  8345. * src/BtUnchokeMessage.h
  8346. (ID_t): Removed.
  8347. (ID): New variable.
  8348. (getId): Made non-const.
  8349. * src/BtRequestMessage.h
  8350. (ID_t): Removed.
  8351. (ID): New variable.
  8352. (getId): Made non-const.
  8353. * src/BtHaveMessage.h
  8354. (ID_t): Removed.
  8355. (ID): New variable.
  8356. (getId): Made non-const.
  8357. To add --force-truncate command-line option and a check whether
  8358. the file already exists:
  8359. * src/DirectDiskAdaptor.h
  8360. (getFilePath): Made virtual public.
  8361. * src/MultiDiskAdaptor.h
  8362. (File.h): New include.
  8363. (DiskWriterEntry::fileEntry): Made private.
  8364. (DiskWriterEntry::fileExists): New function.
  8365. (DiskWriterEntry::getFileEntry): New function.
  8366. (fileExists): New function.
  8367. (getFilePath): New function.
  8368. * src/TorrentRequestInfo.cc
  8369. (FatalException.h): New include.
  8370. (message.h): New include.
  8371. (RecoverableException.h): New include.
  8372. (execute): Added a check whether file is already exists or not.
  8373. * src/DiskAdaptor.h
  8374. (fileExists): New function.
  8375. (getFilePath): New function.
  8376. * src/main.cc
  8377. (showUsage): Added an explanation of --force-truncate command-line
  8378. option.
  8379. (main): Added --force-truncate command-line option.
  8380. * src/Exception.h
  8381. (setMsg): buf[256] -> buf[1024]
  8382. * src/CopyDiskWriter.h
  8383. (getFilePath): Made public virtual.
  8384. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8385. (fileExists): New function.
  8386. * src/DownloadEngineFactory.cc
  8387. (newTorrentConsoleEngine): Don't open file here.
  8388. * src/message.h
  8389. (EX_FILE_ALREADY_EXISTS): New definition.
  8390. * src/prefs.h
  8391. (PREF_FOECE_TRUNCATE): New definition.
  8392. * src/HttpResponseCommand.cc
  8393. (handleDefaultEncoding): Added a check whether the file already exists.
  8394. * src/SegmentMan.h
  8395. (fileExists): New function.
  8396. (shouldCancelDownloadForSafety): New function.
  8397. * src/FtpNegotiateCommand.cc
  8398. (recvSize): Added a check whether the file already exists.
  8399. * src/AbstractSingleDiskAdaptor.cc
  8400. (File.h): New include.
  8401. (fileExists): New function.
  8402. * src/AbstractSingleDiskAdaptor.h
  8403. (getFilePath): Removed.
  8404. (fileExists): New function.
  8405. * src/SegmentMan.cc
  8406. (fileExists): New function.
  8407. (shouldCancelDownloadForSafety): New function.
  8408. To fix regression bug in torrent downloading:
  8409. * src/DefaultBtRequestFactory.cc
  8410. (doChokedAction): New function.
  8411. * src/DefaultBtRequestFactory.h
  8412. (doChokedAction): New function.
  8413. * src/DefaultBtMessageDispatcher.cc
  8414. (doChokedAction): Do not delete request if its target is in allowed
  8415. fast set.
  8416. * src/DefaultBtInteractive.cc
  8417. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8418. (sendKeepAlive): Send keep alive message even if the outgoing message
  8419. queue is not empty.
  8420. (decideInterest): Simplified the code.
  8421. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8422. it is already called when BtChokeMessage is received from a peer.
  8423. * src/BtRequestFactory.h
  8424. (doChokedAction): New function.
  8425. To clean up code:
  8426. * src/PeerInteractionCommand.h
  8427. (executeInternal): Added virtual keyword explicitly.
  8428. (prepareForRetry): Added virtual keyword explicitly.
  8429. (prepareForNextPeer): Added virtual keyword explicitly.
  8430. (onAbort): Added virtual keyword explicitly.
  8431. * src/RequestSlot.cc
  8432. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8433. * src/BtPieceMessage.cc
  8434. (doReceivedAction): Added a debug log of piece's bitfield.
  8435. * src/Piece.h
  8436. (getBitfieldLength): New function.
  8437. * src/ByteArrayDiskWriter.cc
  8438. (clear): Added buf = 0 to avoid double free corruption.
  8439. * src/FileAllocator.cc
  8440. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8441. Added cp.reset().
  8442. * src/BitfieldMan.h
  8443. (operator=): Rewritten.
  8444. * src/BitfieldMan.cc
  8445. (BitfieldMan): Initialized bitfield, useBitfield.
  8446. * src/PeerConnection.cc
  8447. (receiveMessage): Added a call to socket->readable() after getting
  8448. message length to avoid possible EOF.
  8449. * src/Util.cc
  8450. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8451. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. To add an ability to pre-allocate file space:
  8453. * src/DirectDiskAdaptor.h: Rewritten.
  8454. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8455. * src/MultiDiskAdaptor.h: Rewritten.
  8456. * src/DefaultPieceStorage.cc
  8457. (MultiDiskWriter.h): Removed include.
  8458. (PreAllocationDiskWriter.h): Removed include.
  8459. (FileAllocationMonitor.h): New include.
  8460. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8461. (initStorage): Rewritten.
  8462. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8463. * src/FileAllocator.h: New class.
  8464. * src/FileAllocator.cc: New class.
  8465. * src/FileAllocationMonitor.h: New class.
  8466. * src/FileAllocationMonitor.cc: New class.
  8467. * src/ConsoleFileAllocationMonitor.h: New class.
  8468. * src/ConsoleFileAllocationMonitor.cc: New class.
  8469. * src/AbstractSingleDiskAdaptor.h: New class.
  8470. * src/AbstractSingleDiskAdaptor.cc: New class.
  8471. * src/DiskAdaptor.h
  8472. (Directory.h): Removed include.
  8473. (DiskWriter.h): Removed include.
  8474. (FileEntry.h): Removed include.
  8475. (diskWriter): Removed.
  8476. (DiskAdaptor): Removed diskWriter.
  8477. (openFile): Made pure virtual.
  8478. (closeFile): Made pure virtual.
  8479. (openExistingFile): Made pure virtual.
  8480. (initAndOpenFile): Made pure virtual.
  8481. (writeData): Made pure virtual.
  8482. (readData): Made pure virtual.
  8483. (sha1Sum): Made pure virtual.
  8484. (getStoreDir): Returns const reference of storeDir.
  8485. (DiskAdaptorHandle): New type definition.
  8486. * src/main.cc
  8487. (ConsoleFileAllocationMonitor.h): New include.
  8488. (showUsage): Added default value description of -s option.
  8489. Added the description of --file-allocation option.
  8490. (main): Set default value of --file-allocation option to 'none'.
  8491. Added --file-allocation command-line option.
  8492. Setup FileAllocationMonitorFactory.
  8493. * src/FtpInitiateConnectionCommand.cc
  8494. (executeInternal): Removed diskWriter related processing, which was
  8495. moved to FtpNegotiationCommand.cc.
  8496. * src/DirectDiskAdaptor.cc
  8497. (getFilePath): Made non-const.
  8498. * src/CopyDiskAdaptor.h
  8499. (DiskAdaptor.h): Removed include.
  8500. (DiskWriter.h): Removed include.
  8501. (AbstractSingleDiskAdaptor.h): New include.
  8502. (getFilePath): Made non-const. Added virtual keyword.
  8503. (CopyDiskAdaptor): Removed diskWriter.
  8504. (getTempFile): Returns const reference.
  8505. (CopyDiskAdaptorHandle): New type definition.
  8506. * src/ByteArrayDiskWriter.cc
  8507. (clear): Simplified.
  8508. (initAndOpenFile): Rewritten.
  8509. (openFile): Call initAndOpenFile()
  8510. * src/MultiDiskAdaptor.cc: Rewritten.
  8511. * src/DownloadEngineFactory.cc
  8512. (FileAllocator.h): New include.
  8513. (FileAllocationMonitor.h): New include.
  8514. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8515. create DefaultDiskWriter with file allocator.
  8516. * src/DiskWriter.h
  8517. (initAndOpenFile): Added totalLength argument.
  8518. (openFile): Added totalLength argument.
  8519. * src/prefs.h
  8520. (PREF_FILE_ALLOCATION): New definition.
  8521. (V_PREALLOC): New definition.
  8522. (V_NONE): New definition.
  8523. * src/HttpResponseCommand.cc
  8524. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8525. size.
  8526. * src/FtpNegotiateCommand.cc
  8527. (Util.h): New include.
  8528. (recvSize): Open file here.
  8529. * src/Util.h
  8530. (ullitos): New function.
  8531. * src/CopyDiskWriter.h
  8532. (getFilePath): Made non-const.
  8533. * src/DefaultDiskWriter.h
  8534. (Option.h): New include.
  8535. (totalLength): Removed.
  8536. (DefaultDiskWriter): Removed totalLength.
  8537. (initAndOpenFile): Added totalLength argument.
  8538. (DefaultDiskWriterHandle): New type definition.
  8539. (createNewDiskWriter): New function.
  8540. * src/Util.cc
  8541. (ullitos): New function.
  8542. * src/DefaultDiskWriter.cc
  8543. (message.h): New include.
  8544. (FileAllocator.h): New include.
  8545. (prefs.h): New include.
  8546. (Util.h): New include.
  8547. (DefaultDiskWriter): Removed totalLength.
  8548. (initAndOpenFile): Added file allocation.
  8549. (createNewDiskWriter): New function. Just for temporary solution.
  8550. It will be rewritten later.
  8551. * src/DiskAdaptor.cc
  8552. (DiskAdaptor): Removed diskWriter.
  8553. * src/AbstractDiskWriter.cc
  8554. (LogFactory.h): New include.
  8555. (AbstractDiskWriter): Added fileAllocator, logger.
  8556. (openFile): Added totalLength argument.
  8557. * src/AbstractDiskWriter.h
  8558. (FileAllocator.h): New include.
  8559. (Logger.h): New include.
  8560. (fileAllocator): New variable.
  8561. (logger): New variable.
  8562. (openFile): Added totalLength argument. Added virtual keyword
  8563. explicitly.
  8564. (openExistingFile): Added totalLength argument. Added virtual keyword
  8565. explicitly.
  8566. (closeFile): Added virtual keyword explicitly.
  8567. (sha1Sum): Added virtual keyword explicitly.
  8568. (writeData): Added virtual keyword explicitly.
  8569. (readData): Added virtual keyword explicitly.
  8570. (setFileAllocator): New function.
  8571. * src/DefaultPieceStorage.h
  8572. (FileAllocator.h): New include.
  8573. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8574. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8575. * src/FileProgressMonitor.h: New class.
  8576. To compile aria2 on PC-BSD:
  8577. * src/DefaultBtContext.cc
  8578. (libgen.h): New include.
  8579. To fix memory leak:
  8580. * src/Exception.h
  8581. (~Exception): Delete cause. Fixed memory leak.
  8582. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Rewritten a portion of bittorrent implementation:
  8584. * src/BtMessageValidator.h: New class.
  8585. * src/BtBitfieldMessageValidator.h: New class.
  8586. * src/BtHandshakeMessageValidator.h: New class.
  8587. * src/BtRequestMessageValidator.h: New class.
  8588. * src/BtSuggestPieceMessageValidator.h: New class.
  8589. * src/BtAllowedFastMessageValidator.h: New class.
  8590. * src/BtRejectMessageValidator.h: New class.
  8591. * src/BtCancelMessageValidator.h: New class.
  8592. * src/BtPieceMessageValidator.h: New class.
  8593. * src/BtHaveMessageValidator.h: New class.
  8594. * src/BtEventListener.h: New class.
  8595. * src/AbstractBtEventListener.h: New class.
  8596. * src/BtEvent.h: New class.
  8597. * src/BtChokingEvent.h: New class.
  8598. * src/BtChokedEvent.h: New class.
  8599. * src/BtCancelSendingPieceEvent.h: New class.
  8600. * src/BtAbortOutstandingRequestEvent.h: New class.
  8601. * src/Randomizer.h: New class.
  8602. * src/SimpleRandomizer.h: New class.
  8603. * src/BtMessage.h: New class.
  8604. * src/AbstractBtMessage.h: New class.
  8605. * src/SimpleBtMessage.h: New class.
  8606. * src/BtHaveMessage.h: New class.
  8607. * src/BtInterestedMessage.h: New class.
  8608. * src/BtAllowedFastMessage.h: New class.
  8609. * src/BtUnchokeMessage.h: New class.
  8610. * src/BtCancelMessage.h: New class.
  8611. * src/BtNotInterestedMessage.h: New class.
  8612. * src/BtChokeMessage.h: New class.
  8613. * src/BtHaveNoneMessage.h: New class.
  8614. * src/BtHandshakeMessage.h: New class.
  8615. * src/BtSuggestPieceMessage.h: New class.
  8616. * src/BtHaveMessage.h: New class.
  8617. * src/BtPieceMessage.h: New class.
  8618. * src/BtHaveAllMessage.h: New class.
  8619. * src/BtKeepAliveMessage.h: New class.
  8620. * src/BtPortMessage.h: New class.
  8621. * src/BtRejectMessage.h: New class.
  8622. * src/BtBitfieldMessage.h: New class.
  8623. * src/BtRequestMessage.h: New class.
  8624. * src/DefaultBtRequestFactory.h: New class.
  8625. * src/DefaultBtMessageReceiver.h: New class.
  8626. * src/BtInteractive.h: New class.
  8627. * src/BtMessageDispatcher.h: New class.
  8628. * src/DefaultBtMessageDispatcher.h: New class.
  8629. * src/DefaultBtInteractive.h: New class.
  8630. * src/BitfieldManFactory.h: New class.
  8631. * src/HandleRegistry.h: New class.
  8632. * src/BtMessageFactory.h: New class.
  8633. * src/BtMessageReceiver.h: New class.
  8634. * src/DefaultBtMessageFactory.h: New class.
  8635. * src/PeerObject.h: New class.
  8636. * src/BtRequestFactory.h: New class.
  8637. * src/SuggestPieceMessage.h: Removed.
  8638. * src/PortMessage.h: Removed.
  8639. * src/SuggestPieceMessage.h: Removed.
  8640. * src/KeepAliveMessage.h: Removed.
  8641. * src/HandshakeMessage.h: Removed.
  8642. * src/PeerInteraction.h: Removed.
  8643. * src/UnchokeMessage.h: Removed.
  8644. * src/PieceMessage.h: Removed.
  8645. * src/RequestMessage.h: Removed.
  8646. * src/InterestedMessage.h: Removed.
  8647. * src/HaveMessage.h: Removed.
  8648. * src/CancelMessage.h: Removed.
  8649. * src/RejectMessage.h: Removed.
  8650. * src/AllowedFastMessage.h: Removed.
  8651. * src/HaveNoneMessage.h: Removed.
  8652. * src/SimplePeerMessage.h: Removed.
  8653. * src/HaveAllMessage.h: Removed.
  8654. * src/BitfieldMessage.h: Removed.
  8655. * src/PeerMessageFactory.h: Removed.
  8656. * src/NotInterestedMessage.h: Removed.
  8657. * src/ChokeMessage.h: Removed.
  8658. * src/PeerMessage.h: Removed.
  8659. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. To know root cause of exception:
  8661. * src/Exception.h
  8662. (cause): New variable.
  8663. (Exception): Added a parameter.
  8664. (getMsg): Return const reference to msg.
  8665. (getCause): New function.
  8666. * src/DlRetryEx.h
  8667. (DlRetryEx): Added a parameter 'cause'.
  8668. Added an overloaded constructor.
  8669. (DlAbortEx): Added a parameter 'cause'.
  8670. Added an overloaded constructor.
  8671. * src/SimpleLogger.cc
  8672. (writeLog): Log nested exception messages recursively.
  8673. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. * src/DefaultBtProgressInfoFile.cc
  8675. (load): Fixed memory leak when the infohash doesn't match.
  8676. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. * src/DefaultPeerStorage.cc
  8678. (calculateStat): Simplified the code by combining 2 loops into 1.
  8679. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8681. for BitTorrent download:
  8682. * src/PeerAbstractCommand.cc
  8683. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8684. * src/main.cc:
  8685. (timeoutSpecified): Removed.
  8686. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8687. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8688. * src/TorrentRequestInfo.cc
  8689. (timeoutSpecified): Removed.
  8690. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8691. timeout value.
  8692. * src/prefs.h
  8693. (PREF_BT_TIMEOUT): New definition.
  8694. Delete unused variables:
  8695. * src/TorrentRequestInfo.cc
  8696. (requestInfo): Removed.
  8697. Move setSignalHander to Util::setGlobalSignalHandler:
  8698. * src/TorrentRequestInfo.cc:
  8699. setSignalHander -> Util::setGlobalSignalHandler
  8700. * src/main.cc
  8701. (setSignalHander): Removed.
  8702. (main): setSignalHander -> Util::setGlobalSignalHandler
  8703. * src/Util.h
  8704. (setGlobalSignalHandler): New function.
  8705. * src/Util.cc
  8706. (setGlobalSignalHandler): New function.
  8707. * src/UrlRequestInfo.cc:
  8708. setSignalHander -> Util::setGlobalSignalHandler
  8709. Reset peer status in order to exit gracefully:
  8710. * src/PeerAbstractCommand.cc
  8711. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8712. To fix the bug that causes the number of bytes uploaded is not saved
  8713. to .aria2 file:
  8714. * src/DefaultPeerStorage.h
  8715. (removedPeerSessionDownloadLength): New variable.
  8716. (removedPeerSessionUploadLength): New variable.
  8717. * src/DefaultPeerStorage.cc
  8718. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8719. removedPeerSessionUploadLength(0).
  8720. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8721. through all peers, and then add removedPeerSessionDownloadLength(
  8722. removedPeerSessionUploadLength) to it.
  8723. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8724. (to) the peer to removedPeerSessionDownloadLength
  8725. (removedPeerSessionUploadLength).
  8726. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. To add Metalink location option:
  8728. * src/MetalinkRequestInfo.cc
  8729. (execute): Call MetalinkEntry::setLocationPreference()
  8730. * src/main.cc
  8731. (showUsage): Added the help message for --metalink-location option.
  8732. (main): Added --metalink-location option.
  8733. * src/prefs.h
  8734. (PREF_METALINK_LOCATION): New definition.
  8735. * src/MetalinkEntry.cc
  8736. (AddLocationPreference): New function object.
  8737. (setLocationPreference): New function.
  8738. * src/Xml2MetalinkProcessor.cc
  8739. (getResource): Set location attribute to MetalinkResource
  8740. To show URLs to download
  8741. * src/UrlRequestInfo.h
  8742. (printUrls): New function.
  8743. To add multiple <file> Metalink support:
  8744. * src/MetalinkEntry.h
  8745. (MetalinkResources): Removed.
  8746. (setLocationPreference): New function.
  8747. (MetalinkEntryHandle): New type definition.
  8748. (MetalinkEntries): New type definition.
  8749. * src/Xml2MetalinkProcessor.h
  8750. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8751. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8752. (parseFile): Metalinker* -> MetalinkerHandle
  8753. * src/UrlRequestInfo.h
  8754. (execute): RequestInfo* -> RequestInfos
  8755. * src/MetalinkRequestInfo.cc
  8756. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8757. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8758. (execute): RequestInfo* -> RequestInfos
  8759. Added multiple <file> support. Print filename when it is queued.
  8760. * src/MetalinkRequestInfo.h
  8761. (execute): RequestInfo* -> RequestInfos
  8762. (getDownloadEngine): Removed.
  8763. * src/RequestInfo.h
  8764. (RequestInfoHandle): New type definition.
  8765. (RequestInfos): New type definition.
  8766. (execute): RequestInfo* -> RequestInfos
  8767. (getDownloadEngine): Removed.
  8768. * src/MetalinkResource.h
  8769. (MetalinkResourceHandle): New type definition.
  8770. (MetalinkResources): New type definition.
  8771. * src/MetalinkEntry.cc
  8772. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8773. because the element is now of type MetalinkResourceHandle.
  8774. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8775. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8776. (dropUnsupportedResource): Removed the deletion of the elements of
  8777. resources because the element is now of type MetalinkResourceHandle.
  8778. * src/Xml2MetalinkProcessor.cc
  8779. (parseFile): Metalinker* -> MetalinkerHandle
  8780. MetalinkEntry* -> MetalinkEntryHandle
  8781. Removed try-catch block.
  8782. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8783. MetalinkResource* -> MetalinkResourceHandle
  8784. Removed try-catch block.
  8785. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8786. Free result by using xmlXPathFreeObject()
  8787. * src/Metalinker.cc
  8788. (~Metalinker): Removed the deletion of entries.
  8789. MetalinkEntry* -> MetalinkEntryHandle
  8790. (queryEntry): Add multiple <file> Metalink support.
  8791. * src/Metalinker.h
  8792. (MetalinkEntries): Removed.
  8793. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8794. * src/MetalinkProcessor.h
  8795. (parseFile): Metalinker* -> MetalinkerHandle
  8796. Bug fixes:
  8797. * src/PeerChokeCommand.cc
  8798. (execute): cat01->cat02
  8799. * src/DefaultPieceStorage.cc
  8800. (DefaultPieceStorage): Added diskAdaptor(0)
  8801. * src/TrackerWatcherComand.cc:
  8802. (execute): Use btAnnounce->noMoreAnnounce()
  8803. to determin whether the function returns true or not.
  8804. * src/TrackerUpdateCommand.cc:
  8805. (execute): Use btAnnounce->noMoreAnnounce()
  8806. to determin whether the function returns true or not.
  8807. * src/FtpConnection.cc
  8808. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8809. This is the fix of the busy loop bug.
  8810. * src/DownloadCommand.cc
  8811. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8812. cached PeerStat.
  8813. The value of "name" entry in torrent file is now set by
  8814. *DiskAdaptor::setTopDir(...) methods.
  8815. * src/MultiDiskAdaptor.h
  8816. (topDir): New variable.
  8817. (setTopDir): New function.
  8818. (getTopDir): New function.
  8819. * src/MultiDiskAdaptor.cc
  8820. (getFilePath): Concat storDir, "/" and topDir.
  8821. (mkdir): Use getFilePath() to get the directory path for output.
  8822. * src/DefaultPieceStorage.cc
  8823. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8824. CopyDiskAdaptor.
  8825. * src/CopyDiskAdaptor.h
  8826. (topDir): New variable.
  8827. (setTopDir): New function.
  8828. (getTopDir): New function.
  8829. * src/CopyDiskAdaptor.cc
  8830. (fixFilename): Updated.
  8831. Misc
  8832. * src/UrlRequestInfo.h
  8833. (e): Removed.
  8834. (UrlRequestInfo): Removed e.
  8835. (getDownloadEngine): Removed.
  8836. * src/UrlRequestInfo.cc
  8837. (handler): Rewritten.
  8838. (printUrls): New function.
  8839. (execute): Call printUrls().
  8840. * src/HandshakeMessage.cc
  8841. (check): peerinteraction->getBtContext() -> btContext
  8842. * src/PeerInteraction.h
  8843. (getBtContext): Removed.
  8844. * src/TorrentRequestInfo.h
  8845. (execute): RequestInfo* -> RequestInfos
  8846. (getDownloadEngine): Removed.
  8847. * src/TorrentRequestInfo.cc
  8848. (haltRequested): Removed.
  8849. (btHaltRequested): New variable.
  8850. (torrentHandler): haltRequested -> btHaltRequested
  8851. (execute): RequestInfo* -> RequestInfos
  8852. * src/TorrentConsoleDownloadEngine.cc
  8853. (afterEachIteration): haltRequested -> btHaltRequested.
  8854. * src/ConsoleDownloadEngine.h
  8855. (initStatistics): Added virtual.
  8856. (calculateStatistics): Added virtual.
  8857. (onEndOfRun): Added virtual.
  8858. (afterEachIteration): Added virtual.
  8859. * src/ConsoleDownloadEngine.cc
  8860. (haltRequested): New variable.
  8861. (afterEachIteration): New function.
  8862. * src/main.cc
  8863. (requestInfo): Removed.
  8864. * src/SegmentMan.cc
  8865. (findSlowerSegmentEntry): Refactored.
  8866. * Release 0.9.0
  8867. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8869. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8870. * src/TorrentMan.h: Removed.
  8871. * src/TorrentMan.cc: Removed.
  8872. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8873. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8874. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8875. * src/PeerAbstractCommand.cc: Use btRuntime.
  8876. * src/BtContextAwareCommand.h: New class.
  8877. * src/FileEntry.h: Added accessor methods for following variables.
  8878. (path): Made private.
  8879. (length): Made private.
  8880. (offset): Made private.
  8881. (extracted): Made private.
  8882. (requested): Made private.
  8883. (FileEntries): New definition.
  8884. (FileEntryHandle): New definition.
  8885. * src/FileEntry.cc: New file.
  8886. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8887. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8888. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8889. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8890. * src/PieceStorage.h: New file.
  8891. * src/PeerInteractionCommand.h: Use btContext.
  8892. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8893. btRuntime.
  8894. * src/DefaultBtProgressInfoFile.h: New file.
  8895. * src/DefaultBtProgressInfoFile.cc: New file.
  8896. * src/File.cc
  8897. (Util.h): New include.
  8898. (mkdirs): New function.
  8899. * src/MultiDiskAdaptor.h
  8900. (mkdir): New function.
  8901. * src/PeerListProcessor.h
  8902. (Peers): Removed.
  8903. * src/PeerInteraction.h
  8904. (torrentMan): Removed.
  8905. (btContext): New variable.
  8906. (peerStorage): New variable.
  8907. (pieceStorage): New variable.
  8908. (btAnnounce): New variable.
  8909. (getTorrentMan): Removed.
  8910. (getBtContext): New function.
  8911. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  8912. btAnnounce.
  8913. * src/HandshakeMessage.h
  8914. (TorrentMan.h): Removed.
  8915. * src/HandshakeMessage.cc: Use btContext.
  8916. * src/DefaultBtAnnounce.cc: New file.
  8917. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8918. * src/DefaultPieceStorage.cc: New file.
  8919. * src/DefaultBtContext.h: New file.
  8920. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8921. Use the accessor methods of FileEntry.
  8922. * src/CookieBox.cc: Updated to use Util::slice().
  8923. * src/PieceMessage.cc: Use btContext, pieceStorage.
  8924. * src/common.h (SharedHandle.h): New include.
  8925. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  8926. pieceStorage.
  8927. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  8928. * src/DiskAdaptor.h
  8929. (topDir): Removed.
  8930. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  8931. (setTopDir): Removed.
  8932. (getTopDir): Removed.
  8933. * src/BtContext.h: New file.
  8934. * src/DefaultPeerStorage.h: New file.
  8935. * src/PieceMessage.h (TorrentMan.h): Removed.
  8936. * src/RequestMessage.h (TorrentMan.h): Removed.
  8937. * src/TorrentDownloadEngine.h
  8938. (uploadLength): New variable.
  8939. (btContext): New variable.
  8940. (btRuntime): New variable.
  8941. (pieceStorage): New variable.
  8942. (peerStorage): New variable.
  8943. (btAnnounce): New variable.
  8944. (btProgressInfoFile): New variable.
  8945. (torrentMan): Removed.
  8946. (setBtContext): New function.
  8947. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8948. peerStorage, btAnnounce, btProgressInfoFile.
  8949. * src/Piece.h
  8950. (toString): New function.
  8951. (Pieces): New type definition.
  8952. * src/Peer.h
  8953. (active): New variable.
  8954. (Peer): Added active.
  8955. (activate): Set active to true.
  8956. (deactivate): Set active to false.
  8957. (isActive): New function.
  8958. (Peers): New type definition.
  8959. * src/DirectDiskAdaptor.cc
  8960. (getFilePath): Use the accessor methods of FileEntry.
  8961. * src/TorrentConsoleDownloadEngine.h
  8962. (afterEachIteration): New function.
  8963. * src/TorrentConsoleDownloadEngine.cc
  8964. (haltRequested): New variable.
  8965. (sendStatistics): Use pieceStorage, btRuntime.
  8966. (afterEachIteration): New function.
  8967. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8968. * src/Directry.h
  8969. (Directory): New function.
  8970. (DirectoryHandle): New type definition.
  8971. * src/BtProgressInfoFile.h: New file.
  8972. * src/RequestMessage.cc: Use pieceStorage.
  8973. * src/BtRuntime.h: New file.
  8974. * src/DefaultBtContext.cc: New file.
  8975. * src/BitfieldMan.h
  8976. (getCompletedLength): New function(private).
  8977. (getCompletedLength): New function.
  8978. (getFilteredCompletedLength): New function.
  8979. * src/BitfieldMan.h
  8980. (getCompletedLength): New function(private).
  8981. (getCompletedLength): New function.
  8982. (getFilteredCompletedLength): New function.
  8983. * src/MultiDiskAdaptor.cc
  8984. (mkdir): New function.
  8985. (openFile): Call mkdir().
  8986. (initAndOpenFile): Call mkdir().
  8987. * src/CancelMessage.h
  8988. (TorrentMan.h): Removed.
  8989. * src/RejectMessage.h
  8990. (TorrentMan.h): Removed.
  8991. * src/DownloadEngineFactory.cc
  8992. (DefaultPieceStorage.h): New include.
  8993. (DefaultPeerStorage.h): New include.
  8994. (DefaultBtAnnounce.h): New include.
  8995. (DefaultBtProgressInfoFile.h): New include.
  8996. (newTorrentConsoleEngine): Rewritten.
  8997. * src/ShareRatioSeedCriteria.h
  8998. (torrentMan): Removed.
  8999. (btContext): New variable.
  9000. (peerStorage): New variable.
  9001. (btRuntime): New variable.
  9002. (evaluate): Use btContext, btRuntime, peerStorage.
  9003. * src/AnnounceTier.h: New file.
  9004. * src/BtAnnounce.h: New file.
  9005. * src/BtRegistry.h: New file.
  9006. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9007. * src/PeerConnection.h (TorrentMan.h): Removed.
  9008. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9009. * src/Util.h
  9010. (slice): Added an argument.
  9011. * src/Util.cc
  9012. (slice): Added an argument to control whether trim is made or not.
  9013. * src/PeerStorage.h: New file.
  9014. * src/BtRegistry.cc: New file.
  9015. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9016. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9017. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9018. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9019. * src/TorrentRequestInfo.h
  9020. (e): Removed.
  9021. (showFileEntry): Added an argument.
  9022. (getDownloadEngine): Return 0.
  9023. * src/DefaultBtAnnounce.h: New file.
  9024. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9025. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9026. * src/PeerMessageFactory.h
  9027. (btContext): New variable.
  9028. (pieceStorage): New variable.
  9029. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9030. btAnnounce.
  9031. * src/DiskAdaptor.cc
  9032. (DiskAdaptor): Removed topDir.
  9033. (~DiskAdaptor): Removed topDir.
  9034. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9035. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9036. * src/File.h (mkdirs): New function.
  9037. * src/DefaultPeerStorage): New file.
  9038. * src/DownloadEngineFactory.h
  9039. (newTorrentConsoleEngine): Use btContext.
  9040. * src/BtContextAwareCommand.cc: New file.
  9041. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9042. * src/PeerMessage.h
  9043. (btContext): New variable.
  9044. (peerStorage): New variable.
  9045. (pieceStorage): New variable.
  9046. (setBtContext): New function.
  9047. * src/Directry.cc
  9048. (Directory): New function.
  9049. (createDir): Do nothing if name.size() == 0.
  9050. * src/AnnounceList.h
  9051. (AnnounceTier): Removed.
  9052. (AnnounceTiers): Removed.
  9053. * src/DefaultPieceStorage.h: New file.
  9054. * src/Piece.cc (toString): New function.
  9055. To fix typo:
  9056. * src/main.cc (showVersion): Fixed typo.
  9057. To fix compile warning:
  9058. * src/DelegatingPeerListProcessor.cc
  9059. (canHandle): Added "return false".
  9060. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9062. make the process of announce request testable.
  9063. * src/TrackerWatcherCommand.h
  9064. (TimeA2.h): Removed.
  9065. (interval): Removed.
  9066. (checkPoint): Removed.
  9067. (createRequestCommand): Added an argument 'url'.
  9068. (TrackerWatherCommand): Removed interval.
  9069. (createCommand): New function.
  9070. * src/DownloadEngineFactory.cc
  9071. (newTorrentConsoleEngine): Updated according to the changes in
  9072. TrackerWatherCommand.
  9073. * src/TorrentMan.cc
  9074. (DelegatingPeerListProcessor.h): New includes.
  9075. (TorrentMan): Added the initialization of announceInterval.
  9076. (isStoppedAnnounceReady): New function.
  9077. (isCompletedAnnounceReady): New function.
  9078. (isDefaultAnnounceReady): New function.
  9079. (isAnnounceReady): New function.
  9080. (getAnnounceUrl): New function.
  9081. (announceStart): New function.
  9082. (announceFailure): New function.
  9083. (announceSuccess): New function.
  9084. (isAllAnnounceFailed): New function.
  9085. (resetAnnounce): New function.
  9086. (processAnnounceResponse): New function.
  9087. (needMorePeerConnection): New function.
  9088. (noMoreAnnounce): New function.
  9089. * src/TrackerUpdateCommand.h
  9090. (getTrackerResponse): int->size_t
  9091. * src/TorrentMan.h
  9092. (isStoppedAnnounceReady): New function.
  9093. (isCompletedAnnounceReady): New function.
  9094. (isDefaultAnnounceReady): New function.
  9095. (announceInterval): New variable.
  9096. (isAnnounceReady): New function.
  9097. (getAnnounceUrl): New function.
  9098. (announceStart): New function.
  9099. (announceFailure): New function.
  9100. (announceSuccess): New function.
  9101. (isAllAnnounceFailed): New function.
  9102. (resetAnnounce): New function.
  9103. (processAnnounceResponse): New function.
  9104. (needMorePeerConnection): New function.
  9105. (noMoreAnnounce): New function.
  9106. * src/TrackerWatcherCommand.cc
  9107. (TrackerWatherCommand): Removed interval and checkPoint.
  9108. (execute): Rewritten.
  9109. (createCommand): New function.
  9110. (createRequestCommand): Rewritten.
  9111. * src/TrackerUpdateCommand.cc
  9112. (MetaFileUtil.h): Removed.
  9113. (DelegatingPeerListProcessor.h): Removed.
  9114. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9115. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9116. Request -> RequestHandle:
  9117. * src/HttpResponseCommand.h: Request->RequestHandle
  9118. * src/AbstractCommand.cc: Request->RequestHandle
  9119. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9120. * src/HttpRequestCommand.cc: Request->RequestHandle
  9121. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9122. * src/AbstractCommand.h: Request->RequestHandle
  9123. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9124. * src/HttpResponseCommand.cc: Request->RequestHandle
  9125. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9126. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9127. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9128. * src/HttpConnection.h: Request->RequestHandle
  9129. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9130. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9131. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9132. * src/DownloadCommand.h: Request->RequestHandle
  9133. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9134. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9135. * src/HttpRequestCommand.h: Request->RequestHandle
  9136. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9137. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9138. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9139. * src/HttpDownloadCommand.h: Request->RequestHandle
  9140. * src/FtpConnection.cc: Request->RequestHandle
  9141. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9142. * src/UrlRequestInfo.cc: Request->RequestHandle
  9143. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9144. * src/HttpConnection.h: Request->RequestHandle
  9145. * src/DownloadCommand.cc: Request->RequestHandle
  9146. * src/FtpConnection.h: Request->RequestHandle
  9147. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9148. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9149. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9150. * src/Request.h
  9151. (SharedHandle.h): New include.
  9152. (RequestHandle): New type definition.
  9153. (Requests): Redefined.
  9154. To add MULTITRACKER support:
  9155. * src/TrackerWatcherCommand.h
  9156. (createRequestCommand): New function.
  9157. * src/DownloadEngineFactory.cc
  9158. (newTorrentConsoleEngine): Removed req.
  9159. * src/prefs.h
  9160. (PREF_TRACKER_MAX_TRIES): New definition.
  9161. * src/TorrentMan.cc
  9162. (TorrentMan): Removed req. Added trackerNumTry.
  9163. (~TorrentMan): Removed req.
  9164. (setupInternal1): Added announceList.
  9165. * src/TorrentRequestInfo.cc
  9166. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9167. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9168. * src/main.cc
  9169. (main): Added PREF_TRACKER_MAX_TRIES.
  9170. * src/TorrentMan.h
  9171. (Request.h): Removed.
  9172. (AnnounceList.h): New include.
  9173. (trackerNumTry): New variable.
  9174. (req): Removed.
  9175. (announceList): New variable.
  9176. * src/TrackerWatcherCommand.cc
  9177. (execute): Rewritten.
  9178. (createRequestCommand): New function.
  9179. * src/TrackerUpdateCommand.cc
  9180. (execute): Updated with the use of AnnounceList.
  9181. * src/AnnounceList.cc: New class.
  9182. * src/AnnounceList.h: New class.
  9183. To fix typo:
  9184. * src/prefs.h
  9185. (PREF_MAX_TRIES): max_try->max_tries
  9186. To not to decode "+" as space in URL decode:
  9187. * src/Util.cc
  9188. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9189. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. To add timeout to async name resolution:
  9191. * src/AbstractCommand.h
  9192. (nameResolveFinished): New function. This is not elegant way. It needs
  9193. to be more refined.
  9194. (nameResolverCheck): New variable.
  9195. * src/AbstractCommand.cc
  9196. (AbstractCommand): Added nameResolverCheck.
  9197. (execute): Added the check whether the name resolution has finished.
  9198. (setNameResolverCheck): Set nameResolverCheck to true.
  9199. (disableNameResolverCheck): Set nameResolverCheck to false.
  9200. (nameResolverFinished): New function.
  9201. * src/FtpInitiateConnectionCommand.h
  9202. (nameResolverFinished): New function.
  9203. * src/FtpInitiateConnectionCommand.cc
  9204. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9205. * src/HttpInitiateConnectionCommand.h
  9206. (nameResolverFinished): New function.
  9207. * src/HttpInitiateConnectionCommand.cc
  9208. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9209. * src/prefs.h
  9210. (PREF_DNS_TIMEOUT): New definition.
  9211. * src/main.cc
  9212. (main): Added PREF_DNS_TIMEOUT.
  9213. To add the support for a non-compact response from a tracker:
  9214. * src/PeerListProcessor.h: New class.
  9215. * src/DefaultPeerListProcessor.h: New class.
  9216. * src/DefaultPeerListProcessor.cc: New class.
  9217. * src/CompactPeerListProcessor.h: New class.
  9218. * src/CompactPeerListProcessor.cc: New class.
  9219. * src/DelegatingPeerListProcessor.h: New class.
  9220. * src/DelegatingPeerListProcessor.cc: New class.
  9221. * src/TorrentMan.cc
  9222. (addPeer): New function(overload).
  9223. (addPeer): Delete unused peers only when new peer is added.
  9224. * src/TorrentMan.h
  9225. (PeerListProcessor.h): Included.
  9226. (Peers): Removed.
  9227. (addPeer): New function(overload).
  9228. * src/TrackerUpdateCommand.cc
  9229. (netinet/in.h): Removed.
  9230. (DelegatingPeerListProcessor.h): Included.
  9231. (execute): Updated to use DelegatingPeerListProcessor.
  9232. To fix the memory leak in TorrentMan::peers:
  9233. * src/PeerAbstractCommand.cc
  9234. (onAbort): Added peer->resetStatus().
  9235. * src/Peer.h
  9236. (resetStatus): Made public.
  9237. To improve the precision of the speed calculation:
  9238. * src/SpeedCalc.h
  9239. (nextInterval): New variable.
  9240. * src/SpeedCalc.cc
  9241. (reset): Added nextInterval.
  9242. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9243. (changeSw): Set nextInterval to 15 seconds relative to the current
  9244. instant time.
  9245. * src/main.cc
  9246. (showVersion): Updated.
  9247. (showUsage): Updated.
  9248. * Release 0.8.1
  9249. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. * src/main.cc
  9251. (showUsage): Commented out --min-segment-size option.
  9252. (main): Commented out --min-segment-size option.
  9253. * Release 0.8.0
  9254. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9255. * src/*.{h,cc}:
  9256. Added an exception to the license which allows linking with OpenSSL.
  9257. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9258. * src/AbstractCommand.cc
  9259. (execute): Check whether the download has finished before checking
  9260. socket status.
  9261. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9262. Do not exit even if no segment is available.
  9263. * src/prefs.h
  9264. (PREF_STARTUP_IDLE_TIME): New definition.
  9265. * src/PeerInteractionCommand.cc
  9266. (executeInternal): Removed max speed limit. Because it performs bad.
  9267. (receiveMessages): Added max speed limit. This was better than above,
  9268. but still a little bit to be desired. Sometimes the download speed
  9269. became much faster than I specified.
  9270. * src/SpeedCalc.h
  9271. (start): New variable.
  9272. (accumulatedLength): New variable.
  9273. (getAvgSpeed): New function.
  9274. * src/SpeedCalc.cc
  9275. (reset): Added start, accumulatedLength.
  9276. (update): Added calculation of an average speed.
  9277. (getAvgSpeed): New function.
  9278. * src/DownloadCommand.h
  9279. (sw): Removed.
  9280. * src/main.cc
  9281. (main): Added PREF_STARTUP_IDLE_TIME.
  9282. * src/PeerStat.h
  9283. (STATUS): Added REQUEST_IDLE.
  9284. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9285. (getAvgDownloadSpeed): New function
  9286. (requestIdle): New function.
  9287. * src/SegmentMan.h
  9288. (SegmentEntryHandle): New type definition.
  9289. (SegmentEntries): Now holds SegmentEntryHandle.
  9290. (findSlowerSegmentEntry): New funtion.
  9291. * src/SegmentMan.cc
  9292. (save): Updated according to the changes in SegmentEntries.
  9293. (read): Updated according to the changes in SegmentEntries.
  9294. (FindSegmentEntryByIndex): Updated according to the changes in
  9295. SegmentEntries.
  9296. (FindSegmentEntryByCuid): Updated according to the changes in
  9297. SegmentEntries.
  9298. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9299. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9300. Renamed uitr as itr.
  9301. (findSlowerSegmentEntry): New function.
  9302. (getSegment): Updated according to the changes in SegmentEntries.
  9303. Added the feature that cancels the segment with slow server and fast
  9304. one takes it over.
  9305. (cancelSegment): Updated according to the changes in SegmentEntries.
  9306. (getDownloadLength): Updated according to the changes in
  9307. SegmentEntries.
  9308. (init): Assigned 0 to bitfield after deleting it.
  9309. * src/DownloadCommand.cc
  9310. (STARTUP_IDLE_TIME): Removed.
  9311. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9312. * src/PeerChokeCommand.cc
  9313. (optUnchokingPeer): Updated according to the changes in Peer.
  9314. (ResetDelta): Removed.
  9315. (UploadFaster): Updated according to the changes in Peer.
  9316. (DownloadFaster): Updated according to the changes in Peer.
  9317. (execute): I clarify the meaning of "upload" and "download" here.
  9318. "upload" means the transfer from localhost to remote host.
  9319. "download" means the transfer from remote host to localhost.
  9320. Based on this rule, I swapped orderByUploadRate and
  9321. orderByDownloadRate.
  9322. * src/PeerInteractionCommand.cc
  9323. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9324. (executeInternal): Removed the argument of
  9325. peerInteraction->sendMessages().
  9326. (receiveMessages): Rewritten download speed limit.
  9327. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9328. * src/HttpResponseCommand.cc
  9329. (handleDefaultEncoding): If file size is unknown in torrent request,
  9330. do not call segmentMan->initBitfield() here.
  9331. Disabled persistent connection feature in torrent request.
  9332. * src/UrlRequestInfo.h
  9333. (UrlRequestInfo): Removed const qualifier from option.
  9334. * src/TorrentMan.h
  9335. (TransferStat): New class.
  9336. (deltaDownloadLength): Removed.
  9337. (deltaUploadLength): Removed.
  9338. (addDeltaDownloadLength): Removed.
  9339. (getDeltaDownloadLength): Removed.
  9340. (resetDeltaDownloadLength): Removed.
  9341. (addDeltaUploadLength): Removed.
  9342. (getDeltaUploadLength): Removed.
  9343. (resetDeltaUploadLength): Removed.
  9344. (addActivePeer): Added peer->activate().
  9345. (deleteActivePeer): Added peer->deactivate().
  9346. (calculateStat): New function.
  9347. * src/TorrentMan.cc
  9348. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9349. (calculateStat): New function.
  9350. * src/PeerInteraction.h
  9351. (uploadLimit): Removed.
  9352. (option): New variable.
  9353. (setUploadLimit): Removed.
  9354. (getUploadSpeed): Removed.
  9355. (sendMessages): Removed the argument "currentUploadSpeed".
  9356. * src/PeerInteraction.cc
  9357. (prefs.h): Included.
  9358. (PeerInteraction): Removed uploadLimit. Added option.
  9359. (sendMessages): Rewritten upload speed limit.
  9360. (sendHandshake): Removed the argument from sendMessages().
  9361. (sendBitfield): Removed the argument from sendMessages().
  9362. * src/PeerAbstractCommand.cc
  9363. (execute): Commented out the portion of upload limit.
  9364. (onAbort): Removed peer->resetStatus().
  9365. * src/TorrentRequestInfo.cc
  9366. (timeoutSpecified): Declared extern.
  9367. (execute): Set timeout to 180 if timeout is not specified by.
  9368. command-line.
  9369. * src/PieceMessage.cc
  9370. (receivedAction): Added peer->updateDownloadLength().
  9371. Removed peer->addPeerUpload().
  9372. Removed torrentMan->addDeltaDownloadLength().
  9373. (send): Added peer->updateUploadLength().
  9374. Removed peer->addPeerDownload().
  9375. Removed torrentMan->addDeltaUploadLength().
  9376. * src/main.cc
  9377. (timeoutSpecified): New variable.
  9378. (main): Set timeoutSpecified to false.
  9379. If the command-line option "--upload-limit" is specified, then
  9380. timeoutSpecified is set to true. This option will remain in the next
  9381. release, but be deprecated in the future release.
  9382. * src/TorrentRequestInfo.h
  9383. (TorrentRequestInfo): Removed const qualifier from op.
  9384. * src/PeerStat.h
  9385. (uploadSpeed): New variable.
  9386. (PeerStat): Added default value to cuid.
  9387. (calculateUploadSpeed): New function.
  9388. (updateUploadLength): New function.
  9389. (getMaxUploadSpeed): New function.
  9390. (getAvgUploadSpeed): New function.
  9391. (reset): Added uploadSpeed. Set status to IDLE.
  9392. * src/TorrentDownloadEngine.h
  9393. (cp): Declared as Time.
  9394. (sessionDownloadLengthArray): Removed.
  9395. (sessionUploadLengthArray): Removed.
  9396. (currentCp): Removed.
  9397. (lastCalcStat): New variable
  9398. (lastElapsed): Removed.
  9399. (sessionDownloadLength): Removed.
  9400. (calculateStat): New function.
  9401. * src/TorrentDownloadEngine.cc
  9402. (initStatistics): Removed lastElapsed, cp[],
  9403. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9404. currentCp, sessionDownloadLength.
  9405. Added cp.reset() and lastCalcStat.reset().
  9406. (calculateSpeed): Changed the name of the argument.
  9407. (calculateStatistics): Rewritten.
  9408. (calculateStat): New function.
  9409. * src/Peer.h
  9410. (PeerStat.h): Included.
  9411. (peerUpload): Removed.
  9412. (peerDownload): Removed.
  9413. (peerStat): New variable.
  9414. (sessionUploadLength): New variable.
  9415. (sessionDownloadLength): New variable.
  9416. (deltaUpload): Removed.
  9417. (deltaDownload): Removed.
  9418. (resetStatus): Made private.
  9419. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9420. Removed peerUpload, peerDownload.
  9421. (updateUploadLength): New function.
  9422. (addDeltaUpload): Removed.
  9423. (updateDownloadLength): New function.
  9424. (resetDeltaUpload): Removed.
  9425. (getDeltaUpload): Removed.
  9426. (addDeltaDownload): Removed.
  9427. (calculateUploadSpeed): New function.
  9428. (resetDeltaDownload): Removed.
  9429. (getDeltaDownload): Removed.
  9430. (calculateDownloadSpeed): New function.
  9431. (getSessionUploadLength): New function.
  9432. (getSessionDownloadLength): New function.
  9433. (activate): New function.
  9434. (deactivate): New function.
  9435. (addPeerUpload): Removed.
  9436. (setPeerUpload): Removed.
  9437. (getPeerUpload): Removed.
  9438. (addPeerDownload): Removed.
  9439. (setPeerDownload): Removed.
  9440. (getPeerDownload): Removed.
  9441. * src/Peer.cc
  9442. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9443. * src/MetalinkRequestInfo.h
  9444. (MetalinkRequestInfo): Removed const qualifier from op.
  9445. * src/RequestInfo.h
  9446. (op): Removed const qualifier.
  9447. (RequestInfo): Removed const qualifier from op.
  9448. * src/prefs.h
  9449. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9450. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9451. * src/PeerInteractionCommand.cc
  9452. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9453. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9454. * src/PeerInteraction.cc
  9455. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9456. * src/main.cc
  9457. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9458. Added the description of "--max-download-limit" option.
  9459. Removed the description of "--upload-limit" option.
  9460. Added the description of "--max-upload-limit" option.
  9461. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9462. Added "--max-download-limit" option and "--max-upload-limit" option.
  9463. Added the warning message if "--upload-limit" option is used.
  9464. * src/DownloadCommand.cc
  9465. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9466. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. To rewrite segment download mechanism for HTTP/FTP download.
  9468. Use BitfieldMan to manage segment download.
  9469. * src/HttpResponseCommand.h
  9470. (executeInternal): Pass the reference of segment.
  9471. * src/AbstractCommand.cc
  9472. (prepareForRetry): Call segmentMan->cancelSegment here.
  9473. (onAbort): Call segmentMan->cancelSegment here.
  9474. * src/HttpDownloadCommand.cc
  9475. (prepareForNextSegment): New function.
  9476. * src/DownloadEngineFactory.cc
  9477. (newConsoleEngine): Removed splitter.
  9478. (newTorrentConsoleEngine): Removed splitter.
  9479. * src/Request.h
  9480. (segment): Renamed from seg.
  9481. * src/FtpInitiateConnectionCommand.h
  9482. (executeInternal): Pass the reference of segment.
  9483. * src/AbstractCommand.h
  9484. (executeInternal): Pass the reference of segment.
  9485. * src/pref.h
  9486. (PREF_SEGMENT_SIZE): New definition.
  9487. * src/HttpProxyRequestCommand.h
  9488. (executeInternal): Pass the reference of segment.
  9489. * src/HttpResponseCommand.cc
  9490. (checkResponse): Allowed status 206 when a request range starts 0.
  9491. (handleDefaultEncoding): Rewritten the code related to Segment.
  9492. (handleOtherEncoding): Rewritten the code related to Segment.
  9493. * src/SegmentMan.h
  9494. (SegmentEntry): New class.
  9495. (SegmentEntries): New type definition.
  9496. (bitfield): New variable.
  9497. (usedSegmentEntries): New variable.
  9498. (onNullBitfield): New function.
  9499. (checkoutSegment): New function.
  9500. (segments): Removed.
  9501. (splitter): Removed.
  9502. (unregisterId): Removed.
  9503. (getSegment): New function(overload)
  9504. (getDownloadedSize): Removed.
  9505. (cancelSegment): New function.
  9506. (completeSegment): New function.
  9507. (initBitfield): New function.
  9508. (hasSegment): New function.
  9509. (getDownloadLength): New function.
  9510. * src/BitfieldMan.h
  9511. (getStartIndex): New function.
  9512. (getEndIndex): New function.
  9513. (getMissingUnusedIndex): New function(overload).
  9514. (getSparseMissingUnusedIndex): New function.
  9515. * src/BitfieldMan.cc
  9516. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9517. (getMissingUnusedIndex): New function(overload).
  9518. (Range): New class.
  9519. (getStartIndex): New function.
  9520. (getEndIndex): New function.
  9521. (getSparseMissingUnusedIndex): New function.
  9522. (isBitSetInternal): Return false if the given index is less than 0.
  9523. * src/HttpInitiateConnectionCommand.h
  9524. (executeInternal): Pass the reference of segment.
  9525. * src/FtpNegotiateCommand.h
  9526. (executeInternal): Pass the reference of segment.
  9527. * src/FtpNegotiateCommand.cc
  9528. (recvSize): Initialize bitfield here.
  9529. * src/FtpTunnelResponseCommand.h
  9530. (executeInternal): Pass the reference of segment.
  9531. * src/HttpConnection.cc
  9532. (createRequest): Rewritten range header processing.
  9533. * src/DownloadCommand.h
  9534. (executeInternal): Pass the reference of segment.
  9535. (prepareForRetry): Removed.
  9536. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9537. function.
  9538. * src/main.cc
  9539. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9540. * src/SegmentMan.cc
  9541. (SegmentMan): Added bitfield. Removed splitter.
  9542. (~SegmentMan): Added bitfield. Removed splitter.
  9543. (unregisterId): Removed.
  9544. (getSegment): Rewritten.
  9545. (updateSegment): Rewritten.
  9546. (save): Rewritten.
  9547. (read): Rewritten.
  9548. (finished): Rewritten.
  9549. (getDownloadedSize): Removed.
  9550. (initBitfield): New function.
  9551. (FindSegmentEntryByIndex): New function object.
  9552. (FindSegmentEntryByCuid): New function object.
  9553. (checkoutSegment): New function.
  9554. (onNullBitfield): New function.
  9555. (getSegment): New function(overload).
  9556. (CancelSegment): New function object.
  9557. (cancelSegment): New function.
  9558. (completeSegment): New function.
  9559. (hasSegment): New function.
  9560. (getDownloadLength): New function.
  9561. * src/FtpInitiateConnectionCommand.cc
  9562. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9563. * src/Segment.h: Rewritten.
  9564. * src/Segment.cc (operator<<): New function.
  9565. * src/HttpDownloadCommand.h
  9566. (prepareForNextSegment): New function.
  9567. * src/Request.cc
  9568. (resetUrl): Made segment null.
  9569. * src/DownloadEngine.cc
  9570. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9571. * src/HttpProxyRequestCommand.h
  9572. (executeInternal): Pass the reference of segment.
  9573. * src/DownloadCommand.cc
  9574. (executeInternal): Rewritten the code related to Segment.
  9575. (prepareForRetry): Removed.
  9576. (prepareForNextSegment): Rewritten.
  9577. * src/FtpTunnelResponseCommand.h
  9578. (executeInternal): Pass the reference of segment.
  9579. To add HTTP 1.1 persistent connection support(experimental)
  9580. * src/HttpRequestCommand.cc
  9581. (executeInternal): Disable keep alive if it is disabled by
  9582. configuration.
  9583. * src/Request.h
  9584. (keepAlive): New variable.
  9585. (isKeepAlive): New function.
  9586. (setKeepAlive): New function.
  9587. * src/pref.h
  9588. (PREF_HTTP_KEEP_ALIVE): New definition.
  9589. * src/HttpResponseCommand.cc
  9590. (executeInternal): Check the remote server supports keep alive.
  9591. * src/HttpConnection.cc
  9592. (createRequest): Send "Connection: close" only if keep alive is
  9593. disabled.
  9594. * src/main.cc
  9595. (main):
  9596. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9597. To add max download speed limit:
  9598. * src/pref.h
  9599. (PREF_MAX_SPEED_LIMIT): New definition.
  9600. * src/PeerInteractionCommand.cc
  9601. (executeInternal): Added max download speed limit. Not tested yet.
  9602. * src/SegmentMan.h
  9603. (PeerStats): New type definition.
  9604. (peerStats): New variable.
  9605. (registerPeerStat): New function.
  9606. (FindPeerStat): New function object.
  9607. (getPeerStat): New function.
  9608. (calculateDownloadSpeed): New function.
  9609. * src/SpeedCalc.h: New class.
  9610. * src/SpeedCalc.cc: New class.
  9611. * src/main.cc
  9612. (main):
  9613. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9614. download speed is not restricted).
  9615. * src/PeerStat.h: New class.
  9616. * src/SegmentMan.cc
  9617. (registerPeerStat): New function.
  9618. (calculateDownloadSpeed): New function.
  9619. * src/DownloadCommand.cc
  9620. (STARTUP_IDLE_TIME): New definition.
  9621. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9622. downloadStart.
  9623. (~DownloadCommand): Call peerStat->downloadStop.
  9624. (executeInternal): Added download speed limitter. Rewritten lowest
  9625. speed limitter.
  9626. * src/HttpConnection.cc
  9627. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9628. * src/AbstractCommand.cc
  9629. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9630. Added hostname to the error message.
  9631. * src/ConsoleDownloadEngine.cc
  9632. (calculateStatistics): Initialize psize with dlSize.
  9633. * src/PieceMessage.cc
  9634. (receivedAction): Do not call peerInteraction->abortPiece here.
  9635. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9636. * src/BitfieldMan.h
  9637. (clearAllUseBit): New function.
  9638. (setAllUseBit): New function.
  9639. * src/BitfieldMan.cc
  9640. (clearAllBit): Do not clear useBitfield here.
  9641. (clearAllUseBit): New function.
  9642. (setAllUseBit): New function.
  9643. * src/Piece.cc
  9644. (clearAllBlock): Call bitfield->clearAllUseBit().
  9645. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. To make filename URL-decoded:
  9647. * src/HttpResponseCommand.h: Updated doc.
  9648. * src/HttpResponseCommand.cc
  9649. (determinFilename): Made filename URL-decoded.
  9650. * src/FtpInitiateConnectionCommand.cc
  9651. (executeInternal): Made filename URL-decoded.
  9652. * src/Util.h (urldecode): New function.
  9653. * src/Util.cc (urldecode): New function.
  9654. To fix a bug that caused assertion failure in ares_strerror:
  9655. * src/NameResolver.cc (callback): Fixed the bug.
  9656. * Release 0.7.3
  9657. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. To add --seed-time and --seed-ratio command-line option:
  9659. * src/Option.h (getAsDouble): New function.
  9660. * src/Option.cc (getAsDouble): New function.
  9661. * src/SeedCheckCommand.h: New class.
  9662. * src/SeedCheckCommand.cc: New class.
  9663. * src/DownloadEngineFactory.cc
  9664. (SeedCheckCommand.h): Included.
  9665. (UnionSeedCriteria.h): Included.
  9666. (TimeSeedCriteria.h): Included.
  9667. (ShareRatioSeedCriteria.h): Included.
  9668. (newTorrentConsoleEngine): Added the processing of seed option.
  9669. * src/SeedCriteria.h: New class.
  9670. * src/ShareRatioSeedCriteria.h: New class.
  9671. * src/TimeSeedCriteria.h: New class.
  9672. * src/UnionSeedCriteria.h: New class.
  9673. * src/prefs.h
  9674. (PREF_SEED_TIME): New definition.
  9675. (PREF_SEED_RATIO): New definition.
  9676. * src/main.cc
  9677. (showUsage): Added --seed-time and --seed-ratio option.
  9678. (main): Added --seed-time and --seed-ratio option.
  9679. Made default log file name "/dev/null".
  9680. * src/SharedHandle.h
  9681. (SharedHandle): Copy constructor. Made it assignable from the
  9682. SharedHandle of the subclasses.
  9683. (operator=): Made it assignable from the SharedHandle of the
  9684. subclasses.
  9685. (getRefCount): New function.
  9686. To add notice log level and the switch to write log to stdout. This
  9687. switch is configurable per log level.
  9688. * src/Logger.h
  9689. (notice): New function.
  9690. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9691. constant.
  9692. * src/LogFactory.cc
  9693. (getInstance): The use of NullLogger was removed. A log message with
  9694. notice log level was made written to stdout along with log file.
  9695. * src/NullLogger.h
  9696. (notice): New function.
  9697. * src/SimpleLogger.h
  9698. (writeHeader): Added the 'file' argument.
  9699. (writeLog): Added the 'file' argument.
  9700. (writeFile): New function.
  9701. (stdoutField): New variable.
  9702. (SimpleLogger): Removed the default constructor.
  9703. (SimpleLogger): Made the default value of logfile 0.
  9704. (debug): Added 'virtual' keyword.
  9705. (info): Added 'virtual' keyword.
  9706. (warn): Added 'virtual' keyword.
  9707. (error): Added 'virtual' keyword.
  9708. (notice): New function.
  9709. (setStdout): New function.
  9710. * src/SimpleLogger.cc
  9711. (WRITE_LOG): Replaced writeLog with writeFile.
  9712. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9713. (SimpleLogger): Removed the default constructor.
  9714. (setStdout): New function.
  9715. (writeLog): Added the handling of NOTICE log level.
  9716. (writeFile): New function.
  9717. (notice): New function.
  9718. * src/TorrentMan.h: Updated doc.
  9719. * src/BitfieldMan.h: Updated doc.
  9720. * src/TrackerWatcherCommand.cc
  9721. (execute): Return true if error occurred in the request to the tracker
  9722. and halt is requested.
  9723. * src/TrackerUpdateCommand.cc
  9724. (execute): Return true if error occurred in the request to the tracker
  9725. and halt is requested.
  9726. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9727. DownloadEngine:
  9728. * src/TorrentConsoleDownloadEngine.h
  9729. (onSelectiveDownloadingCompletes): Removed.
  9730. * src/TorrentConsoleDownloadEngine.cc
  9731. (onSelectiveDownloadingCompletes): Removed.
  9732. * src/TorrentDownloadEngine.h
  9733. (onEndOfRun): Added 'virtual' keyword.
  9734. (afterEachIteration): Removed.
  9735. (onSelectiveDownloadingCompletes): Removed.
  9736. * src/TorrentDownloadEngine.cc
  9737. (onEndOfRun): Removed filenameFixed.
  9738. (afterEachIteration): Removed.
  9739. * src/TorrentMan.cc
  9740. (completePiece): Call onDownloadComplete here.
  9741. (onDownloadComplete): Added 2 log messages.
  9742. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9744. * src/NameResolver.h: Added the prototype declaration of callback().
  9745. To support c-ares library:
  9746. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9747. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9748. * src/FtpInitiateConnectionCommand.h:
  9749. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9750. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9751. * src/HttpInitiateConnectionCommand.h:
  9752. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9753. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9754. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9755. #1542285 by tizianomueller)
  9756. * src/HttpInitiateConnectionCommand.cc:
  9757. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9758. * src/FtpInitiateConnectionCommand.cc:
  9759. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9760. * src/DownloadEngine.h:
  9761. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9762. * src/DownloadEngine.cc:
  9763. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9764. To fix the bug that causes compilation failure with metalink-support
  9765. disabled(bug#1543587):
  9766. * src/main.cc: Fixed with the patch by tizianomueller.
  9767. * Release 0.7.2
  9768. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. * src/main.cc
  9770. (main): Added a message to inform users that aria2 is starting to
  9771. verify checksum.
  9772. * src/RequestInfo.cc
  9773. (printDownloadAbortMessage): Added a message to inform users that
  9774. transfer can be resumed.
  9775. * src/FeatureConfig.cc
  9776. (FEATURE_ASYNC_DNS): New definition.
  9777. (FeatureConfig): Added aysnc DNS entry.
  9778. To replace CommandUuid with Command* in SocketEntry and
  9779. NameResolverEntry:
  9780. * src/DownloadEngine.h
  9781. (CommandUuids): Removed.
  9782. (SocketEntry::commandUuid): Removed.
  9783. (SocketEntry::command): New variable.
  9784. (SocketEntry::SocketEntry): Updated.
  9785. (SocketEntry::operator==): Updated.
  9786. (NameResolverEntry::commandUuid): Removed.
  9787. (NameResolverEntry::command): New variable.
  9788. (NameResolverEntry::NameResolverEntry): Updated.
  9789. (NameResolverEntry::operator==): Updated.
  9790. (waitData): Changed the argument type.
  9791. (addSocketForReadCheck): Changed the argument type.
  9792. (deleteSocketForReadCheck): Changed the argument type.
  9793. (addSocketForWriteCheck): Changed the argument type.
  9794. (deleteSocketForWriteCheck): Changed the argument type.
  9795. (addNameResolverCheck): Changed the argument type.
  9796. (deleteNameResolverCheck): Changed the argument type.
  9797. * src/DownloadEngine.cc
  9798. (FindCommand): Removed.
  9799. (run): Removed activeUuid. Added activeCommands instead.
  9800. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9801. (AccumulateActiveCommand): New function object.
  9802. (waitData): Use AccumulateActiveCommand.
  9803. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9804. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9805. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9806. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9807. (addNameResolverCheck): Use Command instead of CommandUuid.
  9808. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9809. * src/AbstractCommand.cc
  9810. (disableReadCheckSocket): Updated according to the changes in
  9811. DownloadEngine.
  9812. (setReadCheckSocket): Updated according to the changes in
  9813. DownloadEngine.
  9814. (disableWriteCheckSocket): Updated according to the changes in
  9815. DownloadEngine.
  9816. (setWriteCheckSocket): Updated according to the changes in
  9817. DownloadEngine.
  9818. (setNameResolverCheck): Updated according to the changes in
  9819. DownloadEngine.
  9820. (disableNameResolverCheck): Updated according to the changes in
  9821. DownloadEngine.
  9822. * src/AbstractCommand.cc
  9823. (disableReadCheckSocket): Updated according to the changes in
  9824. DownloadEngine.
  9825. (setReadCheckSocket): Updated according to the changes in
  9826. DownloadEngine.
  9827. (disableWriteCheckSocket): Updated according to the changes in
  9828. DownloadEngine.
  9829. (setWriteCheckSocket): Updated according to the changes in
  9830. DownloadEngine.
  9831. * release 0.7.1
  9832. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9833. To handle the case where some BitTorrent tracker requires all letters
  9834. except for [A-Za-z0-9] is URL encoded.
  9835. * src/Util.h
  9836. (torrentUrlencode): New function.
  9837. * src/Util.cc
  9838. (ctype.h): Included.
  9839. (torrentUrlencode): New function.
  9840. * src/TrackerWatcherCommand.cc
  9841. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9842. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. To add asynchronous DNS support(libares):
  9844. * src/AbstractCommand.h
  9845. (setNameResolverCheck): New function.
  9846. (disableNameResolverCheck): New function
  9847. (resolveHostname): New function.
  9848. * src/AbstractCommand.cc
  9849. (setNameResolverCheck): New function.
  9850. (disableNameResolverCheck): New function
  9851. (resolveHostname): New function.
  9852. * src/FtpInitiateConnectionCommand.h
  9853. (nameResolver): New function.
  9854. * src/FtpInitiateConnectionCommand.cc
  9855. (Util.h): Included.
  9856. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9857. disableWriteCheckSocket.
  9858. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9859. (executeInternal): Added async DNS support.
  9860. * src/HttpInitiateConnectionCommand.h
  9861. (nameResolver): New function.
  9862. * src/HttpInitiateConnectionCommand.cc
  9863. (DlRetryEx.h): Included.
  9864. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9865. disableWriteCheckSocket.
  9866. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9867. (executeInternal): Added async DNS support.
  9868. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9869. by extern "C" declaration.
  9870. * src/NameResolver.cc: New class.
  9871. * src/Util.h:
  9872. (isNumberAndDotsNotation): New function
  9873. * src/Util.cc
  9874. (isNumberAndDotsNotation): New function.
  9875. * src/DownloadEngine.h
  9876. (NameResolver.h): Included.
  9877. (NameResolverEntry): New class.
  9878. (NameResolverEntries): New type definition.
  9879. (addNameResolverCheck): New function.
  9880. (deleteNameResolverCheck): New function.
  9881. * src/DownloadEngine.cc
  9882. (run): Initialize cp with 0.
  9883. (SetDescriptor::operator()): Added for NameResolverEntry.
  9884. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9885. (waitData): Check nameResolver entries.
  9886. (updateFdSet): Update fds in nameResolver entries.
  9887. (addNameResolverCheck): New function.
  9888. (deleteNameResolverCheck): new function.
  9889. * src/PeerInteractionCommand.cc
  9890. (executeInternal): Fixed wrong socket handling.
  9891. * src/main.cc
  9892. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9893. * src/Util.cc
  9894. (fileChecksum): Removed the call to ctx.digestReset().
  9895. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. * po/ru.po: Azamat sent me Russian translation.
  9897. * src/FtpNegotiateCommand.cc
  9898. (recvGreeting): Call disableWriteCheckSocket just after
  9899. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  9900. (recvRetr): Recognized status code 125 as a acceptable response code.
  9901. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  9902. case-insesitive filesystem(BUG#1531057).
  9903. * src/Time.h: Renamed as TimeA2.h.
  9904. * src/Time.cc: Renamed as TimeA2.cc.
  9905. * src/TimeA2.h: New class.
  9906. * src/TimeA2.cc: New class.
  9907. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  9908. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  9909. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  9910. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  9911. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  9912. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9913. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  9914. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  9915. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9916. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9917. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9918. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9919. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9920. * release 0.7.0
  9921. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9922. * src/PeerChokeCommand.h
  9923. (PeerChokeCommand): Rearranged the arguments.
  9924. * src/PeerChokeCommand.cc
  9925. (PeerChokeCommand): Rearranged the arguments.
  9926. * src/MetalinkEntry.h
  9927. (Checksum.h): Included.
  9928. (md5): Removed.
  9929. (sha1): Removed.
  9930. (checksum): New variable.
  9931. (operator=): Updated.
  9932. (check): Removed.
  9933. * src/prefs.h
  9934. (PREF_LOWEST_SPEED_LIMIT): New definition.
  9935. (PREF_FOLLOW_TORRENT): New definition.
  9936. (PREF_SELECT_FILE): New definition.
  9937. (PREF_FOLLOW_METALINK): New definition.
  9938. * src/MetalinkResource.h
  9939. (TYPE_HTTPS): Added to enum TYPE.
  9940. * src/TorrentMan.cc
  9941. (~TorrentMan): Rewritten.
  9942. * src/MultiDiskWriter.cc
  9943. (MultiDiskAdaptor): Updated according to the changes in
  9944. MessageDigestContext.
  9945. (~MultiDiskAdaptor): Updated according to the changes in
  9946. MessageDigestContext.
  9947. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9948. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9949. * src/Util.h
  9950. (fileChecksum): Updated according to the changes in
  9951. MessageDigestContext.
  9952. * src/Util.cc
  9953. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9954. (fileChecksum): Updated according to the changes in
  9955. MessageDigestContext.
  9956. * src/messageDigest.h: Rewritten.
  9957. * src/MetalinkEntry.cc
  9958. (check): Removed.
  9959. (Supported): Updated.
  9960. (dropUnsupportedResource): Fixed a memory leak.
  9961. * src/ShaVisitor.cc
  9962. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9963. (~ShaVisitor): Updated according to the changes in
  9964. MessageDigestContext.
  9965. (visit): Updated according to the changes in MessageDigestContext.
  9966. * src/main.cc
  9967. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9968. command-line option added.
  9969. * src/DownloadEngine.h
  9970. (SocketEntry): New class.
  9971. (SocketEntries): New definition.
  9972. (PairFind): Removed.
  9973. (SockCmdMap): Removed.
  9974. * src/DownloadEngine.cc
  9975. (DownloadEngine): Rewritten.
  9976. (~DownloadEngine): Rewritten.
  9977. (run): Renamed activeCommandUuids as activeUuids.
  9978. (SetDescriptor): Rewritten.
  9979. (AccumulateActiveCommandUuid): Removed.
  9980. (AccumulateActiveUuid): New function object.
  9981. (waitData): Rewritten.
  9982. (updateFdSet): Rewritten.
  9983. (addSocket): Rewritten.
  9984. (deleteSocket): Rewritten.
  9985. (addSocketForReadCheck): Rewritten.
  9986. (deleteSocketForReadCheck): Rewritten.
  9987. (addSocketForWriteCheck): Rewritten.
  9988. (deleteSocketForWriteCheck): Rewritten.
  9989. * src/Xml2MetalinkProcessor.cc
  9990. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9991. * src/DownloadCommand.cc
  9992. (executeInternal): Added the check routine for lowest speed limit.
  9993. * src/AbstractDiskWriter.cc
  9994. (AbstractDiskWriter): Updated according to the changes in
  9995. MessageDigestContext.
  9996. (~AbstractDiskWriter): Updated according to the changes in
  9997. MessageDigestContext.
  9998. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9999. * src/RequestInfo.h: New class.
  10000. * src/UrlRequestInfo.h: New class.
  10001. * src/UrlRequestInfo.cc: New class.
  10002. * src/TorrentRequestInfo.h: New class.
  10003. * src/TorrentRequestInfo.cc: New class.
  10004. * src/MetalinkRequestInfo.h: New class.
  10005. * src/MetalinkRequestInfo.cc: New class.
  10006. * src/Checksum.h: New class.
  10007. * src/DownloadEngineFactory.h: New class.
  10008. * src/DownloadEngineFactory.cc: New class.
  10009. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. * src/Option.h
  10011. (getAsBool): New function.
  10012. * src/Option.cc
  10013. (prefs.h): Included.
  10014. (defined): 0-length value is now recognized as undefined.
  10015. (getAsInt): Rewritten.
  10016. (getAsLLInt): Rewritten.
  10017. (getAsBool): New function.
  10018. * src/FeatureConfig.h: Rewritten.
  10019. * src/FeatureConfig.cc: Rewritten.
  10020. * src/prefs.h
  10021. (PREF_STDOUT_LOG): New definition.
  10022. (PREF_LOG): New definition.
  10023. (PREF_DIR): New definition.
  10024. (PREF_OUT): New definition.
  10025. (PREF_SPLIT): New definition.
  10026. (PREF_DAEMON): New definition.
  10027. (PREF_REFERER): New definition.
  10028. (PREF_TORRENT_FILE): New definition.
  10029. (PREF_LISTEN_PORT): New definition.
  10030. (PREF_METALINK_FILE): New definition.
  10031. (PREF_METALINK_VERSION): New definition.
  10032. (PREF_METALINK_LANGUAGE): New definition.
  10033. (PREF_METALINK_OS): New definition.
  10034. (PREF_METALINK_SERVERS): New definition.
  10035. * src/main.cc
  10036. (main): Following command-line parameters are now put into Option
  10037. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10038. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10039. metalinkLanguage, metalinkOs, metalinkServers
  10040. To fix the bug that aria2 can not handle http response header properly.
  10041. * src/HttpHeader.cc
  10042. (put): Made name lowercased.
  10043. (defined): Made name lowercased.
  10044. (getFirst): Made name lowercased.
  10045. (get): Made name lowercased.
  10046. (getFirstAsInt): Rewritten.
  10047. (getFirstAsLLInt): Rewritten.
  10048. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. * src/TorrentMan.h:
  10050. (advertisePiece): Updated doc.
  10051. (getAdvertisedPieceIndexes): Updated doc.
  10052. (removeAdvertisedPiece); New function.
  10053. * src/TorrentMan.cc
  10054. (FindElapsedHave): New function object.
  10055. (removeAdvertisedPiece): New function.
  10056. * src/HaveEraseCommand.h: New class.
  10057. * src/HaveEraseCommand.cc: New class.
  10058. * src/FeatureConfig.h: New class.
  10059. * src/FeatureConfig.cc: New class.
  10060. * src/Request.h
  10061. (defaultPorts): Removed.
  10062. * src/Request.cc
  10063. (FeatureConfig.h): Included.
  10064. (Request): Removed the statements related to defaultPorts.
  10065. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10066. A default port number is now retrieved from FeatureConfig.
  10067. * src/main.cc
  10068. (HaveEraseCommand.h): Included.
  10069. (showVersion): Added the output of feature list.
  10070. (main): Added HaveEraseCommand to command queue in BitTorrent
  10071. downloading.
  10072. * src/PeerInteractionCommand.h
  10073. (chokeCheckPoint): Commented out.
  10074. (periodicExecPoint): New variable.
  10075. * src/PeerInteractionCommand.cc
  10076. (executeInternal): Following methods are now called in at least every
  10077. 0.5 seconds to reduce CPU usage:
  10078. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10079. checkHave(), sendKeepAlive().
  10080. (checkLongTimePeerChoking): Commented out.
  10081. * src/BitfieldMan.h
  10082. (getNthBitIndex): Changed the method signature.
  10083. (getMissingIndexRandomly): Changed the method signature.
  10084. * src/BitfieldMan.cc
  10085. (getNthBitIndex): Rewritten
  10086. (getMissingIndexRandomly): Rewritten.
  10087. (hasMissingPiece): Rewritten.
  10088. (getMissingIndex): Refactored.
  10089. (getMissingUnusedIndex); Refactored.
  10090. (getMissingIndex): Refactored.
  10091. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. * src/PeerMessage.h
  10093. (Piece.h): Included.
  10094. (SharedHandle.h): Included.
  10095. (invalidate): New variable.
  10096. (uploading): New variable.
  10097. (isInvalidate): New function.
  10098. (isUploading): New function.
  10099. (onPush): New function.
  10100. (onChoked): New function.
  10101. (onCanceled): New function.
  10102. (onAbortPiece): New function.
  10103. (PeerMessageHandle): New type definition.
  10104. * src/PeerMessage.cc
  10105. (PeerMessage): Added the initialization for invalidate and uploading.
  10106. * src/CancelMessage.h
  10107. (CancelMessage): Rewritten.
  10108. * src/RejectMessage.h
  10109. (RejectMessage): Rewritten.
  10110. * src/Metalinker.h
  10111. (operator=): Defined.
  10112. * src/MetaEntry.h
  10113. (operator=): Defined.
  10114. * src/MetalinkResource.h
  10115. (operator=): Defined.
  10116. * src/AllowedFastMessage.h
  10117. (AllowedFastMessage): Rewritten.
  10118. * src/HandshakeMessage.h
  10119. (HandshakeMessage): New function(overload).
  10120. * src/HandshakeMessage.cc
  10121. (HandshakeMessage): Rewritten.
  10122. (init): New function.
  10123. * src/HaveMessage.h
  10124. (HaveMessage): Rewritten.
  10125. * src/Time.h
  10126. (operator=): Defined the function body here.
  10127. * src/Time.cc
  10128. (operator=): Removed.
  10129. * src/SocketCore.h
  10130. (operator==): Defined here.
  10131. (operator!=): Defined here.
  10132. (operator<): Defined here.
  10133. * src/SocketCore.cc
  10134. (operator==): Removed.
  10135. (operator<): Removed.
  10136. * src/BitfieldMan.h
  10137. (operator=): Defined the function body here.
  10138. * src/BitfieldMan.cc
  10139. (operator=): Removed.
  10140. * src/TorrentMan.h
  10141. (deleteErrorPeer): Removed.
  10142. (deleteUnusedPeer); New function.
  10143. * src/TorrentMan.cc
  10144. (addPeer): Call deleteUnusedPeer.
  10145. (deleteErrorPeer): Removed.
  10146. (deleteUnusedPeer): New function.
  10147. * src/PeerAbstractCommand.h
  10148. (setNoCheck): New function.
  10149. (noCheck): New variable.
  10150. * src/PeerAbstractCommand.cc
  10151. (PeerAbstractCommand): Added the initialization of noCheck.
  10152. (execute): Added a check for noCheck.
  10153. (setNoCheck): New function.
  10154. * src/Util.h
  10155. (stdio.h): Included.
  10156. * src/Util.cc
  10157. (unistd.h): Included.
  10158. * src/DefaultDiskWriter.cc
  10159. (unistd.h): Included.
  10160. * src/Peer.h
  10161. (operator==): Defined the function body here.
  10162. (operator!=): Defined the function body here.
  10163. * src/Peer.cc
  10164. (operator==): Removed.
  10165. (operator!=): Removed.
  10166. * src/Piece.h
  10167. (Piece): Defined the function body here(copy constructor).
  10168. (operator=): Defined the function body here.
  10169. (operator==): Defined the function body here.
  10170. * src/Piece.cc
  10171. (Piece): Removed(copy constructor).
  10172. (operator=): Removed.
  10173. (operator==): Removed.
  10174. * src/PeerMessageUtil.h
  10175. (ChokeMessage.h): Removed.
  10176. (UnchokeMessage.h): Removed.
  10177. (InterestedMessage.h): Removed.
  10178. (NotInterestedMessage.h): Removed.
  10179. (HaveMessage.h): Removed.
  10180. (BitfieldMessage.h): Removed.
  10181. (RequestMessage.h): Removed.
  10182. (CancelMessage.h): Removed.
  10183. (PieceMessage.h): Removed.
  10184. (HandshakeMessage.h): Removed.
  10185. (KeepAliveMessage.h): Removed.
  10186. (PortMessage.h): Removed.
  10187. (HaveAllMessage.h): Removed.
  10188. (HaveNoneMessage.h): Removed.
  10189. (PeerConnection.h): Removed.
  10190. (HandshakeMessage.h): Included.
  10191. * src/BitfieldMessage.h
  10192. (init): New function.
  10193. (BitfieldMessage): Rewritten.
  10194. (BitfieldMessage): New function(overload).
  10195. * src/RequestSlot.h
  10196. (operator=): Defined the function body here.
  10197. (operator==): Defined the function body here.
  10198. * src/RequestSlot.cc
  10199. (operator=): Removed.
  10200. (operator==): Removed.
  10201. To remove the dependency on the PeerMessage subclass from
  10202. PeerInteraction:
  10203. * src/PeerMessageFactory.h: New class.
  10204. * src/PeerMessageFactory.cc: New class.
  10205. * src/SimplePeerMessage.cc
  10206. (send): If invalidate is true then do nothing.
  10207. * src/PeerInteractionCommand.cc
  10208. (HandshakeMessage.h): Included.
  10209. (KeepAliveMessage.h): Included.
  10210. (ChokeMessage.h): Included.
  10211. (UnchokeMessage.h): Included.
  10212. (HaveMessage.h): Included.
  10213. (executeInternal): Call setNoCheck().
  10214. Removed setWriteCheckSocket(socket).
  10215. * src/PeerInteraction.h
  10216. (ChokeMessage.h): Removed.
  10217. (UnchokeMessage.h): Removed.
  10218. (InterestedMessage.h): Removed.
  10219. (NotInterestedMessage.h): Removed.
  10220. (HaveMessage.h): Removed.
  10221. (BitfieldMessage.h): Removed.
  10222. (RequestMessage.h): Removed.
  10223. (CancelMessage.h): Removed.
  10224. (PieceMessage.h): Removed.
  10225. (HandshakeMessage.h): Removed.
  10226. (KeepAliveMessage.h): Removed.
  10227. (PortMessage.h): Removed.
  10228. (HaveAllMessage.h): Removed.
  10229. (HaveNoneMessage.h): Removed.
  10230. (RejectMessage.h): Removed.
  10231. (AllowedFastMessage.h): Removed.
  10232. (SuggestPieceMessage.h): Removed.
  10233. (PeerMessageFactory.h): Included.
  10234. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10235. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10236. (PeerMessageFactory): New variable.
  10237. (createPeerMessage): Removed.
  10238. (createHandshakeMessage): Removed.
  10239. (setPeerMessageCommonProperty): Removed.
  10240. (addRequestSlot): New function.
  10241. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10242. (getPeerMessageFactory): New function.
  10243. (createRequestMessage): Removed.
  10244. (createCancelMessage): Removed.
  10245. (createPieceMessage): Removed.
  10246. (createHaveMessage): Removed.
  10247. (createChokeMessage): Removed.
  10248. (createUnchokeMessage): Removed.
  10249. (createInterestedMessage): Removed.
  10250. (createNotInterestedMessage): Removed.
  10251. (createBitfieldMessage): Removed.
  10252. (createKeepAliveMessage): Removed.
  10253. (createHaveAllMessage): Removed.
  10254. (createHaveNoneMessage): Removed.
  10255. (createRejectMessage): Removed.
  10256. (createAllowedFastMessage): Removed.
  10257. * src/PeerInteraction.cc
  10258. (PeerInteraction): Allocate PeerMessageFactory here.
  10259. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10260. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10261. PieceMessage::ID.
  10262. (addMessage): Simplified by using PeerMessage::onPush().
  10263. (addRequestSlot): New function.
  10264. (rejectAllPieceMessageInQueue): Simplified by using
  10265. PeerMessage::onChoked().
  10266. (rejectPieceMessageInQueue): Simplified by using
  10267. PeerMessage::onCanceled().
  10268. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10269. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10270. (createHandshakeMessage): Removed.
  10271. (createPeerMessage): Removed.
  10272. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10273. (setPeerMessageCommonProperty): Removed.
  10274. (createRequestMessage): Removed.
  10275. (createCancelMessage): Removed.
  10276. (createPieceMessage): Removed.
  10277. (createHaveMessage): Removed.
  10278. (createChokeMessage): Removed.
  10279. (createUnchokeMessage): Removed.
  10280. (createInterestedMessage): Removed.
  10281. (createNotInterestedMessage): Removed.
  10282. (createBitfieldMessage): Removed.
  10283. (createKeepAliveMessage): Removed.
  10284. (createHaveAllMessage): Removed.
  10285. (createHaveNoneMessage): Removed.
  10286. (createRejectMessage): Removed.
  10287. (createAllowedFastMessage): Removed.
  10288. * src/PieceMessage.h
  10289. (createRejectMessage): New function.
  10290. (PieceMessage): Rewritten.
  10291. (onChoked): New function.
  10292. (onCanceled): New function.
  10293. * src/PieceMessage.cc
  10294. (send): If invalidate is true then do nothing, just return.
  10295. (createRejectMessage): New function.
  10296. (onChoked): New function.
  10297. (onCanceled): New function.
  10298. * src/RequestMessage.h
  10299. (RequestMessage): Rewritten.
  10300. (onPush): New function.
  10301. (onAbortPiece): New function.
  10302. * src/RequestMessage.cc
  10303. (onPush): New function.
  10304. (onAbortPiece): New function.
  10305. Update fd_set when a socket is added or deleted in order to improve
  10306. performance:
  10307. * src/DownloadEngine.h
  10308. (rfdset): New variable.
  10309. (wfdset): New variable.
  10310. (updateFdSet): New function.
  10311. * src/DownloadEngine.cc
  10312. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10313. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10314. (waitData): Copy rfdset and wfdset.
  10315. (updateFdSet): New function.
  10316. (addSocket): Call updateFdSet.
  10317. (deleteSocket): Call updateFdSet.
  10318. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. To add the support for Metalink3.0 backward compatible links:
  10320. * src/Request.h
  10321. (SAFE_CHARS): Added '#'.
  10322. (METALINK_MARK): New definition.
  10323. * src/Request.cc
  10324. (parseUrl): Added the support for Metalink3.0 backward compatible
  10325. links.
  10326. etc
  10327. * src/PeerInteraction.cc
  10328. (MsgPushBack): Removed.
  10329. (sendMessages): Use STL copy and back_inserter.
  10330. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10331. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10332. * src/TorrentMan.h
  10333. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10334. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. * src/SharedHandle.h: New class.
  10336. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10337. * src/HttpResponseCommand.h
  10338. (HttpResponseCommand): Wrapped Socket.
  10339. * src/SocketCore.h
  10340. (operator==): New function.
  10341. (operator!=): New function.
  10342. (operator<): New function.
  10343. (getSockfd): New function.
  10344. (isOpen): New function.
  10345. (writeData): New function.
  10346. * src/SocketCore.cc
  10347. (operator==): New function.
  10348. (operator!=): New function.
  10349. (operator<): New function.
  10350. * src/AbstractCommand.h
  10351. (socket): Changed its type to SocketHandle.
  10352. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10353. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10354. (disableReadCheckSocket): New function.
  10355. (disableWriteCheckSocket): New function.
  10356. (readCheckTarget): Changed its type to SocketHandle.
  10357. (writeCheckTarget): Changed its type to SocketHandle.
  10358. (AbstractCommand): Replaced Socket with SocketHandle.
  10359. * src/AbstractCommand.cc
  10360. (AbstractCommand): Replaced Socket with SocketHandle.
  10361. (~AbstractCommand): Removed the deallocation for Socket object.
  10362. (disableReadCheckSocket): New function.
  10363. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10364. (disableWriteCheckSocket): New function.
  10365. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10366. * src/HttpDownloadCommand.cc
  10367. (DownloadCommand): Replaced Socket with SocketHandle.
  10368. * src/PeerAbstractCommand.h
  10369. (socket): Changed its type to SocketHandle.
  10370. (peer): Changed its type to PeerHandle.
  10371. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10372. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10373. (disableReadCheckSocket): New function.
  10374. (disableWriteCheckSocket): New function.
  10375. (readCheckTarget): Changed its type to SocketHandle.
  10376. (writeCheckTarget): Changed its type to SocketHandle.
  10377. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10378. Replaced Peer with PeerHandle.
  10379. * src/HttpRequestCommand.cc
  10380. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10381. Use disableReadCheckSocket.
  10382. * src/PeerInitiateConnectionCommand.h
  10383. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10384. * src/PeerChokeCommand.cc
  10385. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10386. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10387. (execute): Use PeerHandle.
  10388. * src/PeerConnection.h
  10389. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10390. (socket): Changed its type to SocketHandle.
  10391. (PeerConnection): Replaced Socket with SocketHandle.
  10392. * src/PeerConnection.cc
  10393. (PeerConnection): Replaced Socket with SocketHandle.
  10394. * src/PeerInteractionCommand.h
  10395. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10396. Replaced Peer with PeerHandle.
  10397. * src/PeerInteractionCommand.cc
  10398. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10399. Replaced Peer with PeerHandle.
  10400. (executeInternal): Use disableWriteCheckSocket.
  10401. Use HandshakeMessageHandle.
  10402. (receiveMessages): Use PeerMessageHandle.
  10403. (prepareForNextPeer): Use PeerHandle.
  10404. * src/HttpProxyRequestCommand.h
  10405. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10406. * src/HttpResponseCommand.cc
  10407. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10408. * src/TorrentMan.cc
  10409. (nullPeer): Added external reference.
  10410. (~TorrentMan): Removed the deallocation of the elements of peers.
  10411. (addPeer): Rewritten.
  10412. (isPeerAvailable): Use nullPeer.
  10413. (deleteOldpeers): Replaced with deleteErrorPeer.
  10414. (deleteErrorPeer): New function.
  10415. (getPeer): Use PeerHandle and nullPeer.
  10416. (hasMissingPiece): Replaced Peer with PeerHandle.
  10417. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10418. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10419. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10420. (getMissingPiece): Replaced Peer with PeerHandle.
  10421. * src/FtpNegotiateCommand.cc
  10422. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10423. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10424. (recvGreeting): Use disableWriteCheckSocket.
  10425. (recvPasv): Removed the allocation of Socket.
  10426. Use disableReadCheckSocket.
  10427. (sendRestPasv): Use disableWriteCheckSocket.
  10428. (recvRetr): Changed assertion.
  10429. * src/PeerInteraction.h
  10430. (SharedHandle.h): Included SharedHandle.h.
  10431. (PeerMessageHandle): New type definition.
  10432. (HandshakeMessageHandle): New type definition.
  10433. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10434. (peer): Changed its type to PeerHandle.
  10435. (createHandshakeMessage): Replaced HandshakeMessage with
  10436. HandshakeMessageHandle.
  10437. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10438. (PeerInteraction): Replaced Peer with PeerHandle.
  10439. Replaced Socket with SocketHandle.
  10440. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10441. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10442. (receiveHandshake): Replaced HandshakeMessage with
  10443. HandshakeMessageHandle.
  10444. * src/PeerInteraction.cc
  10445. (PeerInteraction): Replaced Peer with PeerHandle.
  10446. Replaced Socket with SocketHandle.
  10447. (~PeerInteraction): Removed the deallocation of the elements of
  10448. messageQueue.
  10449. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10450. (isSendingMessageInProgress): Replaced PeerMessage with
  10451. PeerMessageHandle.
  10452. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10453. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10454. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10455. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10456. (abortPiece): Use PeerMessageHandle.
  10457. (receiveHandshake): Replaced HandshakeMessage with
  10458. HandshakeMessageHandle. Removed try-catch block.
  10459. (createHandshakeMessage): Replaced HandshakeMessage with
  10460. HandshakeMessageHandle.
  10461. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10462. Removed try-catch block.
  10463. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10464. * src/HttpProxyResponseCommand.cc
  10465. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10466. * src/FtpTunnelResponseCommand.h
  10467. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10468. * src/HttpConnection.cc
  10469. (HttpConnection): Replaced Socket with SocketHandle.
  10470. * src/PeerAbstractCommand.cc
  10471. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10472. (~PeerAbstractCommand): Removed the deallocation of socket.
  10473. Use disableReadCheckSocket, disableWriteCheckSocket.
  10474. (disableReadCheckSocket): New function.
  10475. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10476. (disableWriteCheckSocket): New function.
  10477. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10478. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10479. * src/FtpTunnelRequestCommand.cc
  10480. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10481. (~FtpTunnelRequestCommand): Corrected indentation.
  10482. * src/DownloadCommand.h
  10483. (DownloadCommand): Replaced Socket with SocketHandle.
  10484. * src/PeerListenCommand.cc
  10485. (PeerListenCommand): Removed the initialization of socket.
  10486. (~PeerListenCommand): Removed the deallocation of socket.
  10487. (bindPort): Use SocketHandle.
  10488. (execute): Use SocketHandle and PeerHandle.
  10489. * src/FtpDowndloadCommand.cc
  10490. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10491. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10492. * src/main.cc
  10493. (main): Corrected indentation.
  10494. * src/HttpInitiateConnectionCommand.cc
  10495. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10496. (executeInternal): Removed the allocation of socket.
  10497. * src/HttpRequestCommand.h
  10498. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10499. * src/FtpNegotiationCommand.h
  10500. (dataSocket): Changed its type to SocketHandle.
  10501. (serverSocket): Changed its type to SocketHandle.
  10502. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10503. * src/TorrentMan.h
  10504. (MAX_PEER_UPDATE): Removed.
  10505. (MAX_PEERS): New definition.
  10506. (Peers): The element is now of type PeerHandle.
  10507. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10508. (getPeer): Replaced Peer with PeerHandle.
  10509. (deleteOldErrorPeers): Removed.
  10510. (deleteErrorPeer): New function.
  10511. (hasMissingPiece): Replaced Peer with PeerHandle.
  10512. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10513. (getMissingPiece): Replaced Peer with PeerHandle.
  10514. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10515. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10516. (addActivePeer): Replaced Peer with PeerHandle.
  10517. (deleteActivePeer): Replaced Peer with PeerHandle.
  10518. Added a check for the return value of find.
  10519. * src/FtpTunnelResponseCommand.cc
  10520. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10521. * src/FtpInitiateConnectionCommand.cc
  10522. (executeInternal): Removed the allocation of socket.
  10523. * src/DownloadEngine.h
  10524. (Sockets): An element is now of type SocketHandle.
  10525. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10526. (CommandUuids): New type definition.
  10527. (rsockets): Changed its type to SockCmdMap.
  10528. (wsockets): Changed its type to SockCmdMap.
  10529. (addSocket): Rewritten.
  10530. (deleteSocket): Rewritten.
  10531. (addSocketForReadCheck): Rewritten.
  10532. (deleteSocketForReadCheck): Rewritten.
  10533. (addSocketForWriteCheck): Rewritten.
  10534. (deleteSocketForWriteCheck): Rewritten.
  10535. (PairFind): New template class.
  10536. * src/HttpDownloadCommand.h
  10537. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10538. * src/FtpConnection.cc
  10539. (FtpConnection): Replaced Socket with SocketHandle.
  10540. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10541. block.
  10542. * src/InitiateConnectionCommandFactory.cc
  10543. (DlAbortEx.h): Included DlAbortEx.h.
  10544. (createInitiateConnectionCommand): Throw exception if the protocol of
  10545. requested URI is not supported.
  10546. * src/Peer.cc
  10547. (nullPeer): Changed its type to PeerHandle.
  10548. (operator==): New function.
  10549. (operator!=): New function.
  10550. * src/Peer.h
  10551. (SharedHandle.h): Included SharedHandle.h.
  10552. (operator==): New function.
  10553. (operator!=): New function.
  10554. (Peer): Added the default constructor.
  10555. Use resetStatus() to initialize member variables.
  10556. (nullPeer): Removed.
  10557. * src/TrackerUpdateCommand.cc
  10558. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10559. with MIN_PEERS.
  10560. * src/PeerListenCommand.h
  10561. (socket): Changed its type to SocketHandle.
  10562. * src/Command.h
  10563. (CommandUuid): New type definition.
  10564. (uuid): New variable.
  10565. (uuidGen): New variable.
  10566. (Command): Added the initialization of uuid.
  10567. (getUuid): New function.
  10568. * src/Socket.h
  10569. (Socket): Removed.
  10570. (SocketHandle): New type definition.
  10571. * src/DownloadEngine.h
  10572. (FindCommand): New function object.
  10573. (run): The portion of socket check was rewritten.
  10574. (SetDescriptor): New function object.
  10575. (AccumulateActiveCommandUuid): New function object.
  10576. (waitData): Rewritten.
  10577. (addSocket): Rewritten.
  10578. (deleteSocket): Rewritten.
  10579. (addSocketForReadCheck): Rewritten.
  10580. (addSocketForWriteCheck): Rewritten.
  10581. (deleteSocketForReadCheck): Rewritten.
  10582. (deleteSocketForWriteCheck): Rewritten.
  10583. * src/HttpProxyResponseCommand.h
  10584. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10585. * src/HttpConnection.h
  10586. (socket): Changed its type to SocketHandle.
  10587. (HttpConnection): Replaced Socket with SocketHandle.
  10588. * src/PeerInitiateConnectionCommand.cc
  10589. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10590. (executeInternal): Removed the allocation of socket.
  10591. (prepareForNextPeer): Use PeerHandle.
  10592. * src/PeerMessage.h
  10593. (peer): Changed its type to PeerHandle.
  10594. (getPeer): Replaced Peer with PeerHandle.
  10595. (setPeer): Replaced Peer with PeerHandle.
  10596. * src/DownloadCommand.cc
  10597. (DownloadCommand): Replaced Socket with SocketHandle.
  10598. * src/FtpConnection.h
  10599. (socket): Changed its type to SocketHandle.
  10600. (FtpConnection): Replaced Socket with SocketHandle.
  10601. (sendPort); Replaced Socket with SocketHandle.
  10602. * src/FtpDowndloadCommand.h
  10603. (ctrlSocket): Changed its type to SocketHandle.
  10604. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10605. * src/HttpProxyRequestCommand.cc
  10606. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10607. * src/FtpTunnelRequestCommand.h
  10608. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10609. etc
  10610. * src/PeerChokeCommand.h
  10611. (setAllPeerChoked): Removed.
  10612. (setAllPeerResetDelta): Removed.
  10613. * src/PeerChokeCommand.cc
  10614. (setAllPeerChoked): Removed.
  10615. (ChokePeer): New function object.
  10616. (setAllPeerResetDelta): Removed.
  10617. (ResetDelta): New function object.
  10618. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10619. (execute): Show download speed when the local node is a seeder.
  10620. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10621. using STL.
  10622. * src/TrackerWatcherCommand.h
  10623. (MIN_PEERS): Removed.
  10624. * src/TorrentMan.cc
  10625. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10626. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10627. To fix the bug that .aria2 file is not saved if downloading is stopped
  10628. by the errors:it results that aria2 can not resume downloading:
  10629. * src/main.cc
  10630. (normalDownload): Added the call to save().
  10631. (main): Added the deletion of the elements in 'reserved'.
  10632. To fix log:
  10633. * src/PeerInteraction.cc
  10634. (receiveHandshake): Fixed log.
  10635. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. To improve download performance in BitTorrent:
  10637. * src/TorrentMan.cc
  10638. (getPeer): Check the number of connections. Return nullPeer if
  10639. it is greater than MAX_PEER_UPDATE.
  10640. This code was originally here, but was removed in 0.5.1.
  10641. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. To improve the conditional compilation:
  10643. * src/MultiDiskWriter.h:
  10644. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10645. * src/MultiDiskWriter.cc:
  10646. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10647. * src/Util.h:
  10648. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10649. Added ENABLE_BITTORRENT around computeFastSet().
  10650. * src/Util.cc:
  10651. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10652. Added ENABLE_BITTORRENT around computeFastSet().
  10653. * src/messageDigest.h:
  10654. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10655. * src/ShaVisitor.h:
  10656. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10657. * src/ShaVisitor.cc:
  10658. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10659. * src/main.cc:
  10660. Added ENABLE_BITTORRENT around includes and blocks related to
  10661. BitTorrent.
  10662. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10663. digest support is not available.
  10664. * src/AbstractDiskWriter.h:
  10665. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10666. * src/AbstractDiskWriter.cc:
  10667. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10668. * src/MetalinkEntry.cc
  10669. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10670. support is not available.
  10671. To add command-line options for Metalink:
  10672. * src/main.cc:
  10673. Added metalink-version, metalink-language, metalink-os,
  10674. follow-metalink.
  10675. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10676. * src/main.cc: Use these definition.
  10677. * Release 0.6.0
  10678. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10679. To add Metalink support(http/ftp only):
  10680. * src/AbstractCommand.h
  10681. (tryReserved): New function.
  10682. * src/AbstractCommand.cc
  10683. (execute): Call tryReserved().
  10684. (tryReserved): New function.
  10685. * src/Request.h
  10686. (Requests): New type definition.
  10687. * src/SegmentMan.h
  10688. (reserved): New variable.
  10689. * src/Util.h
  10690. (fileChecksum): New function.
  10691. (toUpper): New function.
  10692. (toLower): New function.
  10693. * src/Util.cc
  10694. (messageDigest.h): Included.
  10695. (trim): Trim \r\n\t.
  10696. (fileChecksum): New function.
  10697. (toUpper): New function.
  10698. (toLower): New function.
  10699. * src/main.cc
  10700. (normalDownload): New function.
  10701. (main): Added 2 command-line options: metalink-file,
  10702. metalink-connection. Their usage has not been written yet.
  10703. * src/MetalinkProcessor.h: New class.
  10704. * src/Xml2MetalinkProcessor.h: New class.
  10705. * src/Xml2MetalinkProcessor.cc: New class.
  10706. * src/MetalinkEntry.h: New class.
  10707. * src/MetalinkEntry.cc: New class.
  10708. * src/MetalinkResource.h: New class.
  10709. * src/MetalinkResource.cc: New class.
  10710. To add md5 message digest checking:
  10711. * src/messageDigest.h: Rewritten.
  10712. * src/MultiDiskWriter.cc: Updated according to the changes in
  10713. messageDigest.h.
  10714. * src/ShaVisitor.cc: Updated according to the changes in
  10715. messageDigest.h.
  10716. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10717. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10718. messageDigest.h.
  10719. To fix a bug that causes segfault when the payload length in peer
  10720. message is less than 0:
  10721. * src/PeerConnection.cc:
  10722. (receiveMessage): Fixed the bug.
  10723. * src/PeerMessageUtil.cc
  10724. (checkLength): Throw an exception if length is less than or equals to
  10725. 0.
  10726. To add new interfaces to Base64 encoding/decoding:
  10727. * src/Base64.h
  10728. (part_encode): Changed the method signature.
  10729. (encode): New function(overload).
  10730. (decode): New function(overload).
  10731. * src/Base64.cc
  10732. (part_encode): Rewritten.
  10733. (encode): Rewritten.
  10734. (encode): New function(overload).
  10735. To prevent a peer to download same piece if there is an error in
  10736. checksum:
  10737. * src/PieceMessage.cc
  10738. (receivedAction): Call peerInteraction->abortPiece().
  10739. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. To fix the bug that causes same have message is sent many times to
  10741. a single peer.
  10742. * src/Time.cc
  10743. (isNewer): Use Util::difftv().
  10744. * src/Util.cc
  10745. (difftv): Added a cast to (long long int).
  10746. * src/TorrentMan.cc
  10747. (advertisePiece): Use push_front.
  10748. (getAdvertisedPieceIndexes): A performance improvement was made.
  10749. To fix the bug that sends tracker requests without a sleep interval
  10750. when the number of connections is less than 15.
  10751. * src/TrackerWatcherCommand.cc
  10752. (execute): Now the number of connections is not a factor to decide
  10753. whether or not a tracker request should be sent or not.
  10754. * src/Time.h
  10755. (setTimeInSec): New function.
  10756. * src/Time.cc
  10757. (setTimeInSec): New function.
  10758. etc.
  10759. * src/ChokeMessage.cc
  10760. (receivedAction): Removed peer->snubbing = false
  10761. * src/PeerConnection.h
  10762. (receiveHandshake): Updated doc.
  10763. * src/TorrentMan.h
  10764. (getAdvertisedPieceIndexes): Updated the method signature.
  10765. * src/TorrentMan.cc
  10766. (getAdvertisedPieceIndexes): Updated the method signature.
  10767. * src/Time.h
  10768. (getTimeInMicros): Added a cast to (long long int).
  10769. (getTimeInMillis): Added a cast to (long long int).
  10770. * Release 0.5.2
  10771. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. To make a listening socket non-block:
  10773. * src/SocketCore.h
  10774. (setNonBlockingMode): New function.
  10775. * src/SocketCore.cc
  10776. (setNonBlockingMode): New function.
  10777. (beginListen): Added a call to setNonBlockingMode().
  10778. (acceptConnection): Call setNonBlockingMode().
  10779. (setBlockingMode): Updated.
  10780. To handle tracker's NAT-checking:
  10781. * src/PeerConnection.cc
  10782. (receiveHandshake): 'msg' param is filled with received data and
  10783. its length is assigned to 'length' param, even if all handshake
  10784. message is not yet received.
  10785. * src/PeerInteractionCommand.cc
  10786. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10787. a new peer connects to localhost.
  10788. A call to peerInteraction->sendHandshake() was removed because
  10789. it is called from peerInteraction->receiveHandshake(true).
  10790. * src/PeerInteraction.h
  10791. (quickReplied): New variable.
  10792. (receiveHandshake): Added an argument.
  10793. * src/PeerInteraction.cc
  10794. (PeerInteraction): Added the initialization of quickReplied.
  10795. (receiveHandshake): Send handshake message as soon as the info hash
  10796. in a handshake message from a peer is correct.
  10797. To change the random part of peer id and key parameter:
  10798. * src/TorrentMan.h
  10799. (key): New variable.
  10800. * src/TorrentMan.cc
  10801. (setupInternal1): Use Util::randomAlpha() to generate random part
  10802. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10803. key is also generated by Util::randomAlpha() and it is now 8 character
  10804. long.
  10805. * src/Util.h
  10806. (randomAlpha): New function.
  10807. * src/Util.cc
  10808. (randomAlpha): New function.
  10809. * src/TrackerWatcherCommand.cc
  10810. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10811. Added no_peer_id=1.
  10812. Set snubbing flag to false when a choke message is received from a
  10813. snubbed peer.
  10814. * src/ChokeMessage.cc
  10815. (receivedAction): Set snubbing flag to false.
  10816. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10818. * src/SimpleLogger.h (writeHeader): New function.
  10819. * src/SimpleLogger.cc (writeHeader): New function.
  10820. (writeLog): Fixed the bug that causes segfaults if exception message
  10821. contains an unescaped "%" character.
  10822. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10823. when a tracker request fails.
  10824. * src/Request.cc (parseUrl): Query string is now handled properly.
  10825. * Release 0.5.1
  10826. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. To add Time class which represents a specific instant in time and
  10828. its precision is microseconds. Time checking procedures were rewritten
  10829. using this object.
  10830. * src/Time.h: New class.
  10831. * src/Time.cc: New class.
  10832. * src/AbstractCommand.h
  10833. (updateCheckPoint): Removed.
  10834. (isTimeoutDetected): Removed.
  10835. (checkPoint): Changed the type to Time.
  10836. (timeout): New variable.
  10837. (setTimeout): New function.
  10838. * src/AbstractCommand.cc
  10839. (AbstractCommand): Removed the initialization of checkPoint.
  10840. Added the initialization of timeout.
  10841. (updateCheckPoint): Removed.
  10842. (isTimeoutDetected): Removed.
  10843. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10844. * src/PeerChokeCommand.h
  10845. (checkPoint): Changed the type to Time.
  10846. * src/PeerChokeCommand.cc
  10847. (PeerChokeCommand): Removed the initialization of checkPoint.
  10848. (execute): Rewritten using Time object.
  10849. * src/TrackerWatcherCommand.h
  10850. (checkPoint): Changed the type to Time.
  10851. * src/TrackerWatcherCommand.cc
  10852. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10853. (execute): Rewritten.
  10854. * src/ConsoleDownloadEngine.h
  10855. (cp): Changed the type to Time.
  10856. (startup): Changed the type to Time.
  10857. * src/ConsoleDownloadEngine.cc
  10858. (initStatistics): Use cp.reset(), startup.reset().
  10859. (calculateStatistics): Rewritten using Time object.
  10860. * src/PeerAbstractCommand.h
  10861. (updateCheckPoint): Removed.
  10862. (isTimeoutDetected): Removed.
  10863. (checkPoint): Changed the type to Time.
  10864. * src/PeerAbstractCommand.cc
  10865. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10866. (updateCheckPoint): Removed.
  10867. (isTimeoutDetected): Removed.
  10868. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10869. * src/PeerInteractionCommand.cc
  10870. (PeerInteractionCommand): Removed the initializations of struct
  10871. timeval variables.
  10872. * src/PeerInteractionCommand.h
  10873. (keepAliveCheckPoint): Changed the type to Time.
  10874. (chokeCheckPoint): Changed the type to Time.
  10875. (freqCheckPoint): Changed the type to Time.
  10876. (haveCheckTime): Changed the type to Time.
  10877. * src/PeerInteractionCommand.cc
  10878. (executeInternal): Rewritten using Time object.
  10879. (detectMessageFlooding): Rewritten using Time object.
  10880. (checkLongTimePeerChoking): Rewritten using Time object.
  10881. (sendKeepAlive): Rewritten using Time object.
  10882. (checkHave): Rewritten using Time object.
  10883. * src/SleepCommand.h
  10884. (checkPoint): Changed the type to Time.
  10885. * src/SleepCommand.cc
  10886. (SleepCommand): Removed the initialization of checkPoint.
  10887. (execute): Rewritten using Time object.
  10888. * src/TorrentAutoSaveCommand.h
  10889. (checkPoint): Changed the type to Time.
  10890. * src/TorrentAutoSaveCommand.cc
  10891. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10892. (execute): Rewritten.
  10893. * src/DownloadCommand.h
  10894. (sw): Changed the type to Time.
  10895. * src/DownloadCommand.cc
  10896. (DownloadCommand): Removed the initialization of sw.
  10897. (executeInternal): Rewritten.
  10898. * src/RequestSlot.h
  10899. (dispatchedTime): Changed the type to Time.
  10900. * src/RequestSlot.cc
  10901. (RequestSlot): Removed the call to setDispatchedTime().
  10902. (setDispatchedTime): Rewirtten.
  10903. (isTimeout): Rewritten.
  10904. (getLatencyInMillis): Rewritten.
  10905. * src/TorrentDownloadEngine.h
  10906. (cp): Changed the type to Time[2].
  10907. (startup): Changed the type to Time.
  10908. * src/TorrentDownloadEngine.cc
  10909. (initStatistics): Rewritten.
  10910. (calculateStatistics): Rewritten.
  10911. * src/DownloadEngine.cc
  10912. (run): Rewritten.
  10913. To detect all attempts to connect to the tracker are failed:
  10914. * src/AbstractCommand.cc
  10915. (execute): Increment e->segmentMan->errors if a command aborted.
  10916. * src/SegmentMan.h
  10917. (errors): New variable.
  10918. * src/SegmentMan.cc
  10919. (SegmentMan): Added the initialization of errors.
  10920. (init): Added the initialization of errors.
  10921. * src/TrackerWatcherCommand.cc
  10922. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  10923. request was failed.
  10924. To handle snubbed peers:
  10925. * src/PeerChokeCommand.cc
  10926. (optUnchokingPeer): Snubbed peers don't get unchoked.
  10927. (execute): Snubbed peers don't get unchoked.
  10928. * src/PeerInteraction.h
  10929. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  10930. * src/PeerInteraction.cc
  10931. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  10932. back the requested 16k block in 60 seconds.
  10933. * src/PieceMessage.cc
  10934. (receivedAction): A peer's snubbed state is cleard if it sends
  10935. the requested 16k block in 60 seconds.
  10936. * src/Peer.h
  10937. (snubbing): New variable.
  10938. * src/Peer.cc
  10939. (resetStatus): Added snubbed = false.
  10940. To fix the bug that causes have message is not sent:
  10941. * src/PeerInteractionCommand.cc
  10942. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  10943. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  10944. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  10945. * src/TorrentMan.h
  10946. (HaveEntry): New class.
  10947. (advertisePiece): Rewritten.
  10948. (getAdvertisedPieceIndexes): Rewritten.
  10949. (Haves): Changed the type.
  10950. (getAdvertisedPieceIndexes): Added an argument.
  10951. Others:
  10952. * src/TorrentMan.h
  10953. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10954. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10955. * src/TorrentMan.cc
  10956. (getPeer): Don't check the number of connections here.
  10957. (setupInternal1): Changed peerId.
  10958. * src/PeerInteractionCommand.h
  10959. (KEEP_ALIVE_INTERVAL): New definition.
  10960. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10961. * src/main.cc
  10962. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10963. * src/DownloadEngine.h: Removed unnecessary header includes.
  10964. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. To fix the bug that causes segfaults if a tracker returns a zero-length
  10966. list as "peers":
  10967. * src/TrackerUpdateCommand.cc
  10968. (execute): Added a check to see wether the type of peers is Data*.
  10969. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. * Release 0.5.0
  10971. To fix compile issue with gcc3:
  10972. * src/CancelMessage.h
  10973. (ID): Renamed as ID_t
  10974. (ID_t): New enum.
  10975. * src/RejectMessage.h
  10976. (ID): Renamed as ID_t
  10977. (ID_t): New enum.
  10978. * src/SuggestPieceMessage.h
  10979. (ID): Renamed as ID_t
  10980. (ID_t): New enum.
  10981. * src/AllowedFastMessage.h
  10982. (ID): Renamed as ID_t
  10983. (ID_t): New enum.
  10984. * src/PortMessage.h
  10985. (ID): Renamed as ID_t
  10986. (ID_t): New enum.
  10987. * src/HaveNoneMessage.h
  10988. (ID): Renamed as ID_t
  10989. (ID_t): New enum.
  10990. * src/KeepAliveMessage.h
  10991. (ID): Renamed as ID_t
  10992. (ID_t): New enum.
  10993. * src/HaveAllMessage.h
  10994. (ID): Renamed as ID_t
  10995. (ID_t): New enum.
  10996. * src/UnchokeMessage.h
  10997. (ID): Renamed as ID_t
  10998. (ID_t): New enum.
  10999. * src/BitfieldMessage.h
  11000. (ID): Renamed as ID_t
  11001. (ID_t): New enum.
  11002. * src/PieceMessage.h
  11003. (ID): Renamed as ID_t
  11004. (ID_t): New enum.
  11005. * src/RequestMessage.h
  11006. (ID): Renamed as ID_t
  11007. (ID_t): New enum.
  11008. * src/NotInterestedMessage.h
  11009. (ID): Renamed as ID_t
  11010. (ID_t): New enum.
  11011. * src/ChokeMessage.h
  11012. (ID): Renamed as ID_t
  11013. (ID_t): New enum.
  11014. * src/InterestedMessage.h
  11015. (ID): Renamed as ID_t
  11016. (ID_t): New enum.
  11017. * src/HaveMessage.h
  11018. (ID): Renamed as ID_t
  11019. (ID_t): New enum.
  11020. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11021. * src/PeerAbstractCommand.h
  11022. (beforeSocketCheck): Removed.
  11023. * src/PeerAbstractCommand.cc
  11024. Modified in order to call executeInternal() even if socket check
  11025. and upload limit check fail.
  11026. * src/PeerInteractionCommand.h
  11027. (keepAlive): Removed.
  11028. (sendKeepAlive): New function.
  11029. (checkHave): New function.
  11030. (beforeSocketCheck): Removed.
  11031. * src/PeerInteractionCommand.cc
  11032. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11033. calls to checkHave() and sendKeepAlive().
  11034. (keepAlive): Renamed to sendKeepAlive().
  11035. (sendKeepAlive): New function.
  11036. (beforeSocketCheck): Removed.
  11037. (checkHave): New function.
  11038. * src/BitfieldMan.cc
  11039. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11040. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11041. 0.
  11042. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11043. * src/TorrentMan.h
  11044. (UsedPieces): Removed.
  11045. (Pieces): New type definition.
  11046. * src/Piece.h: Updated doc.
  11047. * src/Peer.h
  11048. (totalLength): Removed.
  11049. * src/Peer.cc
  11050. (updateLatency): Fixed the latency calculation.
  11051. * src/TorrentMan.cc
  11052. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11053. than or equal to MAX_PEER_LIST_SIZE.
  11054. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11055. then return false.
  11056. (deleteOldErrorPeers): Rewritten.
  11057. (deleteUsedPiece): Fixed the miss use of STL remove.
  11058. * src/PeerInteraction.h
  11059. (Pieces): Removed.
  11060. (deleteTimeoutRequestSlot): Removed.
  11061. (deleteCompletedRequestSlot): Removed.
  11062. (checkRequestSlot): New function.
  11063. * src/PeerInteraction.cc
  11064. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11065. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11066. (checkRequestSlot): New function.
  11067. * src/DownloadEngine.cc
  11068. (run): Clear activeSockets before calling waitData().
  11069. (waitData): Removed a call to activeSockets.clear().
  11070. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. To attempt to handle EINTR:
  11072. * src/SocketCore.cc
  11073. (isReadable): Added EINTR handling.
  11074. (isWritable): Added EINTR handling.
  11075. To improve the performance:
  11076. * src/AbstractCommand.cc
  11077. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11078. * src/PeerInteractionCommand.h
  11079. (receiveMessage): Renamed as receiveMessages().
  11080. (receiveMessages): New function.
  11081. * src/PeerInteractionCommand.cc
  11082. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11083. () function. detectMessageFlooding() is moved here.
  11084. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11085. (). The flooding detection for have message is comment out.
  11086. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11087. Util::difftv().
  11088. (receiveMessage): Renamed as receiveMessages().
  11089. (receiveMessages): New function.
  11090. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11091. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11092. * src/SleepCommand.cc
  11093. (execute): Use Util::difftvsec() instead of Util::difftv().
  11094. * src/BitfieldMan.h
  11095. (getNthBitIndex): New function.
  11096. (hasMissingPiece): New function.
  11097. (getAllMissingIndexes): New function.
  11098. * src/BitfieldMan.cc
  11099. (countSetBit): Rewritten.
  11100. (getNthBitIndex): New function.
  11101. (getMissingIndexRandomly): Rewritten.
  11102. (hasMissingPiece): New function.
  11103. (getAllMissingIndexes): New function.
  11104. * src/TorrentMan.cc
  11105. (hasMissingPiece): New function.
  11106. (deleteUsedPiece): Rewritten using STL.
  11107. * src/PeerInteraction.cc
  11108. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11109. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11110. (addRequests): Updated the number of pending requests.
  11111. * src/PeerAbstractCommand.cc
  11112. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11113. (execute): Returns true if TorrentMan::isHalt() is true.
  11114. Corrected the condition of upload limit checking.
  11115. * src/Util.h
  11116. (countBit): New function.
  11117. * src/Util.cc
  11118. (nbits): New variable.
  11119. (countBit): New function.
  11120. * src/DownloadEngine.h
  11121. (SockCmdMap): New type definition.
  11122. (waitData): Added an argument.
  11123. (addSocket): Added an argument.
  11124. (addSocketForReadCheck): Added an argument.
  11125. (addSocketForWriteCheck): Added an argument.
  11126. * src/DownloadEngine.cc
  11127. (run): Executes only commands whose sockets are ready to read or write.
  11128. All commands are executed in every 1 second.
  11129. (waitData): Calls select() again if it returned
  11130. EINTR.
  11131. (addSocket): Saves socket and command object pair to the map.
  11132. (deleteSocket): Deletes socket and command object pair from the map.
  11133. (addSocketForReadCheck): Added an argument.
  11134. (addSocketForWriteCheck): Added an argument.
  11135. * src/DownloadCommand.cc
  11136. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11137. To send "event=stopped" to the tracker when the application finishes:
  11138. * src/PeerChokeCommand.h
  11139. (checkPoint): New variable.
  11140. * src/PeerChokeCommand.cc
  11141. (PeerChokeCommand): Added the initialization of checkPoint.
  11142. (execute): The interval check is now done by checkPoint, not
  11143. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11144. * src/TorrentMan.h
  11145. (halt): New function.
  11146. (hasMissingPiece): New function.
  11147. (isHalt): New function.
  11148. (setHalt): New function.
  11149. * src/TorrentMan.cc
  11150. (TorrentMan): Added the initialization of halt.
  11151. * src/TorrentAutoSaveCommand.h
  11152. (checkPoint): New variable.
  11153. * src/PeerListenCommand.cc
  11154. (execute): Returns true if TorrentMan::isHalt() is true.
  11155. * src/main.cc
  11156. (setSignalHander): Added flags argument.
  11157. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11158. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11159. Removed printDownloadAbortMessage() after torrent downloading loop.
  11160. * src/TorrentAutoSaveCommand.cc
  11161. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11162. (execute): Returns true if TorrentMan::isHalt() is true.
  11163. The interval check is now done by checkPoint, not SleepCommand.
  11164. * src/TrackerWatcherCommand.cc
  11165. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11166. event=stopped.
  11167. * src/TrackerUpdateCommand.cc
  11168. (prepareForRetry): Do not use SleepCommand here.
  11169. (execute): Returns true if TorrentMan::isHalt() is true.
  11170. Others:
  11171. * src/TorrentMan.cc
  11172. (getMissingPieceIndex): Updated log message.
  11173. * src/PeerInteraction.cc
  11174. (createPeerMessag): Updated log message.
  11175. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. To add the ability to download several pieces in mix in a command and
  11177. increase the number of request slots according to request-cancel
  11178. latency:
  11179. * src/PeerInteractionCommand.cc
  11180. (executeInternal): The number of messages to be received at a time
  11181. is increased from 10 to 50.
  11182. * src/LogFactory
  11183. (getInstance): Added NullLogger.
  11184. * src/NullLogger.h: New class.
  11185. * src/BitfieldMan.h
  11186. (getMissingIndex): New function.
  11187. * src/BitfieldMan.cc
  11188. (getMissingIndex): New function.
  11189. * src/TorrentMan.h
  11190. (checkOutPiece): New function.
  11191. (getMissingPieceIndex): New function.
  11192. (getMissingFastPieceIndex): New function.
  11193. (getMissingFastPiece): New function.
  11194. * src/TorrentMan.cc
  11195. (updatePiece): Rewritten using STL.
  11196. (syncPiece): Rewritten using STL.
  11197. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11198. checkOutPiece().
  11199. (getMissingPieceIndex): New function.
  11200. (getMissingFastPieceIndex): New function.
  11201. (getMissingFastPiece): New function.
  11202. (checkOutPiece): New function.
  11203. * src/PeerInteraction.h
  11204. (Pieces): New type definition.
  11205. (piece): Removed.
  11206. (pieces): New variable.
  11207. (getNewPieceAndSendInterest): Added the "piece" argument.
  11208. (abortPiece): Added the "piece" argument.
  11209. (abortAllPieces): New function.
  11210. (isInRequestSlot): New function.
  11211. (hasDownloadPiece): Added the "index" argument.
  11212. (setDownloadPiece): Removed.
  11213. (getDownloadPiece): Added the "index" argument.
  11214. (updatePiece): New function.
  11215. (createRequestMessage): Added the "index" argument.
  11216. * src/PeerInteraction.cc
  11217. (onChoked): Rewritten.
  11218. (abortPiece): Rewirtten.
  11219. (abortAllPieces): New function.
  11220. (deleteTimeoutRequestSlot): Rewritten.
  11221. Clarified code a little bit.
  11222. (deleteCompletedRequestSlot): Rewritten.
  11223. (isInRequestSlot): New function.
  11224. (syncPiece): Rewritten.
  11225. (updatePiece): New function.
  11226. (getNewPieceAndSendInterest): Rewritten.
  11227. (addRequests): Rewritten.
  11228. (getDownloadPiece): Rewritten.
  11229. (hasDownloadPiece): Rewritten.
  11230. (createRequestMessage): Added the "index" argument.
  11231. * src/common.h
  11232. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11233. (DIV_FLOOR): New definition.
  11234. * src/PieceMessage.cc
  11235. (receivedAction): Update request-piece latency here.
  11236. * src/RequestSlot.h
  11237. (getLatencyInMillis): New function.
  11238. * src/RequestSlot.cc
  11239. (isTimeout): Rewritten using getLatencyInMillis.
  11240. (getLatencyInMillis): New function.
  11241. * src/Piece.h
  11242. (operator==): New function.
  11243. (getMissingBlockIndex): New function.
  11244. * src/Piece.cc
  11245. (operator==): New function.
  11246. (getMissingBlockIndex): New function.
  11247. * src/Peer.h
  11248. (DEFAULT_LATENCY): New definition.
  11249. (latency): New variable.
  11250. (updateLatency): New function.
  11251. (getLatency): New function.
  11252. * src/Peer.cc
  11253. (resetStatus): Reset latecy.
  11254. (updateLatency): New function.
  11255. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11256. * src/SocketCore.cc
  11257. (isReadable): Added secure to the condition.
  11258. * src/HttpConnection.cc
  11259. (receiveResponse): Fixed a bug that causes no response header
  11260. exception.
  11261. * src/Peer.h
  11262. (getFastSet): Fixed the return value type.
  11263. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. To remove a wait from download loop:
  11265. * src/DownloadEngine.cc
  11266. (run): Comment out shortSleep.
  11267. To rewrite the message handling:
  11268. * src/SimplePeerMessage.h: New class.
  11269. * src/SimplePeerMessage.cc: New class.
  11270. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11271. (msg): New variable.
  11272. (create): New function.
  11273. (send): Removed.
  11274. (getMessage): New function.
  11275. (getMessageLength): New function.
  11276. * src/CancelMessage.cc
  11277. (create): New function.
  11278. (receivedAction): Replaced deleteRequestMessageInQueue with
  11279. rejectPieceMessageInQueue.
  11280. (send): Removed.
  11281. (getMessage): New function.
  11282. (getMessageLength): New function.
  11283. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11284. (msg): New variable.
  11285. (msgLength): New variable.
  11286. (~BitfieldMessage): Deleted msg.
  11287. (send): Removed.
  11288. (getMessage): New function.
  11289. (getMessageLength): New function.
  11290. * src/BitfieldMessage.cc
  11291. (create): New function.
  11292. (send): Removed.
  11293. (getMessage): New function.
  11294. (getMessageLength): New function.
  11295. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11296. (msg): New variable.
  11297. (sendPredicate): New function.
  11298. (onSendComplete): New function.
  11299. (send): Removed.
  11300. (getMessage): New function.
  11301. (getMessageLength): New function.
  11302. (create): New function.
  11303. * src/ChokeMessage.cc
  11304. (create): New function.
  11305. (send): Removed.
  11306. (sendPredicate): New function.
  11307. (getMessage): New function.
  11308. (getMessageLength): New function.
  11309. (onSendComplete): New function.
  11310. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11311. (msg): New variable.
  11312. (send): Removed.
  11313. (getMessage): New function.
  11314. (getMessageLength): New function.
  11315. * src/KeepAliveMessage.cc
  11316. (send): Removed.
  11317. (getMessage): New function.
  11318. (getMessageLength): New function.
  11319. * src/PortMessage.h
  11320. (create): New function.
  11321. (receivedAction): Updated log message.
  11322. * src/PortMessage.cc: New file.
  11323. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11324. (msg): New variable.
  11325. (sendPredicate): New function.
  11326. (onSendComplete): New function.
  11327. (create): New function.
  11328. (send): Removed.
  11329. (getMessage): New function.
  11330. (getMessageLength): New function.
  11331. * src/UnchokeMessage.cc
  11332. (create): New function.
  11333. (send): Removed.
  11334. (sendPredicate): New function.
  11335. (getMessage): New function.
  11336. (getMessageLength): New function.
  11337. (onSendComplete): New function.
  11338. * src/PieceMessage.h
  11339. (leftPieceDataLength): Removed.
  11340. (leftDataLength): New variable.
  11341. (headerSend): New variable.
  11342. (pendingCount): New variable.
  11343. (msgHeader): New variable.
  11344. (sendPieceData): New function.
  11345. (incrementPendingCount): New function.
  11346. (isPendingCountMax): New function.
  11347. (create): New function.
  11348. (getMessageHeader): New function.
  11349. (getMessageHeaderLength): New function.
  11350. * src/PieceMessage.cc
  11351. (create): New function.
  11352. (getMessageHeader): New function.
  11353. (getMessageHeaderLength): New function.
  11354. (send): Rewritten.
  11355. (sendPieceData): New function.
  11356. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11357. (msg): New variable.
  11358. (create): New function.
  11359. (getMessage): New function.
  11360. (getMessageLength): New function.
  11361. * src/HaveMessage.cc
  11362. (create): New function.
  11363. (send): Removed.
  11364. (sendPieceData): New function.
  11365. (getMessage): New function.
  11366. (getMessageLength): New function.
  11367. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11368. (msg): New variable.
  11369. (create): New function.
  11370. (send): Removed.
  11371. (getMessage): New function.
  11372. (getMessageLength): New function.
  11373. * src/RequestMessage.cc
  11374. (create): New function.
  11375. (receivedAction): Added the handling of fast extension.
  11376. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11377. (send): Removed.
  11378. (getMessage): New function.
  11379. (getMessageLength): New function.
  11380. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11381. (msg): New variable.
  11382. (sendPredicate): New function.
  11383. (onSendComplete): New function.
  11384. (create): New function.
  11385. (getMessage): New function.
  11386. (getMessageLength): New function.
  11387. * src/InterestedMessage.cc
  11388. (create): New function.
  11389. (send): Removed.
  11390. (sendPieceData): New function.
  11391. (getMessage): New function.
  11392. (getMessageLength): New function.
  11393. (onSendComplete): New function.
  11394. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11395. (msg): New variable.
  11396. (sendPieceData): New function.
  11397. (onSendComplete): New function.
  11398. (create): New function.
  11399. (send): Removed.
  11400. (getMessage): New function.
  11401. (getMessageLength): New function.
  11402. * src/NotInterestedMessage.cc
  11403. (create): New function.
  11404. (send): Removed.
  11405. (sendPredicate): New function.
  11406. (getMessage): New function.
  11407. (getMessageLength): New function.
  11408. (onSendComplete): New function.
  11409. * src/AllowedFastMessage.h: New class.
  11410. * src/AllowedFastMessage.cc: New class.
  11411. * src/RejectMessage.h: New class.
  11412. * src/RejectMessage.cc: New class.
  11413. * src/SuggestPieceMessage.h: New class.
  11414. * src/SuggestPieceMessage.cc: New class.
  11415. * src/HaveAllMessage.h: New class.
  11416. * src/HaveAllMessage.cc: New class.
  11417. * src/HaveNoneMessage.h: New class.
  11418. * src/HaveNoneMessage.cc: New class.
  11419. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11420. (msg): New variable.
  11421. (reserved): New variable.
  11422. (create): New function.
  11423. (getId): New function.
  11424. (receivedAction): New function.
  11425. (getMessage): New function.
  11426. (getMessageLength): New function.
  11427. (isFastExtensionSupported): New function.
  11428. * src/HandshakeMessage.cc
  11429. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11430. (create): New function.
  11431. (getMessage): New function.
  11432. (getMessageLength): New function.
  11433. (toString): Added the output of reserved field.
  11434. (check): Added const qualifier.
  11435. (isFastExtensionSupported): New function.
  11436. * src/PeerMessageUtil.h
  11437. (createChokeMessage): Removed.
  11438. (createUnchokeMessage): Removed.
  11439. (createInterestedMessage): Removed.
  11440. (createNotInterestedMessage): Removed.
  11441. (createHaveMessage): Removed.
  11442. (createBitfieldMessage): Removed.
  11443. (createRequestMessage): Removed.
  11444. (createCancelMessage): Removed.
  11445. (createPieceMessage): Removed.
  11446. (createPortMessage): Removed.
  11447. (createChokeMessage): Removed.
  11448. (createUnchokeMessage): Removed.
  11449. (createInterestedMessage): Removed.
  11450. (createNotInterestedMessage): Removed.
  11451. (createHaveMessage): Removed.
  11452. (createBitfieldMessage): Removed.
  11453. (createRequestMessage): Removed.
  11454. (createCancelMessage): Removed.
  11455. (createPieceMessage): Removed.
  11456. (createKeepAliveMessage): Removed.
  11457. (createHandshakeMessage): Removed.
  11458. (setIntParam): New function.
  11459. (createPeerMessageString): New function.
  11460. * src/PeerMessageUtil.cc
  11461. (createChokeMessage): Removed.
  11462. (createUnchokeMessage): Removed.
  11463. (createInterestedMessage): Removed.
  11464. (createNotInterestedMessage): Removed.
  11465. (createHaveMessage): Removed.
  11466. (createBitfieldMessage): Removed.
  11467. (createRequestMessage): Removed.
  11468. (createCancelMessage): Removed.
  11469. (createPieceMessage): Removed.
  11470. (createPortMessage): Removed.
  11471. (createRequestMessage): Removed.
  11472. (createCancelMessage): Removed.
  11473. (createPieceMessage): Removed.
  11474. (createHaveMessage): Removed.
  11475. (createChokeMessage): Removed.
  11476. (createUnchokeMessage): Removed.
  11477. (createInterestedMessage): Removed.
  11478. (createNotInterestedMessage): Removed.
  11479. (createBitfieldMessage): Removed.
  11480. (createKeepAliveMessage): Removed.
  11481. (createHandshakeMessage): Removed.
  11482. (setIntParam): New function.
  11483. (createPeerMessageString): New function.
  11484. * src/PeerConnection.h
  11485. (peer): Removed.
  11486. (torrentMan): Removed.
  11487. (createNLengthMessage): Removed.
  11488. (setIntParam): Removed.
  11489. (writeOutgoingMessageLog): Removed all overloaded functions.
  11490. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11491. (sendMessage): New function.
  11492. (sendHandshake): Removed.
  11493. (sendKeepAlive): Removed.
  11494. (sendChoke): Removed.
  11495. (sendUnchoke): Removed.
  11496. (sendInterested): Removed.
  11497. (sendNotInterested): Removed.
  11498. (sendHave): Removed.
  11499. (sendBitfield): Removed.
  11500. (sendRequest): Removed.
  11501. (sendPiece): Removed.
  11502. (sendPieceHeader): Removed.
  11503. (sendPieceData): Removed.
  11504. (sendCancel): Removed.
  11505. (getPeer): Removed.
  11506. * src/PeerConnection.cc
  11507. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11508. (sendHandshake): Removed.
  11509. (sendKeepAlive): Removed.
  11510. (createNLengthMessage): Removed.
  11511. (setIntParam): Removed.
  11512. (writeOutgoingMessageLog): Removed all overloaded functions.
  11513. (sendChoke): Removed.
  11514. (sendUnchoke): Removed.
  11515. (sendInterested): Removed.
  11516. (sendNotInterested): Removed.
  11517. (sendHave): Removed.
  11518. (sendBitfield): Removed.
  11519. (sendRequest): Removed.
  11520. (sendPiece): Removed.
  11521. (sendPieceHeader): Removed.
  11522. (sendPieceData): Removed.
  11523. (sendMessage): New function.
  11524. (sendCancel): Removed.
  11525. * src/PeerInteractionCommand.cc
  11526. (PeerInteractionCommand): Call setUploadLimit.
  11527. (executeInternal): Call setUploadLimit.
  11528. Added the handling of "inProgress" state of handshake message.
  11529. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11530. sendNow().
  11531. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11532. sendNow().
  11533. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11534. * src/TorrentMan.h
  11535. (PEER_ID_LENGTH): New definition.
  11536. (hasAllPieces): New function.
  11537. * src/TorrentMan.cc
  11538. (getMissingPiece): Added the handling of fast extension.
  11539. (cancelPiece): Call updatePiece().
  11540. (hasAllPieces): New function.
  11541. * src/PeerInteraction.h
  11542. (fastSet): New variable.
  11543. (getNewPieceAndSendInterest): Changed the return type to void.
  11544. (send): Renamed as sendMessages.
  11545. (deleteAllRequestSlot): Removed.
  11546. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11547. (cancelAllRequest): Removed all overloaded functions.
  11548. (deleteAllRequestSlot): Removed.
  11549. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11550. (rejectPieceMessageInQueue): New function.
  11551. (rejectAllPieceMessageInQueue): New function.
  11552. (onChoked): New function.
  11553. (isSendingMessageInProgress): New function.
  11554. (getCorrespondingRequestSlot): Changed its arguments.
  11555. (isInFastSet): New function.
  11556. (addFastSetIndex): New function.
  11557. (addRequests): New function.
  11558. (sendNow): Removed.
  11559. (trySendNow): Removed.
  11560. (sendBitfield): New function.
  11561. (sendAllowdFast): New function.
  11562. (createHaveAllMessage): New function.
  11563. (createHaveNoneMessage): New function.
  11564. (createRejectMessage): New function.
  11565. (createAllowedFastMessage): New function.
  11566. * src/PeerInteraction.cc
  11567. (send): Renamed as sendMessages.
  11568. (sendMessages): New function.
  11569. (MsgPushBack): New class.
  11570. (isSendingMessageInProgress): New function.
  11571. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11572. (rejectAllPieceMessageInQueue): New function.
  11573. Added the handling of fast extension.
  11574. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11575. (rejectPieceMessageInQueue): New function.
  11576. Added the handling of fast extension.
  11577. (deleteRequestSlot): Replaced for loop with std::find.
  11578. (onChoked): New function.
  11579. (deleteAllRequestSlot): Removed.
  11580. (abortPiece): Rewirtten.
  11581. (deleteTimeoutRequestSlot): Updated log messages.
  11582. (getCorrespondingRequestSlot): Changed its arguments.
  11583. (cancelAllRequest): Removed all overloaded functions.
  11584. (receiveHandshake): Added the check to see whether an incoming peer
  11585. supports fast extension.
  11586. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11587. PeerMessageUtil.
  11588. (createPeerMessage): Use create() of each message class instead of
  11589. PeerMessageUtil.
  11590. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11591. AllowedFastMessage were added.
  11592. (getNewPieceAndSendInterest): Changed its return value type to void.
  11593. Added the handling of fast extension.
  11594. (addRequests): New function.
  11595. (sendNow): Removed.
  11596. (sendHandshake): Rewritten.
  11597. (trySendNow): Removed.
  11598. (sendBitfield): New function.
  11599. (sendAllowdFast): New function.
  11600. (isInFastSet): New function.
  11601. (addFastSetIndex): New function.
  11602. (createRequestMessage): Use RequestMessage::create instead of
  11603. PeerMessageUtil.
  11604. (createCancelMessage): Use CancelMessage::create instead of
  11605. PeerMessageUtil.
  11606. (createPieceMessage): Use PieceMessage::create instead of
  11607. PeerMessageUtil.
  11608. (createHaveMessage): Use HaveMessage::create instead of
  11609. PeerMessageUtil.
  11610. (createChokeMessage): Use ChokeMessage::create instead of
  11611. PeerMessageUtil.
  11612. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11613. PeerMessageUtil.
  11614. (createInterestedMessage): Use InterestedMessage::create instead of
  11615. PeerMessageUtil.
  11616. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11617. of PeerMessageUtil.
  11618. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11619. PeerMessageUtil.
  11620. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11621. PeerMessageUtil.
  11622. (createHaveAllMessage): New function.
  11623. (createHaveNoneMessage): New function.
  11624. (createRejectMessage): New function.
  11625. (createAllowedFastMessage: New function.
  11626. * src/Util.h
  11627. (sha1Sum): New function.
  11628. (computeFastSet): New function.
  11629. * src/Util.cc
  11630. (sha1Sum): New function.
  11631. (computeFastSet): New function.
  11632. * src/Peer.h
  11633. (fastExtensionEnabled): New variable.
  11634. (fastSet): New variable.
  11635. (setAllBitfield): New function.
  11636. (setFastExtensionEnabled): New function.
  11637. (isFastExtensionEnabled): New function.
  11638. (addFastSetIndex): New function.
  11639. (getFastSet): New function.
  11640. (isInFastSet): New function.
  11641. (countFastSet): New function.
  11642. * src/Peer.cc
  11643. (isInFastSet): New function.
  11644. (addFastSetIndex): New function.
  11645. (setAllBitfield): New function.
  11646. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11647. sockets.
  11648. * src/PeerAbstractCommand.cc
  11649. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11650. and uploadLimit.
  11651. (execute): Changed the procedure of checking sockets. The upload speed
  11652. checking were added.
  11653. (setUploadLimit): New function.
  11654. (setUploadLimitCheck): New function.
  11655. * src/PeerAbstractCommand.h
  11656. (setUploadLimit): New function.
  11657. (setUploadLimitCheck): New function.
  11658. (uploadLimit): New variable.
  11659. (uploadLimitCheck): New variable.
  11660. To contact a tracker regularly:
  11661. * src/TrackerWatcherCommand.h (interval): New variable.
  11662. (checkPoint): New variable.
  11663. (TrackerWatcherCommand): Added interval argument.
  11664. * src/TrackerWatcherCommand.cc
  11665. (TrackerWatcherCommand): Initialized checkPoint.
  11666. (execute): Now a tracker is contacted in every specified period.
  11667. If peer list is not needed, send request with numwant=0.
  11668. * src/TrackerUpdateCommand.cc
  11669. (execute): Updated log messages.
  11670. * src/DownloadEngine.cc
  11671. (~DownloadEngine): Removed two asserts.
  11672. (waitData): Uncommented wfds. May be a bug fix.
  11673. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11674. * src/PeerInteractionCommand.h
  11675. (checkInactiveConnection): Removed.
  11676. * src/PeerInteractionCommand.cc
  11677. (executeInternal): Removed following function calls:
  11678. detectMessageFlooding(), checkLongTimePeerChoking and
  11679. checkInactiveConnection().
  11680. (checkInactiveConnection): Removed.
  11681. (detectMessageFlooding): Removed function call to
  11682. checkInactiveConnection().
  11683. * src/PeerMessageUtil.h
  11684. (createChokeMessage): New function. Overload.
  11685. (createUnchokeMessage): New function. Overload.
  11686. (createInterestedMessage): New function. Overload.
  11687. (createNotInterestedMessage): New function. Overload.
  11688. (createHaveMessage): New function. Overload.
  11689. (createBitfieldMessage): New function. Overload.
  11690. (createRequestMessage): New function. Overload.
  11691. (createCancelMessage): New function. Overload.
  11692. (createPieceMessage): New function. Overload.
  11693. (createKeepAliveMessage): New function. Overload.
  11694. * src/PeerMessageUtil.cc
  11695. (createChokeMessage): New function. Overload.
  11696. (createUnchokeMessage): New function. Overload.
  11697. (createInterestedMessage): New function. Overload.
  11698. (createNotInterestedMessage): New function. Overload.
  11699. (createHaveMessage): New function. Overload.
  11700. (createBitfieldMessage): New function. Overload.
  11701. (createRequestMessage): New function. Overload.
  11702. (createCancelMessage): New function. Overload.
  11703. (createPieceMessage): New function. Overload.
  11704. (createKeepAliveMessage): New function. Overload.
  11705. * src/SendMessageQueue.cc
  11706. (createRequestMessage): Use PeerMessageUtil.
  11707. (createCancelMessage): Use PeerMessageUtil.
  11708. (createPieceMessage): Use PeerMessageUtil.
  11709. (createHaveMessage): Use PeerMessageUtil.
  11710. (createChokeMessage): Use PeerMessageUtil.
  11711. (createUnchokeMessage): Use PeerMessageUtil.
  11712. (createInterestedMessage): Use PeerMessageUtil.
  11713. (createNotInterestedMessage): Use PeerMessageUtil.
  11714. (createBitfieldMessage): Use PeerMessageUtil.
  11715. (createKeepAliveMessage): Use PeerMessageUtil.
  11716. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11717. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11718. * src/PeerInteraction.h: New class.
  11719. * src/PeerInteraction.cc: New class.
  11720. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. Each peer message has its own class.
  11722. * src/PendingMessages.h: Removed.
  11723. * src/PendingMessages.cc: Removed. The sending process was moved to
  11724. each message class.
  11725. * src/RequestSlotMan.h: Removed.
  11726. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11727. SendMessageQueue.
  11728. * src/RequestMessage.h: New class.
  11729. * src/RequestMessage.cc: New class.
  11730. * src/CancelMessage.h: New class.
  11731. * src/CancelMessage.cc: New class.
  11732. * src/BitfieldMessage.h: New class.
  11733. * src/BitfieldMessage.cc: New class.
  11734. * src/ChokeMessage.h: New class.
  11735. * src/ChokeMessage.cc: New class.
  11736. * src/KeepAliveMessage.h: New class.
  11737. * src/KeepAliveMessage.cc: New class.
  11738. * src/PortMessage.h: New class.
  11739. * src/UnchokeMessage.h: New class.
  11740. * src/UnchokeMessage.cc: New class.
  11741. * src/PieceMessage.h: New class.
  11742. * src/PieceMessage.cc: New class.
  11743. * src/HaveMessage.h: New class.
  11744. * src/HaveMessage.cc: New class.
  11745. * src/BitfieldMessage.h: New class.
  11746. * src/BitfieldMessage.cc: New class.
  11747. * src/NotInterestedMessage.h: New class.
  11748. * src/NotInterestedMessage.cc: New class.
  11749. * src/InterestedMessage.h: New class.
  11750. * src/InterestedMessage.cc: New class.
  11751. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11752. (getSendMessageQueue): New function.
  11753. (setSendMessageQueue): New function.
  11754. * src/HandshakeMessage.cc: New class.
  11755. * src/PeerConnection.h (receiveMessage): Changed return value and
  11756. arguments.
  11757. (receiveHandshake): Changed return value and arguments.
  11758. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11759. here.
  11760. (receiveHandshake): Do not create handshake class here.
  11761. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11762. (piece): Removed.
  11763. (syncPiece): Removed.
  11764. (sendInterest): Removed.
  11765. (sendMessages): Removed.
  11766. (createRequestPendingMessage): Removed.
  11767. (checkPieceHash): Removed.
  11768. (erasePieceOnDisk): Removed.
  11769. (getNewPieceAndSendInterest): Removed.
  11770. (onGotNewPice): Removed.
  11771. (onGotWrongPiece): Removed.
  11772. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11773. Removed peerConnection, piece.
  11774. (~PeerInteractionCommand): Removed peerConnection.
  11775. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11776. (syncPiece): Moved to SendMessageQueue.
  11777. (decideChoking): Removed PendingMessage.
  11778. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11779. The action after receiving peer message was moved to each message
  11780. class.
  11781. (onGotNewPice): Moved to SendMessageQueue.
  11782. (onGotWrongPiece): Moved to SendMessageQueue.
  11783. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11784. (sendInterest): Moved to SendMessageQueue.
  11785. (createRequestPendingMessage): Removed.
  11786. (sendMessages): Moved to SendMessageQueue.
  11787. (onAbort): Use SendMessageQueue::abortPiece()
  11788. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11789. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11790. (checkPieceHash): Moved to SendMessageQueue.
  11791. (erasePieceOnDisk): Moved to SendMessageQueue.
  11792. * src/PeerMessageUtil.h
  11793. (createBitfieldMessage): Removed.
  11794. (createHaveMessage): Changed return value and arguments.
  11795. (createBitfieldMessage): Changed return value and arguments.
  11796. (createRequestCancelMessage): Removed.
  11797. (createPieceMessage): Changed return value and arguments.
  11798. (getShortIntParam): New function.
  11799. (checkIndex): Changed arguments.
  11800. (checkBegin): Changed arguments.
  11801. (checkLength): Changed arguments.
  11802. (checkPieceOffset): Removed.
  11803. (checkRange): New function.
  11804. (checkBitfield): Changed arguments.
  11805. (createPeerMessage): Removed.
  11806. (checkIntegrity): Removed.
  11807. (createHandshakeMessage): Changed arguments.
  11808. (createChokeMessage): New function.
  11809. (createUnchokeMessage): New function.
  11810. (createInterestedMessage): New function.
  11811. (createNotInterestedMessage): New function.
  11812. (createRequestMessage): New function.
  11813. (createCancelMessage): New function.
  11814. (createPortMessage): New function.
  11815. * src/PeerMessageUtil.cc
  11816. (createBitfieldMessage): Removed.
  11817. (createHaveMessage): Changed return value and arguments.
  11818. (createBitfieldMessage): Changed return value and arguments.
  11819. (createRequestCancelMessage): Removed.
  11820. (createPieceMessage): Changed return value and arguments.
  11821. (getShortIntParam): New function.
  11822. (checkIndex): Changed arguments.
  11823. (checkBegin): Changed arguments.
  11824. (checkLength): Changed arguments.
  11825. (checkPieceOffset): Removed.
  11826. (checkRange): New function.
  11827. (checkBitfield): Changed arguments.
  11828. (createPeerMessage): Removed.
  11829. (checkIntegrity): Removed.
  11830. (createHandshakeMessage): Changed arguments.
  11831. (createChokeMessage): New function.
  11832. (createUnchokeMessage): New function.
  11833. (createInterestedMessage): New function.
  11834. (createNotInterestedMessage): New function.
  11835. (createRequestMessage): New function.
  11836. (createCancelMessage): New function.
  11837. (createPortMessage): New function.
  11838. * src/PeerMessage.h
  11839. (id): Removed.
  11840. (index): Removed.
  11841. (begin): Removed.
  11842. (length): Removed.
  11843. (bitfield): Removed.
  11844. (bitfieldLength): Removed.
  11845. (block): Removed.
  11846. (blockLength): Removed.
  11847. (inProgress): New variable.
  11848. (cuid): New variable.
  11849. (peer): New variable.
  11850. (sendMessageQueue): New variable.
  11851. (logger): New variable.
  11852. (setBitfield): Removed.
  11853. (getBitfield): Removed.
  11854. (setBlock): Removed.
  11855. (getBlock): Removed.
  11856. (getBitfieldLength): Removed.
  11857. (getBlockLength): Removed.
  11858. (isInProgress): New function.
  11859. (toString): Made pure virtual.
  11860. (check): New function.
  11861. (send): New function.
  11862. (receivedAction): New function.
  11863. (getId): Made pure virtual.
  11864. (setId): Removed.
  11865. (getIndex): Removed.
  11866. (setIndex): Removed.
  11867. (getBegin): Removed.
  11868. (setBegin): Removed.
  11869. (getLength): Removed.
  11870. (setLength): Removed.
  11871. (getCuid): New function.
  11872. (setCuid): New function.
  11873. (getPeer): New function.
  11874. (setPeer): New function.
  11875. (getSendMessageQueue): New function.
  11876. (setSendMessageQueue): New function.
  11877. (ID): Removed.
  11878. * src/PeerMessage.cc
  11879. (setBitfield): Removed.
  11880. (setBlock): Removed.
  11881. (toString): Removed.
  11882. * src/TorrentMan.h
  11883. (getPieceLength): New function.
  11884. (getPieceLength): New function.
  11885. * src/SendMessageQueue.h
  11886. (REQUEST_TIME_OUT): New definition.
  11887. (RequestSlots): New definition.
  11888. (MessageQueue): New definition.
  11889. (requestSlotMan): Removed.
  11890. (pendingMessages): Removed.
  11891. (requestSlots): New variable.
  11892. (messageQueue): New variable.
  11893. (torrentMan): New variable.
  11894. (peerConnection): New variable.
  11895. (peer): New variable.
  11896. (piece): New variable.
  11897. (getNewPieceAndSendInterest): New function.
  11898. (createPeerMessage): New function.
  11899. (createHandshakeMessage): New function.
  11900. (send): Made private.
  11901. (setPeerMessageCommonProperty): New function.
  11902. (deleteAllRequestSlot): New function.
  11903. (deleteRequestMessageInQueue): New function.
  11904. (cancelAllRequest): Made private.
  11905. (cancelAllRequest): Made private.
  11906. (countRequestSlot): Made private.
  11907. (addPendingMessage): Removed.
  11908. (deletePendingPieceMessage): Removed.
  11909. (deletePendingRequestMessage): Removed.
  11910. (addMessage): New function.
  11911. (deletePieceMessageInQueue): New function.
  11912. (deleteTimeoutRequestSlot): Changed argument.
  11913. (deleteCompletedRequestSlot): Changed argument.
  11914. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  11915. (getCorrespondingRequestSlot): New function.
  11916. (countPendingMessage): Removed.
  11917. (countMessageInQueue): New function.
  11918. (getTorrentMan): New function.
  11919. (getPeerConnection): New function.
  11920. (hasDownloadPiece): New function.
  11921. (getDownloadPiece): New function.
  11922. (setDownloadPiece): New function.
  11923. (syncPiece): New function.
  11924. (sendMessages): New function.
  11925. (sendNow): New function.
  11926. (trySendNow): New function.
  11927. (abortPiece): New function.
  11928. (sendHandshake): New function.
  11929. (receiveMessage): New function.
  11930. (receiveHandshake): New function.
  11931. (createRequestMessage): New function.
  11932. (createCancelMessage): New function.
  11933. (createPieceMessage): New function.
  11934. (createHaveMessage): New function.
  11935. (createChokeMessage): New function.
  11936. (createUnchokeMessage): New function.
  11937. (createInterestedMessage): New function.
  11938. (createNotInterestedMessage): New function.
  11939. (createBitfieldMessage): New function.
  11940. (createKeepAliveMessage): New function.
  11941. * src/SendMessageQueue.cc
  11942. (SendMessageQueue): Removed requestSlotMan.
  11943. Instantiated peerConnection here.
  11944. (~SendMessageQueue): Removed requestSlotMan.
  11945. Added deletion of peerConnection and the contents of messageQueue.
  11946. (send): Updated according to the change of messageQueue.
  11947. (addPendingMessage): Renamed to addMessage.
  11948. (addMessage): New function.
  11949. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11950. (deletePieceMessageInQueue): New function.
  11951. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11952. (deleteRequestMessageInQueue): New function.
  11953. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11954. here.
  11955. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11956. (...) was moved here.
  11957. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11958. moved here.
  11959. (deleteCompletedRequestSlot):
  11960. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11961. (getCorrespondingRequestSlot):
  11962. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11963. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11964. (countPendingMessage): Renamed to countMessageInQueue.
  11965. (countMessageInQueue): New function.
  11966. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11967. (receiveHandshake): New function.
  11968. (createHandshakeMessage): New function.
  11969. (receiveMessage): New function.
  11970. (createPeerMessage): New function.
  11971. (syncPiece): New function.
  11972. (getNewPieceAndSendInterest): New function.
  11973. (sendMessages): New function.
  11974. (sendNow): New function.
  11975. (trySendNow): New function.
  11976. (sendHandshake): New function.
  11977. (abortPiece): New function.
  11978. (getDownloadPiece): New function.
  11979. (getPeerMessageCommonProperty): New function.
  11980. (createRequestMessage): New function.
  11981. (createCancelMessage): New function.
  11982. (createPieceMessage): New function.
  11983. (createHaveMessage): New function.
  11984. (createChokeMessage): New function.
  11985. (createUnchokeMessage): New function.
  11986. (createInterestedMessage): New function.
  11987. (createNotInterestedMessage): New function.
  11988. (createBitfieldMessage): New function.
  11989. (createKeepAliveMessage): New function.
  11990. To add simple Content-Disposition support:
  11991. * src/HttpResponseCommand.h (determinFilename): New function.
  11992. * src/HttpResponseCommand.cc (executeInternal):
  11993. Use determinFilename(headers) instead of req->getFile() when comparing
  11994. filename.
  11995. (determinFilename): New function.
  11996. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11997. req->getFile().
  11998. (handleOtherEncoding): Use determinFilename(headers) instead of
  11999. req->getFile().
  12000. * src/Util.h (getContentDispositionFilename): New function.
  12001. * src/Util.cc (getContentDispositionFilename): New function.
  12002. * src/LogFactory.h (release): New function.
  12003. * src/LogFactory.cc (release): New function.
  12004. To fix a bug that causes out-of-bound exception when HTTP status
  12005. line is wrong:
  12006. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12007. size.
  12008. * src/common.h (Deleter): New class.
  12009. * src/SegmentMan.cc
  12010. (~SegmentMan): Added deletion of splitter and diskWriter.
  12011. * src/DownloadEngine.h
  12012. (Commands): Use deque.
  12013. (clearQueue): New function.
  12014. * src/DownloadEngine.cc
  12015. (~DownloadEngine): Added deletion of segmentMan.
  12016. (cleanQueue): New function.
  12017. * src/TorrentDownloadEngine.h
  12018. (TorrentDownloadEngine): The implementation was moved to
  12019. TorrentDownloadEngine.cc.
  12020. (~TorrentDownloadEngine): The implementation was moved to
  12021. TorrentDownloadEngine.cc.
  12022. * src/TorrentDownloadEngine.cc
  12023. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12024. * src/main.cc
  12025. (clearRequest): Removed.
  12026. (handler): Added deletion of e.
  12027. (torrentHandler): Added deletion of te.
  12028. (main): Do not share splitter.
  12029. Use Deleter instead of clearRequest.
  12030. Deletion of classes were updated.
  12031. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12032. * src/main.cc (main): Fixed typo.
  12033. * src/message.h: Fixed typo.
  12034. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12035. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12036. To add --select-file command-line option:
  12037. * src/Util.cc
  12038. (unfoldRange): New function.
  12039. (getNum): New function.
  12040. (unfoldSubRange): New function
  12041. * src/main.cc
  12042. (showUsage): Added help message.
  12043. (main): Added --select-file command-line option. Updated the layout of
  12044. file listing.
  12045. * src/common.h
  12046. (Integers): New definition.
  12047. * src/SocketCore.cc
  12048. (writeData): Removed timeout argument.
  12049. (readData): Removed timeout argument.
  12050. (peekData): Removed timeout argument.
  12051. * src/Socket.cc
  12052. (writeData): Removed timeout argument.
  12053. (readData): Removed timeout argument.
  12054. (peekData): Removed timeout argument.
  12055. * Release 0.4.1
  12056. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12057. To deploy upload rate based choking algorithm:
  12058. * src/PeerInteractionCommand.cc
  12059. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12060. peer currently used.
  12061. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12062. download completes. Simplified.
  12063. (receiveMessage): Updated.
  12064. * src/TorrentMan.h
  12065. (activePeers): New variable.
  12066. (addActivePeer): New function.
  12067. (getActivePeers): New function.
  12068. (deleteActivePeer): New function.
  12069. * src/TorrentMan.cc
  12070. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12071. * src/PeerAbstractCommand.cc
  12072. (onAbort): Use peer->resetStatus().
  12073. * src/main.cc
  12074. (PeerChokeCommand.h): Included.
  12075. (main): Added the instance of ChokingCommand to the command queue.
  12076. * src/Peer.h
  12077. (amChoking): Renamed from amChocking
  12078. (chokingRequired): New variable.
  12079. (optUnchoking): New variable.
  12080. (deltaUpload): New variable.
  12081. (deltaDownload): New variable.
  12082. (addDeltaUpload): New function.
  12083. (resetDeltaUpload): New function.
  12084. (addDeltaDownload): New function.
  12085. (resetDeltaDownload): New function.
  12086. (addPeerUpload): Added a call to addDeltaUpload.
  12087. (addPeerDownload): Added a call to addDeltaDownload.
  12088. * src/Peer.cc
  12089. (shouldBeChoking): Renamed from shouldChoke.
  12090. (resetStatus): New function.
  12091. * src/PeerChokeCommand.h: New class.
  12092. * src/PeerChokeCommand.cc: New class.
  12093. To add lazy upload speed limiter:
  12094. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12095. statistics calculation to TorrentDownloadEngine.
  12096. * src/TorrentConsoleDownloadEngine.cc
  12097. (sendStatistics): Renamed from printStatistics.
  12098. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12099. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12100. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12101. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12102. calculation.
  12103. (sendStatistics): New function as pure virtual function.
  12104. (getUploadSpeed): New function.
  12105. * src/TorrentDownloadEngine.cc
  12106. (initStatistics): New function.
  12107. (calculateSpeed): New function.
  12108. (calculateStatistics): New function.
  12109. * src/SendMessageQueue.h
  12110. (uploadLength): New variable.
  12111. (send): Added an argument.
  12112. (setUploadLimit): New function.
  12113. (getUploadLimit): New function.
  12114. * src/SendMessageQueue.cc
  12115. (send): Added upload speed limiter.
  12116. * src/prefs.h
  12117. (PREF_UPLOAD_LIMIT): New definition.
  12118. * src/PeerInteractionCommand.cc
  12119. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12120. * src/main.cc
  12121. (main): Added --upload-limit option
  12122. For bug fixes:
  12123. * src/main.cc
  12124. (showUsage): Corrected --listen-port help
  12125. Other changes:
  12126. * src/TorrentMan.cc
  12127. (getPeer): Return nullPeer if connection is grather than
  12128. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12129. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12130. To add some useful information to the exception message:
  12131. * src/SocketCore.cc : Updated messages.
  12132. * src/SegmentMan.cc :
  12133. * src/TorrentMan.cc : Updated messages.
  12134. * src/MultiDiskWriter.cc : Updated messages.
  12135. * src/Util.cc : Updated messages.
  12136. * src/AbstractDiskWriter.cc : Updated messages.
  12137. * src/PreAllocationDiskWriter.cc : Updated messages.
  12138. * src/message.cc : Added new messages. Updated some messages.
  12139. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12140. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12141. Updated threshold from 30 to 15.
  12142. * src/AbstractDiskWriter.h (filename): New variable.
  12143. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12144. (createFile): Assigned filename.
  12145. * src/main.cc: Updated the help message for http-auth-scheme.
  12146. * Release 0.4.0
  12147. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12148. To add TrackerUpdateCommand with which replaces
  12149. CompactTrackerResponseProcessor:
  12150. * src/TrackerWatcherCommand.h (req): Removed.
  12151. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12152. if the number of peer connections are less than 30.
  12153. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12154. * src/SegmentMan.h (diskWriter): New function.
  12155. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12156. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12157. (main): Use TrackerUpdateCommand.
  12158. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12159. (req): New variable.
  12160. (setTrackerResponseProcessor): Removed.
  12161. (getTrackerResponseProcessor): Removed.
  12162. (processTrackerResponse): Removed.
  12163. * src/DownloadEngine.h (diskWriter): Removed.
  12164. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12165. to torrentMan->processTrackerResponse().
  12166. To add Util::expandBuffer:
  12167. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12168. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12169. * src/Util.h (expandBuffer): New function.
  12170. To fix the bug that causes segmentation fault when "-l ." is specified
  12171. in command-line option:
  12172. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12173. (openFile): New function.
  12174. (closeFile): New function.
  12175. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12176. (~SimpleLogger): Call closeFile();
  12177. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12178. * src/main.cc (main): Added a check to see logger is configured
  12179. properly.
  12180. To enable HTTP authentication without specifying "--http-auth-scheme"
  12181. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12182. * src/HttpConnection.cc (createRequest): Send Authorization header
  12183. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12184. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12185. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12186. * src/Peer.cc (shouldChoke): Updated algorithm.
  12187. * src/message.h (EX_AUTH_FAILED): New definition.
  12188. (EX_FILE_OPEN): New definition.
  12189. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12190. if status == 401.
  12191. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12192. if req->isTorrent == true.
  12193. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12194. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12195. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12196. (createFile): Updated message.
  12197. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. To add a readout of estimated remaining time to normal HTTP/FTP
  12199. downloads:
  12200. * src/ConsoleDownloadEngine.h (startup): New variable.
  12201. (startupLength): New variable.
  12202. (isStartupLengthSet): New variable.
  12203. (avgSpeed): New variable.
  12204. (eta): New variable.
  12205. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12206. estimated remaining time.
  12207. (initStatistics): Initialized newly added variables.
  12208. (calculateStatistics): Calculate average speed and estimated remaining
  12209. time.
  12210. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12211. * src/TrackerDownloadCommand.h: Removed.
  12212. * src/TrackerDownloadCommand.cc: Removed.
  12213. * src/TrackerInitCommand.h: Removed.
  12214. * src/TrackerInitCommand.cc: Removed.
  12215. * src/TrackerUpdateCommand.h: Removed.
  12216. * src/TrackerUpdateCommand.cc: Removed.
  12217. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12218. url written in TrackerInitCommand was moved here. Do not create
  12219. tracker request command if torrentMan->trackers != 0.
  12220. * src/CompactTrackerResponseProcessor.h: New class.
  12221. * src/CompactTrackerResponseProcessor.cc: New class.
  12222. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12223. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12224. Decoupled TorrentDownloadEngine from this.
  12225. * src/SegmentMan.h (init): New function.
  12226. * src/SegmentMan.cc (init): New function.
  12227. * src/TorrentMan.h (responseProcessor): New variable.
  12228. (trackers): New variable.
  12229. (setTrackerResponseProcessor): New function.
  12230. (getTrackerResponseProcessor): New function.
  12231. (processTrackerResponse): New function.
  12232. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12233. (processTrackerResponse): New function.
  12234. * src/main.cc (main): Use ByteArrayDiskWriter and
  12235. CompactTrackerResponseProcessor.
  12236. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12237. processTrackerResponse().
  12238. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12239. readout.
  12240. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12241. which indicates download has completed.
  12242. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12243. (closeFile): fd >= 0, not fd > 0
  12244. * src/main.cc (main): Added short cut for show-files.
  12245. Added short cut for torrent-file.
  12246. Added new command-line option listen-port.
  12247. Updated i18n messages.
  12248. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12249. To add LogFactory which creates singleton logger:
  12250. * src/LogFactory.h: New class.
  12251. * src/LogFactory.cc: New class.
  12252. * src/Command.h (logger): New variable.
  12253. (Constructor): Use LogFactory.
  12254. * src/AbstractCommand.cc: Use Command::logger
  12255. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12256. Use LogFactory.
  12257. * src/SegmentSplitter.h : Made logger protected.
  12258. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12259. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12260. * src/DownloadEngine.h : Made logger protected.
  12261. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12262. * src/PeerInteractionCommand.cc : Use Command::logger.
  12263. * src/HttpResponseCommand.cc : Use Command::logger.
  12264. * src/SegmentMan.h : Made logger private.
  12265. * src/TorrentMan.h : Made logger private.
  12266. * src/TorrentMan.cc : Use LogFactory.
  12267. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12268. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12269. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12270. Use LogFactory.
  12271. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12272. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12273. Use LogFactory.
  12274. * src/DownloadCommand.cc : Use Command::logger.
  12275. * src/PeerAbstractCommand.cc : Use Command::logger.
  12276. * src/PeerListenCommand.cc : Use Command::logger.
  12277. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12278. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12279. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12280. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12281. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12282. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12283. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12284. Use LogFactory.
  12285. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12286. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12287. Use LogFactory.
  12288. * src/main.cc (main): Use LogFactory.
  12289. * src/DiskAdaptor.h (logger): New variable.
  12290. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12291. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12292. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12293. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12294. parameter to a tracker request.
  12295. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12296. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12297. * src/main.cc (setSignalHander): New function.
  12298. (main): Added a handler for SIGTERM.
  12299. (handler): Updated message.
  12300. (torrentHandler): Updated message.
  12301. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12302. * src/TorrentConsoleDownloadEngine.cc
  12303. (onPartialDownloadingCompletes): Renamed as
  12304. onSelectiveDownloadingCompletes.
  12305. (onSelectiveDownloadingCompletes): Updated message.
  12306. To add DiskAdaptor which abstract DiskWriter family:
  12307. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12308. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12309. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12310. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12311. MultiDiskAdaptor.h.
  12312. (readFileEntry): Changed its arguments.
  12313. (setup): setupDiskWriter is merged into this function.
  12314. (setupDiskWriter): Removed.
  12315. (setFileFilter): New function.
  12316. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12317. made in readFileEntry.
  12318. (getFilePath): Removed.
  12319. (getTempFilePath): Removed.
  12320. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12321. (fixFilename): Removed.
  12322. (copySingleFile): Removed.
  12323. (splitMultiFile): Removed.
  12324. (deleteTempFile): Removed.
  12325. (setFileEntriesToDownload): Removed.
  12326. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12327. (isSelectiveDownloadingMode): New function.
  12328. (setAllMultiFileRequestedState): Removed.
  12329. (finishPartialDownloadingMode): Renamed as
  12330. finishSelectiveDownloadingMode.
  12331. (finishSelectiveDownloadingMode): New function.
  12332. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12333. (getSelectedTotalLength): New function.
  12334. (onDownloadComplete): Use diskAdaptor.
  12335. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12336. (Range): Removed.
  12337. (setMultiFileEntries): Renamed as setFileEntries.
  12338. (setFileEntries): New function.
  12339. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12340. (pieceLength): New variable.
  12341. * src/main.cc (printDownloadCompeleteMessage): New function.
  12342. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12343. (main): Renamed torrent-show-files to show-files.
  12344. Rewritten file contents listing.
  12345. * src/TorrentMan.h (FileEntry): Removed.
  12346. (multiFileTopDir): Removed.
  12347. (multiFileEntries): Removed.
  12348. (diskWriter): Removed.
  12349. (diskAdaptor): New variable.
  12350. * src/DefaultDiskWriter.h (totalLength): New variable.
  12351. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12352. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12353. diskWriter.
  12354. * src/TorrentConsoleDownloadEngine.h
  12355. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12356. (partialTotalLength): Renamed as selectedTotalLength.
  12357. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12358. openExistingFile, otherwise call initAndOpenFile.
  12359. (closeFile): fd > 0, not fd != 0.
  12360. * src/DirectDiskAdaptor.h: New class.
  12361. * src/DirectDiskAdaptor.cc: New class.
  12362. * src/MultiDiskAdaptor.h: New class.
  12363. * src/MultiDiskAdaptor.cc: New class.
  12364. * src/CopyDiskAdaptor.h: New class.
  12365. * src/CopyDiskAdaptor.cc: New class.
  12366. * src/DiskAdaptor.h: New class.
  12367. * src/DiskAdaptor.cc: New class.
  12368. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12369. (PREF_SHOW_FILES): New definition.
  12370. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. To add the ability to download multi torrent into respective files
  12372. directly:
  12373. * src/DiskWriter.h (openFile): New function.
  12374. (seek): Removed.
  12375. * src/MultiDiskWriter.h: New class.
  12376. * src/MultiDiskWriter.cc: New class.
  12377. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12378. protected.
  12379. (openFile): New function.
  12380. * src/AbstractDiskWriter.cc (openFile): New function.
  12381. * src/prefs.h (V_FALSE): New definition.
  12382. (PREF_DIRECT_FILE_MAPPING): New definition.
  12383. * src/TorrentMan.h (setupDiskWriter): New function.
  12384. (setAllMultiFileRequestedState): New function.
  12385. (onDownloadComplete): New function.
  12386. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12387. (setupDiskWriter): New function.
  12388. (getFilePath): Updated.
  12389. (getTempFilePath): Updated.
  12390. (getSegmentFilePath): Updated.
  12391. (fixFilename): Updated.
  12392. (deleteTempFile): Updated.
  12393. (setAllMultiFileRequestedState): New function.
  12394. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12395. (finishPartialDownloadingMode): Reset requested flags.
  12396. (onDownloadComplete): New function.
  12397. * src/main.cc: Added --direct-file-mapping option.
  12398. Use TorrentMan::setupDiskWriter().
  12399. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12400. onDownloadComplete().
  12401. To fix ETA bug:
  12402. * src/Util.h (difftvsec): New function.
  12403. * src/Util.cc (difftvsec): New function.
  12404. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12405. type of "elapsed" instead of long long int.
  12406. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12407. The updates of statistics takes place every 1 seconds.
  12408. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12409. (calculateSpeed): Changed its argument signature.
  12410. * src/PeerMessage.cc (toString): Fixed message.
  12411. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12412. To print ETA:
  12413. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12414. completion handling when dealing with
  12415. TorrentMan::isPartialDownloadingMode() == true.
  12416. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12417. New function.
  12418. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12419. (sessionDownloadLength): New variable.
  12420. (avgSpeed): New variable.
  12421. (eta): New variable.
  12422. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12423. new variables: eta, avgSpeed, startup.
  12424. (calculateSpeed): Calculate average speed and ETA.
  12425. (printStatistics): Added ETA.
  12426. * src/Util.h (secfmt): New function.
  12427. * src/Util.cc (secfmt): New function.
  12428. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. To detect "keep alive" flooding:
  12430. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12431. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12432. variable: keepAliveCount.
  12433. (detectMessageFlooding): Added "keep alive" flooding detection.
  12434. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12435. received.
  12436. To add the ability to download only specified files in multi-file
  12437. torrent:
  12438. * src/BitfieldMan.h (filterBitfield): New variable.
  12439. (filterEnabled): New variable.
  12440. (setFilterBit): New function.
  12441. (enableFilter): New function.
  12442. (disableFilter): New function.
  12443. (isFilterEnabled): New function.
  12444. (getFilteredTotalLength): New function.
  12445. (getCompletedLength): New function.
  12446. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12447. filterBitfield, filterEnabled.
  12448. (CopyConstructor): Added filterBitfield and filterEnabled.
  12449. (operator==): Added filterBitfield and filterEnabled.
  12450. (Destructor): Added filterBitfield.
  12451. (getMissingIndex): Use filterBitfield.
  12452. (getMissingUnusedIndex): Use filterBitfield.
  12453. (getFirstMissingUnusedIndex): Use filterBitfield.
  12454. (getFirstMissingUnusedIndex): Use filterBitfield.
  12455. (getAllMissingIndexes): Use filterBitfield.
  12456. (countMissingBlock): Use filterBitfield.
  12457. (countBlock): Use filterBitfield.
  12458. (setBitInternal): Added new argument on.
  12459. (setUseBit): Use setBitInternal.
  12460. (unsetUseBit): Use setBitInternal.
  12461. (setBit): Use setBitInternal.
  12462. (unsetBit): Use setBitInternal.
  12463. (isAllBitSet): Use filterBitfield.
  12464. (setFilterBit): New function.
  12465. (addFilter): New function.
  12466. (enableFilter): New function.
  12467. (disableFilter): New function.
  12468. (clearFilter): New function.
  12469. (isFilterEnabled): New function.
  12470. (getFilteredTotalLength): New function.
  12471. (getCompletedLength): New function.
  12472. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12473. Initalized newly added variables.
  12474. [FileEntry](offset): New variable.
  12475. [FileEntry](extracted): New variable.
  12476. [FileEntry](requested): New variable.
  12477. (readFileEntry): New function.
  12478. (option): New variable.
  12479. (splitMultiFile): Removed const qualifier.
  12480. (fixFilename): Removed const qualifier.
  12481. (readFileEntryFromMetaInfoFile): New function.
  12482. (finishPartialDownloadingMode): New function.
  12483. (isPartialDownloadingMode): New function.
  12484. (setFileEntriesToDownload): New function.
  12485. (getCompletedLength): New function.
  12486. (getPartialTotalLength): New function.
  12487. * src/TorrentMan.cc (readFileEntry): New function.
  12488. (setup): Use readFileEntry. If no-preallocation option is specified,
  12489. use DefaultDiskWriter.
  12490. (readFileEntryFromMetaInfoFile): New function.
  12491. (fixFilename): Removed const qualifier.
  12492. (splitMultiFile): Removed const qualifier.
  12493. (setFileEntriesToDownload): New function.
  12494. (isPartialDownloadingMode): New function.
  12495. (finishPartialDownloadingMode): New function.
  12496. (getCompletedLength): New function.
  12497. (getPartialTotalLength): New function.
  12498. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12499. New variable.
  12500. (partialTotalLength): New variable.
  12501. (downloadLength): New variable.
  12502. (totalLength): New variable.
  12503. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12504. Added log.
  12505. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12506. partialTotalLength, downloadLength, totalLength.
  12507. (calculate): Calculate downloadLength and totalLength.
  12508. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12509. * src/main.cc (addCommand): Changed argument signature.
  12510. (main): Added new variable: args. Added new option "torrent-show-files"
  12511. "no-preallocation". Usage is not updated yet.
  12512. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12513. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12514. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12515. Attempt to add the ability to listing file entries in a .torrent file.
  12516. This feature is not yet complete.
  12517. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12518. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12519. (getName): New function.
  12520. * src/TorrentMan.h (getMultiFileEntries): New function.
  12521. (getName): New function.
  12522. * src/main.cc (main): Use above 2 funtion.
  12523. * Release 0.3.2
  12524. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12525. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12526. (detectMessageFlooding): Updated threshold value.
  12527. (checkLongTimePeerChoking): Updated timeout value.
  12528. (getNewPieceAndSendInterest): Added debug log.
  12529. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12530. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12531. (getPeer): Updated.
  12532. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12533. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12534. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12535. is localhost.
  12536. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12537. * src/PendingMessage.cc (processMessage): Not to send piece message
  12538. if peer is not interested in the pieces localhost has.
  12539. * src/Peer.cc (shouldChoke): Updated.
  12540. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12541. * src/Util.cc (isPowerOf): New function.
  12542. * src/Util.h (isPowerOf): New function.
  12543. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12544. whether or not it is power of 2.
  12545. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12546. Added new class SendMessageQueue that includes PendingMessages and
  12547. RequestSlotMan.
  12548. * src/SendMessageQueue.h: New class.
  12549. * src/SendMessageQueue.cc: New class.
  12550. * src/PendingMessage.h: Added new member variable blockIndex and its
  12551. accessors.
  12552. (createRequestMessage): Updated.
  12553. * src/PendingMessage.cc (createRequestMessage): Updated.
  12554. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12555. SendMessageQueue.
  12556. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12557. (receiveMessage): Updated with SendMessageQueue.
  12558. (deletePendingPieceMessage): Removed.
  12559. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12560. (sendInterest): Updated with SendMessageQueue.
  12561. (createRequestPendingMessage): Updated with SendMessageQueue.
  12562. (sendMessages): Updated with SendMessageQueue.
  12563. (onAbort): Updated with SendMessageQueue.
  12564. (keepAlive): Updated with SendMessageQueue.
  12565. (beforeSocketCheck): Updated SendMessageQueue.
  12566. * src/PeerInteractionCommand (sendMessages): Shuffle
  12567. missingBLockIndexes before using it.
  12568. Added its own timeout for peer connection.
  12569. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12570. setter.
  12571. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12572. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12573. Added setTimeout() call.
  12574. (executeInternal): Added setTimeout() call.
  12575. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12576. Added timeout.
  12577. (isTimeoutDetected): Updated.
  12578. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12579. option.
  12580. Added *simple* message flooding checker.
  12581. * src/PeerInteractionCommand.cc (executeInternal):
  12582. Added detectMessageFlooding() call.
  12583. (detectMessageFlooding): New function.
  12584. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12585. (beforeSocketCheck): Added detectMessageFlooding() call.
  12586. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12587. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12588. Removed deletePendingPieceMessage(), getRequestSlot(),
  12589. deleteRequestSlot(), deleteAllRequestSlot().
  12590. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12591. Added checkLongTimePeerChoking() call.
  12592. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12593. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12594. if duplicate == false.
  12595. The parameter "uploaded" and "downloaded" in the tracker request are
  12596. the size since the client sent the "started" event to the tracker.
  12597. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12598. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12599. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12600. getSessionDownloadedSize(), getSessionUploadedSize().
  12601. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12602. getSessionUploadedSize() instead of getDownloadedSize(),
  12603. getUploadedSize().
  12604. * src/PendingMessage.cc (processMessage): Do not send request message
  12605. if the peer is choking the client.
  12606. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12607. less than interval.
  12608. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12609. * configure.in: Added gnutls support. Added several CPP macros.
  12610. * m4/openssl.m4: Added.
  12611. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12612. readData(), peekData(). Added gnutls support.
  12613. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12614. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12615. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12616. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12617. Instead, added a check for whether setup method has executed
  12618. successfully.
  12619. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12620. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12621. * src/Makefile.am: Updated.
  12622. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12623. using whether OpenSSL or gcrypt, depending on the result of configure
  12624. script.
  12625. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12626. messageDigest.h.
  12627. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12628. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12629. Fixed memory leak.
  12630. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12631. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12632. Removed instantiation of TrackerInitCommand. Instead,
  12633. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12634. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12635. ENABLE_SSL.
  12636. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12637. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12638. If a piece is already acquired by another command, delete the request
  12639. slots for the piece.
  12640. * src/TrackerUpdateCommand.cc (execute):
  12641. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12642. Added a check whether peer list is null.
  12643. Fixed the bug that causes sending completed event to the tracker
  12644. several times.
  12645. * src/TrackerInitCommand.cc (execute):
  12646. Fixed the bug that causes sending completed event to the tracker
  12647. several times.
  12648. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12649. by using messageDigest.h.
  12650. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. * PeerConnection.cc: Replaced log message "keep-alive" with
  12652. "keep alive".
  12653. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12654. localhost long time.
  12655. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12656. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12657. at most 100 failure entry from the list. If with duplicate = false,
  12658. MAX_PEER_LIST is not checked.
  12659. * PeerListenCommand.cc: Fixed the argument order of log message.
  12660. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12661. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12662. Added warn().
  12663. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12664. Implemented warn().
  12665. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12666. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. * Request.h: Added AFTER_COMPLETED event.
  12668. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12669. instead of downloaded size and progress(%) after download completes.
  12670. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12671. message to the peer if it is interested in what localhost has
  12672. downloaded.
  12673. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12674. destination instead of just renaming it.
  12675. * TorrentMan.cc: Added deleteTempFile().
  12676. * PeerAbstractCommand.cc: do not stop execution after download
  12677. completes. This makes localhost a seeder.
  12678. * Util.{h,cc}: Added fileCopy().
  12679. * PeerListenCommand.cc: do not stop execution after download completes.
  12680. This makes localhost a seeder.
  12681. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12682. Added TorrentMan::deleteTempFile() to torrentHandler.
  12683. Initialized the variable dir as ".".
  12684. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12685. Deleted renameSingleFile().
  12686. Added copySingleFile(), deleteTempFile().
  12687. * DownloadEngine.h: Added virtual function afterEachIteration().
  12688. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12689. in onEndOfRun() to afterEachIteration().
  12690. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12691. true.
  12692. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12693. In rangedFileCopy(), added try-catch block to properly close file
  12694. descriptors.
  12695. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12696. Added afterEachIteration(), isFilenameFixed().
  12697. * Peer.cc: Changed choking strategy.
  12698. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12699. * TrackerInitCommand.cc: Send completed event only once.
  12700. * DownloadEngine.cc: Added a call to afterEachIteration().
  12701. * TrackerUpdateCommand.cc: Do not stop execution after download
  12702. completes.
  12703. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12704. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12705. received from a tracker.
  12706. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12707. Decreased the number of failure peers to delete to 0(just comment out
  12708. the line).
  12709. * Release 0.3.1
  12710. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12711. * PeerInteractionCommand.cc: added a call to
  12712. TorrentMan::unadvertisePiece in Destructor.
  12713. * PeerInteractionCommand.cc: make have message sent immediately
  12714. if the size of pending message queue is zero.
  12715. * TorrentMan.cc: set the maximum size of peer list to 250.
  12716. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12717. to deque.
  12718. * Util.cc: fixed rangedFileCopy.
  12719. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12720. to Constructor. Also, moved digest cleanup to Destructor.
  12721. * MetaFileUtil.cc: fixed memory leak
  12722. * replaced std::vector with std::deque.
  12723. * AbstractCommand.cc: casted timeout value to long long int.
  12724. * ChunkedEncoding.cc: fixed memory leak.
  12725. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12726. * SleepCommand.cc: casted timeout value to long long int.
  12727. * Data.cc: fixed memory leak.
  12728. * Data.cc: fixed toLLInt().
  12729. * BitfieldMan.cc: fixed memory leak.
  12730. * TorrentMan.cc: initialized storeDir to ".".
  12731. * TorrentMan.cc: fixed memory leak.
  12732. * TorrentMan.cc: corrected file paths of splitted files.
  12733. * PeerAbstractCommand.cc: casted timeout to long long int.
  12734. * main.cc: added delete(req) and delete(te->diskWriter).
  12735. * RequestSlot.cc: casted timeout value to long long int.
  12736. * Request.cc: fixed memory leak.
  12737. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12738. have the piece.
  12739. * Peer.{h,cc}: added hasPiece(int index).
  12740. * main.cc: corrected addCommand.
  12741. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12742. * BitTorrent protocol support added.
  12743. * Release 0.3.0
  12744. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12745. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12746. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12747. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12748. decoding did not work properly.
  12749. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12750. * DownloadEngine.h: included sys/time.h
  12751. * DownloadEngine.cc: remove sys/time.h
  12752. * Makefile.am (SUBDIRS): Add intl.
  12753. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12754. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12755. * main.cc: correct help message for --http-auth-scheme.
  12756. * main.cc: changed e-mail address for bug reports.
  12757. * ja.po: added japanese translation.
  12758. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12759. * SimpleLogger.cc: flush log file instead of stdout.
  12760. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12761. * main.cc: Fixed command-line option: max-tries
  12762. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12763. does not equal to seg.sp.
  12764. * DownloadCommand.cc: If EOF is got from the server and the total size
  12765. of file is not zero, then throw DlRetryEx.
  12766. * main.cc: Set the minium value of min-segment-size to 1024.
  12767. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12768. fails because of a regression since 0.2.0 release.
  12769. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12770. * HttpConnection.cc:
  12771. * common.h: defined the user agent name as macro
  12772. * DownloadEngine.{h, cc}:
  12773. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12774. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12775. * main.cc: Download complete/abort message is now generated by main.
  12776. * Makefile.am (SUBDIRS): Add m4.
  12777. (ACLOCAL_AMFLAGS): New variable.
  12778. (EXTRA_DIST): New variable.
  12779. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12780. * gettext: added gettext functionality
  12781. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12782. * AbstractCommand.cc:
  12783. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12784. unregister its cuid from SegmentMan.
  12785. * DownloadEngine.cc: .aria2 file was written when a downloading
  12786. failed with errors.
  12787. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12788. Added "User-Agent" header to CONNECT proxy request.
  12789. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12790. properly.
  12791. * Logger.h:
  12792. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12793. * ChunkedEncoding.cc: Added #include directive for strings.h
  12794. * Release 0.2.1
  12795. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12796. * Util.{h,cc}: added startsWith().
  12797. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12798. Util::endsWith().
  12799. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12800. * common.h: added #include directive of limit.h.
  12801. * DownloadEngine.cc: added #include directive of sys/time.h and
  12802. algorithm.
  12803. * Exception.h: added #include directive of stdio.h.
  12804. * AbstractCommand.h: added #include directive of sys/time.h.
  12805. * DownloadCommand.h: added #include directive of sys/time.h.
  12806. * *.h: added #include directive of common.h to all base classes.
  12807. subclasses' one was removed.
  12808. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12809. does not define these macros.
  12810. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12811. * Release 0.2.0
  12812. * main.cc:
  12813. * HttpInitiateConnectionCommand.{h,cc}:
  12814. * prefs.h:
  12815. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12816. We can now use GET command in http proxy.
  12817. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12818. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12819. that splits slowest segment of SegmentMan::commands vector.
  12820. This is the default split algorithm of aria2.
  12821. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12822. that splits first segment of SegmentMan::commands vector.
  12823. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12824. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12825. * Segment.h:
  12826. * SegmentMan.cc: Added speed field to Segment.h
  12827. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12828. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12829. * message.h: Change file size related %d to %lld.
  12830. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12831. * FtpInitiateConnectionCommand.{h,cc}:
  12832. * FtpNegotiationCommand.{h,cc}:
  12833. * FtpDownloadCommand.{h,cc}:
  12834. * FtpConnection.{h,cc}: Added FTP support
  12835. * SimpleLogger.cc: Log message now includes time information.
  12836. * main.cc: The value of --http-auth-scheme option is chagned from
  12837. 'BASIC' to 'basic'
  12838. * main.cc: Added --timeout command-line option.
  12839. * main.cc: Added --min-segment-size command-line option.
  12840. * main.cc: Added --max-retries command-line option.
  12841. * prefs.h: option string constants are now defined in prefs.h
  12842. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12844. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12845. with version 0.1.0's one.
  12846. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12847. * configure.in: Added --enable-ssl option to configure script.
  12848. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12849. cannot permit absoluteURI as Request-URI.
  12850. * HttpConnection.cc: Added Referer support.
  12851. * main.cc: Added referer command-line option.
  12852. * main.cc: Added rety-wait command-line option.
  12853. * Exception.h: Fixed formating bug in Exception::setMsg()
  12854. * SocketCore.{h,cc}:
  12855. * Socket.{h, cc}:
  12856. * Request.cc:
  12857. * InitiateConnectionCommandFactory.cc:
  12858. * HttpRequestCommand.cc: Added HTTPS support.
  12859. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12860. for SocketCore.
  12861. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12862. size is wrong
  12863. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12864. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12865. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12866. * Release 0.1.0