ChangeLog 521 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450
  1. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Rewritten array operation functions.
  3. * src/BitfieldMan.cc
  4. * src/array_fun.h
  5. * test/array_funTest.cc
  6. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Removed unused variable 'query'
  8. * src/Request.cc
  9. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  11. accidentally set to false in r1162.
  12. * configure.ac
  13. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Code cleanup
  15. * src/BNode.cc
  16. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Increase prefixLength for the bucket which doesn't own local node
  18. ID when splitting bucket.
  19. * src/DHTBucket.cc
  20. * test/DHTBucketTest.cc
  21. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. * Release 1.3.1
  23. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Bump up version number to 1.3.1
  25. * configure.ac
  26. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Removed unused variable checkPoint. Also removed include directive
  28. for TimeA2.h.
  29. * src/SeedCheckCommand.h
  30. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Fixed the bug that upload limit exceeds the value specified in
  32. --seed-ratio option depending on the timing of the execution of
  33. SeedCheckCommand.
  34. * src/SeedCheckCommand.cc
  35. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Fixed the bug that removed peer's session upload/download length
  37. are counted twice in _cachedTransferStat before it is
  38. re-calculated. This affected the calculation of shara ratio,
  39. resulting aria2 wrongly determines that specified share ratio is
  40. reached. Also fixed the typo in calculateStatFor function name.
  41. * src/BtSetup.cc
  42. * src/DefaultPeerStorage.cc
  43. * src/ShareRatioSeedCriteria.h
  44. * test/ShareRatioSeedCriteriaTest.cc
  45. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. * Release 1.3.0
  47. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  49. Nynorsk translations. Thanks to all translators.
  50. * po/es.po
  51. * po/ja.po
  52. * po/nn.po
  53. * po/ru.po
  54. * po/uk.po
  55. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Rewritten isInRange()
  57. * src/DHTBucket.cc
  58. * test/DHTBucketTest.cc
  59. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Fixed typo
  61. * doc/aria2c.1.txt
  62. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  64. malloc/realloc is not used.
  65. * src/configure.ac
  66. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. BitfieldMan::getMissingIndexes family functions now takes unsigned
  68. char* bitfield instead of stl container for efficiency.
  69. PieceSelector::select now takes this
  70. bitfield. RarestPieceSelector::select now also performs
  71. efficiently for this change. bitfield namespace is introduced and
  72. it has several helper functions to handle basic bitfield
  73. operations such as test, count set bits, etc.
  74. * src/BitfieldMan.cc
  75. * src/BitfieldMan.h
  76. * src/DefaultBtRequestFactory.cc
  77. * src/DefaultPieceStorage.cc
  78. * src/DefaultPieceStorage.h
  79. * src/LongestSequencePieceSelector.cc
  80. * src/LongestSequencePieceSelector.h
  81. * src/Makefile.am
  82. * src/Piece.cc
  83. * src/Piece.h
  84. * src/PieceSelector.h
  85. * src/RarestPieceSelector.cc
  86. * src/RarestPieceSelector.h
  87. * src/Util.cc
  88. * src/Util.h
  89. * src/bitfield.h
  90. * test/BitfieldManTest.cc
  91. * test/LongestSequencePieceSelectorTest.cc
  92. * test/Makefile.am
  93. * test/RarestPieceSelectorTest.cc
  94. * test/UtilTest.cc
  95. * test/bitfieldTest.cc
  96. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Made accepted socket non-block.
  98. * src/FtpNegotiationCommand.cc
  99. * src/HttpListenCommand.cc
  100. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Guarded #ifdef HAVE_POSIX_FALLOCATE
  102. * src/AbstractSingleDiskAdaptor.cc
  103. * src/DefaultPieceStorage.cc
  104. * src/DiskAdaptor.h
  105. * src/DiskAdaptor.h
  106. * src/MultiFileAllocationIterator.cc
  107. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Run
  109. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  110. in every 1 sec. The timeout of RequestSlot is 60s by default and
  111. it doesn't need to be called every time when
  112. DefaultBtInteractive::doInteractionProcessing() is called.
  113. * src/DefaultBtInteractive.cc
  114. * src/DefaultBtInteractive.h
  115. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Documented 'falloc' in man page.
  117. * doc/aria2c.1.txt
  118. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Updated doc
  120. * src/usage_text.h
  121. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Added 'falloc' parameter for --file-allocation option. 'falloc'
  123. allocation mode uses posix_fallocate() system call to allocate
  124. file on disk. If you are using newer file systems such as ext4
  125. (with extents support), btrfs or xfs, 'falloc' is your best
  126. choice. It allocates large(few GiB) files almost instantly. Don't
  127. use 'falloc' with legacy file systems such as ext3 because it
  128. takes almost same time as 'prealloc' and it blocks aria2 entirely
  129. until allocation finishes. 'falloc' may not be available if your
  130. system doesn't have posix_fallocate() system call.
  131. * configure.ac
  132. * src/AbstractDiskWriter.cc
  133. * src/AbstractDiskWriter.h
  134. * src/AbstractSingleDiskAdaptor.cc
  135. * src/BinaryStream.h
  136. * src/BtCheckIntegrityEntry.cc
  137. * src/ByteArrayDiskWriter.h
  138. * src/CheckIntegrityEntry.cc
  139. * src/CheckIntegrityEntry.h
  140. * src/DefaultPieceStorage.cc
  141. * src/DiskAdaptor.cc
  142. * src/DiskAdaptor.h
  143. * src/DiskWriter.h
  144. * src/FallocFileAllocationIterator.cc
  145. * src/FallocFileAllocationIterator.h
  146. * src/FileAllocationEntry.cc
  147. * src/FileAllocationEntry.h
  148. * src/Makefile.am
  149. * src/MultiFileAllocationIterator.cc
  150. * src/MultiFileAllocationIterator.h
  151. * src/OptionHandlerFactory.cc
  152. * src/RequestGroup.cc
  153. * src/StreamCheckIntegrityEntry.cc
  154. * src/prefs.cc
  155. * src/prefs.h
  156. * src/usage_text.h
  157. * test/FallocFileAllocationIteratorTest.cc
  158. * test/Makefile.am
  159. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Removed duplicate enableDirectIO() call.
  161. * src/MultiFileAllocationIterator.cc
  162. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  164. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  165. cost of std::rotate().
  166. * src/RarestPieceSelector.cc
  167. * src/RarestPieceSelector.h
  168. * test/RarestPieceSelectorTest.cc
  169. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Updated usage doc for --bt-tracker-interval option.
  171. * src/usage_text.h
  172. * doc/aria2c.1.txt
  173. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Documented --bt-tracker-interval option in man page.
  175. * doc/aria2c.1.txt
  176. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Added an option to specify the interval between tracker requests.
  178. If non-zero value is specified, aria2 uses it and ignores the
  179. interval value in the response of tracker. If zero is specified,
  180. aria2 determines the inteval value based on the tarcker response
  181. and download progress.
  182. * src/DefaultBtAnnounce.cc
  183. * src/DefaultBtAnnounce.h
  184. * src/OptionHandlerFactory.cc
  185. * src/RequestGroup.cc
  186. * src/prefs.cc
  187. * src/prefs.h
  188. * src/usage_text.h
  189. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Added operator+=, operator-=, operator-
  191. * src/TransferStat.cc
  192. * src/TransferStat.h
  193. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Refactored RarestPieceSelector to reduce CPU load, especially for
  195. addPieceStats.
  196. * src/RarestPieceSelector.cc
  197. * src/RarestPieceSelector.h
  198. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  200. getAllMissingBlockIndexes to reduce a call to
  201. array_function_base::operator[].
  202. * src/BitfieldMan.cc
  203. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Cached TransferStat/download speed to avoid to sum them up in each
  205. call.
  206. * src/DefaultPeerStorage.cc
  207. * src/DefaultPeerStorage.h
  208. * src/SegmentMan.cc
  209. * src/SegmentMan.h
  210. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Typedefed cuid_t as int32_t in Command.h
  212. * src/CUIDCounter.h
  213. * src/Command.cc
  214. * src/Command.h
  215. * src/DownloadEngine.cc
  216. * src/DownloadEngine.h
  217. * src/PeerStat.h
  218. * src/SegmentMan.cc
  219. * src/SegmentMan.h
  220. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Reduced the number of calls to PeerStorage::calculateStat() and
  222. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  223. transfer rate.
  224. * src/DefaultBtInteractive.cc
  225. * src/DefaultBtMessageDispatcher.cc
  226. * src/DefaultPeerStorage.cc
  227. * src/DefaultPeerStorage.h
  228. * src/DownloadCommand.cc
  229. * src/DownloadEngine.cc
  230. * src/PeerStorage.h
  231. * src/SegmentMan.cc
  232. * src/SegmentMan.h
  233. * test/MockPeerStorage.h
  234. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Prepended _dir+"/" after joining path elements in torrent file.
  236. * src/DefaultBtContext.cc
  237. * test/DefaultBtContextTest.cc
  238. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Added missing IndexBtMessageValidator.h
  240. * src/Makefile.am
  241. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  243. Chinese translations. Thank you for contributing our project.
  244. * po/id.po
  245. * po/it.po
  246. * po/ru.po
  247. * po/uk.po
  248. * po/zh_CN.po
  249. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Updated README
  251. * README
  252. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Bump up version number to 1.3.0
  254. * configure.ac
  255. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Updated doc
  257. * src/DefaultBtContext.h
  258. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Slice/joinPath for name of single torrent.
  260. * src/DefaultBtContext.cc
  261. * test/DefaultBtContextTest.cc
  262. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Updated man page: Documented --dry-run and --index-out
  264. options. Changed the default value of --uri-selector and
  265. --http-auth-challenge options. Removed --direct-file-mapping
  266. option. Added example for --index-out
  267. * doc/aria2c.1.txt
  268. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Updated TEXT_DRY_RUN
  270. * src/usage_text.h
  271. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Changed the default value of --uri-selector option from 'inorder'
  273. to 'feedback'
  274. * src/OptionHandlerFactory.cc
  275. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Included current URI in exception message.
  277. * src/AbstractCommand.cc
  278. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Renamed ServerStatURISelector as FeedbackURISelector.
  280. * src/FeedbackURISelector.cc
  281. * src/FeedbackURISelector.h
  282. * src/Makefile.am
  283. * src/RequestGroupMan.cc
  284. * src/ServerStatURISelector.cc
  285. * src/ServerStatURISelector.h
  286. * test/FeedbackURISelectorTest.cc
  287. * test/Makefile.am
  288. * test/ServerStatURISelectorTest.cc
  289. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  291. all URIs are tested and their timeout is not reached.
  292. * src/AdaptiveURISelector.cc
  293. * src/AdaptiveURISelector.h
  294. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Changed the default value of --http-auth-challenge option to false.
  296. * src/OptionHandlerFactory.cc
  297. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Reuse URIs when all unused URIs run out.
  299. * src/OptionHandlerFactory.cc
  300. * src/RequestGroup.cc
  301. * src/prefs.cc
  302. * src/prefs.h
  303. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  305. and BtRejectMessage are derived from RangeBtMessage class.
  306. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  307. derived from IndexBtMessage class. BtChokeMessage,
  308. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  309. BtNotInterestedMessage and BtUnchokeMessage are derived from
  310. ZeroBtMessage class.
  311. * src/AbstractBtMessage.cc
  312. * src/AbstractBtMessage.h
  313. * src/BtAllowedFastMessage.cc
  314. * src/BtAllowedFastMessage.h
  315. * src/BtAllowedFastMessageValidator.h: Removed
  316. * src/BtBitfieldMessage.cc
  317. * src/BtBitfieldMessage.h
  318. * src/BtCancelMessage.cc
  319. * src/BtCancelMessage.h
  320. * src/BtCancelMessageValidator.h: Removed
  321. * src/BtChokeMessage.cc
  322. * src/BtChokeMessage.h
  323. * src/BtExtendedMessage.cc
  324. * src/BtExtendedMessage.h
  325. * src/BtHandshakeMessage.cc
  326. * src/BtHandshakeMessage.h
  327. * src/BtHaveAllMessage.cc
  328. * src/BtHaveAllMessage.h
  329. * src/BtHaveMessage.cc
  330. * src/BtHaveMessage.h
  331. * src/BtHaveMessageValidator.h: Removed
  332. * src/BtHaveNoneMessage.cc
  333. * src/BtHaveNoneMessage.h
  334. * src/BtInterestedMessage.cc
  335. * src/BtInterestedMessage.h
  336. * src/BtKeepAliveMessage.cc
  337. * src/BtKeepAliveMessage.h
  338. * src/BtNotInterestedMessage.cc
  339. * src/BtNotInterestedMessage.h
  340. * src/BtPieceMessage.cc
  341. * src/BtPieceMessage.h
  342. * src/BtPortMessage.cc
  343. * src/BtPortMessage.h
  344. * src/BtRejectMessage.cc
  345. * src/BtRejectMessage.h
  346. * src/BtRejectMessageValidator.h: Removed
  347. * src/BtRequestMessage.cc
  348. * src/BtRequestMessage.h
  349. * src/BtRequestMessageValidator.h: Removed
  350. * src/BtSuggestPieceMessage.cc
  351. * src/BtSuggestPieceMessage.h
  352. * src/BtSuggestPieceMessageValidator.h: Removed
  353. * src/BtUnchokeMessage.cc
  354. * src/BtUnchokeMessage.h
  355. * src/DefaultBtMessageFactory.cc
  356. * src/IndexBtMessage.cc
  357. * src/IndexBtMessage.h
  358. * src/IndexBtMessageValidator.h
  359. * src/Makefile.am
  360. * src/PeerMessageUtil.cc
  361. * src/PeerMessageUtil.h
  362. * src/RangeBtMessage.cc
  363. * src/RangeBtMessage.h
  364. * src/RangeBtMessageValidator.h
  365. * src/SimpleBtMessage.cc
  366. * src/SimpleBtMessage.h
  367. * src/ZeroBtMessage.cc
  368. * src/ZeroBtMessage.h
  369. * test/BtRequestMessageTest.cc
  370. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Reverted usage_text.h to r1093 to avoid to lose translated
  372. messages.
  373. * src/usage_text.h
  374. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  376. declared as non-const previously is now const and defined in class
  377. definition.
  378. * src/AbstractBtMessage.cc
  379. * src/AbstractBtMessage.h
  380. * src/BtAllowedFastMessage.cc
  381. * src/BtAllowedFastMessage.h
  382. * src/BtBitfieldMessage.h
  383. * src/BtCancelMessage.cc
  384. * src/BtCancelMessage.h
  385. * src/BtChokeMessage.cc
  386. * src/BtChokeMessage.h
  387. * src/BtExtendedMessage.cc
  388. * src/BtExtendedMessage.h
  389. * src/BtHandshakeMessage.cc
  390. * src/BtHandshakeMessage.h
  391. * src/BtHaveAllMessage.cc
  392. * src/BtHaveAllMessage.h
  393. * src/BtHaveMessage.cc
  394. * src/BtHaveMessage.h
  395. * src/BtHaveNoneMessage.cc
  396. * src/BtHaveNoneMessage.h
  397. * src/BtInterestedMessage.cc
  398. * src/BtInterestedMessage.h
  399. * src/BtKeepAliveMessage.cc
  400. * src/BtKeepAliveMessage.h
  401. * src/BtMessage.h
  402. * src/BtNotInterestedMessage.cc
  403. * src/BtNotInterestedMessage.h
  404. * src/BtPieceMessage.h
  405. * src/BtPortMessage.cc
  406. * src/BtPortMessage.h
  407. * src/BtRejectMessage.cc
  408. * src/BtRejectMessage.h
  409. * src/BtRequestMessage.cc
  410. * src/BtRequestMessage.h
  411. * src/BtSuggestPieceMessage.cc
  412. * src/BtSuggestPieceMessage.h
  413. * src/BtUnchokeMessage.cc
  414. * src/BtUnchokeMessage.h
  415. * src/SimpleBtMessage.cc
  416. * src/SimpleBtMessage.h
  417. * test/MockBtMessage.h
  418. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Use FileEntry::exists()
  420. * src/MultiDiskAdaptor.cc
  421. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Added exists()
  423. * src/FileEntry.cc
  424. * src/FileEntry.h
  425. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Added missing prefix dir.
  427. * src/download_helper.cc
  428. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Removed --direct-file-mapping option and CopyDiskAdaptor.
  430. * src/CopyDiskAdaptor.cc: Removed
  431. * src/CopyDiskAdaptor.h: Removed
  432. * src/DefaultPieceStorage.cc
  433. * src/Makefile.am
  434. * src/OptionHandlerFactory.cc
  435. * src/prefs.cc
  436. * src/prefs.h
  437. * src/usage_text.h
  438. * test/CopyDiskAdaptorTest.cc: Removed
  439. * test/Makefile.am
  440. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Rewritten isSameFileBeingDownloaded()
  442. * src/RequestGroupMan.cc
  443. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Removed getName() from DownloadContext. getName() is declared in
  445. BtContext.
  446. * src/BtContext.h
  447. * src/DownloadContext.h
  448. * src/SingleFileDownloadContext.cc
  449. * src/SingleFileDownloadContext.h
  450. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  451. in AbstractSingleDiskAdaptor.
  452. * src/AbstractSingleDiskAdaptor.h
  453. * src/DiskAdaptor.h
  454. * src/MultiDiskAdaptor.h
  455. * src/RequestGroup.cc
  456. Removed setTopDir() and getTopDir() and getTopDirPath() from
  457. MultiDiskAdaptor.
  458. * src/DefaultPieceStorage.cc
  459. * src/MultiDiskAdaptor.cc
  460. * src/MultiDiskAdaptor.h
  461. * test/MultiDiskAdaptorTest.cc
  462. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. FileEntry::getPath() contains store(top level) directory to
  464. simplify path handling operation. In the previous implementation,
  465. store directory is concatenated to FileEntry::getPath() in
  466. DownloadContext.
  467. * src/BtDependency.cc
  468. * src/BtPostDownloadHandler.cc
  469. * src/CopyDiskAdaptor.cc
  470. * src/DefaultBtContext.cc
  471. * src/DirectDiskAdaptor.cc
  472. * src/FileEntry.cc
  473. * src/FileEntry.h
  474. * src/FtpNegotiationCommand.cc
  475. * src/HttpResponse.cc
  476. * src/HttpResponseCommand.cc
  477. * src/Metalink2RequestGroup.cc
  478. * src/MultiDiskAdaptor.cc
  479. * src/MultiDiskAdaptor.h
  480. * src/MultiFileAllocationIterator.cc
  481. * src/RequestGroup.cc
  482. * src/SingleFileDownloadContext.cc
  483. * src/SingleFileDownloadContext.h
  484. * src/download_helper.cc
  485. * test/BtDependencyTest.cc
  486. * test/CopyDiskAdaptorTest.cc
  487. * test/DefaultBtContextTest.cc
  488. * test/DefaultBtProgressInfoFileTest.cc
  489. * test/DirectDiskAdaptorTest.cc
  490. * test/DownloadHelperTest.cc
  491. * test/FileEntryTest.cc
  492. * test/MultiDiskAdaptorTest.cc
  493. * test/MultiFileAllocationIteratorTest.cc
  494. * test/RequestGroupTest.cc
  495. * test/SingleFileDownloadContextTest.cc
  496. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Fixed compiler warning
  498. * src/download_helper.cc
  499. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Throw exception if same infohash torrent is now downloading.
  501. * src/RequestGroup.cc
  502. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Added --dry-run option. In this mode, aria2 just checks whether
  504. the remote file is available and doesn't download data. This
  505. option has effect on HTTP/FTP downloads and BitTorrent downloads
  506. are canceled in this mode.
  507. * src/FtpNegotiationCommand.cc
  508. * src/HttpResponseCommand.cc
  509. * src/HttpResponseCommand.h
  510. * src/OptionHandlerFactory.cc
  511. * src/RequestGroup.cc
  512. * src/RequestGroupMan.cc
  513. * src/prefs.cc
  514. * src/prefs.h
  515. * src/usage_text.h
  516. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Fixed compiler waring
  518. * test/UriListParserTest.cc
  519. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Parse options in -i list using OptionParser.
  521. * src/UriListParser.cc
  522. * src/UriListParser.h
  523. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Don't reset URI in retry to avoid additional round trips because
  525. of redirects.
  526. * src/AbstractCommand.cc
  527. * src/OptionHandlerFactory.cc
  528. * src/prefs.cc
  529. * src/prefs.h
  530. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Declared hide() in OptionHandler.
  532. * src/NameMatchOptionHandler.h
  533. * src/OptionHandler.h
  534. * src/OptionHandlerImpl.h
  535. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Updated doc
  537. * src/Peer.h
  538. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Added log message in setStatusInternal()
  540. * src/ServerStat.cc
  541. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Call ServerStat::setError() in AbstractCommand::onAbort() to
  543. effectively exclude failed server.
  544. * src/AbstractCommand.cc
  545. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Added --index-out option to specify each file path for torrent.
  547. Here index shown in --show-files option is used to specify which
  548. file path should be altered. For example, to change the file path
  549. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  550. option multiple times: --index-out=1=aria2.tar.bz2
  551. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  552. available. This option can be specified in -i list.
  553. * src/DefaultBtContext.cc
  554. * src/DefaultBtContext.h
  555. * src/MultiDiskAdaptor.cc
  556. * src/MultiDiskAdaptor.h
  557. * src/MultiFileAllocationIterator.cc
  558. * src/OptionHandlerFactory.cc
  559. * src/OptionHandlerImpl.h
  560. * src/Util.cc
  561. * src/Util.h
  562. * src/download_helper.cc
  563. * src/prefs.cc
  564. * src/prefs.h
  565. * src/usage_text.h
  566. * test/DefaultBtContextTest.cc
  567. * test/MultiDiskAdaptorTest.cc
  568. * test/MultiFileAllocationIteratorTest.cc
  569. * test/UtilTest.cc
  570. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Use Util::pathJoin()
  572. * src/MetalinkParserController.cc
  573. * test/test.xml
  574. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Use Util::pathJoin()
  576. * src/DefaultBtContext.cc
  577. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Added Util::pathJoin()
  579. * src/Util.h
  580. * test/UtilTest.cc
  581. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Applied basename function to remove directory element in
  583. content-disposition value.
  584. Return empty string if content-disposition value is ".." or ".".
  585. * src/Util.cc
  586. * test/UtilTest.cc
  587. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Added --max-overall-download-limit in man page.
  589. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  590. * doc/aria2c.1.txt
  591. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Added --max-overall-download-limit option. Now --max-upload-limit
  593. option is not ignored when --max-overall-upload-limit option has
  594. non-zero value. aria2 checks download(upload) speed in the order:
  595. first checks overall speed limit and if it is not exceeded, then
  596. checks speed limit per download. Thus you can specify both
  597. value. For example, set --max-overall-download-limit=1M and
  598. --max-download-limit=500K to prevent from one download from eating
  599. all overall speed limit.
  600. * src/DefaultBtInteractive.cc
  601. * src/DefaultBtInteractive.h
  602. * src/DefaultBtMessageDispatcher.cc
  603. * src/DefaultBtMessageDispatcher.h
  604. * src/DownloadCommand.cc
  605. * src/DownloadCommand.h
  606. * src/FtpNegotiationCommand.cc
  607. * src/HttpResponseCommand.cc
  608. * src/OptionHandlerFactory.cc
  609. * src/PeerInteractionCommand.cc
  610. * src/RequestGroup.cc
  611. * src/RequestGroup.h
  612. * src/RequestGroupMan.cc
  613. * src/RequestGroupMan.h
  614. * src/prefs.cc
  615. * src/prefs.h
  616. * src/usage_text.h
  617. * test/DefaultBtMessageDispatcherTest.cc
  618. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Documented select-file option in Input File section.
  620. Documented --http-auth-challenge option.
  621. * doc/aria2c.1.txt
  622. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Now select-file can be specified in the uri list(-i list).
  624. * src/BtContext.cc
  625. * src/BtContext.h
  626. * src/RequestGroup.cc
  627. * src/Sequence.h
  628. * src/download_helper.cc
  629. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Made the upper value of --max-concurrent-downloads options unlimited.
  631. * src/OptionHandlerFactory.cc
  632. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Fixed the bug that disk writer is not created even if it shares
  634. same piece with the preceding file if the length of previous file
  635. is 0.
  636. * src/MultiDiskAdaptor.cc
  637. * test/MultiDiskAdaptorTest.cc
  638. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. In BitTorrent, Open files in read-only mode for hash check. After
  640. that, re-open file in read/write mode only when the download is
  641. not finished.
  642. * src/AbstractDiskWriter.cc
  643. * src/AbstractDiskWriter.h
  644. * src/AbstractSingleDiskAdaptor.cc
  645. * src/AbstractSingleDiskAdaptor.h
  646. * src/BtCheckIntegrityEntry.cc
  647. * src/DiskAdaptor.h
  648. * src/DiskWriter.h
  649. * src/MultiDiskAdaptor.cc
  650. * src/MultiDiskAdaptor.h
  651. * src/RequestGroup.cc
  652. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Added --http-auth-challenge option. If it is set to true(by
  654. default), aria2 sends HTTP authorization header only when it is
  655. requested by the server. If false is set, then authorization
  656. header is always sent to the server. This is useful for servers
  657. that don't respond 401 code when authentication is required.
  658. There is an exception: if username and password are embedded in
  659. URI, authorization header is always sent to the server regardless
  660. of this option.
  661. * src/AuthConfigFactory.cc
  662. * src/HttpSkipResponseCommand.cc
  663. * src/OptionHandlerFactory.cc
  664. * src/prefs.cc
  665. * src/prefs.h
  666. * src/usage_text.h
  667. * test/AuthConfigFactoryTest.cc
  668. * test/HttpRequestTest.cc
  669. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. * Release 1.2.0
  671. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Updated Spanish, Ukrainian, Russian and Japanese translations.
  673. Thanks to all translators.
  674. * po/es.po
  675. * po/ja.po
  676. * po/ru.po
  677. * po/uk.po
  678. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Call deleteSocketForReadCheck() before socket is closed.
  680. * src/HttpListenCommand.cc
  681. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Defined virtual destructor for BObject.
  683. * src/bencode.h
  684. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Rewritten BDE to make it efficient.
  686. * src/bencode.cc
  687. * src/bencode.h
  688. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Removed function throw list.
  690. * src/bencode.cc
  691. * src/bencode.h
  692. * test/BencodeTest.cc
  693. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Enclosed all URLs in double quotes in command-line examples.
  695. * doc/aria2c.1.txt
  696. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Updated reference/see also section.
  698. * README
  699. * doc/aria2c.1.txt
  700. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Reorganized man page based on man man-pages.
  702. * doc/aria2c.1.txt
  703. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  705. because same documents are available in man page. Added
  706. References section.
  707. * README
  708. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  710. PERFORMANCE PROFILE section.
  711. * doc/aria2c.1.txt
  712. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Rewritten the section for configuration file.
  714. * README
  715. * doc/aria2c.1.txt
  716. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Fixed the segmentation fault during execution of choking algorithm
  718. in leecher state because of broken compare operator
  719. implementation.
  720. * src/BtLeecherStateChoke.cc
  721. * src/BtLeecherStateChoke.h
  722. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Open file in binary mode.
  724. * src/CookieStorage.cc
  725. * src/DHTSetup.cc
  726. * src/DHTUtil.cc
  727. * src/Netrc.cc
  728. * src/NsCookieParser.cc
  729. * src/ProtocolDetector.cc
  730. * src/RequestGroupMan.cc
  731. * src/Signature.cc
  732. * src/bencode.cc
  733. * src/download_helper.cc
  734. * src/option_processing.cc
  735. * test/CookieParserTest.cc
  736. * test/DefaultBtProgressInfoFileTest.cc
  737. * test/FileTest.cc
  738. * test/GZipDecoderTest.cc
  739. * test/RequestGroupManTest.cc
  740. * test/SignatureTest.cc
  741. * test/SingleFileAllocationIteratorTest.cc
  742. * test/UriListParserTest.cc
  743. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Removed operator[] because it is ambiguous with built-in []
  745. operator.
  746. * src/array_fun.h
  747. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Fixed compile error
  749. * src/OptionParser.cc
  750. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Added missing call to arrayWrapperConst
  752. * test/array_funTest.cc
  753. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Use array_wrapper instead of array_ptr.
  755. * src/DHTRoutingTableDeserializer.cc
  756. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  758. * src/array_fun.h
  759. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Added array_wrapper template.
  761. * src/array_fun.h
  762. * test/array_funTest.cc
  763. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Use operator T* of array_ptr.
  765. * src/OptionParser.cc
  766. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Use localhost instead of 127.0.0.1
  768. * test/FtpConnectionTest.cc
  769. * test/MSEHandshakeTest.cc
  770. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Added operator T*
  772. * src/array_fun.h
  773. * test/array_funTest.cc
  774. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Use dynamically allocated char array to detect memory access
  776. violation.
  777. * src/DHTRoutingTableDeserializer.cc
  778. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  780. defined.
  781. * src/PeerMessageUtil.cc
  782. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  784. * configure.ac
  785. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Added a check to see struct sockaddr_in has sin_len member.
  787. * configure.ac
  788. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Fixed buffer overrun.
  790. * src/DHTRoutingTableDeserializer.cc
  791. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Added LL for long long int constant.
  793. * test/FtpConnectionTest.cc
  794. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Casted to unsigned int to suppress compiler warning on netbsd.
  796. * src/BtRuntime.h
  797. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Assign the value of tv.tv_sec to time_t timesec instead of giving
  799. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  800. type time_t.
  801. * src/SimpleLogger.cc
  802. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Added test for FtpConnection::receiveSizeResponse().
  804. * test/FtpConnectionTest.cc
  805. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Fix epoll error on the old kernel 2.6.8 or ealier.
  807. * src/EpollEventPoll.cc
  808. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Use Util::parseLLInt instead of sscanf for portability. The
  810. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  811. * src/FtpConnection.cc
  812. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  814. block. It should not filter anything.
  815. * src/BitfieldMan.cc
  816. * src/ConsoleStatCalc.cc
  817. * test/BitfieldManTest.cc
  818. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Fixed the bug that the boolean options that don't take arguments
  820. don't work.
  821. * src/OptionHandlerImpl.h
  822. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Fixed broken selected file BitTorrent download.
  824. * src/MultiDiskAdaptor.cc
  825. * test/MultiDiskAdaptorTest.cc
  826. * test/MultiFileAllocationIteratorTest.cc
  827. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Fixed #define guard for EpollEventPoll
  829. * src/EpollEventPoll.h
  830. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Wait 2 seconds. 1 second is sometimes not enough.
  832. * test/TimeSeedCriteriaTest.cc
  833. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Use localhost instead of 127.0.0.1.
  835. * test/DHTConnectionImplTest.cc
  836. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Suppressed compiler warning.
  838. * src/AdaptiveURISelector.cc
  839. * src/DefaultPieceStorage.cc
  840. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Defined virtual destructor.
  842. * src/MetalinkParserState.h
  843. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Give NULL for second argument of getaddrinfo instead of "0".
  845. * src/NameResolver.cc
  846. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  848. included strptime doesn't parse data for this format.
  849. * src/FtpConnection.cc
  850. * test/FtpConnectionTest.cc
  851. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Removed tests giving -1 for unsigned argument.
  853. * test/SingleFileDownloadContextTest.cc
  854. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Don't use sha256 in tests because it might not be supported by the
  856. SSL library.
  857. * test/MetalinkProcessorTest.cc
  858. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Removed tests giving -1 for unsigned argument.
  860. * test/AlphaNumberDecoratorTest
  861. * test/BitfieldManTest.cc
  862. * test/DefaultBtContextTest.cc
  863. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Fixed compile error without libcares when epoll is available.
  865. * src/EpollEventPoll.cc
  866. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Included fstream instead of iostream.
  868. * test/SignatureTest.cc
  869. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Removed #include <algorithm>
  871. * test/RequestGroupTest.cc
  872. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  874. using RequestGroup::extractURIResult().
  875. * src/AdaptiveURISelector.cc
  876. * src/RequestGroup.cc
  877. * src/RequestGroup.h
  878. * test/RequestGroupTest.cc
  879. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Added tests for array_ptr.
  881. * test/array_funTest.cc
  882. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Don't send ip parameter to a tracker if ip parameter is empty
  884. string.
  885. * src/DefaultBtAnnounce.cc
  886. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Adjusted line feed.
  888. * src/version_usage.cc
  889. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Print tags, possible values when OptionHandlerException is caught.
  891. * src/option_processing.cc
  892. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Changed the message for FatalException.
  894. * src/OptionParser.cc
  895. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Documented --bt-external-ip option in man page. Updated man pages
  897. for --proxy-method option.
  898. * doc/aria2c.1.txt
  899. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. Use GET method for FTP via HTTP proxy.
  901. * src/FtpInitiateConnectionCommand.cc
  902. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Changed the default value of --proxy-method option from 'tunnel'
  904. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  905. option.
  906. * src/AbstractCommand.cc
  907. * src/AbstractCommand.h
  908. * src/FtpInitiateConnectionCommand.cc
  909. * src/HttpDownloadCommand.cc
  910. * src/HttpInitiateConnectionCommand.cc
  911. * src/HttpInitiateConnectionCommand.h
  912. * src/OptionHandlerFactory.cc
  913. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Initialized _logger
  915. * src/SelectEventPoll.cc
  916. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Defined a copy constructor for the same type.
  918. * src/SharedHandle.h
  919. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Added OptionParser::parseArg() which internally uses getopt_long
  921. to parse command-line options. All command-line options are now
  922. configured by OptionHandler. No manual editing of struct option*
  923. is required any more.
  924. * src/NameMatchOptionHandler.h
  925. * src/OptionHandler.h
  926. * src/OptionHandlerFactory.cc
  927. * src/OptionHandlerImpl.h
  928. * src/OptionParser.cc
  929. * src/OptionParser.h
  930. * src/array_fun.h
  931. * src/main.cc
  932. * src/option_processing.cc
  933. * test/OptionHandlerTest.cc
  934. * test/OptionParserTest.cc
  935. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Fixed configure error with --disable-epoll
  937. * configure.ac
  938. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Fixed compile error when HAVE_EPOLL is not defined.
  940. Fixed linker error on bigendian systems.
  941. * src/SocketCore.cc
  942. * src/SocketCore.h
  943. * test/DefaultBtProgressInfoFileTest.cc
  944. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Added --bt-external-ip option. You can specify the external IP
  946. address to report to a BitTorrent tracker. Although this function
  947. is named 'external', it can accept any kind of IP addresses.
  948. * src/DefaultBtAnnounce.cc
  949. * src/OptionHandlerFactory.cc
  950. * src/option_processing.cc
  951. * src/prefs.cc
  952. * src/prefs.h
  953. * src/usage_text.h
  954. * test/DefaultBtAnnounceTest.cc
  955. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Extracted the algorithm to find the longest incremental sequence
  957. as max_sequence template.
  958. * src/LongestSequencePieceSelector.cc
  959. * src/a2algo.h
  960. * test/Makefile.am
  961. * test/a2algoTest.cc
  962. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  964. * src/usage_text.h
  965. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Updated doc for --uri-selector, --http-server-listen-port and
  967. --enable-http-server option. Documented --event-poll option.
  968. * doc/aria2c.1.txt
  969. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Updated doc for --enable-http-server.
  971. * src/usage_text.h
  972. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Documented --http-server-listen-port and --enable-http-server in
  974. man page.
  975. * doc/aria2c.1.txt
  976. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  978. translations. Thanks to all translators.
  979. * po/es.po
  980. * po/id.po
  981. * po/it.po
  982. * po/ru.po
  983. * po/uk.po
  984. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Bump up version number to 1.2.0
  986. * configure.ac
  987. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. BtContext::getAnnounceTiers() now returns const reference.
  989. * src/BtContext.h
  990. * src/DefaultBtContext.cc
  991. * src/DefaultBtContext.h
  992. * test/MockBtContext.h
  993. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Change the number of retries for tracker request based on the
  995. number of available tracker in a torrent file.
  996. * src/TrackerWatcherCommand.cc
  997. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Added _maxTries property to RequestGroup and assign the option
  999. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1000. RequestGroup::getMaxTries() instead of
  1001. Option::getAsInt(PREF_MAX_TRIES).
  1002. * src/AbstractCommand.cc
  1003. * src/RequestGroup.cc
  1004. * src/RequestGroup.h
  1005. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1007. Mandriva. I modified the patch: make RequestGroup have the
  1008. timeout value and AdaptiveURISelector directly modifies that
  1009. value.
  1010. * src/AbstractCommand.cc
  1011. * src/AdaptiveURISelector.cc
  1012. * src/AdaptiveURISelector.h
  1013. * src/FtpNegotiationCommand.cc
  1014. * src/RequestGroup.cc
  1015. * src/RequestGroup.h
  1016. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Fixed compiler warning
  1018. * test/IteratableChecksumValidatorTest.cc
  1019. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1020. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1021. integrated downloads. This PieceSelector subclass finds the
  1022. longest continuous sequence in the available missing pieces and
  1023. selects the last index of such sequence. This makes HTTP/FTP
  1024. connections less interrupted by the pieces obtained by BitTorrent
  1025. peers.
  1026. * src/DefaultPieceStorage.cc
  1027. * src/DefaultPieceStorage.h
  1028. * src/LongestSequencePieceSelector.cc
  1029. * src/LongestSequencePieceSelector.h
  1030. * src/Makefile.am
  1031. * src/PieceSelector.h
  1032. * src/RarestPieceSelector.h
  1033. * src/RequestGroup.cc
  1034. * test/BtDependencyTest.cc
  1035. * test/DefaultPieceStorageTest.cc
  1036. * test/IteratableChecksumValidatorTest.cc
  1037. * test/LongestSequencePieceSelectorTest.cc
  1038. * test/Makefile.am
  1039. * test/SegmentManTest.cc
  1040. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Fixed the bug that the average speed is wrong in
  1042. http/ftp/BitTorrent integrated download. Only the download bytes
  1043. in BitTorrent were considered.
  1044. * src/RequestGroup.cc
  1045. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Choose port for BitTorrent/DHT randomly from the specified range.
  1047. * src/DHTConnectionImpl.cc
  1048. * src/PeerListenCommand.cc
  1049. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Send HTTP Authorization header only if it is requested by the
  1051. server(response 401). There are some exceptions. The authorization
  1052. header for proxy is always sent if it is available without request
  1053. by the server. If username/password is specified in the URI, it
  1054. is immediately sent to the server without request by the server.
  1055. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1056. SharedHandle<AuthConfig>().
  1057. NetrcAuthResolver::resolveAuthConfig() returns
  1058. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1059. * src/AbstractAuthResolver.cc
  1060. * src/AbstractProxyRequestCommand.cc
  1061. * src/AuthConfigFactory.cc
  1062. * src/AuthConfigFactory.h
  1063. * src/HttpConnection.cc
  1064. * src/HttpRequest.cc
  1065. * src/HttpRequest.h
  1066. * src/HttpResponse.cc
  1067. * src/HttpResponseCommand.cc
  1068. * src/HttpSkipResponseCommand.cc
  1069. * test/AuthConfigFactoryTest.cc
  1070. * test/HttpRequestTest.cc
  1071. * test/HttpResponseTest.cc
  1072. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Remove leading "--" from help keyword and a substring after "="
  1074. from help keyword, so that one can query options by '-h--max-' or
  1075. '-hmax-peers=10'.
  1076. * src/option_processing.cc
  1077. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1078. Rewritten PStringVisitor and its implementation.
  1079. * src/PStringBuildVisitor.cc
  1080. * src/PStringBuildVisitor.h
  1081. * src/PStringDatum.h
  1082. * src/PStringNumLoop.h
  1083. * src/PStringSegment.cc
  1084. * src/PStringSegment.h
  1085. * src/PStringSelect.h
  1086. * src/PStringVisitor.h
  1087. * src/download_helper.cc
  1088. * test/PStringBuildVisitorTest.cc
  1089. * test/ParameterizedStringParserTest.cc
  1090. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Persist connection between the built-in HTTP server and a client
  1092. if a client supports keep-alive. Fixed the bug that aria2 exits
  1093. when the HTTP server receives EOF from a client.
  1094. * src/HttpServer.cc
  1095. * src/HttpServer.h
  1096. * src/HttpServerCommand.cc
  1097. * src/HttpServerCommand.h
  1098. * src/HttpServerResponseCommand.cc
  1099. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Added experimental built-in HTTP server. Currently, when a client
  1101. accesses to the server, it responds with the current download
  1102. progress. By default, it is disabled. To enable the server, give
  1103. --enable-http-server option. To change the default port number
  1104. for the server to listen to, use --http-server-listen-port option.
  1105. The response HTML is very simple and refreshes it self each 1
  1106. second. Because of this refresh, you see flicker in normal web
  1107. browser such as Firefox. I recommend to use console-based browser
  1108. such as elinks, w3m. To connect to the server, run 'elinks
  1109. http://localhost:6800/' while running aria2. Please replace port
  1110. number '6800'(which is default) with your preference.
  1111. * src/DownloadEngineFactory.cc
  1112. * src/HttpHeader.cc
  1113. * src/HttpHeader.h
  1114. * src/HttpHeaderProcessor.cc
  1115. * src/HttpHeaderProcessor.h
  1116. * src/HttpListenCommand.cc
  1117. * src/HttpListenCommand.h
  1118. * src/HttpServer.cc
  1119. * src/HttpServer.h
  1120. * src/HttpServerCommand.cc
  1121. * src/HttpServerCommand.h
  1122. * src/HttpServerResponseCommand.cc
  1123. * src/HttpServerResponseCommand.h
  1124. * src/Makefile.am
  1125. * src/OptionHandlerFactory.cc
  1126. * src/Util.cc
  1127. * src/Util.h
  1128. * src/help_tags.h
  1129. * src/option_processing.cc
  1130. * src/prefs.cc
  1131. * src/prefs.h
  1132. * src/usage_text.h
  1133. * test/HttpHeaderProcessorTest.cc
  1134. * test/UtilTest.cc
  1135. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Removed.
  1137. * src/CheckIntegrityMan.cc
  1138. * src/FileAllocationMan.cc
  1139. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Made (piece) hash check sequential for each RequestGroup because
  1141. simultaneous hash check is slower than sequential execution.
  1142. * src/CheckIntegrityCommand.cc
  1143. * src/CheckIntegrityDispatcherCommand.cc
  1144. * src/CheckIntegrityDispatcherCommand.h
  1145. * src/CheckIntegrityMan.h
  1146. * src/ConsoleStatCalc.cc
  1147. * src/DownloadCommand.cc
  1148. * src/DownloadEngine.cc
  1149. * src/DownloadEngine.h
  1150. * src/DownloadEngineFactory.cc
  1151. * src/Makefile.am
  1152. * src/Makefile.in
  1153. * src/RequestGroup.cc
  1154. * src/StatCalc.h
  1155. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1157. SequentialDispatcherCommand.
  1158. * src/FileAllocationDispatcherCommand.cc
  1159. * src/SequentialDispatcherCommand.h
  1160. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Rewritten FileAllocationDispatcherCommand using brand new
  1162. SequentialDispatcherCommand.
  1163. * src/DownloadEngineFactory.cc
  1164. * src/FileAllocationCommand.cc
  1165. * src/FileAllocationDispatcherCommand.cc
  1166. * src/FileAllocationDispatcherCommand.h
  1167. * src/Makefile.am
  1168. * src/SequentialDispatcherCommand.h
  1169. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Replaced FileAllocationMan with
  1171. SequentialPicker<FileAllocationEntry>.
  1172. * src/BtCheckIntegrityEntry.cc
  1173. * src/ConsoleStatCalc.cc
  1174. * src/DownloadEngine.cc
  1175. * src/DownloadEngine.h
  1176. * src/DownloadEngineFactory.cc
  1177. * src/FileAllocationCommand.cc
  1178. * src/FileAllocationDispatcherCommand.cc
  1179. * src/FileAllocationMan.h
  1180. * src/Makefile.am
  1181. * src/SequentialPicker.h
  1182. * src/StatCalc.h
  1183. * src/StreamCheckIntegrityEntry.cc
  1184. * test/Makefile.am
  1185. * test/SequentialPickerTest.cc
  1186. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Added doc for adaptive URI selector.
  1188. * doc/aria2c.1.txt
  1189. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Added doc for adaptive URI selector.
  1191. * src/usage_text.h
  1192. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Added doc for --bt-max-peers option.
  1194. * doc/aria2c.1.txt
  1195. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Added doc for --bt-hash-check-seed option.
  1197. * doc/aria2c.1.txt
  1198. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Documented exit codes.
  1200. * doc/aria2c.1.txt
  1201. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Added --bt-max-peers option to specify the maximum number of peers
  1203. per torrent. 0 means unlimited number of peers.
  1204. * src/ActivePeerConnectionCommand.cc
  1205. * src/BtRuntime.h
  1206. * src/DefaultPeerStorage.cc
  1207. * src/DefaultPeerStorage.h
  1208. * src/OptionHandlerFactory.cc
  1209. * src/RequestGroup.cc
  1210. * src/option_processing.cc
  1211. * src/prefs.cc
  1212. * src/prefs.h
  1213. * src/usage_text.h
  1214. * test/DefaultPeerStorageTest.cc
  1215. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Added --bt-hash-check-seed option. If true is given to this
  1217. option, after hash check using --check-integrity option and file
  1218. is complete, continue to seed file. If you want to check file and
  1219. download it only when it is damaged or incomplete, set this option
  1220. to false. This option has effect only on BitTorrent download.
  1221. The default value is true(This is the same behavior with the
  1222. previous release).
  1223. * src/BtCheckIntegrityEntry.cc
  1224. * src/OptionHandlerFactory.cc
  1225. * src/option_processing.cc
  1226. * src/prefs.cc
  1227. * src/prefs.h
  1228. * src/usage_text.h
  1229. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Updated copyright year.
  1231. * src/version_usage.cc
  1232. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1234. * doc/aria2c.1.txt
  1235. * src/usage_text.h
  1236. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Made the max value of split option unlimited.
  1238. * doc/aria2c.1.txt
  1239. * src/OptionHandlerFactory.cc
  1240. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Fixed compile warning/error.
  1242. * src/DownloadResult.h
  1243. * src/HttpDownloadCommand.cc
  1244. * src/ServerStat.cc
  1245. * test/RequestGroupTest.cc
  1246. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Added --event-poll option to select the method for polling events.
  1248. The available methods are "select" and "epoll". "epoll" is
  1249. available on Linux only. The earlier release has the compile
  1250. option to choose from these methods.
  1251. * configure.ac
  1252. * src/RequestGroupMan.cc
  1253. * src/OptionHandlerFactory.cc
  1254. * src/EpollEventPoll.h
  1255. * src/StreamFileAllocationEntry.cc
  1256. * src/a2io.h
  1257. * src/SelectEventPoll.h
  1258. * src/option_processing.cc
  1259. * src/prefs.h
  1260. * src/EpollEventPoll.cc
  1261. * src/EventPoll.h
  1262. * src/SocketCore.h
  1263. * src/Makefile.am
  1264. * src/main.cc
  1265. * src/DownloadEngine.h
  1266. * src/SelectEventPoll.cc
  1267. * src/DownloadEngine.cc
  1268. * src/SocketCore.cc
  1269. * src/DownloadEngineFactory.cc
  1270. * src/Makefile.in
  1271. * src/prefs.cc
  1272. * src/usage_text.h
  1273. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Included RecoverableException.h from main.cc
  1275. * src/main.cc
  1276. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1278. now returns last error encountered in the HTTP/FTP downloads as a
  1279. exit status value. If all downloads finished successfully, aria2
  1280. returns 0. The error code is defined in src/DownloadResult.h.
  1281. The error occurred in the download currently in progress is not
  1282. reported as a last error. If no error has encountered but there
  1283. are in progress or waiting downloads, aria2 returns 7.
  1284. * src/AbstractCommand.cc
  1285. * src/DlAbortEx.h
  1286. * src/DlRetryEx.h
  1287. * src/DownloadCommand.cc
  1288. * src/DownloadFailureException.h
  1289. * src/DownloadResult.h
  1290. * src/FtpNegotiationCommand.cc
  1291. * src/HttpSkipResponseCommand.cc
  1292. * src/Makefile.am
  1293. * src/MultiUrlRequestInfo.cc
  1294. * src/MultiUrlRequestInfo.h
  1295. * src/RecoverableException.h
  1296. * src/RequestGroup.cc
  1297. * src/RequestGroup.h
  1298. * src/RequestGroupMan.cc
  1299. * src/RequestGroupMan.h
  1300. * src/URIResult.cc
  1301. * src/URIResult.h
  1302. * src/main.cc
  1303. * src/option_processing.cc
  1304. * test/RequestGroupTest.cc
  1305. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1307. patch adds AdaptiveURISelector, which selects one of the bests
  1308. mirrors for first and reserved connections. For supplementary
  1309. ones, it returns mirrors which has not been tested yet, and if
  1310. each of them already tested, returns mirrors which has to be
  1311. tested again. Otherwise, it doesn't return anymore mirrors.
  1312. * src/AdaptiveURISelector.cc
  1313. * src/AdaptiveURISelector.h
  1314. * src/FtpNegotiationCommand.cc
  1315. * src/HttpResponseCommand.cc
  1316. * src/Makefile.am
  1317. * src/Makefile.in
  1318. * src/OptionHandlerFactory.cc
  1319. * src/RequestGroup.cc
  1320. * src/RequestGroup.h
  1321. * src/RequestGroupMan.cc
  1322. * src/ServerStat.cc
  1323. * src/ServerStat.h
  1324. * src/ServerStatMan.cc
  1325. * src/SpeedCalc.cc
  1326. * src/URISelector.h
  1327. * src/prefs.cc
  1328. * src/prefs.h
  1329. * test/RequestGroupManTest.cc
  1330. * test/ServerStatManTest.cc
  1331. * test/ServerStatTest.cc
  1332. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Fixed unit test error.
  1334. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1335. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. * Release 1.1.2
  1337. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Updated Russian translation. Thanks to the translators.
  1339. * po/ru.po
  1340. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added the description of --use-head option to man page.
  1342. * doc/aria2c.1.txt
  1343. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Bump up version number to 1.1.2
  1345. * configure.ac
  1346. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Added --use-head option to toggle whether HEAD method should be
  1348. used in the first HTTP request. By default aria2 uses HEAD method
  1349. as the first request. When the server doesn't recognize HEAD, then
  1350. give aria2 --use-head=false to force aria2 to use GET method
  1351. instead.
  1352. * src/OptionHandlerFactory.cc
  1353. * src/RequestGroupMan.cc
  1354. * src/option_processing.cc
  1355. * src/prefs.cc
  1356. * src/prefs.h
  1357. * src/usage_text.h
  1358. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1360. message is received before CHOKE message. The old implementation
  1361. doen't clear the use-bit of the piece when recieved REJECT
  1362. message.
  1363. * src/DefaultBtMessageDispatcher.cc
  1364. * test/DefaultBtMessageDispatcherTest.cc
  1365. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. * Release 1.1.1
  1367. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Bump up version number to 1.1.1.
  1369. * configure.ac
  1370. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1372. is printed repeatedly.
  1373. * src/ConsoleStatCalc.cc
  1374. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. * Release 1.1.0
  1376. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Added ifdef clause for conditional compilation.
  1378. * src/main.cc
  1379. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1381. translations. Thanks to all translators.
  1382. * po/ja.po
  1383. * po/ru.po
  1384. * po/uk.po
  1385. * po/zh_CN.po
  1386. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Added the preceding ">>> " before the message "Printing the
  1388. contents of file..." to make the output more readable.
  1389. * src/main.cc
  1390. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Added try-catch block in the loop in showFiles() to continue the
  1392. operation even if the exception occurred in one file.
  1393. * src/main.cc (showFiles)
  1394. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Made messages in showFiles() translatable.
  1396. * po/aria2.pot
  1397. * src/main.cc
  1398. * src/message.h
  1399. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Print the contents of Torrent/Metalink files are printed without
  1401. -T/-M options.
  1402. * src/main.cc
  1403. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Escaped '--' with '\--'
  1405. * README
  1406. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Updated "How to build" section in README. Mentioned about
  1408. --with-ca-bundle compile option.
  1409. * README
  1410. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Bump up version number to 1.1.0.
  1412. * configure.ac
  1413. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Added a note for --dht-listen-port option.
  1415. * doc/aria2c.1.txt
  1416. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Update doc for --realtime-chunk-checksum option.
  1418. * doc/aria2c.1.txt
  1419. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Update doc for --realtime-chunk-checksum option.
  1421. * src/usage_text.h
  1422. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Updated French, Japanese, Russian and Ukrainian translations.
  1424. Thanks to all translators.
  1425. * po/fr.po
  1426. * po/ja.po
  1427. * po/ru.po
  1428. * po/uk.po
  1429. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Renamed aria2c.pot to aria2.pot
  1431. * po/aria2.pot
  1432. * po/aria2c.pot: Removed.
  1433. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Removed MetaEntry.h
  1435. * src/Makefile.am
  1436. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Rename file by appending digits if a local file exists and its
  1438. file size is larger than that of remote file with --continue
  1439. option. The old implementation just throws exception in such case.
  1440. * src/RequestGroup.cc
  1441. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Fixed the bug that download progress summary is not printed in the
  1443. interval specified by the option.
  1444. * src/ConsoleStatCalc.cc
  1445. * src/ConsoleStatCalc.h
  1446. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Fixed compiler warning
  1448. * src/Cookie.cc
  1449. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Fixed the cookie implementation based on RFC2965.
  1451. Now if a value in domain field is not started with dot, then
  1452. prepend dot. That means a cookie with domain=sf.net is sent to
  1453. wiki.sf.net.
  1454. * src/Cookie.cc
  1455. * test/CookieParserTest.cc
  1456. * test/CookieStorageTest.cc
  1457. * test/CookieTest.cc
  1458. * test/NsCookieParserTest.cc
  1459. * test/Sqlite3MozCookieParserTest.cc
  1460. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1462. is enabled and the server doesn't support keep-alive.
  1463. * src/AbstractCommand.cc
  1464. * src/DownloadCommand.cc
  1465. * src/HttpDownloadCommand.cc
  1466. * src/HttpDownloadCommand.h
  1467. * src/HttpResponseCommand.cc
  1468. * src/Request.cc
  1469. * src/Request.h
  1470. * test/RequestTest.cc
  1471. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Removed Dictionary/List/Data and its related classes.
  1473. * src/BencodeVisitor.cc: Removed.
  1474. * src/BencodeVisitor.h: Removed.
  1475. * src/Data.cc: Removed.
  1476. * src/Data.h: Removed.
  1477. * src/Dictionary.cc: Removed.
  1478. * src/Dictionary.h: Removed.
  1479. * src/List.cc: Removed.
  1480. * src/List.h: Removed.
  1481. * src/Makefile.am
  1482. * src/MetaEntry.h: Removed.
  1483. * src/MetaEntryVisitor.h: Removed.
  1484. * src/MetaFileUtil.cc: Removed.
  1485. * src/MetaFileUtil.h: Removed.
  1486. * test/BencodeVisitorTest.cc: Removed.
  1487. * test/DataTest.cc: Removed.
  1488. * test/DictionaryTest.cc: Removed.
  1489. * test/ListTest.cc: Removed.
  1490. * test/Makefile.am
  1491. * test/MetaFileUtilTest.cc: Removed.
  1492. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Removed include of MetaEntry.h
  1494. * test/DHTMessageTrackerEntryTest.cc
  1495. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Use BDE instead of Dictionary/List/Data.
  1497. * src/AnnounceList.cc
  1498. * src/AnnounceList.h
  1499. * test/AnnounceListTest.cc
  1500. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Use BDE instead of Dictionary/List/Data.
  1502. * src/DHTAbstractMessage.cc
  1503. * src/DHTAbstractMessage.h
  1504. * src/DHTAnnouncePeerMessage.cc
  1505. * src/DHTAnnouncePeerMessage.h
  1506. * src/DHTAnnouncePeerReplyMessage.cc
  1507. * src/DHTAnnouncePeerReplyMessage.h
  1508. * src/DHTFindNodeMessage.cc
  1509. * src/DHTFindNodeMessage.h
  1510. * src/DHTFindNodeReplyMessage.cc
  1511. * src/DHTFindNodeReplyMessage.h
  1512. * src/DHTGetPeersMessage.cc
  1513. * src/DHTGetPeersMessage.h
  1514. * src/DHTGetPeersReplyMessage.cc
  1515. * src/DHTGetPeersReplyMessage.h
  1516. * src/DHTMessageFactory.h
  1517. * src/DHTMessageFactoryImpl.cc
  1518. * src/DHTMessageFactoryImpl.h
  1519. * src/DHTMessageReceiver.cc
  1520. * src/DHTMessageTracker.cc
  1521. * src/DHTMessageTracker.h
  1522. * src/DHTPingMessage.cc
  1523. * src/DHTPingMessage.h
  1524. * src/DHTPingReplyMessage.cc
  1525. * src/DHTPingReplyMessage.h
  1526. * src/DHTQueryMessage.cc
  1527. * src/DHTQueryMessage.h
  1528. * src/DHTResponseMessage.cc
  1529. * src/DHTResponseMessage.h
  1530. * test/DHTAnnouncePeerMessageTest.cc
  1531. * test/DHTAnnouncePeerReplyMessageTest.cc
  1532. * test/DHTFindNodeMessageTest.cc
  1533. * test/DHTFindNodeReplyMessageTest.cc
  1534. * test/DHTGetPeersMessageTest.cc
  1535. * test/DHTGetPeersReplyMessageTest.cc
  1536. * test/DHTMessageFactoryImplTest.cc
  1537. * test/DHTMessageTrackerTest.cc
  1538. * test/DHTPingMessageTest.cc
  1539. * test/DHTPingReplyMessageTest.cc
  1540. * test/MockDHTMessageFactory.h
  1541. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Added tests the case where length < 0 is specified.
  1543. * test/BencodeTest.cc
  1544. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Fixed memory leak in decoderawstring()
  1546. * src/bencode.cc
  1547. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Added missing #ifdef guard. Added uc() function for String and
  1549. removeKey() for Dict.
  1550. * src/bencode.cc
  1551. * src/bencode.h
  1552. * test/BencodeTest.cc
  1553. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Use BDE instead of Dictionary/List/Data.
  1555. * src/HandshakeExtensionMessage.cc
  1556. * src/HandshakeExtensionMessage.h
  1557. * test/HandshakeExtensionMessageTest.cc
  1558. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Added --max-overall-upload-limit option. This option limits the
  1560. overall upload speed. Stated in help message that the existing
  1561. --max-upload-limit option limits the upload speed per each
  1562. torrent. Man page is also updated.
  1563. * doc/aria2c.1.txt
  1564. * src/DefaultBtMessageDispatcher.cc
  1565. * src/DefaultBtMessageDispatcher.h
  1566. * src/OptionHandlerFactory.cc
  1567. * src/PeerInteractionCommand.cc
  1568. * src/option_processing.cc
  1569. * src/prefs.cc
  1570. * src/prefs.h
  1571. * src/usage_text.h
  1572. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Use BDE instead of Dictionary/List/Data classes.
  1574. * src/CompactPeerListProcessor.cc
  1575. * src/CompactPeerListProcessor.h
  1576. * src/DefaultBtAnnounce.cc
  1577. * src/DefaultBtContext.cc
  1578. * src/DefaultBtContext.h
  1579. * src/DefaultPeerListProcessor.cc
  1580. * src/DefaultPeerListProcessor.h
  1581. * src/DelegatingPeerListProcessor.cc
  1582. * src/DelegatingPeerListProcessor.h
  1583. * src/PeerListProcessor.h
  1584. * src/UTPexExtensionMessage.cc
  1585. * src/Util.h
  1586. * src/message.h
  1587. * test/DefaultBtContextTest.cc
  1588. * test/DefaultPeerListProcessorTest.cc
  1589. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Added bencode helper functions and BDE class.
  1591. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1592. * src/Makefile.am
  1593. * src/bencode.cc
  1594. * src/bencode.h
  1595. * test/BencodeTest.cc
  1596. * test/Makefile.am
  1597. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Fixed the bug that bad URI is sent to the tracker when the announe
  1599. URI in torrent file includes query.
  1600. * src/DefaultBtAnnounce.cc
  1601. * test/DefaultBtAnnounceTest.cc
  1602. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Added Option::blank().
  1604. Use !Option::blank(name) instead of Option::defined(name) for
  1605. the options that take filename.
  1606. * src/MultiUrlRequestInfo.cc
  1607. * src/Option.cc
  1608. * src/Option.h
  1609. * src/main.cc
  1610. * src/option_processing.cc
  1611. * test/OptionTest.cc
  1612. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Documented the default value of --check-certificate option in man
  1614. page.
  1615. * doc/aria2c.1.txt
  1616. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Enabled --check-certificate by default. Added compile
  1618. time(configure) option --with-ca-bundle to specify CA bundle.
  1619. Warn if --check-certificate=true and --ca-certificate is not
  1620. specified or loading CA certificate is failed.
  1621. * configure.ac
  1622. * src/MultiUrlRequestInfo.cc
  1623. * src/OptionHandlerFactory.cc
  1624. * src/message.h
  1625. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Mentioned https tag in help option.
  1627. * doc/aria2c.1.txt
  1628. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Added `https' tag to help option category. Added https tag to
  1630. --ca-certificate, --certificate, --check-certificate and
  1631. --private-key option.
  1632. * src/OptionHandlerFactory.cc
  1633. * src/help_tags.h
  1634. * src/option_processing.cc
  1635. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Changed the package name from `aria2c' to `aria2' in order to fix
  1637. the packaging issue in Debian and Fedora. The name of the
  1638. executable is not changed.
  1639. * configure.ac
  1640. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Fixed typos
  1642. * src/usage_text.h
  1643. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Fixed typos and updated doc.
  1645. * README
  1646. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Fixed typos
  1648. * doc/aria2c.1.txt
  1649. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Fixed typos
  1651. * src/usage_text.h
  1652. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Print a message when no files to download.
  1654. * src/download_helper.cc
  1655. * src/main.cc
  1656. * src/message.h
  1657. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. RFC3986 complied Percent-Encoding(urlencode).
  1659. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1660. ones.
  1661. * src/Request.cc
  1662. * src/Util.cc
  1663. * src/Util.h
  1664. * test/BtHandshakeMessageTest.cc
  1665. * test/DefaultBtAnnounceTest.cc
  1666. * test/DefaultBtContextTest.cc
  1667. * test/RequestTest.cc
  1668. * test/UtilTest.cc
  1669. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Fixed the bug that prevents aria2 from downloading 0-length files
  1671. via HTTP/FTP.
  1672. * src/DefaultBtContext.cc
  1673. * src/DefaultBtContext.h
  1674. * src/DownloadContext.h
  1675. * src/FtpNegotiationCommand.cc
  1676. * src/HttpResponseCommand.cc
  1677. * src/HttpResponseCommand.h
  1678. * src/RequestGroup.cc
  1679. * src/SingleFileDownloadContext.cc
  1680. * src/SingleFileDownloadContext.h
  1681. * test/BtPostDownloadHandlerTest.cc
  1682. * test/MetalinkPostDownloadHandlerTest.cc
  1683. * test/MockBtContext.h
  1684. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1686. * src/option_processing.cc
  1687. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Applied aria2-1.0.1-mingw.patch.
  1689. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1690. mingw.
  1691. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1692. * src/SocketCore.cc
  1693. * src/a2netcompat.h
  1694. * test/SocketCoreTest.cc
  1695. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. * Release 1.0.1
  1697. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Updated Ukrainian and Norwegian Nynorsk translations.
  1699. Thanks to all translators.
  1700. * po/nn.po
  1701. * po/uk.po
  1702. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Don't show download result when -S option is used.
  1704. * src/main.cc
  1705. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Bump up version number to 1.0.1
  1707. * configure.ac
  1708. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Closed files after the test cases in MultiDiskWriterTest::
  1710. testResetDiskWriterEntries(). This will fix the unit test error
  1711. in mingw32 build.
  1712. * test/MultiDiskWriterTest.cc
  1713. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Use HEAD method to get file size from HTTP server for segmented
  1715. downloading.
  1716. The request to the BitTorrent Tracker always uses GET method because
  1717. the response of the tracker is small and it doesn't need segmented
  1718. download.
  1719. * src/FtpNegotiationCommand.cc
  1720. * src/HttpRequest.cc
  1721. * src/HttpResponseCommand.cc
  1722. * src/HttpSkipResponseCommand.cc
  1723. * src/RequestGroup.cc
  1724. * src/RequestGroup.h
  1725. * src/TrackerWatcherCommand.cc
  1726. * test/HttpRequestTest.cc
  1727. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Fixed the bug that causes floating exception when -T option is used and
  1729. no URIs are given.
  1730. * src/download_helper.cc
  1731. * test/DownloadHelperTest.cc
  1732. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1733. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1734. errors in MinGW:
  1735. Closed file after saving server stats (RequestGroupMan.cc)
  1736. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1737. Ignored case & handled 2-digit years (strptime.c)
  1738. Added missing suseconds_t definition (a2time.h)
  1739. Fixed socket CLOSE() define (SocketCore.cc)
  1740. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1741. Changed utime() test values from x000 to x00000 as MinGW failed on
  1742. values less than timezone offset from Unix epoch
  1743. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1744. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1745. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1746. handle negative dates (CookieParserTest.cc)
  1747. * src/a2time.h
  1748. * src/FtpConnection.cc
  1749. * src/RequestGroupMan.cc
  1750. * src/SocketCore.cc
  1751. * src/strptime.c
  1752. * test/CookieParserTest.cc
  1753. * test/CopyDiskAdaptorTest.cc
  1754. * test/FileTest.cc
  1755. * test/FtpConnectionTest.cc
  1756. * test/MultiDiskAdaptorTest.cc
  1757. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1759. * doc/aria2c.1.txt
  1760. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. * Release 1.0.0
  1762. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Added '~' to reserved characters.
  1764. * src/Util.cc
  1765. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Do not urlencode Request::url in setUrl() because we want unmodified
  1767. URL using Request::getUrl()
  1768. * src/Request.cc
  1769. * src/Request.h
  1770. * test/RequestTest.cc
  1771. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1773. Thanks to all translators.
  1774. * po/bg.po
  1775. * po/fr.po
  1776. * po/ja.po
  1777. * po/ru.po
  1778. * po/uk.po
  1779. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Bump up version number to 1.0.0
  1781. * configure.ac
  1782. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Added nosqlite3 build to build_test.sh.
  1784. Renamed noxml as expat.
  1785. * build_test.sh
  1786. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Updated INPUT FILE section.
  1788. * doc/aria2c.1.txt
  1789. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1791. on big endian systems because test .aria2 files are made for little
  1792. endian systems.
  1793. * test/DefaultBtProgressInfoFileTest.cc
  1794. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Dropped ares support.
  1796. * README
  1797. * configure.ac
  1798. * m4/libares.m4: Removed.
  1799. * src/AsyncNameResolver.cc
  1800. * src/Makefile.am
  1801. * test/Makefile.am
  1802. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1804. Removed const qualifier from DiskWriter::size().
  1805. * src/AbstractDiskWriter.cc
  1806. * src/AbstractDiskWriter.h
  1807. * src/ByteArrayDiskWriter.cc
  1808. * src/ByteArrayDiskWriter.h
  1809. * src/DiskWriter.h
  1810. * test/ByteArrayDiskWriterTest.cc
  1811. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Fixed the bug that causes segmentation fault/bus error during executing
  1813. choking algorithm while seeding. This is caused by improper
  1814. implementation of compare function which returns inconsistent results
  1815. depending on the timing of last unchoke.
  1816. * src/BtSeederStateChoke.cc
  1817. * src/BtSeederStateChoke.h
  1818. * src/DefaultPeerStorage.cc
  1819. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Removed TODO
  1821. * TODO
  1822. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Added a section that explains how to pass argument to options that
  1824. takes optional arguments with its short form.
  1825. * doc/aria2c.1.txt
  1826. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Added -u for the short form of --max-upload-limit option.
  1828. * doc/aria2c.1.txt
  1829. * src/option_processing.cc
  1830. * src/usage_text.h
  1831. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Added -V for the short form of --check-integrity option.
  1833. Now the argument of --check-integrity option is optional:
  1834. if it is omitted, it is evaluated as true.
  1835. * doc/aria2c.1.txt
  1836. * src/option_processing.cc
  1837. * src/usage_text.h
  1838. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Made the default value of --ftp-pasv option set to true and it can take
  1840. true/false values.
  1841. * src/OptionHandlerFactory.cc
  1842. * src/option_processing.cc
  1843. * src/usage_text.h
  1844. * doc/aria2c.1.txt
  1845. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Given custom random number generator to std::random_shuffle.
  1847. * src/AnnounceList.cc
  1848. * src/BtLeecherStateChoke.cc
  1849. * src/BtSeederStateChoke.cc
  1850. * src/DefaultBtRequestFactory.cc
  1851. * src/MetalinkEntry.cc
  1852. * src/RarestPieceSelector.cc
  1853. * src/SimpleRandomizer.cc
  1854. * src/SimpleRandomizer.h
  1855. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Now the default value of --enable-direct-io is true.
  1857. * src/OptionHandlerFactory.cc
  1858. * doc/aria2c.1.txt
  1859. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Erase peer before executing onReturningPeer and onErasingPeer
  1861. because choking algorithm called from onReturningPeer doesn't
  1862. like erasing peer in the active peer list.
  1863. * src/DefaultPeerStorage.cc
  1864. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Instead of creating special filename in createDownloadResult() if
  1866. inMemoryDownload() is true, now it is done in getFilePath().
  1867. * src/RequestGroup.cc
  1868. * test/RequestGroupTest.cc
  1869. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1871. processed in memory. This is the fix for previous comment out.
  1872. * src/MemoryBufferPreDownloadHandler.cc
  1873. * src/RequestGroup.cc
  1874. * src/RequestGroup.h
  1875. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Commented out the code which sets virtual directory path "[MEMORY]"
  1877. propagate directory to store to following RequestGroup.
  1878. * src/MemoryBufferPreDownloadHandler.cc
  1879. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Bump up version number to 1.0.0b
  1881. * configure.ac
  1882. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Added input_uris.txt to EXTRA_DIST
  1884. * test/Makefile.am
  1885. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1886. Removed PeerObject.h from Makefile.am
  1887. * src/Makefile.am
  1888. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Avoid slow seeding
  1890. * src/PeerInteractionCommand.cc
  1891. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Updated usage for -i option.
  1893. * src/usage_text.h (TEXT_INPUT_FILE)
  1894. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Added INPUT FILE section to man page.
  1896. Escaped fake URLs.
  1897. * doc/aria2c.1.txt
  1898. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Fixed wrong note position for -o option.
  1900. * doc/aria2c.1.txt
  1901. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1902. Fixed compile error without SSL/XML library.
  1903. * src/DefaultBtProgressInfoFile.cc
  1904. * src/DefaultBtProgressInfoFile.h
  1905. * src/FileMetalinkParserState.cc
  1906. * src/RequestGroup.h
  1907. * src/SocketCore.cc
  1908. * src/SocketCore.h
  1909. * src/VerificationMetalinkParserState.cc
  1910. * src/download_helper.h
  1911. * src/main.cc
  1912. * test/DefaultBtProgressInfoFileTest.cc
  1913. * test/DownloadHelperTest.cc
  1914. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Rewritten URI handling functions. They are now provided as a testable
  1916. functions.
  1917. * src/Makefile.am
  1918. * src/RequestGroup.cc
  1919. * src/RequestGroup.h
  1920. * src/download_helper.cc
  1921. * src/download_helper.h
  1922. * src/main.cc
  1923. * test/DownloadHelperTest.cc
  1924. * test/Makefile.am
  1925. * test/input_uris.txt
  1926. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Quickly terminate commands when ctrl-c is pressed.
  1928. * src/DownloadEngine.cc
  1929. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Quickly terminate idle commands when download finished.
  1931. * src/AbstractCommand.cc
  1932. * src/DownloadCommand.cc
  1933. * src/DownloadEngine.cc
  1934. * src/DownloadEngine.h
  1935. * src/SleepCommand.cc
  1936. * src/SleepCommand.h
  1937. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Added the ability to specify output filename and directory in input
  1939. file.
  1940. Additional parameters are added in the following line of URIs
  1941. with proceeding white space(s), 1 parameter in 1 line.
  1942. The parameter names are the same with the command-line option name
  1943. without proceeding "--". Not all the options are available here:
  1944. at the moment, 'dir' and 'out' options are avialable.
  1945. Please note that out option has no effect against Metalink or BitTorrent
  1946. downloads.
  1947. Example input file:
  1948. http://host/foo-1.1.tar.bz2
  1949. out=foo.tar.bz2
  1950. dir=/tmp/downloads
  1951. http://host/thundermonkey-2.0.tar.bz2
  1952. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1953. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1954. thundermonkey-2.0.tar.bz2 is saved as
  1955. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1956. * src/BtPostDownloadHandler.cc
  1957. * src/Metalink2RequestGroup.cc
  1958. * src/Metalink2RequestGroup.h
  1959. * src/MetalinkPostDownloadHandler.cc
  1960. * src/UriListParser.cc
  1961. * src/UriListParser.h
  1962. * src/main.cc
  1963. * test/Metalink2RequestGroupTest.cc
  1964. * test/UriListParserTest.cc
  1965. * test/filelist1.txt
  1966. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Fixed error when SSL library is not found.
  1968. * configure.ac
  1969. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Cross referenced among -s, -C and -j options.
  1971. Updated usage of -C and -s options.
  1972. * src/usage_text.h
  1973. * doc/aria2c.1.txt
  1974. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. Fixed bad cast in 32bit platforms.
  1976. * test/DefaultPieceStorageTest.cc
  1977. (DefaultPieceStorageTest::testGetCompletedLength)
  1978. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Fixed unit test fails on 32bit platforms.
  1980. * test/CookieParserTest.cc
  1981. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Show an average download speed in Download results.
  1983. * src/BtFileAllocationEntry.cc
  1984. * src/DefaultPieceStorage.cc
  1985. * src/DownloadContext.cc
  1986. * src/DownloadContext.h
  1987. * src/DownloadResult.h
  1988. * src/RequestGroup.cc
  1989. * src/RequestGroupMan.cc
  1990. * src/StreamFileAllocationEntry.cc
  1991. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Fixed the bug that metalink file is not processed if Content-Type
  1993. field has a paramter.
  1994. * src/HttpResponse.cc
  1995. * src/HttpResponse.h
  1996. * test/HttpResponseTest.cc
  1997. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Removed unused code.
  1999. * src/DefaultBtAnnounce.cc
  2000. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2002. the value larger than DefaultPieceStorage::getTotalLength() when
  2003. in flight pieces are involved.
  2004. * src/DefaultPieceStorage.cc
  2005. * test/DefaultPieceStorageTest.cc
  2006. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Bump up version number to 1.0.0a.
  2008. * configure.ac
  2009. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Updated configure.ac
  2011. * configure.ac
  2012. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Added usege for proxy.
  2014. * doc/aria2c.1.txt
  2015. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Added usage for --ca-certificate, --certificate, --private-key and
  2017. --check-certificate options.
  2018. * doc/aria2c.1.txt
  2019. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Updated man page
  2021. * doc/aria2c.1.txt
  2022. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Added --no-proxy option. It receives comman separated hostname or
  2024. domains to which proxy should not be used.
  2025. aria2 honors the environment variable no_proxy to override no-proxy
  2026. value in configuration file. The user can override the environment
  2027. variable no_proxy with --no-proxy command-line option.
  2028. * src/AbstractCommand.cc
  2029. * src/OptionHandlerFactory.cc
  2030. * src/option_processing.cc
  2031. * src/prefs.cc
  2032. * src/prefs.h
  2033. * src/usage_text.h
  2034. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2036. The CA certificates are specified in --ca-certificate option.
  2037. By default, the verification is disabled. Use --check-certificate
  2038. option to enable it.
  2039. * src/HttpRequestCommand.cc
  2040. * src/LibgnutlsTLSContext.cc
  2041. * src/LibgnutlsTLSContext.h
  2042. * src/LibsslTLSContext.cc
  2043. * src/LibsslTLSContext.h
  2044. * src/MultiUrlRequestInfo.cc
  2045. * src/OptionHandlerFactory.cc
  2046. * src/SocketCore.cc
  2047. * src/SocketCore.h
  2048. * src/a2functional.h
  2049. * src/message.h
  2050. * src/option_processing.cc
  2051. * src/prefs.cc
  2052. * src/prefs.h
  2053. * src/usage_text.h
  2054. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Added client certificate authentication for SSL/TLS.
  2056. Currently a private key must be decrypted for use with aria2.
  2057. If a user accidentally gives encrypted file to aria2 then following
  2058. thing happens:
  2059. If encrypted private key is given to aria2, it behaves differently
  2060. depending on the ssl library it uses. If aria2 built with openssl then
  2061. openssl prompts the user for password. If aria2 build with gnutls then
  2062. aria2 exists with error at start up.
  2063. * src/DownloadEngineFactory.cc
  2064. * src/MultiUrlRequestInfo.cc
  2065. * src/OptionHandlerFactory.cc
  2066. * src/option_processing.cc
  2067. * src/prefs.cc
  2068. * src/prefs.h
  2069. * src/usage_text.h
  2070. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Introduced TLSContext that holds TLS related data that can be shared
  2072. with multiple SSL connections.
  2073. * src/DownloadEngineFactory.cc
  2074. * src/LibgnutlsTLSContext.cc
  2075. * src/LibgnutlsTLSContext.h
  2076. * src/LibsslTLSContext.cc
  2077. * src/LibsslTLSContext.h
  2078. * src/Makefile.am
  2079. * src/SocketCore.cc
  2080. * src/SocketCore.h
  2081. * src/TLSContext.h
  2082. * src/message.h
  2083. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Fixed the bug that the DiskWriter of the first FileEntry whose
  2085. `needsFileAllocation' property is false is not created
  2086. even if it shares a piece with next FileEntry which `requested' property
  2087. is true.
  2088. Fixed the bug that zero-length file is not created if pre file
  2089. allocation is not done.
  2090. * src/MultiDiskAdaptor.cc
  2091. * src/MultiDiskAdaptor.h
  2092. * test/MultiDiskAdaptorTest.cc
  2093. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2094. Added the ability to pool proxy connection.
  2095. The conneciton in FTP with proxy-method=GET is not pooled.
  2096. Proxy-Connection header will not be sent when sending CONNECT method.
  2097. * src/DownloadEngine.cc
  2098. * src/DownloadEngine.h
  2099. * src/FtpFinishDownloadCommand.cc
  2100. * src/FtpInitiateConnectionCommand.cc
  2101. * src/FtpNegotiationCommand.cc
  2102. * src/HttpDownloadCommand.cc
  2103. * src/HttpInitiateConnectionCommand.cc
  2104. * src/HttpRequest.cc
  2105. * src/HttpRequest.h
  2106. * src/HttpResponse.cc
  2107. * src/HttpSkipResponseCommand.cc
  2108. * test/HttpRequestTest.cc
  2109. * test/HttpResponseTest.cc
  2110. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2111. Handle date before epoch.
  2112. To create *bad* Time object, call Time::null().
  2113. * src/CookieParser.cc
  2114. * src/FtpConnection.cc
  2115. * src/FtpConnection.h
  2116. * src/FtpNegotiationCommand.cc
  2117. * src/RequestGroup.cc
  2118. * src/TimeA2.cc
  2119. * src/TimeA2.h
  2120. * test/CookieParserTest.cc
  2121. * test/FtpConnectionTest.cc
  2122. * test/TimeTest.cc
  2123. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2124. Added support for following envrionment variables: http_proxy,
  2125. https_proxy, ftp_proxy and all_proxy.
  2126. Each variable is equivalent to the aria2 option whose name is the
  2127. variable name with '_' replaced with '-'.
  2128. They overrides options specified in aria2.conf file.
  2129. The envrionment variables can be overrode using command-line option.
  2130. * src/option_processing.cc
  2131. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2132. Renamed --http-proxy-method as --proxy-method.
  2133. * src/AbstractCommand.cc
  2134. * src/FtpInitiateConnectionCommand.cc
  2135. * src/HttpInitiateConnectionCommand.cc
  2136. * src/OptionHandlerFactory.cc
  2137. * src/option_processing.cc
  2138. * src/prefs.cc
  2139. * src/prefs.h
  2140. * src/usage_text.h
  2141. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2142. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2143. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2144. Above 3 options and --http-proxy option can handle proxy in URL format
  2145. like: http://user:passwd@host:port.
  2146. If a proxy requires user/password, they must be specified in a URL.
  2147. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2148. instead.
  2149. * src/AbstractCommand.cc
  2150. * src/AbstractCommand.h
  2151. * src/AbstractProxyRequestCommand.cc
  2152. * src/AbstractProxyRequestCommand.h
  2153. * src/AuthConfigFactory.cc
  2154. * src/AuthConfigFactory.h
  2155. * src/FtpFinishDownloadCommand.cc
  2156. * src/FtpInitiateConnectionCommand.cc
  2157. * src/FtpInitiateConnectionCommand.h
  2158. * src/FtpNegotiationCommand.cc
  2159. * src/FtpTunnelRequestCommand.cc
  2160. * src/FtpTunnelRequestCommand.h
  2161. * src/HttpDownloadCommand.cc
  2162. * src/HttpInitiateConnectionCommand.cc
  2163. * src/HttpInitiateConnectionCommand.h
  2164. * src/HttpProxyRequestCommand.cc
  2165. * src/HttpProxyRequestCommand.h
  2166. * src/HttpRequest.cc
  2167. * src/HttpRequest.h
  2168. * src/HttpRequestCommand.cc
  2169. * src/HttpRequestCommand.h
  2170. * src/HttpSkipResponseCommand.cc
  2171. * src/InitiateConnectionCommand.cc
  2172. * src/InitiateConnectionCommand.h
  2173. * src/OptionHandlerFactory.cc
  2174. * src/OptionHandlerImpl.h
  2175. * src/Request.cc
  2176. * src/option_processing.cc
  2177. * src/prefs.cc
  2178. * src/prefs.h
  2179. * src/usage_text.h
  2180. * test/AuthConfigFactoryTest.cc
  2181. * test/HttpRequestTest.cc
  2182. * test/OptionHandlerTest.cc
  2183. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2184. Execute choking algorithm when unchoked and interested peer is
  2185. disconected.
  2186. * src/DefaultPeerStorage.cc
  2187. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2188. Added testcase for BtNotInterestedMessage from unchoked peer.
  2189. * test/BtNotInterestedMessageTest.cc
  2190. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2191. Execute choking algorithm when BtInterestedMessage arrives from
  2192. unchoked peer.
  2193. * src/BtInterestedMessage.cc
  2194. * src/BtInterestedMessage.h
  2195. * src/DefaultBtMessageFactory.cc
  2196. * test/BtInterestedMessageTest.cc
  2197. * test/MockPeerStorage.h
  2198. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2199. AuthConfigFactory is now part of DownloadEngine.
  2200. * src/AbstractProxyRequestCommand.cc
  2201. * src/AuthConfigFactory.h
  2202. * src/DownloadEngine.cc
  2203. * src/DownloadEngine.h
  2204. * src/FtpConnection.cc
  2205. * src/FtpConnection.h
  2206. * src/FtpNegotiationCommand.cc
  2207. * src/HttpConnection.cc
  2208. * src/HttpRequest.cc
  2209. * src/HttpRequest.h
  2210. * src/HttpRequestCommand.cc
  2211. * src/HttpResponse.cc
  2212. * src/HttpResponseCommand.cc
  2213. * src/HttpSkipResponseCommand.cc
  2214. * src/MultiUrlRequestInfo.cc
  2215. * src/main.cc
  2216. * test/FtpConnectionTest.cc
  2217. * test/HttpRequestTest.cc
  2218. * test/HttpResponseTest.cc
  2219. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2220. Corrected catched exception type.
  2221. * src/ServerStatMan.cc
  2222. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2223. DNSCache is now part of DownloadEngine.
  2224. * src/DNSCache.h
  2225. * src/DownloadEngine.cc
  2226. * src/DownloadEngine.h
  2227. * src/InitiateConnectionCommand.cc
  2228. * src/MultiUrlRequestInfo.cc
  2229. * test/Makefile.am
  2230. * test/Makefile.in
  2231. * test/SimpleDNSCacheTest.cc
  2232. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2233. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2234. DownloadEngine.
  2235. * src/ActivePeerConnectionCommand.cc
  2236. * src/BtSetup.cc
  2237. * src/CUIDCounter.h
  2238. * src/DHTSetup.cc
  2239. * src/DownloadCommand.cc
  2240. * src/DownloadEngine.cc
  2241. * src/DownloadEngine.h
  2242. * src/DownloadEngineFactory.cc
  2243. * src/FileAllocationDispatcherCommand.cc
  2244. * src/InitiatorMSEHandshakeCommand.cc
  2245. * src/PeerInitiateConnectionCommand.cc
  2246. * src/PeerInteractionCommand.cc
  2247. * src/PeerListenCommand.cc
  2248. * src/RequestGroup.cc
  2249. * src/StreamFileAllocationEntry.cc
  2250. * src/TrackerWatcherCommand.cc
  2251. * src/main.cc
  2252. * test/RequestGroupManTest.cc
  2253. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2254. Implemented commented code in BtSeederStateChoke
  2255. * src/BtSeederStateChoke.cc
  2256. * src/Peer.cc
  2257. * src/Peer.h
  2258. * src/PeerInteractionCommand.cc
  2259. * src/PeerSessionResource.cc
  2260. * src/PeerSessionResource.h
  2261. * test/MockBtMessageDispatcher.h
  2262. * test/PeerSessionResourceTest.cc
  2263. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2264. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2265. its object.
  2266. * src/AbstractBtMessage.cc
  2267. * src/ActivePeerConnectionCommand.cc
  2268. * src/ActivePeerConnectionCommand.h
  2269. * src/BtContextAwareCommand.cc
  2270. * src/BtContextAwareCommand.h
  2271. * src/BtExtendedMessage.cc
  2272. * src/BtExtendedMessage.h
  2273. * src/BtInterestedMessage.cc
  2274. * src/BtInterestedMessage.h
  2275. * src/BtNotInterestedMessage.cc
  2276. * src/BtNotInterestedMessage.h
  2277. * src/BtRegistry.cc
  2278. * src/BtRegistry.h
  2279. * src/BtSeederStateChoke.cc
  2280. * src/BtSetup.cc
  2281. * src/DHTGetPeersCommand.cc
  2282. * src/DHTGetPeersCommand.h
  2283. * src/DHTPeerAnnounceEntry.cc
  2284. * src/DHTPeerAnnounceEntry.h
  2285. * src/DHTPeerAnnounceStorage.cc
  2286. * src/DHTPeerAnnounceStorage.h
  2287. * src/DHTPeerLookupTask.cc
  2288. * src/DHTPeerLookupTask.h
  2289. * src/DHTSetup.cc
  2290. * src/DHTSetup.h
  2291. * src/DHTTaskFactory.h
  2292. * src/DHTTaskFactoryImpl.cc
  2293. * src/DHTTaskFactoryImpl.h
  2294. * src/DefaultBtAnnounce.cc
  2295. * src/DefaultBtInteractive.cc
  2296. * src/DefaultBtInteractive.h
  2297. * src/DefaultBtMessageDispatcher.cc
  2298. * src/DefaultBtMessageDispatcher.h
  2299. * src/DefaultBtMessageFactory.cc
  2300. * src/DefaultBtMessageFactory.h
  2301. * src/DefaultBtMessageReceiver.cc
  2302. * src/DefaultBtProgressInfoFile.cc
  2303. * src/DefaultBtProgressInfoFile.h
  2304. * src/DefaultBtRequestFactory.cc
  2305. * src/DefaultBtRequestFactory.h
  2306. * src/DefaultExtensionMessageFactory.cc
  2307. * src/DefaultExtensionMessageFactory.h
  2308. * src/DefaultPeerStorage.cc
  2309. * src/DefaultPeerStorage.h
  2310. * src/DownloadEngine.cc
  2311. * src/DownloadEngine.h
  2312. * src/InitiatorMSEHandshakeCommand.cc
  2313. * src/InitiatorMSEHandshakeCommand.h
  2314. * src/MSEHandshake.cc
  2315. * src/MSEHandshake.h
  2316. * src/Makefile.am
  2317. * src/Makefile.in
  2318. * src/PeerChokeCommand.cc
  2319. * src/PeerChokeCommand.h
  2320. * src/PeerInitiateConnectionCommand.cc
  2321. * src/PeerInitiateConnectionCommand.h
  2322. * src/PeerInteractionCommand.cc
  2323. * src/PeerInteractionCommand.h
  2324. * src/PeerObject.h
  2325. * src/PeerReceiveHandshakeCommand.cc
  2326. * src/PeerReceiveHandshakeCommand.h
  2327. * src/ReceiverMSEHandshakeCommand.cc
  2328. * src/RequestGroup.cc
  2329. * src/RequestGroup.h
  2330. * src/RequestGroupMan.cc
  2331. * src/RequestGroupMan.h
  2332. * src/SeedCheckCommand.cc
  2333. * src/SeedCheckCommand.h
  2334. * src/ShareRatioSeedCriteria.h
  2335. * src/SimpleBtMessage.cc
  2336. * src/TrackerWatcherCommand.cc
  2337. * src/TrackerWatcherCommand.h
  2338. * src/UTPexExtensionMessage.cc
  2339. * src/UTPexExtensionMessage.h
  2340. * test/BtCancelMessageTest.cc
  2341. * test/BtChokeMessageTest.cc
  2342. * test/BtExtendedMessageTest.cc
  2343. * test/BtInterestedMessageTest.cc
  2344. * test/BtNotInterestedMessageTest.cc
  2345. * test/BtPieceMessageTest.cc
  2346. * test/BtPortMessageTest.cc
  2347. * test/BtRegistryTest.cc
  2348. * test/BtRejectMessageTest.cc
  2349. * test/BtRequestMessageTest.cc
  2350. * test/DHTPeerAnnounceEntryTest.cc
  2351. * test/DHTPeerAnnounceStorageTest.cc
  2352. * test/DefaultBtMessageDispatcherTest.cc
  2353. * test/DefaultBtMessageFactoryTest.cc
  2354. * test/DefaultBtProgressInfoFileTest.cc
  2355. * test/DefaultBtRequestFactoryTest.cc
  2356. * test/DefaultExtensionMessageFactoryTest.cc
  2357. * test/MSEHandshakeTest.cc
  2358. * test/MockDHTTaskFactory.h
  2359. * test/ShareRatioSeedCriteriaTest.cc
  2360. * test/UTPexExtensionMessageTest.cc
  2361. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2362. Fixed compiler warning.
  2363. * test/UtilTest.cc
  2364. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2365. Treat Cookie object as session cookie if expiry = 0 is given.
  2366. With this change, you can specify session scoped cookies in an external
  2367. file setting expiry value to 0.
  2368. * src/Cookie.cc
  2369. * src/Cookie.h
  2370. * test/CookieParserTest.cc
  2371. * test/CookieStorageTest.cc
  2372. * test/CookieTest.cc
  2373. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2374. Changed signature of DHTMessageFactory::createResponseMessage().
  2375. Removed unused validateIDMatch.
  2376. * src/DHTMessageFactory.h
  2377. * src/DHTMessageFactoryImpl.cc
  2378. * src/DHTMessageFactoryImpl.h
  2379. * src/DHTMessageTracker.cc
  2380. * test/DHTMessageFactoryImplTest.cc
  2381. * test/MockDHTMessageFactory.h
  2382. Dropped DHT message coming from same ID of localhost.
  2383. * src/DHTMessageReceiver.cc
  2384. Rejected adding node whose ID is the same as localhost's.
  2385. * src/DHTRoutingTable.cc
  2386. * test/BtPortMessageTest.cc
  2387. * test/DHTRoutingTableTest.cc
  2388. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2389. Pool connection when redirection occurs with Content-Length = 0.
  2390. * src/HttpSkipResponseCommand.cc
  2391. * src/HttpSkipResponseCommand.h
  2392. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2393. Fixed the bug that causes time out when redirection occurs with
  2394. content-length 0.
  2395. * src/HttpResponseCommand.cc
  2396. * src/HttpSkipResponseCommand.cc
  2397. * src/HttpSkipResponseCommand.h
  2398. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Now each status legends is shown only when it appears in Download
  2400. Result. If Download Result has no item, then status legend will not
  2401. be printed.
  2402. * src/RequestGroupMan.cc
  2403. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Removed duplicate creation of OptionHandlers.
  2405. * src/option_processing.cc
  2406. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Fixed the bug that causes segmentation fault when accessing files which
  2408. don't exist or are not included in --select-file option while
  2409. validating chunk checksum.
  2410. * src/MultiDiskAdaptor.cc
  2411. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2412. Fixed compiler warning.
  2413. * test/UtilTest.cc
  2414. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2416. * src/IteratableChecksumValidator.cc
  2417. * src/IteratableChunkChecksumValidator.cc
  2418. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2419. * Release 0.16.2
  2420. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2421. Added Serbian translation. Updated Ukrainian translation.
  2422. Thanks to all translators.
  2423. * po/sr.po
  2424. * po/uk.po
  2425. * po/LINGUAS
  2426. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Bump up version number to 0.16.2
  2428. * configure.ac
  2429. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2430. Added length equality test to operator== to drop a piece message
  2431. whose length does not match to the requested one.
  2432. * src/RequestSlot.cc
  2433. * test/DefaultBtMessageDispatcherTest.cc
  2434. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2435. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2436. recieved.
  2437. In this fix, if a request larger than 16KiB length is received, aria2
  2438. disconnects the peer.
  2439. * src/BtConstants.h
  2440. * src/PeerMessageUtil.cc
  2441. * src/PeerMessageUtil.h
  2442. * test/BtRequestMessageTest.cc
  2443. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2444. * Release 0.16.1
  2445. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2447. * doc/aria2c.1.txt
  2448. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2449. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2450. Updated French, Simplified Chinese and Japanese translations.
  2451. Thanks to all translators.
  2452. en@quot and en@boldquot are also added.
  2453. * po/LINGUAS
  2454. * po/fr.po
  2455. * po/ja.po
  2456. * po/uk.po
  2457. * po/vi.po
  2458. * po/zh_CN.po
  2459. * po/zh_TW.po
  2460. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2461. Bump up version number to 0.16.1.
  2462. * configure.ac
  2463. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. Updated README.
  2465. * README
  2466. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2467. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2468. not to replace '--' with em dash character.
  2469. * doc/aria2c.1.txt
  2470. * doc/makeman
  2471. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2472. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2473. every SEC seconds.
  2474. * src/DownloadEngineFactory.cc
  2475. * src/OptionHandlerFactory.cc
  2476. * src/option_processing.cc
  2477. * src/usage_text.h
  2478. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2479. Fixed compile warning on linux-amd64
  2480. * src/FtpConnection.cc
  2481. * src/IteratableChunkChecksumValidator.cc
  2482. * src/MultiDiskAdaptor.cc
  2483. Fixed the bug that unit test fails on linux-amd64
  2484. * test/UtilTest.cc
  2485. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2486. Added --dht-file-path option to change the path to dht.dat, which is a
  2487. serialized DHT routing table.
  2488. * src/OptionHandlerFactory.cc
  2489. * src/option_processing.cc
  2490. * src/usage_text.h
  2491. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2492. Fixed possible underflow.
  2493. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2494. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2495. Fixed the bug that last character in URI is not encoded.
  2496. * src/Request.cc
  2497. * test/RequestTest.cc
  2498. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2499. Fixed the bug that referer header field contains fragment.
  2500. Now Request class removes fragment part of URI and encodes it
  2501. in Request::setUri() and setReferer().
  2502. * src/Request.h
  2503. * src/Request.cc
  2504. * test/RequestTest.cc
  2505. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Added missing m4 macros.
  2507. * m4/cppunit.m4
  2508. * m4/libgcrypt.m4
  2509. * m4/libgnutls-extra.m4
  2510. * m4/libgnutls.m4
  2511. * m4/libxml2.m4
  2512. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2513. Fixed compile error with gcc-4.4(snapshot)
  2514. * src/File.cc
  2515. * src/FtpConnection.cc
  2516. * src/OptionHandlerImpl.h
  2517. * src/Util.cc
  2518. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2519. Removed assert()
  2520. * src/SocketBuffer.cc (SocketBuffer::send)
  2521. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2522. Changed the type of _numNewConnection to unsigned int.
  2523. * src/ActivePeerConnectionCommand.cc
  2524. * src/ActivePeerConnectionCommand.h
  2525. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2526. * Release 0.16.0
  2527. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Updated doc
  2529. * README
  2530. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2531. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2532. translations. Thanks to all translators.
  2533. * po/bg.po
  2534. * po/de.po
  2535. * po/fr.po
  2536. * po/ja.po
  2537. * po/zh_CN.po
  2538. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Bump up version number to 0.16.0.
  2540. * configure.ac
  2541. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2543. int32_t.
  2544. Changed the type of count to int32_t.
  2545. * src/Metalink2RequestGroup.cc
  2546. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2547. Added test for Time::elapsed(time_t).
  2548. * test/TimeTest.cc
  2549. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2550. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2551. Util::difftv() should be used instead.
  2552. * src/TimeA2.cc
  2553. * src/TimeA2.h
  2554. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2555. Made socket for dht connections non-blocking
  2556. * src/DHTAbstractMessage.cc
  2557. * src/DHTAbstractMessage.h
  2558. * src/DHTConnection.h
  2559. * src/DHTConnectionImpl.cc
  2560. * src/DHTConnectionImpl.h
  2561. * src/DHTMessage.h
  2562. * src/DHTMessageDispatcherImpl.cc
  2563. * src/DHTMessageDispatcherImpl.h
  2564. * src/DHTUnknownMessage.cc
  2565. * src/DHTUnknownMessage.h
  2566. * src/SocketCore.cc
  2567. * src/SocketCore.h
  2568. * test/MockDHTMessage.h
  2569. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Changed the type of offset to int.
  2571. * src/ParameterizedStringParser.cc
  2572. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2573. Made getAsInt() return int32_t
  2574. * src/Option.h
  2575. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2576. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2577. build.
  2578. * configure.ac
  2579. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2580. Use sqlite3_open if sqlite3_open_v2 is not available.
  2581. * src/Sqlite3MozCookieParser.cc
  2582. * src/Sqlite3MozCookieParser.h
  2583. * m4/sqlite3.m4
  2584. * test/Sqlite3MozCookieParserTest.cc
  2585. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2586. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2587. * src/BtPieceMessage.cc
  2588. * src/DHTPeerAnnounceStorage.cc
  2589. * src/DefaultPieceStorage.cc
  2590. * src/DownloadCommand.cc
  2591. * src/DownloadEngine.cc
  2592. * src/FtpConnection.cc
  2593. * src/PeerConnection.cc
  2594. * src/PeerMessageUtil.cc
  2595. * src/RequestGroup.cc
  2596. * src/RequestGroupMan.cc
  2597. * src/SimpleBtMessage.cc
  2598. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2599. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2600. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2601. * src/AbstractDiskWriter.cc
  2602. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2603. Don't set Request::supportsPersistentConnection() in HttpConnection
  2604. since this code is also used in AbstractProxyResponseCommand.
  2605. Moved those code to HttpResponse.
  2606. * src/HttpResponse.cc
  2607. * src/HttpResponse.h
  2608. * src/HttpConnection.cc
  2609. * src/HttpConnection.h
  2610. * src/HttpResponseCommand.cc
  2611. * test/HttpResponseTest.cc
  2612. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2614. The configuration is minimum: no torrent, no metalink, so there may be
  2615. other compile error on their code.
  2616. * src/a2netcompat.h
  2617. * src/File.cc
  2618. * src/File.h
  2619. * src/SocketCore.cc
  2620. * src/SocketCore.h
  2621. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Made a socket of incoming peer non-blocking.
  2623. * src/PeerListenCommand.cc
  2624. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2626. whole message data is not sent in one send() call.
  2627. * src/BtPieceMessage.cc
  2628. * src/BtPieceMessage.h
  2629. * src/PeerConnection.cc
  2630. * src/PeerConnection.h
  2631. * src/SimpleBtMessage.cc
  2632. * src/SimpleBtMessage.h
  2633. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Fixed the bug that aria2 downloads faster than max-download-limit when
  2635. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2636. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2637. , instead of sum of them.
  2638. * src/ActivePeerConnectionCommand.cc
  2639. * src/DefaultBtInteractive.cc
  2640. * src/DownloadCommand.cc
  2641. * src/PeerInteractionCommand.cc
  2642. * src/PeerReceiveHandshakeCommand.cc
  2643. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Fixed the bug that HTTPS download fails.
  2645. * src/AbstractCommand.cc
  2646. * src/AbstractCommand.h
  2647. * src/DownloadCommand.cc
  2648. * src/FtpConnection.cc
  2649. * src/HttpConnection.cc
  2650. * src/HttpRequestCommand.cc
  2651. * src/HttpResponseCommand.cc
  2652. * src/HttpSkipResponseCommand.cc
  2653. * src/MSEHandshake.cc
  2654. * src/PeerConnection.cc
  2655. * src/SocketCore.cc
  2656. * src/SocketCore.h
  2657. Fixed the bug that aria2 doesn't download whole content body and cannot
  2658. reuse connection if chunked transfer encoding and gzip content encoding
  2659. are set.
  2660. * src/DownloadCommand.cc
  2661. * src/HttpSkipResponseCommand.cc
  2662. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2663. Updated man page.
  2664. * doc/aria2c.1.txt
  2665. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. When error occurred while aria2 was parsing an .aria2.conf file, print
  2667. the usage of the option that caused error.
  2668. * src/option_processing.cc
  2669. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2670. Fixed compile error on OptionHandlerException
  2671. * src/Makefile.am
  2672. * src/OptionHandlerException.cc
  2673. * src/OptionHandlerException.h
  2674. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2675. Moved message of the error to OptionHandlerException.h
  2676. * src/NameMatchOptionHandler.h
  2677. * src/OptionHandlerException.h
  2678. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. When error occurs while aria2 is parsing an command-line option, print
  2680. the usage of the option.
  2681. * src/Makefile.am
  2682. * src/NameMatchOptionHandler.h
  2683. * src/OptionHandlerException.h
  2684. * src/option_processing.cc
  2685. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2686. Reverted previous change.
  2687. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2688. username is not in URI.
  2689. * src/HttpRequest.cc
  2690. * src/Request.cc
  2691. * test/HttpRequestTest.cc
  2692. * test/RequestTest.cc
  2693. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Now colon is required for username and password in FTP URL, like:
  2695. ftp://username:password@host.
  2696. If colon is not there, aria2 don't parse it as a username. For example,
  2697. aria2 don't retrieve username from ftp://username@host.
  2698. This fix was made in order to login FTP server via non-transparent ftp
  2699. proxy.
  2700. * src/Request.cc
  2701. * test/RequestTest.cc
  2702. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2703. Use netrc for HTTP.
  2704. Now FTP user/password is sent in Authorization header when
  2705. --ftp-via-http-proxy=get is given.
  2706. * src/AuthConfigFactory.cc
  2707. * src/HttpRequest.cc
  2708. * src/HttpRequest.h
  2709. * src/NetrcAuthResolver.cc
  2710. * src/NetrcAuthResolver.h
  2711. * src/OptionHandlerFactory.cc
  2712. * src/option_processing.cc
  2713. * src/prefs.cc
  2714. * src/prefs.h
  2715. * test/AuthConfigFactoryTest.cc
  2716. * test/HttpRequestTest.cc
  2717. * test/NetrcAuthResolverTest.cc
  2718. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Issue PWD command first and get working directory and use it as a prefix
  2720. for CWD command.
  2721. * src/DownloadEngine.cc
  2722. * src/DownloadEngine.h
  2723. * src/FtpConnection.cc
  2724. * src/FtpConnection.h
  2725. * src/FtpFinishDownloadCommand.cc
  2726. * src/FtpInitiateConnectionCommand.cc
  2727. * src/FtpNegotiationCommand.cc
  2728. * src/FtpNegotiationCommand.h
  2729. * test/FtpConnectionTest.cc
  2730. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2731. Removed default user/pass for FTP user/pass, since it should not have
  2732. precedence over netrc configuration by default.
  2733. * src/OptionHandlerFactory.cc
  2734. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Added debug log for socket event.
  2736. * src/AbstractCommand.cc
  2737. * src/PeerAbstractCommand.cc
  2738. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Log microseconds.
  2740. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2741. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2742. Replaced HelpItem.cc with OptionHandler.cc.
  2743. * po/POTFILES.in
  2744. Updated po files with 'make update-po'
  2745. * po/aria2c.pot
  2746. * po/*.po
  2747. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2748. Removed possible values from the text.
  2749. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2750. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2751. Removed unused preferences:
  2752. PREF_NO_PREALLOCATION
  2753. PREF_STDOUT_LOG
  2754. PREF_TRACKER_MAX_TRIES
  2755. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2756. PREF_MIN_SEGMENT_SIZE
  2757. * src/option_processing.cc
  2758. * src/prefs.cc
  2759. * src/prefs.h
  2760. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2761. Integrated HelpItem into OptionParser to ease the workload for adding
  2762. new options. Removed default value from usage text.
  2763. * src/HelpItem.cc: Removed.
  2764. * src/HelpItem.h: Removed.
  2765. * src/HelpItemFactory.cc: Removed.
  2766. * src/HelpItemFactory.h: Removed.
  2767. * src/Makefile.am
  2768. * src/Makefile.in
  2769. * src/NameMatchOptionHandler.h
  2770. * src/OptionHandler.cc
  2771. * src/OptionHandler.h
  2772. * src/OptionHandlerFactory.cc
  2773. * src/OptionHandlerImpl.h
  2774. * src/OptionParser.cc
  2775. * src/OptionParser.h
  2776. * src/TagContainer.cc: Removed.
  2777. * src/TagContainer.h: Removed.
  2778. * src/TaggedItem.cc: Removed.
  2779. * src/TaggedItem.h: Removed.
  2780. * src/main.cc
  2781. * src/option_processing.cc
  2782. * src/usage_text.h
  2783. * src/version_usage.cc
  2784. * test/HelpItemTest.cc: Removed.
  2785. * test/Makefile.am
  2786. * test/Makefile.in
  2787. * test/OptionHandlerTest.cc
  2788. * test/OptionParserTest.cc
  2789. * test/TagContainerTest.cc: Removed.
  2790. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2791. Moved `TransferStat stat = ...' to inside the `if' clause.
  2792. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2793. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2794. Fixed the bug that a block in a piece is requested when same block is
  2795. already requested to the same peer in end game mode.
  2796. * src/BtRequestFactory.h
  2797. * src/DefaultBtInteractive.cc
  2798. * src/DefaultBtRequestFactory.cc
  2799. * src/DefaultBtRequestFactory.h
  2800. * src/DefaultPieceStorage.cc
  2801. * src/DefaultPieceStorage.h
  2802. * src/PieceStorage.h
  2803. * src/UnknownLengthPieceStorage.cc
  2804. * src/UnknownLengthPieceStorage.h
  2805. * test/DefaultBtRequestFactoryTest.cc
  2806. * test/DefaultPieceStorageTest.cc
  2807. * test/MockBtRequestFactory.h
  2808. * test/MockPieceStorage.h
  2809. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2810. Removed _uploadLength and _downloadLength from PeerSessionResource
  2811. and use PeerStat::_sessionUploadLength and
  2812. PeerStat::_sessionDownloadLength.
  2813. * src/PeerSessionResource.cc
  2814. * src/PeerSessionResource.h
  2815. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Fixed the bug that prefixLength of split bucket which doesn't include
  2817. local node ID is incremented.
  2818. * src/DHTBucket.cc
  2819. * src/DHTBucket.h
  2820. * test/DHTBucketTest.cc
  2821. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2822. Added cookies.sqlite to EXTRA_DIST
  2823. * test/Makefile.am
  2824. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Added Turkish translation. Updated French, German, Russian and
  2826. Simplified Chinese translations. Thanks to all translators.
  2827. * po/LINGUAS
  2828. * po/de.po
  2829. * po/fr.po
  2830. * po/ru.po
  2831. * po/tr.po
  2832. * po/zh_CN.po
  2833. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Added deliminating text to the beginning of the log so that one can find
  2835. where the log starts easily.
  2836. * src/main.cc
  2837. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2838. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2839. to fix compile error when async DNS is not enabled by configuration.
  2840. * src/AbstractCommand.cc
  2841. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2842. If establishing conneciton to a server is failed, then mark error on
  2843. its ServerStat.
  2844. Added the cause of error to log when error event occurred.
  2845. Moved message string to message.h for translation.
  2846. * src/AbstractCommand.cc
  2847. * src/AbstractCommand.h
  2848. * src/FtpNegotiationCommand.cc
  2849. * src/HttpRequestCommand.cc
  2850. * src/PeerAbstractCommand.cc
  2851. * src/message.h
  2852. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Added the function to get error message from socket.
  2854. * src/SocketCore.cc
  2855. * src/SocketCore.h
  2856. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2857. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2858. * src/RequestGroupMan.cc
  2859. * src/RequestGroupMan.h
  2860. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2861. If error event is received in epoll, then abort download immediately.
  2862. * src/AbstractCommand.cc
  2863. * src/Command.cc
  2864. * src/Command.h
  2865. * src/DownloadEngine.cc
  2866. * src/PeerAbstractCommand.cc
  2867. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2868. Added usage message for --uri-selector, --server-stat-of,
  2869. --server-stat-in, --server-stat-timeout options.
  2870. * src/HelpItemFactory.cc
  2871. * src/usage_text.h
  2872. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2873. Added upper limit of FTP response buffer. The current implementation
  2874. uses 4096bytes as a limit.
  2875. * src/FtpConnection.cc
  2876. * src/FtpConnection.h
  2877. * test/FtpConnectionTest.cc
  2878. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2879. Use non-blocking socket for TCP communication to avoid possible
  2880. blocking due to buffer full.
  2881. * src/AbstractProxyRequestCommand.cc
  2882. * src/FtpConnection.cc
  2883. * src/FtpConnection.h
  2884. * src/FtpNegotiationCommand.cc
  2885. * src/FtpNegotiationCommand.h
  2886. * src/HttpConnection.cc
  2887. * src/HttpConnection.h
  2888. * src/HttpRequestCommand.cc
  2889. * src/InitiatorMSEHandshakeCommand.cc
  2890. * src/InitiatorMSEHandshakeCommand.h
  2891. * src/MSEHandshake.cc
  2892. * src/MSEHandshake.h
  2893. * src/Makefile.am
  2894. * src/PeerConnection.cc
  2895. * src/PeerConnection.h
  2896. * src/PeerInteractionCommand.cc
  2897. * src/PeerListenCommand.cc
  2898. * src/ReceiverMSEHandshakeCommand.cc
  2899. * src/ReceiverMSEHandshakeCommand.h
  2900. * src/SocketBuffer.cc
  2901. * src/SocketBuffer.h
  2902. * src/SocketCore.cc
  2903. * src/SocketCore.h
  2904. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Call setStatusRealtime() in constructor.
  2906. * src/RealtimeCommand.cc
  2907. * src/RealtimeCommand.h
  2908. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2909. Call Download::setNoWait(true) to execute newly created command without
  2910. a pause.
  2911. * src/AbstractCommand.cc
  2912. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2913. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2914. found' error from HTTP/FTP server NUM times without getting single
  2915. bytes of data, then force the download to fail.
  2916. Basically aria2 tris all URIs available. So if long list of URIs are
  2917. specified in Metalink, then aria2 will take a long time to fail
  2918. eventually if all URIs are outdated. This option eases this situation
  2919. to limit the number of servers to try.
  2920. * src/FtpNegotiationCommand.cc
  2921. * src/HelpItemFactory.cc
  2922. * src/HttpResponseCommand.cc
  2923. * src/OptionHandlerFactory.cc
  2924. * src/PeerStat.h
  2925. * src/RequestGroup.cc
  2926. * src/RequestGroup.h
  2927. * src/SegmentMan.cc
  2928. * src/SegmentMan.h
  2929. * src/option_processing.cc
  2930. * src/prefs.cc
  2931. * src/prefs.h
  2932. * src/usage_text.h
  2933. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2934. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2935. response even if more than one response is in it.
  2936. * src/FtpConnection.cc
  2937. * src/FtpConnection.h
  2938. * test/FtpConnectionTest.cc
  2939. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Merged from stable-0.15
  2941. * m4/libcares.m4
  2942. Use pkg-config
  2943. * m4/sqlite3.m4
  2944. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2945. Removed unnecessary if statement.
  2946. * src/DefaultPieceStorage.cc (initPieceStorage)
  2947. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2948. Added --connect-timeout option to specify connect timeout in seconds.
  2949. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2950. connecting to BitTorrent peer is not controlled by this option.
  2951. * src/AbstractProxyRequestCommand.cc
  2952. * src/FtpNegotiationCommand.cc
  2953. * src/HelpItemFactory.cc
  2954. * src/HttpRequestCommand.cc
  2955. * src/OptionHandlerFactory.cc
  2956. * src/option_processing.cc
  2957. * src/prefs.cc
  2958. * src/prefs.h
  2959. * src/usage_text.h
  2960. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2961. Added help message for -R option.
  2962. * src/HelpItemFactory.cc
  2963. * src/usage_text.h
  2964. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Added the message that the time is in local time zone.
  2966. * src/RequestGroup.cc
  2967. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2968. Implemented the ability to get timestamp from remote FTP server using
  2969. MDTM command described in RFC3659.
  2970. * src/FtpConnection.cc
  2971. * src/FtpConnection.h
  2972. * src/FtpNegotiationCommand.cc
  2973. * src/FtpNegotiationCommand.h
  2974. * test/FtpConnectionTest.cc
  2975. * test/Makefile.am
  2976. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. Implemented the ability to get timestamp from remote HTTP server and
  2978. apply it to local file. To enable this feature, --remote-time option
  2979. is added. No usage text has been written yet.
  2980. If several servers returns difference timestamp, then aria2 uses latest
  2981. one.
  2982. * src/CopyDiskAdaptor.cc
  2983. * src/CopyDiskAdaptor.h
  2984. * src/DirectDiskAdaptor.cc
  2985. * src/DirectDiskAdaptor.h
  2986. * src/DiskAdaptor.h
  2987. * src/File.cc
  2988. * src/File.h
  2989. * src/HttpHeader.cc
  2990. * src/HttpHeader.h
  2991. * src/HttpResponse.cc
  2992. * src/HttpResponse.h
  2993. * src/HttpResponseCommand.cc
  2994. * src/HttpResponseCommand.h
  2995. * src/MultiDiskAdaptor.cc
  2996. * src/MultiDiskAdaptor.h
  2997. * src/OptionHandlerFactory.cc
  2998. * src/RequestGroup.cc
  2999. * src/RequestGroup.h
  3000. * src/RequestGroupMan.cc
  3001. * src/option_processing.cc
  3002. * src/prefs.cc
  3003. * src/prefs.h
  3004. * test/CopyDiskAdaptorTest.cc
  3005. * test/FileTest.cc
  3006. * test/Makefile.am
  3007. * test/Makefile.in
  3008. * test/MultiDiskAdaptorTest.cc
  3009. * test/TestUtil.cc
  3010. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Fixed the bug that DiskWriterEntry is not created when its
  3012. FileEntry.isRequested() is false and it doesn't share a piece with
  3013. other FileEntries that are requested. This bug causes segmentation fault
  3014. in the end.
  3015. * src/MultiDiskAdaptor.cc
  3016. * src/MultiDiskAdaptor.h
  3017. * src/MultiFileAllocationIterator.cc
  3018. * test/MultiDiskAdaptorTest.cc
  3019. * test/MultiFileAllocationIteratorTest.cc
  3020. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3022. called if the number of file entries are greater than max open files.
  3023. * src/AbstractSingleDiskAdaptor.cc
  3024. * src/AbstractSingleDiskAdaptor.h
  3025. * src/DiskAdaptor.h
  3026. * src/MultiDiskAdaptor.cc
  3027. * src/MultiDiskAdaptor.h
  3028. * test/MultiDiskAdaptorTest.cc
  3029. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Added a constuctor that receives struct timeval.
  3031. Added operator<.
  3032. * src/TimeA2.cc
  3033. * src/TimeA2.h
  3034. * test/TimeTest.cc
  3035. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3036. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3037. * src/CookieParser.cc
  3038. * test/CookieParserTest.cc
  3039. * test/HttpResponseTest.cc
  3040. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3041. Implmented the functions to parse date.
  3042. * src/TimeA2.cc
  3043. * src/TimeA2.h
  3044. * test/TimeTest.cc
  3045. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3046. Added "Firefox3 Cookie" feature to FeatureConfig
  3047. * src/FeatureConfig.cc
  3048. * src/FeatureConfig.h
  3049. * test/FeatureConfigTest.cc
  3050. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3051. Bump up version number to 0.16.0b
  3052. * configure.ac
  3053. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3054. Use pkg-config if is is available.
  3055. * m4/openssl.m4
  3056. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3057. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3058. * src/BtAnnounce.h
  3059. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. If an error occurred with a URI, remove identical URI from remaining
  3061. URI list because it is likely that same error occurred in the end and it
  3062. is waste of time.
  3063. * src/AbstractCommand.cc
  3064. * src/RequestGroup.cc
  3065. * src/RequestGroup.h
  3066. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3067. Removed wrong comment.
  3068. * src/DefaultPeerStorage.cc
  3069. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3071. Added return value of getpid() to argument of srand() to achieve more
  3072. randomized value.
  3073. * src/SimpleRandomizer.cc
  3074. * src/SimpleRandomizer.h
  3075. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Contact tracker frequently when the number of connections are 0 and
  3077. download is not finished yet.
  3078. * src/ActivePeerConnectionCommand.cc
  3079. * src/BtAnnounce.h
  3080. * src/DefaultBtAnnounce.cc
  3081. * src/DefaultBtAnnounce.h
  3082. * test/MockBtAnnounce.h
  3083. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3084. Moved threshold values to UTPexExtensionMessage.
  3085. * src/DefaultBtInteractive.cc
  3086. * src/Peer.cc
  3087. * src/Peer.h
  3088. * src/UTPexExtensionMessage.cc
  3089. * src/UTPexExtensionMessage.h
  3090. * test/UTPexExtensionMessageTest.cc
  3091. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3092. Added _incoming member to Peer class and made it true if the peer
  3093. initiated connection. Don't add those peer to UTPex message.
  3094. If extended handshake is received, assign _incoming to false.
  3095. * src/DefaultBtInteractive.cc
  3096. * src/HandshakeExtensionMessage.cc
  3097. * src/Peer.cc
  3098. * src/Peer.h
  3099. * src/PeerListenCommand.cc
  3100. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3101. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3102. Encoding Decoder. Removed size threshold for turning off on the fly
  3103. inflation because resulting file may or may not be inflated depending
  3104. on the file size and I think it is not expected by users.
  3105. This change fixes segmentation fault when Metalink file contains gzipped
  3106. file and its filesize is provided.
  3107. * src/HttpResponseCommand.cc
  3108. * src/HttpResponseCommand.h
  3109. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3110. Made Cookie immutable.
  3111. * src/Cookie.cc
  3112. * src/Cookie.h
  3113. * src/CookieParser.cc
  3114. * src/CookieParser.h
  3115. * src/CookieStorage.cc
  3116. * test/CookieParserTest.cc
  3117. * test/CookieStorageTest.cc
  3118. * test/NsCookieParserTest.cc
  3119. * test/Sqlite3MozCookieParserTest.cc
  3120. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3121. Removed CookieBox, CookieBoxFactory.
  3122. * src/CookieBox.cc
  3123. * src/CookieBox.h
  3124. * src/CookieBoxFactory.cc
  3125. * src/CookieBoxFactory.h
  3126. * src/Makefile.am
  3127. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Use CookieStorage class instead of CookieBox class.
  3129. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3130. * src/AbstractProxyRequestCommand.cc
  3131. * src/CookieStorage.cc
  3132. * src/DownloadEngine.cc
  3133. * src/DownloadEngine.h
  3134. * src/HttpConnection.cc
  3135. * src/HttpConnection.h
  3136. * src/HttpRequest.cc
  3137. * src/HttpRequest.h
  3138. * src/HttpRequestCommand.cc
  3139. * src/HttpResponse.cc
  3140. * src/HttpResponseCommand.cc
  3141. * src/HttpSkipResponseCommand.cc
  3142. * src/Makefile.am
  3143. * src/MultiUrlRequestInfo.cc
  3144. * src/Request.cc
  3145. * src/Request.h
  3146. * src/main.cc
  3147. * test/AllTest.cc
  3148. * test/CookieStorageTest.cc
  3149. * test/CookieTest.cc
  3150. * test/HttpRequestTest.cc
  3151. * test/HttpResponseTest.cc
  3152. * test/Makefile.am
  3153. * test/NsCookieParserTest.cc
  3154. * test/Sqlite3MozCookieParserTest.cc
  3155. * test/nscookietest.txt
  3156. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3157. Updated
  3158. * test/Cookies.sqlite
  3159. * test/nscookietest.txt
  3160. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Added tests for CookieStorage::load()
  3162. * test/CookieStorageTest.cc
  3163. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Added CookieStorage class which is based on RFC2109 and manages cookies
  3165. more strictly than CookieBox and CookieBoxFactory class.
  3166. * src/CookieStorage.cc
  3167. * src/CookieStorage.h
  3168. * src/Cookie.cc
  3169. * src/Cookie.h
  3170. * test/CookieStorageTest.cc
  3171. * test/CookieTest.cc
  3172. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Fixed the bug that commands are created more than the number of pieces.
  3174. * src/RequestGroup.cc
  3175. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Fixed infinite loop bug in FTP when SIZE command failed.
  3177. * src/FtpNegotiationCommand.cc
  3178. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Removed DirectDiskAdaptorTest.h
  3180. * test/Makefile.am
  3181. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Fixed chunk checksum validation cannot detect trailing garbage data.
  3183. BUG#2074141
  3184. * src/AbstractSingleDiskAdaptor.cc
  3185. * src/AbstractSingleDiskAdaptor.h
  3186. * src/CheckIntegrityEntry.cc
  3187. * src/CheckIntegrityEntry.h
  3188. * src/DiskAdaptor.h
  3189. * src/MultiDiskAdaptor.cc
  3190. * src/MultiDiskAdaptor.h
  3191. * src/RequestGroup.cc
  3192. * test/DirectDiskAdaptorTest.cc
  3193. * test/MultiDiskAdaptorTest.cc
  3194. * test/TestUtil.cc
  3195. * test/TestUtil.h
  3196. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3197. Bump up version number of dht.dat file to 3. In version 3 format, time
  3198. is stored in 64bit, network byte order.
  3199. New build can load old format(version 2) but it saves the file in new
  3200. format. It means once you used new build, your dht.dat becomes
  3201. incompatible with older build.
  3202. * src/DHTRoutingTableDeserializer.cc
  3203. * src/DHTRoutingTableSerializer.cc
  3204. * test/DHTRoutingTableSerializerTest.cc
  3205. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3207. * test/Makefile.am
  3208. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Bump up version number of .aria2 control file to 0001.
  3210. New aria2 can still load version 0000 file but it saves the file in
  3211. version 0001 format. It means that new aria2 can resume download
  3212. started by old aria2 but the opposite is not true.
  3213. * src/DefaultBtProgressInfoFile.cc
  3214. * src/DefaultBtProgressInfoFile.h
  3215. * test/DefaultBtProgressInfoFileTest.cc
  3216. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3217. Added ntoh64 and hton64 as inline functions.
  3218. * src/Util.cc
  3219. * test/UtilTest.cc
  3220. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Added sqlite3 depenency and Firefox3 cookie support.
  3222. * README
  3223. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3224. State that firefox3 cookie is supported explicitly in the usage.
  3225. * src/usage_text.h
  3226. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Externalized message.
  3228. * src/RequestGroupMan.cc
  3229. * src/message.h
  3230. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. Save temporary file first and rename to the destination on success.
  3232. Added test cases.
  3233. * src/RequestGroupMan.cc
  3234. * test/RequestGroupManTest.cc
  3235. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Fixed the bug that the number of connected peer is exceeding the limit
  3237. (55 by default) in seeding mode.
  3238. Multiplied 0.8 to _maxUploadSpeedLimit.
  3239. * src/ActivePeerConnectionCommand.cc
  3240. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3241. Clear table item.
  3242. * src/Dictionary.cc
  3243. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3244. Fixed error handling of lseek.
  3245. * src/AbstractDiskWriter.cc
  3246. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3247. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3248. style cookie file.
  3249. * src/usage_text.h
  3250. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3252. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3253. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3254. * src/Util.cc
  3255. * src/Util.h
  3256. * src/CookieParser.cc
  3257. * test/UtilTest.cc
  3258. * test/CookieParserTest.cc
  3259. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Separate the implementation to load old mozilla format of cookie to
  3261. NsCookieParser class.
  3262. * src/CookieBoxFactory.cc
  3263. * src/CookieBoxFactory.h
  3264. * src/NsCookieParser.cc
  3265. * src/NsCookieParser.h
  3266. * test/NsCookieParserTest.cc
  3267. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Made parse() const
  3269. * src/Sqlite3MozCookieParser.cc
  3270. * src/Sqlite3MozCookieParser.h
  3271. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3272. Added firefox3 cookie support based on the patch submitted by
  3273. tizianomueller.
  3274. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3275. this functionality.
  3276. * configure.ac
  3277. * m4/sqlite3.m4
  3278. * src/CookieBoxFactory.cc
  3279. * src/CookieBoxFactory.h
  3280. * src/Makefile.am
  3281. * src/Makefile.in
  3282. * src/Sqlite3MozCookieParser.cc
  3283. * src/Sqlite3MozCookieParser.h
  3284. * src/main.cc
  3285. * test/CookieBoxFactoryTest.cc
  3286. * test/Makefile.am
  3287. * test/Makefile.in
  3288. * test/Sqlite3MozCookieParserTest.cc
  3289. * test/badcookies.sqlite
  3290. * test/cookies.sqlite
  3291. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3292. Added Danish and Greek translations.
  3293. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3294. Great thanks to all translators.
  3295. * po/LINGUAS
  3296. * po/el.po
  3297. * po/da.po
  3298. * po/es.po
  3299. * po/ca.po
  3300. * po/nn.po
  3301. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3302. Fixed man page: --follow-bittorrent should be --follow-torrent
  3303. * doc/aria2c.1.txt
  3304. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Fixed: numCommand is less than the value specified in -C option.
  3306. * src/RequestGroup.cc
  3307. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Fixed occasional assertion failure in PieceSegment.
  3309. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3310. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3311. creation of duplicate segments and one of the segment was finished then
  3312. assertion failure was caused.
  3313. * src/SegmentMan.cc
  3314. * test/SegmentManTest.cc
  3315. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3316. Added options to load/save the server's performance/status to a file
  3317. and the timeout to drop their data.
  3318. --server-stat-of=FILE specifies the file to which performance data
  3319. is saved.
  3320. --server-stat-if=FILE specifies the file to read previously saved
  3321. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3322. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3323. TIMEOUT is specified in seconds and the default value is 24hours.
  3324. * src/MultiUrlRequestInfo.cc
  3325. * src/OptionHandlerFactory.cc
  3326. * src/RequestGroupMan.cc
  3327. * src/RequestGroupMan.h
  3328. * src/ServerStatMan.cc
  3329. * src/ServerStatMan.h
  3330. * src/option_processing.cc
  3331. * src/prefs.cc
  3332. * src/prefs.h
  3333. * test/ServerStatManTest.cc
  3334. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3335. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3336. * src/ServerStatMan.cc
  3337. * src/ServerStatMan.h
  3338. * test/ServerStatManTest.cc
  3339. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3340. Implemented ServerStatMan::load(...) function and its test case.
  3341. * src/ServerStat.cc
  3342. * src/ServerStat.h
  3343. * src/ServerStatMan.cc
  3344. * test/ServerStatManTest.cc
  3345. * test/ServerStatTest.cc
  3346. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Use time_t instead of int32_t. Use int64_t where milli second is
  3348. expected.
  3349. * src/TimeA2.cc
  3350. * src/TimeA2.h
  3351. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Implemented ServerStatMan::save(...) function and its test case.
  3353. * src/ServerStat.cc
  3354. * src/ServerStat.h
  3355. * src/ServerStatMan.cc
  3356. * src/ServerStatMan.h
  3357. * test/ServerStatManTest.cc
  3358. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Now aria2 uses name attribute in Metalink as local filename in
  3360. BitTorrent downloads. BUG#2033999
  3361. * src/BtContext.h
  3362. * src/BtDependency.cc
  3363. * src/DefaultBtContext.cc
  3364. * src/DefaultBtContext.h
  3365. * src/SingleFileDownloadContext.cc
  3366. * src/SingleFileDownloadContext.h
  3367. * test/BtDependencyTest.cc
  3368. * test/DefaultBtContextTest.cc
  3369. * test/MockBtContext.h
  3370. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. Added AC_C_BIGENDIAN
  3372. * src/configure.ac
  3373. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. Limited numCommand less than or equal to the number of piece.
  3375. * src/RequestGroup.cc
  3376. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3377. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3378. directive.
  3379. * test/DefaultPieceStorageTest.cc
  3380. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Fixed memory leak in test code
  3382. * test/AnnounceListTest.cc
  3383. * test/DefaultPeerListProcessorTest.cc
  3384. * test/DefaultPeerStorageTest.cc
  3385. * test/MetaFileUtilTest.cc
  3386. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3387. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3388. * src/DefaultPieceStorage.cc
  3389. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Initialized _directIOAllowed
  3391. * src/MultiDiskAdaptor.cc
  3392. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3393. Fixed memory leak
  3394. * src/GZipDecoder.cc
  3395. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. Fixed memory leak
  3397. * src/MetalinkParserStateMachine.cc
  3398. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3399. Fixed memory leak
  3400. * src/Dictionary.cc
  3401. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3402. Fixed memory leak
  3403. * src/IteratableChunkChecksumValidator.h
  3404. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Fixed unmatched malloc/free.
  3406. * src/IteratableChunkChecksumValidator.cc
  3407. * src/IteratableChecksumValidator.cc
  3408. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Removed max chunk size check. This change fixes BUG#2040169
  3410. * src/ChunkedDecoder.cc
  3411. * src/ChunkedDecoder.h
  3412. * test/ChunkedDecoderTest.cc
  3413. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3414. Implemented download speed based URI selection algorithm.
  3415. Introduced new option --uri-selector.
  3416. If --uri-selector=feedback is given, aria2 uses download speed observed
  3417. in the previous downloads and chooses fastest server in the URI list.
  3418. Currently at most 10 URIs are considered to introduce randomeness for
  3419. finding better servers. The speed is average download speed in the
  3420. downloads.
  3421. On the other hand, if --uri-selector=inorder is given, which is default,
  3422. URI is tried in order in URI list.
  3423. The usage text for the new option has not been written yet.
  3424. * src/AbstractCommand.cc
  3425. * src/DownloadCommand.cc
  3426. * src/DownloadEngine.cc
  3427. * src/DownloadEngineFactory.cc
  3428. * src/InOrderURISelector.cc
  3429. * src/InOrderURISelector.h
  3430. * src/OptionHandlerFactory.cc
  3431. * src/PeerStat.h
  3432. * src/RequestGroup.cc
  3433. * src/RequestGroup.h
  3434. * src/RequestGroupMan.cc
  3435. * src/RequestGroupMan.h
  3436. * src/SegmentMan.cc
  3437. * src/SegmentMan.h
  3438. * src/ServerStat.cc
  3439. * src/ServerStat.h
  3440. * src/ServerStatMan.cc
  3441. * src/ServerStatMan.h
  3442. * src/ServerStatURISelector.cc
  3443. * src/ServerStatURISelector.h
  3444. * src/URISelector.h
  3445. * src/option_processing.cc
  3446. * src/prefs.cc
  3447. * src/prefs.h
  3448. * test/InOrderURISelectorTest.cc
  3449. * test/RequestGroupManTest.cc
  3450. * test/ServerStatManTest.cc
  3451. * test/ServerStatURISelectorTest.cc
  3452. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3453. * Release 0.15.1+2
  3454. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Bump up version number to 0.15.1+2
  3456. * configure.ac
  3457. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3459. * m4/aria2_arg.m4
  3460. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3461. * Release 0.15.1+1
  3462. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Bump up version number to 0.15.1+1
  3464. * configure.ac
  3465. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3466. Fixed the bug that causes segmentaion fault when resuming download
  3467. using metalink without size tag. Reproducible only using HTTP URI.
  3468. * src/HttpResponseCommand.cc
  3469. * src/FtpNegotiationCommand.cc
  3470. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. * Release 0.15.1
  3472. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3473. Updated Bulgarian and French translations, thanks to all translators.
  3474. * po/bg.po
  3475. * po/fr.po
  3476. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3477. Bump up version number to 0.15.1
  3478. * configure.ac
  3479. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Avoid repeated call of gettimeofday() when calculating speed.
  3481. * src/SpeedCalc.cc
  3482. * src/SpeedCalc.h
  3483. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. Removed writable check when socket's send buffer is full in BitTorrent
  3485. downloads to lower CPU usage.
  3486. * src/PeerInteractionCommand.cc
  3487. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3488. Fixed broken gzip inflation.
  3489. Turn off segmented downloading if gzip content is smaller than or equal
  3490. to 1MiB and inflate the data on the fly, because HTTP response header
  3491. doesn't contain the length of inflated file we can't determin where
  3492. the chunk of data should be written.
  3493. On the other hand, if gzip content is larger than 1MB, then turn off
  3494. on the fly inflation, because some servers returns "content-type: gzip"
  3495. for *.tgz, *.gz files.
  3496. * src/DownloadCommand.cc
  3497. * src/HttpResponseCommand.cc
  3498. * src/HttpResponseCommand.h
  3499. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3500. Applied tizianomueller's patch to fix compile error.
  3501. * test/BitfieldManTest.cc
  3502. * test/BtRequestMessageTest.cc
  3503. * test/DefaultBtContextTest.cc
  3504. * test/DefaultDiskWriterTest.cc
  3505. * test/DefaultPieceStorageTest.cc
  3506. * test/HttpHeaderProcessorTest.cc
  3507. * test/HttpResponseTest.cc
  3508. * test/Metalink2RequestGroupTest.cc
  3509. * test/MetalinkParserControllerTest.cc
  3510. * test/MetalinkProcessorTest.cc
  3511. * test/PeerSessionResourceTest.cc
  3512. * test/UtilTest.cc
  3513. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. * Release 0.15.0
  3515. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3516. Reordered src files in POTFILES.in so that usage text appears first.
  3517. * po/POTFILES.in
  3518. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3519. Bump up version number to 0.15.0
  3520. * configure.ac
  3521. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Added Bulgarian translation.
  3523. Updated Catalan, Spanish, French and Japanese translations.
  3524. Thanks to all translators.
  3525. * po/LINGUAS
  3526. * po/bg.po
  3527. * po/ca.po
  3528. * po/es.po
  3529. * po/fr.po
  3530. * po/ja.po
  3531. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3532. Updated feature list. Added libz for dependency section.
  3533. Added a description about unit testing using CppUnit.
  3534. * README
  3535. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Added a test for libz. Quoted where it is necessary.
  3537. * build_test.sh
  3538. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Added GZip to `Enabled Features' list.
  3540. * src/FeatureConfig.cc
  3541. * src/FeatureConfig.h
  3542. * test/FeatureConfigTest.cc
  3543. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3544. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3545. the transfer has not yet started.
  3546. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3547. * src/SegmentMan.cc
  3548. * src/SegmentMan.h
  3549. * test/SegmentManTest.cc
  3550. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3551. Cache last calculated average download/upload speed.
  3552. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3553. cached value.
  3554. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3555. * src/PeerStat.h
  3556. * src/SpeedCalc.cc
  3557. * src/SpeedCalc.h
  3558. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3559. Call parseUrl directly.
  3560. * src/Request.cc (resetUrl)
  3561. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Supported absolute/relative path in Location header field.
  3563. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3564. * src/HttpHeader.cc
  3565. * src/HttpHeader.h
  3566. * src/HttpResponse.cc
  3567. * src/HttpSkipResponseCommand.cc
  3568. * src/Request.cc
  3569. * test/HttpHeaderTest.cc
  3570. * test/HttpResponseTest.cc
  3571. * test/RequestTest.cc
  3572. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3573. Changed help text for --load-cookie option.
  3574. * doc/aria2c.1.txt
  3575. * src/usage_text.h
  3576. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3577. Regenerated test/Makefile.in to remove stale ChangeLog.
  3578. * test/Makefile.in
  3579. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3580. Updated po files.
  3581. * po/aria2c.pot
  3582. * po/*.po
  3583. * po/*.gmo
  3584. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. Bump up version number to 0.15.0b
  3586. * configure.ac
  3587. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Externalize messages.
  3589. * src/RequestGroupMan.cc
  3590. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3591. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3592. Use File::exists() instead of File::isFile() to allow non-regular file
  3593. such as block special files.
  3594. * src/AbstractDiskWriter.cc
  3595. * src/MultiDiskWriter.cc
  3596. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3597. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3598. * src/gai_strerror.h
  3599. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3600. Fixed compile error. Thanks gknauf for the patch.
  3601. * src/asctime_r.c
  3602. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Included asctime_r.h from a2time.h.
  3604. * src/a2time.h
  3605. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. Added a message "aria2 doesn't verify signature" to log message when
  3607. signature file is saved.
  3608. * src/RequestGroupMan.cc
  3609. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3610. Added the ability to save signature when download is completed if
  3611. signature is available. The filename of signature file is the path to
  3612. download file followed by ".sig". If it already exists, then signature
  3613. will not be saved.
  3614. * src/RequestGroupMan.cc
  3615. * src/Signature.cc
  3616. * test/SignatureTest.cc
  3617. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3618. Updated the descriptions for --bt-seed-unverified.
  3619. * doc/aria2c.1
  3620. * doc/aria2c.1.html
  3621. * doc/aria2c.1.txt
  3622. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3624. that this is not going to verify files using piece hashes.
  3625. * src/HelpItemFactory.cc
  3626. * src/OptionHandlerFactory.cc
  3627. * src/RequestGroup.cc
  3628. * src/option_processing.cc
  3629. * src/prefs.cc
  3630. * src/prefs.h
  3631. * src/usage_text.h
  3632. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3633. Added the ability to retrieve signature from Metalink file.
  3634. A retrieved signature is stored in Signature class and it is held by
  3635. DownloadContext class. Note that aria2 doesn't verify signature.
  3636. * src/DownloadContext.cc
  3637. * src/DownloadContext.h
  3638. * src/Makefile.am
  3639. * src/Makefile.in
  3640. * src/Metalink2RequestGroup.cc
  3641. * src/MetalinkEntry.cc
  3642. * src/MetalinkEntry.h
  3643. * src/MetalinkParserController.cc
  3644. * src/MetalinkParserController.h
  3645. * src/MetalinkParserStateMachine.cc
  3646. * src/MetalinkParserStateMachine.h
  3647. * src/Signature.cc
  3648. * src/Signature.h
  3649. * src/SignatureMetalinkParserState.cc
  3650. * src/SignatureMetalinkParserState.h
  3651. * src/VerificationMetalinkParserState.cc
  3652. * src/VerificationMetalinkParserState.h
  3653. * test/Metalink2RequestGroupTest.cc
  3654. * test/MetalinkParserControllerTest.cc
  3655. * test/MetalinkProcessorTest.cc
  3656. * test/test.xml
  3657. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. Close DiskAdaptor after renaming file.
  3659. * src/RequestGroup.cc
  3660. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Corrected indentation
  3662. * src/DefaultBtProgressInfoFile.cc
  3663. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Moved the calls of std::ios::exceptions() inside of try-catch block
  3665. because if an error occurred in constructor of std::fstream, then
  3666. exception is thrown immediately when std::ios::exceptions() is called
  3667. which results unhandled exception and aria2c aborts.
  3668. * src/DefaultBtProgressInfoFile.cc
  3669. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Added the test for the previous change in DefaultBtContext.cc
  3671. * test/DefaultBtContextTest.cc
  3672. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Fixed the bug that causes infinite loop when the number of pieces are
  3674. fewer than allowed fast set size which is 10 by default.
  3675. * src/DefaultBtContext.cc
  3676. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3677. Updated the descriptions for -j, -s. Added --bt-seed.
  3678. * doc/aria2c.1
  3679. * doc/aria2c.1.html
  3680. * doc/aria2c.1.txt
  3681. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3683. aria2 seeds previously downloaded files without validating piece hashs.
  3684. * src/HelpItemFactory.cc
  3685. * src/OptionHandlerFactory.cc
  3686. * src/RequestGroup.cc
  3687. * src/option_processing.cc
  3688. * src/prefs.cc
  3689. * src/prefs.h
  3690. * src/usage_text.h
  3691. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3692. Updated DESCRIPTION of man page.
  3693. * doc/aria2c.1
  3694. * doc/aria2c.1.html
  3695. * doc/aria2c.1.txt
  3696. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3698. Don't define `struct addrinfo' when __sun is defined.
  3699. * src/getaddrinfo.h
  3700. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3702. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3703. second argument is of type `struct _stati64'. Otherwise it is defined as
  3704. `struct stat'.
  3705. * src/AbstractDiskWriter.cc
  3706. * src/File.cc
  3707. * src/File.h
  3708. * src/a2io.h
  3709. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Fixed the compile error in hurd-i386
  3711. See the original bug report:
  3712. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3713. * src/a2io.h
  3714. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Code cleanup.
  3716. * src/PeerAbstractCommand.cc
  3717. * src/PeerAbstractCommand.h
  3718. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Removed TransferEncoding.
  3720. * src/DownloadCommand.cc
  3721. * src/DownloadCommand.h
  3722. * src/HttpResponseCommand.cc
  3723. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3724. Updated po files.
  3725. * po/aria2c.pot
  3726. * po/*.po
  3727. * po/*.gmo
  3728. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3730. * src/A2STR.cc
  3731. * src/A2STR.h
  3732. * src/ChunkedDecoder.cc
  3733. * src/ChunkedDecoder.h
  3734. * src/ChunkedEncoding.cc: Removed
  3735. * src/ChunkedEncoding.h: Removed
  3736. * src/DownloadCommand.cc
  3737. * src/DownloadCommand.h
  3738. * src/HttpDownloadCommand.cc
  3739. * src/HttpResponse.cc
  3740. * src/HttpResponse.h
  3741. * src/HttpResponseCommand.cc
  3742. * src/HttpSkipResponseCommand.cc
  3743. * src/HttpSkipResponseCommand.h
  3744. * src/Makefile.am
  3745. * src/TransferEncoding.h: Removed
  3746. * test/ChunkedDecoderTest.cc
  3747. * test/ChunkedEncodingTest.cc: Removed
  3748. * test/HttpResponseTest.cc
  3749. * test/Makefile.am
  3750. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3751. Use append instead of insert.
  3752. * src/GZipDecoder.cc
  3753. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Updated doc
  3755. * src/Decoder.h
  3756. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Updated usage text for -s option.
  3758. * src/usage_text.h
  3759. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3760. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3761. * src/Request.cc
  3762. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3763. Cleaned up configure.ac.
  3764. * configure.ac
  3765. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3767. AC_ARG_ENABLE.
  3768. * configure.ac
  3769. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3770. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3771. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3772. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3773. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3774. fly and writes decoded data to a local disk.
  3775. * README
  3776. * README.html
  3777. * configure.ac
  3778. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3779. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3780. * m4/libz.m4
  3781. * src/Decoder.h
  3782. * src/DownloadCommand.cc
  3783. * src/DownloadCommand.h
  3784. * src/Exception.h
  3785. * src/GZipDecoder.cc
  3786. * src/GZipDecoder.h
  3787. * src/HttpHeader.cc
  3788. * src/HttpHeader.h
  3789. * src/HttpRequest.cc
  3790. * src/HttpRequest.h
  3791. * src/HttpResponse.cc
  3792. * src/HttpResponse.h
  3793. * src/HttpResponseCommand.cc
  3794. * src/Makefile.am
  3795. * test/GZipDecoderTest.cc
  3796. * test/HttpRequestTest.cc
  3797. * test/HttpResponseTest.cc
  3798. * test/Makefile.am
  3799. * test/Makefile.in
  3800. * test/gzip_decode_test.gz
  3801. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Clarified usage of -j option.
  3803. * src/usage_text.h
  3804. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Disabled getting size from the response of RETR.
  3806. If SIZE command failed, then disable resuming and segmented downloading.
  3807. * src/FtpConnection.cc
  3808. * src/FtpConnection.h
  3809. * src/FtpNegotiationCommand.cc
  3810. * src/FtpNegotiationCommand.h
  3811. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3812. Use digits to find first byte of file size, which makes the intention
  3813. of the code clearer.
  3814. * src/FtpConnection.cc
  3815. Don't call validateTotalLength() when size is 0.
  3816. * src/FtpNegotiationCommand.cc
  3817. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3818. Updated po files.
  3819. * po/aria2c.pot
  3820. * po/*.gmo
  3821. * po/*.po
  3822. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3823. Clarified usage text for --split option.
  3824. * src/usage_text.h
  3825. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Bump up version number to 0.15.0dev. "dev" means "development"
  3827. version, which means I started the development of the next release!
  3828. * src/configure.ac
  3829. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3830. If FTP server returns negative response with REST raw command and
  3831. requested range is not 0, throw exception. If requested range is 0,
  3832. continue download a file from 0 byte.
  3833. * src/FtpNegotiationCommand.cc
  3834. * src/FtpNegotiationCommand.h
  3835. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Supported FTP server which don't recognize SIZE raw command.
  3837. If SIZE raw command is failed, aria2 will try to get file size
  3838. from the response of RETR raw command. If both attempts are failed,
  3839. then resuming and segmented downloading are disabled.
  3840. * src/FtpConnection.cc
  3841. * src/FtpConnection.h
  3842. * src/FtpNegotiationCommand.cc
  3843. * src/FtpNegotiationCommand.h
  3844. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. * Release 0.14.0+1
  3846. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3847. Bump up version number to 0.14.0+1
  3848. * src/configure.ac
  3849. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Fixed the code that refers static member variable from non-static
  3851. context.
  3852. * src/DefaultPeerStorage.cc
  3853. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. * Release 0.14.0
  3855. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Added build test script
  3857. * build_test.sh
  3858. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Updated ja.po
  3860. * src/ja.po
  3861. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Bump up version number to 0.14.0
  3863. * src/configure.ac
  3864. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3865. Updated ja.po and fr.po. Great thanks for french translators and
  3866. Sebastien WILLEMIJNS.
  3867. * po/fr.po
  3868. * po/ja.po
  3869. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Added configure option to enable/disable epoll support.
  3871. * configure.ac
  3872. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Updated man page.
  3874. * doc/aria2c.1.txt
  3875. * doc/aria2c.1
  3876. * doc/aria2c.1.html
  3877. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3878. Added missing default value '5' to the usage of --split option.
  3879. * src/HelpItemFactory.cc
  3880. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Filled up pieces based on the number of missing blocks, rather than
  3882. simplay the number of piece * block length.
  3883. * src/BtRequestFactory.h
  3884. * src/DefaultBtInteractive.cc
  3885. * src/DefaultBtInteractive.h
  3886. * src/DefaultBtRequestFactory.cc
  3887. * src/DefaultBtRequestFactory.h
  3888. * src/Piece.cc
  3889. * src/Piece.h
  3890. * test/BitfieldManTest.cc
  3891. * test/DefaultBtRequestFactoryTest.cc
  3892. * test/MockBtRequestFactory.h
  3893. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3894. Made _epEvents a member variable.
  3895. * src/DownloadEngine.cc
  3896. * src/DownloadEngine.h
  3897. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. Cancel download if http redirect is bounded more than 20 times.
  3899. * src/AbstractCommand.cc
  3900. * src/HttpSkipResponseCommand.cc
  3901. * src/Request.cc
  3902. * src/Request.h
  3903. * test/RequestTest.cc
  3904. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Fixed unhandled exception(removed keyword `new').
  3906. * src/SocketCore.cc (initEPOLL)
  3907. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3908. Removed visit(const MetaEntry*)
  3909. * src/MetaEntryVisitor.h:
  3910. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3911. and made them virtual.
  3912. * src/BencodeVisitor.h
  3913. * src/BencodeVisitor.cc
  3914. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3915. Updated po files.
  3916. * po/aria2c.pot
  3917. * po/*.po
  3918. * po/*.gmo
  3919. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3921. the number of socket to watch out.
  3922. * src/PeerInteractionCommand.cc
  3923. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3924. When there is not enough space in disk when writing a chunk of data,
  3925. aria2 now prints the message to the console to warn user and aborts
  3926. its download. Not all downloads are canceled because some downloads
  3927. may use another disk or partition. BUG#1640332
  3928. * src/AbstractDiskWriter.cc
  3929. * src/PeerAbstractCommand.cc
  3930. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3931. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3932. setHaltRequested(true) to cancel download.
  3933. * src/PeerInteractionCommand.h
  3934. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3936. socket from int to sock_t as sockets are unsigned in Windows.
  3937. For AsyncNameResolver, DownloadEngine, I did additional modification
  3938. for the portion of the code changed according to epoll support.
  3939. I defined sock_t in a2netcompat.h to use sock_t without including
  3940. SocketCore.h.
  3941. * src/AsyncNameResolver.cc
  3942. * src/AsyncNameResolver.h
  3943. * src/DownloadEngine.cc
  3944. * src/DownloadEngine.h
  3945. * src/SocketCore.cc
  3946. * src/SocketCore.h
  3947. * src/a2netcompat.h
  3948. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3949. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3950. changes in the patch were applied.
  3951. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3952. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3953. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3954. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3955. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3956. a2io.h and common.h were modified.
  3957. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3958. MinGW.
  3959. * src/common.h: Changed off_t to 64 bit in MinGW.
  3960. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3962. only a2netcompat.h is modified.
  3963. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3964. directives.
  3965. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3966. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3967. only gai_strerror.h is modified.
  3968. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3969. winsock errors in MinGW.
  3970. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3972. follow sources are applied.
  3973. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3974. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3975. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3976. I included locale.h from Platform.cc.
  3977. * src/main.cc: Moved common setup/teardown code to Platform class.
  3978. * test/AllTest.cc: Use Platform class.
  3979. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3980. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3982. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3983. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3984. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3986. aria2-0.13.2+1-mingw-2.patch.
  3987. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3988. systems which don't have termious.h. I moved the directive inside of
  3989. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3990. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3991. anyway.
  3992. * src/asctime_r.h
  3993. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3994. I added 2nd argument to the prototype declaration.
  3995. * src/StringFormat.cc: Get rid of vasprintf.
  3996. * src/getaddrinfo.h: Fixed constants.
  3997. * configure.ac: Added the check for asctime_r function.
  3998. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3999. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Added writable test for Socket when the sending message is in progress.
  4001. Usually the sending message is piece message. Without wriable check,
  4002. upload latency is dropped to more than 1sec.
  4003. * src/PeerInteractionCommand.cc
  4004. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. Create only requested files and files which shares a piece with
  4006. requested file in multi-torrent downloads. Directory structures are
  4007. also created in the same rule.
  4008. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4009. DiskWriterEntry as in the previous implementation.
  4010. * src/MultiDiskWriter.cc
  4011. * src/MultiFileAllocationIterator.cc
  4012. * src/MultiFileAllocationIterator.h
  4013. * test/MultiFileAllocationIteratorTest.cc
  4014. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4015. Commented out -lprofiler
  4016. * src/Makefile.am
  4017. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Bump up version number to 0.14.0b.
  4019. * src/configure.ac
  4020. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Actively establish connection to peers in seeding, when peer cache
  4022. is not full and max upload speed limit is not reached.
  4023. * src/ActivePeerConnectionCommand.cc
  4024. * src/ActivePeerConnectionCommand.h
  4025. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4027. to make room more fleshy, recently found peers.
  4028. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4029. it.
  4030. * src/DefaultPeerStorage.cc
  4031. * test/DefaultPeerStorageTest.cc
  4032. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4033. Returns cached data only when the previous receiveHandshake() is called
  4034. with peek = true.
  4035. * src/PeerConnection.cc (receiveHandshake)
  4036. * src/PeerConnection.h (receiveHandshake)
  4037. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Changed default value of -s option from 1 to 5.
  4039. Also max value of -s option is changed from 5 to 16.
  4040. * src/HelpItemFactory.cc
  4041. * src/OptionHandlerFactory.cc
  4042. * src/option_processing.cc
  4043. * src/usage_text.h
  4044. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4045. Changed -s options behavior. Now it means the number of connections
  4046. made simultaneously in each http/ftp download.
  4047. If 1 URL is specified, the behavior is the same with old implementation.
  4048. If -s N is given and more than N URLs are specified, first N URLs are
  4049. used and remaining URLs are used for backup. If less than N URLs are
  4050. specified, some of URLs are used more than once so that totally N
  4051. connections are made simultaneously.
  4052. * src/main.cc
  4053. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Included missing iosfwd or ostream header.
  4055. * src/RequestGroupMan.cc
  4056. * src/TaggedItem.cc
  4057. * src/TaggedItem.h
  4058. * src/Util.cc
  4059. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4061. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4062. * src/HttpConnection.cc: Included missing sstream.
  4063. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Added --bt-max-open-files option.
  4065. * src/DefaultPieceStorage.cc
  4066. * src/HelpItemFactory.cc
  4067. * src/MultiDiskAdaptor.cc
  4068. * src/MultiDiskAdaptor.h
  4069. * src/OptionHandlerFactory.cc
  4070. * src/option_processing.cc
  4071. * src/prefs.cc
  4072. * src/prefs.h
  4073. * src/usage_text.h
  4074. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4075. Fixed the bug that aria2 aborts when a path to a directory is given
  4076. in command-line.
  4077. * src/ProtocolDetector.cc
  4078. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4079. Limited the number files opened in each BitTorrent download. The default
  4080. value is 100. The option to change this value will be added.
  4081. * src/MultiDiskAdaptor.cc
  4082. * src/MultiDiskAdaptor.h
  4083. * src/MultiFileAllocationIterator.cc
  4084. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Fixed the bug that HTTP downloads don't start with old libraries.
  4086. * src/HttpHeaderProcessor.cc
  4087. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Use empty() instead of size() > 0.
  4089. * src/HttpConnection.cc
  4090. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4091. Drop connection if the incoming peer ID is the same with localhost's
  4092. one. The previous implementation drops connection when incoming peer's
  4093. IP address is the same with localhost's one.
  4094. * src/PeerListenCommand.cc
  4095. * src/DefaultBtInteractive.cc
  4096. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Returns cached data without checking whether socket is readable
  4098. if the cache is available.
  4099. * src/PeerConnection.cc (receiveHandshake)
  4100. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Included stdint.h
  4102. * src/common.h
  4103. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4104. Removed duplicate HAVE_GETTIMEOFDAY
  4105. * src/Makefile.am
  4106. * src/Makefile.in
  4107. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Use interval as a minInterval when minInterval is not supplied.
  4109. * src/DefaultBtAnnounce.cc
  4110. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4112. attempt is failed, then 2nd attempt get kicked out more quickly.
  4113. And it is now static const member of DefaultBtAnnounce.
  4114. * src/DefaultBtAnnounce.h
  4115. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4117. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4118. * src/ActivePeerConnectionCommand.cc
  4119. * src/BtConstants.h
  4120. * src/BtRuntime.h
  4121. * src/DHTGetPeersCommand.cc
  4122. * src/DefaultBtAnnounce.cc
  4123. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4124. BtRuntime::MAX_PEERS.
  4125. * src/DefaultPeerStorage.h
  4126. * src/InitiatorMSEHandshakeCommand.cc
  4127. * src/PeerInitiateConnectionCommand.cc
  4128. * src/PeerInteractionCommand.cc
  4129. * src/PeerReceiveHandshakeCommand.cc
  4130. * src/TrackerWatcherCommand.cc
  4131. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4132. Always Connect to _numNewConnection
  4133. * src/ActivePeerConnectionCommand.cc
  4134. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Made `begin' unsigned int.
  4136. * src/GrowSegment.h
  4137. * src/Piece.cc
  4138. * src/Piece.h
  4139. * src/PiecedSegment.cc
  4140. * src/PiecedSegment.h
  4141. * src/Segment.h
  4142. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4143. Calculate piece hash when data is arrived if the data is arrived in
  4144. order. This removes additional read operation for hash calculation.
  4145. If the data is arrived in out of order, the hash is calucated when the
  4146. piece is completed. This is the same behavior as the old implementation.
  4147. * src/BtPieceMessage.cc
  4148. * src/DefaultBtProgressInfoFile.cc
  4149. * src/DefaultPieceStorage.cc
  4150. * src/DownloadCommand.cc
  4151. * src/DownloadCommand.h
  4152. * src/DownloadEngine.cc
  4153. * src/GrowSegment.cc
  4154. * src/GrowSegment.h
  4155. * src/Piece.cc
  4156. * src/Piece.h
  4157. * src/PiecedSegment.cc
  4158. * src/PiecedSegment.h
  4159. * src/Segment.h
  4160. * test/PieceTest.cc
  4161. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Try to keep the ordering of outgoing piece message.
  4163. * src/DefaultBtMessageDispatcher.cc
  4164. (DefaultBtMessageDispatcher::sendMessages)
  4165. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Fixed busy loop when error/hup epoll events occur.
  4167. * src/AbstractCommand.cc
  4168. * src/PeerAbstractCommand.cc
  4169. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4170. Added --bt-request-peer-speed-limit option, which was a constant
  4171. SLOW_SPEED_THRESHOLD.
  4172. * src/ActivePeerConnectionCommand.cc
  4173. * src/ActivePeerConnectionCommand.h
  4174. * src/BtConstants.h
  4175. * src/HelpItemFactory.cc
  4176. * src/OptionHandlerFactory.cc
  4177. * src/PeerReceiveHandshakeCommand.cc
  4178. * src/option_processing.cc
  4179. * src/prefs.cc
  4180. * src/prefs.h
  4181. * src/usage_text.h
  4182. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4183. Removed repeated call of getTopDirPath(). Instead, call it once and
  4184. cache the result.
  4185. * src/MultiDiskAdaptor.cc
  4186. * src/MultiDiskAdaptor.h
  4187. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4188. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Fixed compile error on debian etch.
  4190. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4191. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4192. it is undefined.
  4193. * src/Util.cc (ULLONG_MAX)
  4194. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Added epoll support. Use epoll if it is available. If not, use select.
  4196. When async dns is enabled in compile time, epoll support is enabled
  4197. only when aria2 is built with c-ares. This condition statement is
  4198. defined in a2io.h.
  4199. Currently aria2 supports both c-ares and ares, but ares is maintained
  4200. for quite a while and debian already has c-ares package, ares support
  4201. will be dropped in the future version.
  4202. * configure.ac
  4203. * src/AbstractCommand.cc
  4204. * src/AsyncNameResolver.cc
  4205. * src/AsyncNameResolver.h
  4206. * src/Command.cc
  4207. * src/Command.h
  4208. * src/DownloadEngine.cc
  4209. * src/DownloadEngine.h
  4210. * src/PeerAbstractCommand.cc
  4211. * src/SocketCore.cc
  4212. * src/SocketCore.h
  4213. * src/a2io.h
  4214. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4216. directive.
  4217. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Do not do write operation to /dev/null file.
  4219. * src/LogFactory.cc
  4220. * src/SimpleLogger.cc
  4221. Replaced vasprintf with vsnprintf
  4222. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4223. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4224. * src/BtRequestMessage.cc
  4225. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4226. for segmentation fault caused by previous commit.
  4227. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Reduced the usage of gettimeofday().
  4229. * src/DefaultBtMessageDispatcher.cc
  4230. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4231. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4232. * src/RequestSlot.cc
  4233. * src/RequestSlot.h
  4234. (RequestSlot::isTimeout)
  4235. Made RequestSlot have a reference to Piece object to avoid find
  4236. Piece repeatedly.
  4237. * src/DefaultBtMessageDispatcher.cc
  4238. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4239. * src/RequestSlot.cc
  4240. * src/RequestSlot.h
  4241. (RequestSlot::getPiece)
  4242. * test/DefaultBtMessageDispatcherTest.cc
  4243. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4244. * src/TimeA2.cc
  4245. * src/TimeA2.h
  4246. (Time::difference): New function.
  4247. (Time::elapsed): Done optimization.
  4248. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4250. directive.
  4251. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. * src/option_processing.cc: Added missing `defined' keyword to #if
  4253. directive.
  4254. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Bump up version number to 0.13.2+1
  4256. * src/configure.ac
  4257. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4258. Refactored broken outstanding piece handling.
  4259. * src/DefaultPieceStorage.cc
  4260. * src/DefaultPieceStorage.h
  4261. * src/Piece.cc
  4262. * src/Piece.h
  4263. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4264. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4265. name collision of static variable and predefined macro.
  4266. * src/BtContext.cc
  4267. * src/BtContext.h
  4268. * src/CookieBoxFactory.cc
  4269. * src/CookieBoxFactory.h
  4270. * src/CookieParser.cc
  4271. * src/CookieParser.h
  4272. * src/DefaultBtContext.cc
  4273. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4274. * src/RequestGroup.cc
  4275. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4276. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. * Release 0.13.2
  4278. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4279. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4280. * po/fr.po
  4281. * po/ja.po
  4282. * po/aria2c.pot
  4283. * po/*.po
  4284. * po/*.gmo
  4285. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Bump up version number to 0.13.2
  4287. * src/configure.ac
  4288. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Refactord.
  4290. * src/RequestGroupMan.cc
  4291. (removeStoppedGroup)
  4292. (fillRequestGroupFromReserver)
  4293. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. Fixed compile error on Ubuntu.
  4295. * src/BtPieceMessage.cc
  4296. * src/MessageDigestHelper.cc
  4297. * src/Util.cc
  4298. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Fixed compile error when configured with --disable-bittorrent
  4300. * test/DownloadHandlerFactoryTest.cc
  4301. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. Done make update-po
  4303. * po/aria2c.pot
  4304. * po/*.po
  4305. * po/*.gmo
  4306. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Bump up version number to 0.13.2rc.
  4308. * src/configure.ac
  4309. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Made option name bold. Updated SYNOPSIS to make it more readable.
  4311. * doc/aria2c.1.txt
  4312. * doc/aria2c.1
  4313. * doc/aria2c.1.html
  4314. * src/version_usage.cc
  4315. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Refactored. Use std::string instead of size and char*.
  4317. * Data.cc
  4318. * Data.h
  4319. * test/Data.cc
  4320. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Added trimSelf(). Rewritten trim() to use trimSelf().
  4322. * Util.cc
  4323. * Util.h
  4324. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4326. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Fixed compile error when configured with --disable-metalink.
  4328. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4329. * test/FeatureConfigTest.cc
  4330. * test/DownloadHandlerFactoryTest.cc
  4331. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4332. Fixed compile error when configured with --without-gnutls
  4333. --without-openssl
  4334. * src/main.cc
  4335. * test/DefaultBtProgressInfoFileTest.cc
  4336. * test/SegmentManTest.cc
  4337. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Fixed compile error with OpenSSL.
  4339. * src/IteratableChunkChecksumValidator.cc
  4340. * src/LibsslDHKeyExchange.h
  4341. * src/MessageDigestHelper.cc
  4342. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. Revert the default value of --max-concurrent-downloads to 5.
  4344. Revert the default value of --metalink-servers to 5.
  4345. Man pages was also updated.
  4346. * src/option_processing.cc
  4347. * doc/aria2c.1.txt
  4348. * doc/aria2c.1.html
  4349. * doc/aria2c.1
  4350. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4351. Returns const reference:
  4352. DownloadContext::getPieceHash, DownloadContext::getName,
  4353. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4354. BtContext::getInfoHashAsString,
  4355. * src/BtContext.h
  4356. * src/DefaultBtContext.cc
  4357. * src/DefaultBtContext.h
  4358. * src/DownloadContext.h
  4359. * src/SingleFileDownloadContext.h
  4360. * test/MockBtContext.h
  4361. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. * src/RequestGroup.h (getDir): Removed.
  4363. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Returns const reference. The internal urlencode function was optimized
  4365. a little bit.
  4366. * src/Request.cc
  4367. * src/Request.h
  4368. * src/HttpRequest.cc
  4369. * src/HttpRequest.h
  4370. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4371. Defined option name and possible values as std::string to reduce
  4372. temporary string object creation in runtime.
  4373. * src/HelpItemFactory.cc
  4374. * src/LogFactory.cc
  4375. * src/Option.cc
  4376. * src/OptionHandlerFactory.cc
  4377. * src/option_processing.cc
  4378. * src/prefs.cc
  4379. * src/prefs.h
  4380. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4381. Return const reference.
  4382. * src/DownloadHandlerConstants.cc
  4383. * src/DownloadHandlerConstants.h
  4384. (getMetalinkExtensions)
  4385. (getMetalinkContentTypes)
  4386. (getBtExtensions)
  4387. (getBtContentTypes)
  4388. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4389. * src/HttpHeader.cc (get): Rewritten.
  4390. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4391. Make HttpHeader::getFirst(...) return const reference.
  4392. * src/HttpHeader.cc
  4393. * src/HttpHeader.h
  4394. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4396. it with V_TRUE.
  4397. * src/DefaultPieceStorage.cc
  4398. * src/DownloadCommand.cc
  4399. * src/FtpNegotiationCommand.cc
  4400. * src/HttpRequest.cc
  4401. * src/InitiateConnectionCommand.cc
  4402. * src/RequestGroup.cc
  4403. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Made Option::get(...) return const reference of std::string.
  4405. * src/Option.cc
  4406. * src/Option.h
  4407. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Replaced std:copy with insert.
  4409. * src/DefaultBtMessageDispatcher.cc
  4410. * src/DefaultPieceStorage.cc
  4411. * src/DownloadEngineFactory.cc
  4412. * src/RequestGroup.cc
  4413. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Included SocketCore.h to fix compiler warning.
  4415. * src/InitiateConnectionCommand.cc
  4416. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4417. Put piece selection strategy algorithm to RarestPieceSelector class,
  4418. Added a switch to choose whether randomized selection so that unit
  4419. tests emit same results in, possibly, win32.
  4420. * src/DefaultPieceStorage.cc
  4421. * src/DefaultPieceStorage.h
  4422. * src/RarestPieceSelector.cc
  4423. * src/RarestPieceSelector.h
  4424. * test/DefaultPieceStorageTest.cc
  4425. * test/RarestPieceSelectorTest.cc
  4426. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4427. Don't pool connection if HTTP proxy is enabled.
  4428. * src/FtpFinishDownloadCommand.cc
  4429. * src/FtpNegotiationCommand.cc
  4430. * src/HttpSkipResponseCommand.cc
  4431. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4433. * src/AbstractCommand.cc
  4434. * src/AbstractCommand.h
  4435. * src/ActivePeerConnectionCommand.cc
  4436. * src/FtpInitiateConnectionCommand.cc
  4437. * src/HttpInitiateConnectionCommand.cc
  4438. * src/InitiateConnectionCommandFactory.cc
  4439. * src/PeerAbstractCommand.cc
  4440. * src/PeerAbstractCommand.h
  4441. * src/PeerInitiateConnectionCommand.cc
  4442. * src/TrackerWatcherCommand.cc
  4443. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4444. Sort RequestSlot in ascending order and manipulate them using
  4445. lower_bound.
  4446. * src/DefaultBtMessageDispatcher.cc
  4447. * src/DefaultBtMessageDispatcher.h
  4448. (getMessageQueue): Added const qualifier.
  4449. (getRequestSlots): Added const qualifier.
  4450. (sendMessages): Use empty() instead of size().
  4451. (doCancelSendingPieceAction): Use HandleEvent object.
  4452. (doAbortOutstandingRequestAction): Rewritten.
  4453. (doChokedAction): Rewritten.
  4454. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4455. (isOutstandingRequest): Rewritten.
  4456. (getOutstandingRequest): Rewritten.
  4457. (removeOutstandingRequest): Rewritten.
  4458. (addOutstandingRequest): Rewritten.
  4459. * src/RequestSlot.cc
  4460. * src/RequestSlot.h
  4461. (operator=): Rewritten.
  4462. (operator!=): New function.
  4463. (operator<): New function.
  4464. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. * src/DefaultBtRequestFactory.cc
  4466. (doChokedAction): Rewritten.
  4467. (removeCompletedPiece): Rewritten.
  4468. (removeTargetPiece): Rewritten.
  4469. (createRequestMessages): Added the debug log.
  4470. (createRequestMessagesOnEndGame: Added the debug log.
  4471. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Added the debug log message.
  4473. * src/BtPieceMessage.cc (doReceivedAction)
  4474. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4476. used lower_bound to process them rather than linear search.
  4477. * src/DHTPeerAnnounceStorage.cc
  4478. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4480. peer has at least one completed piece.
  4481. * src/Peer.cc
  4482. * src/Peer.h
  4483. * src/PeerInteractionCommand.cc
  4484. * src/PeerSessionResource.cc
  4485. * src/PeerSessionResource.h
  4486. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4487. Removed unnecessary sorting
  4488. * src/DefaultPieceStorage (DefaultPieceStorage)
  4489. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Rewritten the portion of the code that mangaes allowed fast indexes.
  4491. * src/PeerSessionResource.cc
  4492. * src/PeerSessionResource.h
  4493. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Removed the invalid string including '\r' from ru.po and
  4495. did make update-po.
  4496. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Added --log-level and --summary-interval to man page.
  4498. * doc/aria2c.1.txt
  4499. * doc/aria2c.1.html
  4500. * doc/aria2c.1
  4501. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Added --log-level option to specify log level. Log messages under
  4503. the specified level are not output. Default value is `debug'.
  4504. * src/HelpItemFactory.cc
  4505. * src/LogFactory.cc
  4506. * src/LogFactory.h
  4507. * src/Logger.h
  4508. * src/OptionHandlerFactory.cc
  4509. * src/SimpleLogger.cc
  4510. * src/SimpleLogger.h
  4511. * src/main.cc
  4512. * src/option_processing.cc
  4513. * src/prefs.h
  4514. * src/usage_text.h
  4515. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4516. Print download progress summary of all parallel downloads in specified
  4517. interval, default 60 secs. While aria2 could download several files
  4518. in parallel (see -j option), it displayed just first download progress,
  4519. and the other downloads are hidden from the users. This new feature
  4520. prints all downloads currently in-progress to the console so that you
  4521. can check the status of all downloads. The interval can be adjusted
  4522. by --summary-interval option.
  4523. The progress readout is now cut so that all fits in the one line of
  4524. console.
  4525. * src/ConsoleStatCalc.cc
  4526. * src/ConsoleStatCalc.h
  4527. * src/HelpItemFactory.cc
  4528. * src/OptionHandlerFactory.cc
  4529. * src/RequestGroupMan.cc
  4530. * src/RequestGroupMan.h
  4531. * src/main.cc
  4532. * src/option_processing.cc
  4533. * src/prefs.h
  4534. * src/usage_text.h
  4535. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4537. * src/DownloadEngine.cc (DownloadEngine)
  4538. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4540. defined.
  4541. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4542. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. Use erase+lower_bound+insert instead of sort.
  4544. * src/DefaultPieceStorage.cc (addPieceStats)
  4545. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4547. * src/A2STR.cc
  4548. * src/A2STR.h
  4549. * src/OptionParser.cc (parse)
  4550. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Defined fake filename `[tracker.announce]' as static const std::string.
  4552. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4553. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Defined default filename `index.html' as static const std::string
  4555. * src/SingleFileDownloadContext.cc
  4556. * src/SingleFileDownloadContext.h
  4557. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Defined "[MEMORY]" as static const std::string.
  4559. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4560. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Defined control file's version number as static const std::string.
  4562. * src/DefaultBtProgressInfoFile.cc
  4563. * src/DefaultBtProgressInfoFile.h
  4564. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Use Request::METHOD_GET
  4566. * src/RequestGroup.cc (createNextCommandWithAdj)
  4567. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4568. Defined "OK", "ERR", "INPR" as static const std::string
  4569. * src/RequestGroupMan.cc (showDownloadResults)
  4570. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Defined default client used in extended handshake as static const
  4572. std::string
  4573. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4574. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4576. * src/HttpConnection.cc (eraseConfidentialInfo)
  4577. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Defined default ftp user and password as static const std::string
  4579. * src/AuthConfigFactory.cc
  4580. * src/AuthConfigFactory.h
  4581. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4582. Defined strings used in netrc as static const std::string
  4583. * src/Netrc.cc
  4584. * src/Netrc.h
  4585. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Defined HTTP status as static const std::string
  4587. * src/AbstractProxyResponseCommand.cc
  4588. * src/HttpHeader.cc
  4589. * src/HttpHeader.h
  4590. * src/HttpResponse.cc
  4591. * src/HttpResponseCommand.cc
  4592. * src/HttpSkipResponseCommand.cc
  4593. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Defined "\r\n", "A", "I" as static const std::string
  4595. * src/A2STR.cc
  4596. * src/A2STR.h
  4597. * src/FtpConnection.cc
  4598. * src/FtpConnection.h
  4599. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Added COLON_C(".") and used it in Request::parseUrl()
  4601. * src/A2STR.cc
  4602. * src/A2STR.h
  4603. * src/Request.cc (parseUrl)
  4604. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Changed the type of padName from `const std::string&' to `const char*'.
  4606. * src/MSEHandshake.cc (verifyPadLength)
  4607. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Defined "sha1" as static const std::string.
  4609. * src/MetalinkParserController.cc
  4610. * src/MetalinkParserController.h
  4611. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Defined message digest algorithm name as static const std::string
  4613. * src/DHTTokenTracker.cc
  4614. * src/DHTUtil.cc
  4615. * src/DefaultBtContext.cc
  4616. * src/MSEHandshake.cc
  4617. * src/MessageDigestHelper.cc
  4618. * src/Peer.cc
  4619. * src/messageDigest.cc
  4620. * src/messageDigest.h
  4621. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Made string literals used in SAX parser static const std::string.
  4623. * src/FileMetalinkParserState.cc
  4624. * src/FileMetalinkParserState.h
  4625. * src/FilesMetalinkParserState.cc
  4626. * src/FilesMetalinkParserState.h
  4627. * src/InitialMetalinkParserState.cc
  4628. * src/InitialMetalinkParserState.h
  4629. * src/MetalinkMetalinkParserState.cc
  4630. * src/MetalinkMetalinkParserState.h
  4631. * src/PiecesMetalinkParserState.cc
  4632. * src/PiecesMetalinkParserState.h
  4633. * src/ResourcesMetalinkParserState.cc
  4634. * src/ResourcesMetalinkParserState.h
  4635. * src/VerificationMetalinkParserState.cc
  4636. * src/VerificationMetalinkParserState.h
  4637. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4639. * src/A2STR.cc
  4640. * src/A2STR.h
  4641. * src/File.cc
  4642. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Defined static const std::string IP("ip"), PORT("port") and use them
  4644. instead of string literals.
  4645. * src/DefaultPeerListProcessor.cc
  4646. * src/DefaultPeerListProcessor.h
  4647. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4648. Made string literals for torrent file processing static const
  4649. std::string.
  4650. * src/BtContext.cc
  4651. * src/BtContext.h
  4652. * src/DefaultBtContext.cc
  4653. * src/DefaultBtContext.h
  4654. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Made string literal for tracker response static const std::string
  4656. * src/BtAnnounce.cc
  4657. * src/BtAnnounce.h
  4658. * src/DefaultBtAnnounce.cc
  4659. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4660. Use DHTMessage::T instead of "t".
  4661. * src/DHTMessageTracker.cc (messageArrived)
  4662. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Made keyName static const. Made trimmed charset static const
  4664. std::string.
  4665. * src/Util.cc (getContentDispositionFilename)
  4666. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Made USER_AGENT const. Made "/" static const std::string.
  4668. * src/A2STR.cc
  4669. * src/A2STR.h
  4670. * src/HttpRequest.cc
  4671. * src/HttpRequest.h
  4672. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4673. Made string listeral to static const std::string:
  4674. "Content-Range", "Content-Length"
  4675. * src/HttpHeader.cc
  4676. * src/HttpHeader.h
  4677. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Made string listeral to static const std::string.
  4679. * src/HttpConnection.cc
  4680. * src/HttpHeader.cc
  4681. * src/HttpHeader.h
  4682. * src/HttpResponse.cc
  4683. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4684. Made string listeral to static const std::string.
  4685. * src/A2STR.cc
  4686. * src/A2STR.h
  4687. * src/SimpleLogger.cc
  4688. * src/SimpleLogger.h
  4689. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4690. Made string literal to static const std::string.
  4691. Rewritten CookieParser::setField.
  4692. * src/A2STR.cc
  4693. * src/A2STR.h
  4694. * src/CookieBoxFactory.cc
  4695. * src/CookieBoxFactory.h
  4696. * src/CookieParser.cc
  4697. * src/CookieParser.h
  4698. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4699. Made string literal to static const std::string
  4700. * src/DHTAbstractMessage.cc
  4701. * src/DHTAnnouncePeerMessage.cc
  4702. * src/DHTAnnouncePeerMessage.h
  4703. * src/DHTAnnouncePeerReplyMessage.cc
  4704. * src/DHTAnnouncePeerReplyMessage.h
  4705. * src/DHTFindNodeMessage.cc
  4706. * src/DHTFindNodeMessage.h
  4707. * src/DHTFindNodeReplyMessage.cc
  4708. * src/DHTFindNodeReplyMessage.h
  4709. * src/DHTGetPeersMessage.cc
  4710. * src/DHTGetPeersMessage.h
  4711. * src/DHTGetPeersReplyMessage.cc
  4712. * src/DHTGetPeersReplyMessage.h
  4713. * src/DHTMessage.cc
  4714. * src/DHTMessage.h
  4715. * src/DHTMessageFactoryImpl.cc
  4716. * src/DHTMessageReceiver.cc
  4717. * src/DHTPingMessage.cc
  4718. * src/DHTPingMessage.h
  4719. * src/DHTPingReplyMessage.cc
  4720. * src/DHTPingReplyMessage.h
  4721. * src/DHTQueryMessage.cc
  4722. * src/DHTQueryMessage.h
  4723. * src/DHTResponseMessage.cc
  4724. * src/DHTResponseMessage.h
  4725. * src/DHTUnknownMessage.cc
  4726. * src/DHTUnknownMessage.h
  4727. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4728. Made string literal to static const std::string
  4729. * src/BtChokeMessage.cc (toString)
  4730. * src/BtHaveAllMessage.cc (toString)
  4731. * src/BtHaveNoneMessage.cc (toString)
  4732. * src/BtInterestedMessage.cc (toString)
  4733. * src/BtNotInterestedMessage.cc (toString)
  4734. * src/BtUnchokeMessage.cc (toString)
  4735. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Replaced "" with static const variable A2STR::NIL.
  4737. Replaced string comparison against "" with std::string::empty().
  4738. Added PROTO_* to Request class and use them as a protocol string
  4739. constant.
  4740. Made "started", "stopped", "completed" static const variable in
  4741. AnnounceList class.
  4742. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Updated translations. Great thanks to translators.
  4744. * po/ca.po
  4745. * po/de.po
  4746. * po/fr.po
  4747. * po/it.po
  4748. * po/ja.po
  4749. * po/ru.po
  4750. * po/zh_CN.po
  4751. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4752. Updated man page; categorized options and fixed typo.
  4753. * doc/aria2c.1.txt
  4754. * doc/aria2c.1.html
  4755. * doc/aria2c.1
  4756. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Removed const ref
  4758. * src/MetalinkEntry.cc (AddProtocolPreference)
  4759. * src/RequestGroup.cc (FindServerHostByHostname)
  4760. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Rewritten Accept-Features handling.
  4762. * src/HttpRequestCommand.cc (createHttpRequest)
  4763. * src/a2functional.h
  4764. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. Changed method signature:
  4766. DHTAbstractNodeLookupTask::toEntries
  4767. * src/DHTAbstractNodeLookupTask.cc
  4768. * src/DHTAbstractNodeLookupTask.h
  4769. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Changed method signature:
  4771. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4772. * src/BtContext.h
  4773. * src/DefaultBtContext.cc
  4774. * src/DefaultBtContext.h
  4775. * src/DefaultBtInteractive.cc
  4776. * test/DefaultBtContextTest.cc
  4777. * test/MockBtContext.h
  4778. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Changed method signature:
  4780. MultiFileAllocationIterator::makeDiskWriterEntries
  4781. * src/MultiFileAllocationIterator.cc
  4782. * src/MultiFileAllocationIterator.h
  4783. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Changed method sinature:
  4785. MetalinkEntry::toFileEntry,
  4786. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4787. Metalinker::queryEntry
  4788. * src/Metalink2RequestGroup.cc
  4789. * src/MetalinkEntry.cc
  4790. * src/MetalinkEntry.h
  4791. * src/MetalinkHelper.cc
  4792. * src/MetalinkHelper.h
  4793. * src/Metalinker.cc
  4794. * src/Metalinker.h
  4795. * src/main.cc
  4796. * test/MetalinkHelperTest.cc
  4797. * test/MetalinkerTest.cc
  4798. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Changed method sinature:
  4800. RequestGroup::getURIs
  4801. * src/RequestGroup.cc
  4802. * src/RequestGroup.h
  4803. * test/Metalink2RequestGroupTest.cc
  4804. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Changed method signature:
  4806. PeerListProcessor::extractPeer
  4807. * src/CompactPeerListProcessor.cc
  4808. * src/CompactPeerListProcessor.h
  4809. * src/DefaultBtAnnounce.cc
  4810. * src/DefaultPeerListProcessor.cc
  4811. * src/DefaultPeerListProcessor.h
  4812. * src/DelegatingPeerListProcessor.cc
  4813. * src/DelegatingPeerListProcessor.h
  4814. * src/PeerListProcessor.h
  4815. * src/UTPexExtensionMessage.cc
  4816. * test/DefaultPeerListProcessorTest.cc
  4817. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Changed method signature:
  4819. BtRequestFactory::createRequestMessages,
  4820. BtRequestFactory::createRequestMessagesOnEndGame
  4821. * src/BtRequestFactory.h
  4822. * src/DefaultBtInteractive.cc
  4823. * src/DefaultBtRequestFactory.cc
  4824. * src/DefaultBtRequestFactory.h
  4825. * test/DefaultBtRequestFactoryTest.cc
  4826. * test/MockBtRequestFactory.h
  4827. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Changed method signature:
  4829. PieceStorage::getInFlightPieces
  4830. * src/DefaultBtProgressInfoFile.cc
  4831. * src/DefaultPieceStorage.cc
  4832. * src/DefaultPieceStorage.h
  4833. * src/PieceStorage.h
  4834. * src/UnknownLengthPieceStorage.cc
  4835. * src/UnknownLengthPieceStorage.h
  4836. * test/DefaultBtProgressInfoFileTest.cc
  4837. * test/MockPieceStorage.h
  4838. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Changed method signature:
  4840. PostDownloadHandler::getNextRequestGroups
  4841. Metalink2RequestGroup::generate
  4842. RequestGroup::postDownloadProcessing
  4843. * src/BtPostDownloadHandler.cc
  4844. * src/BtPostDownloadHandler.h
  4845. * src/Metalink2RequestGroup.cc
  4846. * src/Metalink2RequestGroup.h
  4847. * src/MetalinkPostDownloadHandler.cc
  4848. * src/MetalinkPostDownloadHandler.h
  4849. * src/PostDownloadHandler.h
  4850. * src/RequestGroup.cc
  4851. * src/RequestGroup.h
  4852. * src/RequestGroupMan.cc
  4853. * src/main.cc
  4854. * test/BtPostDownloadHandlerTest.cc
  4855. * test/Metalink2RequestGroupTest.cc
  4856. * test/MetalinkPostDownloadHandlerTest.cc
  4857. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. Rewritten AccRequestGroup
  4859. * src/main.cc
  4860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Rewritten.
  4862. * src/TaggedItem.cc (toTagString)
  4863. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Rewritten Accept-Features handling.
  4865. * src/HttpRequestCommand.cc (createHttpRequest)
  4866. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. Rewritten accept types handling.
  4868. * HttpRequest.cc (createRequest)
  4869. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. Rewritten
  4871. * src/FeatureConfig.cc (featureSummary)
  4872. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4873. Changed method signature:
  4874. PeerStorage::getActivePeers
  4875. * src/DHTPeerAnnounceEntry.cc
  4876. * src/DefaultPeerStorage.cc
  4877. * src/DefaultPeerStorage.h
  4878. * src/PeerStorage.h
  4879. * test/DefaultPeerStorageTest.cc
  4880. * test/MockPeerStorage.h
  4881. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. Changed method signature:
  4883. DHTPeerAnnounceStorage::getPeers,
  4884. DHTPeerAnnounceEntry::getPeers
  4885. * src/DHTGetPeersMessage.cc
  4886. * src/DHTPeerAnnounceEntry.cc
  4887. * src/DHTPeerAnnounceEntry.h
  4888. * src/DHTPeerAnnounceStorage.cc
  4889. * src/DHTPeerAnnounceStorage.h
  4890. * test/DHTAnnouncePeerMessageTest.cc
  4891. * test/DHTPeerAnnounceEntryTest.cc
  4892. * test/DHTPeerAnnounceStorageTest.cc
  4893. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Changed method signature:
  4895. NameResolver::resolve
  4896. * src/DHTEntryPointNameResolveCommand.cc
  4897. * src/InitiateConnectionCommand.cc
  4898. * src/NameResolver.cc
  4899. * src/NameResolver.h
  4900. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4901. Changed method signature:
  4902. PieceStorage::getAdvertisedPieceIndexes
  4903. * src/DefaultBtInteractive.cc
  4904. * src/DefaultPieceStorage.cc
  4905. * src/DefaultPieceStorage.h
  4906. * src/PieceStorage.h
  4907. * src/UnknownLengthPieceStorage.h
  4908. * test/MockPieceStorage.h
  4909. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4910. Changed method signature:
  4911. SegmentMan::getInFlightSegment
  4912. * src/AbstractCommand.cc
  4913. * src/SegmentMan.cc
  4914. * src/SegmentMan.h
  4915. * test/SegmentManTest.cc
  4916. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Changed method signature:
  4918. DHTAbstractNodeLookupTask::getNodesFromMessage
  4919. * src/DHTAbstractNodeLookupTask.cc
  4920. * src/DHTAbstractNodeLookupTask.h
  4921. * src/DHTNodeLookupTask.cc
  4922. * src/DHTNodeLookupTask.h
  4923. * src/DHTPeerLookupTask.cc
  4924. * src/DHTPeerLookupTask.h
  4925. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4927. * src/AbstractCommand.cc
  4928. * src/BtCheckIntegrityEntry.cc
  4929. * src/BtCheckIntegrityEntry.h
  4930. * src/BtFileAllocationEntry.cc
  4931. * src/BtFileAllocationEntry.h
  4932. * src/BtSetup.cc
  4933. * src/BtSetup.h
  4934. * src/CheckIntegrityCommand.cc
  4935. * src/CheckIntegrityEntry.h
  4936. * src/ChecksumCheckIntegrityEntry.cc
  4937. * src/ChecksumCheckIntegrityEntry.h
  4938. * src/DHTSetup.cc
  4939. * src/DHTSetup.h
  4940. * src/DownloadEngine.cc
  4941. * src/FileAllocationCommand.cc
  4942. * src/FileAllocationEntry.h
  4943. * src/RequestGroup.cc
  4944. * src/RequestGroup.h
  4945. * src/RequestGroupMan.cc
  4946. * src/RequestGroupMan.h
  4947. * src/StreamCheckIntegrityEntry.cc
  4948. * src/StreamCheckIntegrityEntry.h
  4949. * src/StreamFileAllocationEntry.cc
  4950. * src/StreamFileAllocationEntry.h
  4951. * src/TrackerWatcherCommand.cc
  4952. * src/a2functional.h
  4953. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Changed method signature:
  4955. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4956. DHTBucket::getGoodNodes,
  4957. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4958. * src/BNode.cc
  4959. * src/BNode.h
  4960. * src/DHTAbstractNodeLookupTask.cc
  4961. * src/DHTAutoSaveCommand.cc
  4962. * src/DHTBucket.cc
  4963. * src/DHTBucket.h
  4964. * src/DHTBucketRefreshTask.cc
  4965. * src/DHTFindNodeMessage.cc
  4966. * src/DHTGetPeersMessage.cc
  4967. * src/DHTRoutingTable.cc
  4968. * src/DHTRoutingTable.h
  4969. * test/BNodeTest.cc
  4970. * test/DHTBucketTest.cc
  4971. * test/DHTRoutingTableTest.cc
  4972. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. In piece selection functions, Pass std::deque<...> by reference rather
  4974. than returning it.
  4975. * src/BitfieldMan.cc
  4976. * src/BitfieldMan.h
  4977. * src/DefaultBtRequestFactory.cc
  4978. * src/DefaultPieceStorage.cc
  4979. * src/Piece.cc
  4980. * src/Piece.h
  4981. * test/BitfieldManTest.cc
  4982. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Implemented rarest piece first piece selection strategy.
  4984. * src/AbstractBtMessage.cc
  4985. * src/AbstractBtMessage.h
  4986. * src/BitfieldMan.cc
  4987. * src/BitfieldMan.h
  4988. * src/BtBitfieldMessage.cc
  4989. * src/BtHaveAllMessage.cc
  4990. * src/BtHaveMessage.cc
  4991. * src/DefaultPieceStorage.cc
  4992. * src/DefaultPieceStorage.h
  4993. * src/PeerInteractionCommand.cc
  4994. * src/PieceStorage.h
  4995. * src/UnknownLengthPieceStorage.h
  4996. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4997. Rewritten readData and writeData.
  4998. * src/MultiDiskAdaptor.cc
  4999. * src/MultiDiskAdaptor.h
  5000. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Move \n out of the message "Usage: ...".
  5002. * src/version_usage.cc
  5003. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Bump up version number to 0.13.2b.
  5005. * configure.ac
  5006. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Added const qualifier to argument Exception& e.
  5008. * src/Logger.h
  5009. * src/SimpleLogger.cc
  5010. * src/SimpleLogger.h
  5011. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. Pool connection when CWD, SIZE command fails.
  5013. * src/FtpNegotiationCommand.cc
  5014. * src/FtpNegotiationCommand.h
  5015. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5016. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5017. * src/HttpResponseCommand.cc
  5018. * src/HttpSkipResponseCommand.cc
  5019. * src/HttpSkipResponseCommand.h
  5020. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Pool connection when a server returns 4xx, 5xx responses.
  5022. * src/HttpNullDownloadCommand.cc
  5023. * src/HttpNullDownloadCommand.h
  5024. * src/HttpResponse.cc
  5025. * src/HttpResponse.h
  5026. * src/HttpResponseCommand.cc
  5027. * src/HttpResponseCommand.h
  5028. * test/HttpResponseTest.cc
  5029. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Print usage when no URL is specifed or bad command-line option is
  5031. specified.
  5032. * src/HelpItemFactory.cc
  5033. * src/help_tags.h
  5034. * src/option_processing.cc
  5035. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Removed duplicate log message.
  5037. * src/AbstractCommand.cc (asyncResolveHostname)
  5038. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5040. Changed -j option's default value from 5 to 1.
  5041. Added new examples using protocol auto detection feature.
  5042. Removed -T, -M usage where it can be omitted.
  5043. * doc/aria2c.1.txt
  5044. * doc/aria2c.1.html
  5045. * doc/aria2c.1.txt
  5046. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5047. Updated command-line usage text, so that it tells users that they
  5048. can specify any number of torrent files and metalink files in
  5049. command-line.
  5050. * src/version_usage.cc
  5051. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5052. Changed the default value of -j option to 1.
  5053. * src/HelpItemFactory.cc
  5054. * src/option_processing.cc
  5055. * src/usage_text.h
  5056. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Added the ability to reuse connection in FTP and it is enabled by
  5058. default. It can be disabled by --ftp-reuse-connection=false option.
  5059. * src/Command.cc
  5060. * src/DownloadCommand.cc
  5061. * src/FtpDownloadCommand.cc
  5062. * src/FtpDownloadCommand.h
  5063. * src/FtpFinishDownloadCommand.cc
  5064. * src/FtpFinishDownloadCommand.h
  5065. * src/FtpInitiateConnectionCommand.cc
  5066. * src/FtpNegotiationCommand.cc
  5067. * src/FtpNegotiationCommand.h
  5068. * src/HelpItemFactory.cc
  5069. * src/Makefile.am
  5070. * src/Makefile.in
  5071. * src/OptionHandlerFactory.cc
  5072. * src/option_processing.cc
  5073. * src/prefs.h
  5074. * src/usage_text.h
  5075. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Call Command::transitStatus() before calling Command::execute(),
  5077. so that the status change made in execute() is not cleared.
  5078. * src/DownloadEngine.cc
  5079. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Removed forward declaration of SocketCore class.
  5081. * src/HttpDownloadCommand.h
  5082. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5083. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5084. in InitiateConnectionCommandFactory. They should be set only when
  5085. the protocol is HTTP or HTTPS.
  5086. * src/InitiateConnectionCommandFactory.cc
  5087. * src/RequestGroup.cc
  5088. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5089. Fixed infinite loop in checksum checking.
  5090. * src/IteratableChecksumValidator.cc
  5091. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Set _supportsPersistentConnection to true by default.
  5093. * src/Request.cc
  5094. * src/RequestGroup.cc
  5095. * test/HttpRequestTest.cc
  5096. * test/RequestTest.cc
  5097. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5098. Added timeout to socket pool. The default timeout is 15 seconds,
  5099. which is the same value Apache uses.
  5100. * src/DownloadEngine.cc
  5101. * src/DownloadEngine.h
  5102. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Fixed misuse of multimap::find()
  5104. * src/HttpHeader.cc
  5105. * test/HttpHeaderTest.cc
  5106. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5107. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5108. option.
  5109. The asynchronous DNS is not capable of IPv6 yet.
  5110. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5111. least for HTTP download.
  5112. * src/AbstractCommand.cc
  5113. * src/AbstractCommand.h
  5114. * src/AsyncNameResolver.cc
  5115. * src/AsyncNameResolver.h
  5116. * src/DHTEntryPointNameResolveCommand.cc
  5117. * src/DHTEntryPointNameResolveCommand.h
  5118. * src/DownloadEngine.cc
  5119. * src/DownloadEngine.h
  5120. * src/FtpInitiateConnectionCommand.cc
  5121. * src/FtpInitiateConnectionCommand.h
  5122. * src/HelpItemFactory.cc
  5123. * src/HttpInitiateConnectionCommand.cc
  5124. * src/HttpInitiateConnectionCommand.h
  5125. * src/InitiateConnectionCommand.cc
  5126. * src/InitiateConnectionCommand.h
  5127. * src/Makefile.am
  5128. * src/Makefile.in
  5129. * src/NameResolver.cc
  5130. * src/NameResolver.h
  5131. * src/OptionHandlerFactory.cc
  5132. * src/SocketCore.cc
  5133. * src/SocketCore.h
  5134. * src/Util.cc
  5135. * src/Util.h
  5136. * src/option_processing.cc
  5137. * src/prefs.h
  5138. * src/usage_text.h
  5139. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Updated man page: --quiet, --header were added.
  5141. --metalink-servers and --enable-http-keep-alive option were updated.
  5142. * doc/aria2c.1
  5143. * doc/aria2c.1.html
  5144. * doc/aria2c.1.txt
  5145. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5146. Enable HTTP keep-alive by default.
  5147. * src/HelpItemFactory.cc
  5148. * src/option_processing.cc
  5149. * src/usage_text.h
  5150. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Disable http keep-alive if the remote server is not HTTP/1.1.
  5152. * src/HttpConnection.cc
  5153. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Receive content body of 302 response so that the connection can be
  5155. reused later when http keep-alive is enabled.
  5156. * src/HttpNullDownloadCommand.cc
  5157. * src/HttpNullDownloadCommand.h
  5158. * src/HttpResponseCommand.cc
  5159. * src/HttpResponseCommand.h
  5160. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. const SharedHandle<Request> -> const SharedHandle<Request>&
  5162. * src/FtpDowndloadCommand.cc
  5163. * src/FtpDowndloadCommand.h
  5164. * src/HttpDownloadCommand.cc
  5165. * src/HttpDownloadCommand.h
  5166. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5167. Fixed the bug that the control file(.aria2 file) is not renamed
  5168. according to tryAutoFileRenaming().
  5169. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5170. its control file exist, use them and continue download.
  5171. The old implementation didn't take into account of control file's
  5172. existence, so basically you couldn't continue download of renamed file.
  5173. * src/BtProgressInfoFile.h
  5174. * src/DefaultBtProgressInfoFile.cc
  5175. * src/DefaultBtProgressInfoFile.h
  5176. * src/NullProgressInfoFile.h
  5177. * src/RequestGroup.cc
  5178. * test/DefaultBtProgressInfoFileTest.cc
  5179. * test/MockBtProgressInfoFile.h
  5180. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Change the default value of --metalink-servers option from `5' to `1'.
  5182. * src/HelpItemFactory.cc
  5183. * src/option_processing.cc
  5184. * src/usage_text.h
  5185. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Reimplemented transparent metalink using Accept request header.
  5187. * src/HttpRequest.cc
  5188. * src/HttpRequest.h
  5189. * src/HttpRequestCommand.cc
  5190. * src/Metalink2RequestGroup.cc
  5191. * src/RequestGroup.cc
  5192. * src/RequestGroup.h
  5193. * test/HttpRequestTest.cc
  5194. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Bump up version number to 0.13.2a
  5196. * configure.ac
  5197. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Updated configure.ac using the result of autoscan.
  5199. * configure.ac
  5200. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5201. Fixed compilation error without gcrypt/openssl.
  5202. * src/DownloadCommand.cc
  5203. * src/DownloadCommand.h
  5204. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Reorganized version information so that it can be displayed in a
  5206. standard terminal screen without scrolling.
  5207. Removed http, ftp from Configuration section, because they are always
  5208. enabled.
  5209. * src/FeatureConfig.cc
  5210. * src/FeatureConfig.h
  5211. * src/main.cc
  5212. * src/messageDigest.cc
  5213. * src/messageDigest.h
  5214. * src/version_usage.cc
  5215. * test/FeatureConfigTest.cc
  5216. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5217. Masked user ID in log.
  5218. * src/FtpConnection.cc (sendUser)
  5219. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Removed query part from filename in HTTP download. The query part means
  5221. the substring after "?" in URL. Firefox seems do the same thing.
  5222. A query part is sometimes very long and not suitable to filename,
  5223. so I think it is better to remove it from filename.
  5224. * src/HttpRequest.cc
  5225. * src/HttpRequest.h
  5226. * src/Request.cc
  5227. * src/Request.h
  5228. * test/HttpRequestTest.cc
  5229. * test/RequestTest.cc
  5230. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Rewritten Exception class. Throw exception object, not its pointer and
  5232. catch by reference, so that remove problematic delete operator for
  5233. catched exception.
  5234. * src/Exception.cc
  5235. * src/Exception.h
  5236. * test/ExceptionTest.cc
  5237. * src/*: All files throwing/catching exception.
  5238. * test/*: All files throwing/catching exception.
  5239. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Now auto protocol detection is enabled without -Z option.
  5241. But there is a important difference between with/without -Z optoin.
  5242. For example, if you type:
  5243. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5244. then, aria2 interprets there are 3 request groups:
  5245. (1) http://host/file, http://mirror/file <-- multi-source download
  5246. (2) file1.torrent
  5247. (3) file2.metalink
  5248. On the other hand, if you invoke above command with -Z option, it is
  5249. interpreted as 4 request groups:
  5250. (1) http://host/file
  5251. (2) file1.torrent
  5252. (3) file2.metalink
  5253. (4) http://mirror/file
  5254. I think usually user don't mix multi-source URLs and torrent files, so
  5255. there is no big problem here.
  5256. * src/main.cc
  5257. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Fixed the bug that causes segmentaion fault when reading XML containing
  5259. unescapsed character like '&'.
  5260. Also a modification was made which avoids adding unnecessary
  5261. characters stack and appending unused string.
  5262. * src/ExpatMetalinkProcessor.cc
  5263. * src/FileMetalinkParserState.h
  5264. * src/FilesMetalinkParserState.h
  5265. * src/FinMetalinkParserState.h
  5266. * src/HashMetalinkParserState.h
  5267. * src/InitialMetalinkParserState.h
  5268. * src/LanguageMetalinkParserState.h
  5269. * src/MetalinkMetalinkParserState.h
  5270. * src/MetalinkParserState.h
  5271. * src/MetalinkParserStateMachine.cc
  5272. * src/MetalinkParserStateMachine.h
  5273. * src/OSMetalinkParserState.h
  5274. * src/PieceHashMetalinkParserState.h
  5275. * src/PiecesMetalinkParserState.h
  5276. * src/ResourcesMetalinkParserState.h
  5277. * src/SizeMetalinkParserState.h
  5278. * src/SkipTagMetalinkParserState.h
  5279. * src/URLMetalinkParserState.h
  5280. * src/VerificationMetalinkParserState.h
  5281. * src/VersionMetalinkParserState.h
  5282. * src/XML2SAXMetalinkProcessor.cc
  5283. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Added StringFormat class, which internally calls vasprintf.
  5285. operator<< is defined for this class, so it can be used with iostream
  5286. classes nicely. SimpleLogger and following functions are rewritten
  5287. using StringFormat class.
  5288. Besides, now Logger class's methods are non-const, many classes
  5289. that has a const Logger* as a member variable are modified to remove
  5290. const qualifier from the variable declaration.
  5291. * src/HelpItemFactory.cc
  5292. * src/Request.cc
  5293. * src/SimpleLogger.cc
  5294. * src/StringFormat.cc
  5295. * src/StringFormat.h
  5296. * src/Util.cc
  5297. * src/option_processing.cc
  5298. * src/version_usage.cc
  5299. * test/StringFormatTest.cc
  5300. * src/*.h: The classes that has const Logger* as a member variable.
  5301. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5303. failed. Also fixed memory link when exception is thrown there.
  5304. * src/main.cc (AccRequestGroup)
  5305. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. Added build-in "Accept-Features" support. For now only "metalink" is
  5307. used in this header field.
  5308. This "metalink" value is removed from the list when connecting URLs
  5309. fed by metalink file to avoid loop in "transparent" metlaink.
  5310. * src/HttpRequest.cc
  5311. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5312. header is also held in this variable. Also renamed setUserHeaders as
  5313. addHeader and it was rewritten to add header not just to clear the old
  5314. value.
  5315. * src/HttpRequestCommand.cc
  5316. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5317. from "Accept-Features" list.
  5318. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5319. default.
  5320. * src/RequestGroup.h
  5321. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5322. * src/a2functional.h: Included <string> because Concat class depends on
  5323. it.
  5324. * test/HttpRequestTest.cc
  5325. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Added comment
  5327. * src/RequestGroup.cc (createNextCommand)
  5328. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Capitalized METHOD_GET and METHOD_HEAD
  5330. * src/Request.cc
  5331. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Added getDownloadResults() method
  5333. * src/RequestGroupMan.cc
  5334. * src/RequestGroupMan.h
  5335. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Fixed the bug that aria2 exits when commands is empty() but
  5337. _routineCommands are not.
  5338. * src/DownloadEngine.cc
  5339. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5340. Use the default value pulled from Option object in HelpItemFactory.
  5341. except options whose defualt value is embedded in a usage text.
  5342. * src/HelpItemFactory.cc
  5343. * src/HelpItemFactory.h
  5344. * src/option_processing.cc
  5345. * src/version_usage.cc
  5346. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Added --quiet option to make aria2 quiet (no console output).
  5348. --quiet option is tagged with ADVANCED.
  5349. * src/HelpItemFactory.cc
  5350. * src/LogFactory.cc
  5351. * src/LogFactory.h
  5352. * src/MultiUrlRequestInfo.cc
  5353. * src/MultiUrlRequestInfo.h
  5354. * src/NullStatCalc.h: New class. This class prints nothing.
  5355. * src/OptionHandlerFactory.cc
  5356. * src/main.cc
  5357. * src/option_processing.cc
  5358. * src/prefs.h
  5359. * src/usage_text.h
  5360. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5362. * src/HelpItemFactory.cc (createHelpItems):
  5363. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5364. Fixed compilation error in ExpatMetalinkProcessor.cc
  5365. * src/ExpatMetalinkProcessor.cc
  5366. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Reuse socket if the origin server supports HTTP keep-alive and
  5368. --enable-http-keep-alive or --enable-http-pipelining is given.
  5369. The current implementation doesn't reuse the connections established
  5370. against proxy server.
  5371. * src/AbstractCommand.cc
  5372. * src/DownloadEngine.cc
  5373. * src/DownloadEngine.h
  5374. * src/HttpDownloadCommand.cc
  5375. * src/HttpInitiateConnectionCommand.cc
  5376. * src/HttpResponseCommand.cc
  5377. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Rewritten HTTP keep-alive and pipelining routine.
  5379. * src/AbstractCommand.cc
  5380. * src/HttpConnection.cc
  5381. * src/HttpDownloadCommand.cc
  5382. * src/HttpRequest.cc
  5383. * src/HttpRequestCommand.cc
  5384. * src/HttpResponseCommand.cc
  5385. * src/Request.cc
  5386. * src/Request.h
  5387. * src/RequestGroup.cc
  5388. * test/HttpRequestTest.cc
  5389. * test/HttpResponseTest.cc
  5390. * test/RequestTest.cc
  5391. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Added missing setUserHeaders call
  5393. * src/HttpRequestCommand.cc
  5394. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5396. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5397. waste of time because it is more likey false.
  5398. * src/FileAllocationDispatcherCommand.cc (execute)
  5399. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Now HTTP status and version are a member variable of HttpHeader.
  5401. HTTP status is processed as a string, not integer.
  5402. * src/AbstractProxyResponseCommand.cc
  5403. * src/HttpConnection.cc
  5404. * src/HttpHeader.cc
  5405. * src/HttpHeader.h
  5406. * src/HttpHeaderProcessor.cc
  5407. * src/HttpHeaderProcessor.h
  5408. * src/HttpResponse.cc
  5409. * src/HttpResponse.h
  5410. * test/HttpHeaderProcessorTest.cc
  5411. * test/HttpResponseTest.cc
  5412. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Added --header option. You can specify any number of additional HTTP headers
  5414. like:
  5415. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5416. Unlike other commad-line option, you can use --header option multiple times.
  5417. * src/HelpItemFactory.cc
  5418. * src/HttpRequest.{cc, h}
  5419. * src/HttpRequestCommand.cc
  5420. * src/OptionHandlerFactory.cc
  5421. * src/OptionHandlerImpl.h
  5422. * src/option_processing.cc
  5423. * src/prefs.h
  5424. * src/usage_text.h
  5425. * test/HttpRequestTest.cc (testUserHeaders)
  5426. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Eliminates the time lag between sequential downloads and commands in
  5428. the same RequestGroup.
  5429. In old implementation, aria2 occasionally waits 1 seconds before
  5430. executing next command or RequestGroup.
  5431. This is really a waste of time, and new implementation eliminates
  5432. this unnecessary time lag.
  5433. * src/AbstractCommand.cc
  5434. * src/AutoSaveCommand.cc
  5435. * src/CheckIntegrityCommand.cc
  5436. * src/Command.{cc, h}
  5437. * src/DownloadEngine.{cc, h}
  5438. * src/DownloadEngineFactory.cc
  5439. * src/FileAllocationCommand.cc
  5440. * src/FileAllocationDispatcherCommand.cc
  5441. * src/FillRequestGroupCommand.cc
  5442. * src/FtpInitiateConnectionCommand.cc
  5443. * src/HaveEraseCommand.cc
  5444. * src/HttpInitiateConnectionCommand.cc
  5445. * src/HttpResponseCommand.cc
  5446. * src/RealtimeCommand.cc
  5447. * src/RequestGroup.cc
  5448. * src/RequestGroupMan.cc
  5449. * src/StreamFileAllocationEntry.cc
  5450. * src/TimeBasedCommand.{cc, h}
  5451. * src/TimedHaltCommand.cc
  5452. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5454. keyword explicit and SharedHandle's default constructor initializes
  5455. its internal obj to null, old implementation initializes it using
  5456. obj's default constructor.
  5457. To assign null, write SharedHandle<T> x(...); x.reset();
  5458. TODO: test/SharedHandleTest.cc needs more tests.
  5459. * src/SharedHandle.h
  5460. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Fixed type in man page.
  5462. * doc/aria2c.1.txt
  5463. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5465. * src/SimpleLogger.{cc, h}
  5466. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Implemented auto protocol detection.
  5468. Now you can do:
  5469. aria2c -Z http://host/file file1.torrent file2.metalink
  5470. (Note: -Z option is required for auto protcol detection.)
  5471. Then aria2c downloads 3 files simultaneously:
  5472. 1. http://host/file
  5473. 2. file1.torrent <-- read local torrent file
  5474. 3. file2.metalink <-- read local Metalink file.
  5475. Same thing goes with -i option. Assume your uris.txt contans:
  5476. http://host/file
  5477. file1.torrent
  5478. file2.metalink
  5479. Then you can do: aria2c -i uris.txt
  5480. (Note: -Z option is not needed if -i option is given.)
  5481. * src/main.cc
  5482. * src/ProtocolDetector.{cc, h}
  5483. * test/ProtocolDetectorTest.cc
  5484. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5485. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5486. installed
  5487. * src/ARC4Encryptor.h
  5488. * src/ARC4Decryptor.h
  5489. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. Renamed argument from 'errno' to 'err', since errno is confused with
  5491. errno defined in errno.h.
  5492. * src/LibgcryptARC4Decryptor.h
  5493. * src/LibgcryptARC4Context.h
  5494. * src/LibgcryptDHKeyExchange.h
  5495. * src/LibgcryptARC4Encryptor.h
  5496. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Rewritten choking algorithm.
  5498. * src/PeerChokeCommand.{cc, h}
  5499. * src/BtInterestedMessage.cc
  5500. * src/PeerSessionResource.{cc, h}
  5501. * src/DefaultPeerStorage.{cc, h}
  5502. * src/BtNotInterestedMessage.cc
  5503. * src/DefaultBtMessageDispatcher.{cc, h}
  5504. * src/BtMessageDispatcher.h
  5505. * src/Peer.{cc, h}
  5506. * src/BtLeecherStateChoke.{cc, h}
  5507. * src/BtSetup.cc
  5508. * src/BtSeederStateChoke.{cc, h}
  5509. * src/PeerStorage.h
  5510. * test/MockPeerStorage.h
  5511. * test/MockBtMessageDispatcher.h
  5512. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Fixed compilation error on x84-64 platform.
  5514. * src/AuthConfig.cc: Included ostream.
  5515. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Rewritten getBasename() and getDirname(), without standard library
  5517. basename(), dirname().
  5518. * src/File.cc
  5519. * test/FileTest.cc
  5520. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Added Simplified Chinese translation. Also updated the following
  5522. translations: Polish, Dutch, German. Great thanks to all translators.
  5523. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Suppress content-range error when 'Content-Range' response header
  5525. doesn't contains bytes-unit specifier 'bytes'
  5526. * src/HttpHeader.cc (getRange)
  5527. * test/HttpHeaderTest.cc
  5528. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. Fixed compilation error with g++-4.3
  5530. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Added missing include files for MinGW
  5532. * test/HttpHeaderProcessorTest.cc
  5533. * test/DHTRoutingTableSerializerTest.cc
  5534. * test/DHTRoutingTableDeserializerTest.cc
  5535. * test/UriListParserTest.cc
  5536. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. Now download line is printed nicely with no garbage at the end of
  5538. line. I use ioctl to get the columns of terminal.
  5539. If stdout is redirected to another device, instead of carriage return,
  5540. end of line '\n' character is used. This is feature request#1909659
  5541. * src/ConsoleStatCalc.cc (calculateStat)
  5542. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5543. Included a2time.h
  5544. * src/DHTMessageDispatcher.h
  5545. * src/DHTMessageEntry.h
  5546. * src/DHTReplaceNodeTask.h
  5547. * src/DHTMessageTracker.h
  5548. * src/Util.h
  5549. * src/CookieBox.h
  5550. * src/SocketCore.h
  5551. * src/DefaultBtMessageDispatcher.h
  5552. * src/SocketCore.cc
  5553. * src/Util.cc
  5554. * src/DHTPingTask.h
  5555. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. Fixed high memory footprint when DHT is enabled.
  5557. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5558. queued than it is processed and the queue is getting longer. As a
  5559. consequence, momory usage is increased.
  5560. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5561. replacement cache in DHTBucket which is described in Kademlia paper.
  5562. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5563. DHTReplaceNodeTask.
  5564. * src/DHTBucket.{h, cc}
  5565. (cacheNode): New function.
  5566. (getCachedNodes): New function.
  5567. (dropNode): Push back cached node to _nodes.
  5568. * test/DHTBucketTest.cc
  5569. (testCacheNode): New test
  5570. (testDropNode): New test
  5571. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5573. the unused 4KB memory when ssl is not used.
  5574. * src/SocketCore.cc
  5575. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Added summary log for peer announce storage.
  5577. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5578. Removed cast
  5579. * src/DefaultPeerStorage.cc (addPeer)
  5580. Log exception message
  5581. * src/DHTMessageTracker.cc (handleTimeout)
  5582. Fixed casting
  5583. * test/HttpRequestTest.cc
  5584. * test/MetalinkProcessorTest.cc
  5585. * test/PieceTest.cc
  5586. * test/MetalinkEntryTest.cc
  5587. * test/SequenceTest.cc
  5588. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. * src/ParameterizedStringParser.cc (createLoop):
  5590. Removed unused variable sstep.
  5591. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5592. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5593. * src/Util.{h, cc}
  5594. (parseUInt): New function.
  5595. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5596. The actual range is uint32_t.
  5597. * test/UtilTest.cc
  5598. * src/ParameterizedStringParser.cc:
  5599. Use Util::parseUInt() for loop variables.
  5600. * test/ParameterizedStringParserTest.cc
  5601. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5602. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Rewritten the functions for binding port.
  5604. * src/DHTConnectionImpl.{h, cc}
  5605. * src/PeerListenCommand.{h, cc}
  5606. * src/DHTSetup.cc
  5607. * src/BtSetup.cc
  5608. * test/DHTConnectionImplTest.cc
  5609. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. type cleanup for allmost all remaining files.
  5611. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Type clarification
  5613. * src/PeerSessionResource.{h, cc}
  5614. * src/DefaultPieceStorage.{h, cc}
  5615. * src/Peer.{h, cc}
  5616. * test/PeerSessionResourceTest.cc
  5617. Use div function
  5618. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5619. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Type clarification
  5621. * src/DefaultPeerStorage.{h, cc}
  5622. * test/DefaultPeerStorageTest.cc
  5623. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Type clarification: size_t for length or size, uint64_t for file
  5625. length, off_t for file offset.
  5626. * src/DefaultBtProgressInfoFile.cc
  5627. * src/DefaultBtContext.{h, cc}
  5628. * src/DefaultBtInteractive.cc
  5629. * src/DownloadCommand.{h, cc}
  5630. * src/IteratableChunkChecksumValidator.{h, cc}
  5631. * src/SegmentMan.{h, cc}
  5632. * src/SingleFileDownloadContext.{h, cc}
  5633. * src/IteratableChecksumValidator.{h, cc}
  5634. * src/BtContext.h
  5635. * src/IteratableValidator.h
  5636. * src/DownloadContext.h
  5637. * test/SingleFileDownloadContextTest.cc
  5638. * test/DefaultBtContextTest.cc
  5639. * test/MockBtContext.h
  5640. * test/Metalink2RequestGroupTest.cc
  5641. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Type clarification: size_t for length or size, uint64_t for file
  5643. length, off_t for file offset.
  5644. * src/PiecedSegment.cc
  5645. * src/GrowSegment.h
  5646. * src/DefaultBtRequestFactory.h
  5647. * src/DefaultBtProgressInfoFile.cc
  5648. * src/UnknownLengthPieceStorage.h
  5649. * src/DefaultPieceStorage.cc
  5650. * src/UnknownLengthPieceStorage.cc
  5651. * src/DefaultBtInteractive.cc
  5652. * src/GrowSegment.cc
  5653. * src/BitfieldMan.h
  5654. * src/DownloadCommand.cc
  5655. * src/BtRequestFactory.h
  5656. * src/PiecedSegment.h
  5657. * src/DefaultPieceStorage.h
  5658. * src/Piece.cc
  5659. * src/DefaultBtRequestFactory.cc
  5660. * src/PieceStorage.h
  5661. * src/Segment.h
  5662. * src/Piece.h
  5663. * src/BitfieldMan.cc
  5664. * src/Util.cc
  5665. * test/DefaultBtProgressInfoFileTest.cc
  5666. * test/DefaultPieceStorageTest.cc
  5667. * test/MockPieceStorage.h
  5668. * test/BtRequestMessageTest.cc
  5669. * test/DefaultBtMessageDispatcherTest.cc
  5670. * test/BitfieldManTest.cc
  5671. * test/GrowSegmentTest.cc
  5672. * test/PieceTest.cc
  5673. * test/SegmentTest.cc
  5674. * test/SegmentManTest.cc
  5675. * test/DefaultBtRequestFactoryTest.cc
  5676. * test/MockBtRequestFactory.h
  5677. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Fixed compilation error with --disable-nls
  5679. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5680. in gettext.h causes the problem.
  5681. * src/common.h
  5682. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Removed subPiece related functions.
  5684. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5685. * src/DefaultPieceStorage.{h, cc}
  5686. * test/PieceTest.cc
  5687. * test/DefaultPieceStorageTest.cc
  5688. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Use unsigned char for data store.
  5690. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Bump up version number to 0.13.0+1
  5692. * configure.ac
  5693. * Release 0.13.0+1
  5694. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5695. Changed inactive connection timeout to 120.
  5696. To accept more mulually interested peers, disconnect peer when there
  5697. is no interest between us after certain time passed.
  5698. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5699. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5701. when compiled with async DNS support.
  5702. * src/DownloadEngine.cc
  5703. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5704. value '10' will be a little bit short when some DNS servers are
  5705. offline and several DNS servers are tried. It should be configured
  5706. by command-line option.
  5707. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Merged Ross's mingw patch.
  5709. * src/DHTRoutingTableDeserializer.cc
  5710. * src/DHTRoutingTableSerializer.cc
  5711. * src/Platform.{h, cc}
  5712. * src/timegm.h
  5713. * src/gettimeofday.h
  5714. * src/getaddrinfo.h
  5715. * src/SocketCore.h
  5716. * src/common.h
  5717. * src/inet_aton.h
  5718. * src/DownloadEngine.h
  5719. * src/gai_strerror.h
  5720. * src/a2netcompat.h
  5721. * configure.ac
  5722. * configure
  5723. * aclocal.m4
  5724. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Included missing iostream.
  5726. * test/AllTest.cc
  5727. * test/BtDependencyTest.cc
  5728. * test/BtExtendedMessageTest.cc
  5729. * test/DHTConnectionImplTest.cc
  5730. * test/DHTMessageFactoryImplTest.cc
  5731. * test/DHTMessageTrackerEntryTest.cc
  5732. * test/DHTNodeTest.cc
  5733. * test/DHTRoutingTableSerializerTest.cc
  5734. * test/DefaultBtAnnounceTest.cc
  5735. * test/DefaultBtContextTest.cc
  5736. * test/DefaultBtMessageFactoryTest.cc
  5737. * test/DefaultExtensionMessageFactoryTest.cc
  5738. * test/HandshakeExtensionMessageTest.cc
  5739. * test/HttpResponseTest.cc
  5740. * test/MetalinkProcessorTest.cc
  5741. * test/MultiFileAllocationIteratorTest.cc
  5742. * test/SocketCoreTest.cc
  5743. * test/UTPexExtensionMessageTest.cc
  5744. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Reorganized includes.
  5746. * src/NameResolver.cc
  5747. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Fixed compilation error without ares/c-ares
  5749. * src/NameResolver.h:
  5750. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Added a test for large file.
  5752. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5753. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Fixed the bug that file size is ignored if size > INT32_MAX
  5755. * src/SizeMetalinkParserState.cc (endElement):
  5756. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Bump up version number to 0.13.0
  5758. * configure.ac
  5759. * Release 0.13.0
  5760. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. Updated Makfefile.am to make 'make dist' work.
  5762. Now packaged filename is aria2c-VERSION.tar.bz2.
  5763. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5764. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5765. Large file support is now configured by configure script.
  5766. * configure.ac
  5767. Removed unsused source files
  5768. * src/
  5769. * test/
  5770. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5771. Peer.h and BtContext.h respectively.
  5772. * src/Peer.h
  5773. * src/BtContext.h
  5774. Updated translations.
  5775. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5776. translations. Great thanks to all translators!;)
  5777. * po/*.{po, gmo}
  5778. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5780. statically declared sha1 MessageDigestContext.
  5781. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5782. initialization of short-lived MessageDigestContext.
  5783. * src/MessageDigestHelper.{h, cc}
  5784. * src/main.cc
  5785. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5786. the initialization of MessageDigestContext every time in validating
  5787. chunk checksum.
  5788. * src/DownloadCommand.{h, cc}
  5789. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Add a file descriptor which connected to fast peer(latency<1500) to
  5791. select(). This change reduced CPU load.
  5792. * src/PeerInteractionCommand.cc
  5793. * src/DefaultBtInteractive.{h, cc}
  5794. * src/BtInteractive.h
  5795. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Fixed the previous insufficient fix for possible busy loop.
  5797. * src/MSEHandshake.cc (identifyHandshakeType)
  5798. Removed unused functions.
  5799. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5800. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Fixed possible busy loop if first 20 bytes are not received for a few
  5802. minutes.
  5803. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5804. * src/ReceiverMSEHandshakeCommand.cc
  5805. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5806. Fixed compilation error
  5807. * src/ExpatMetalinkProcessor.cc
  5808. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5810. * src/DHTBucket.cc
  5811. Removed unnecessary cast.
  5812. * src/HandshakeExtensionMessage.cc
  5813. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5815. is missing.
  5816. * src/OptionHandlerFactory.cc
  5817. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5818. Fixed the bug that HAVE message is not sent for a piece they are
  5819. downloaded fom http/ftp server before any BitTorrent handshake is done
  5820. with peers.
  5821. * src/DefaultBtInteractive.cc
  5822. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5823. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5824. * src/Makefile.am
  5825. * src/Makefile.in
  5826. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Updated README. Added html version of README and man page.
  5828. * README
  5829. * README.html
  5830. * readme2html: Shell script to generate README.html from README using
  5831. asciidoc.
  5832. * doc/aria2c.1.html
  5833. * doc/makeman: Added the line to generate aria2c.1.html
  5834. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Fixed offset calculation.
  5836. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5837. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Rewritten itos and uitos using template. llitos and ullitos are
  5839. replaced with itos and uitos respectively.
  5840. * src/Util.{h, cc}
  5841. * test/UtilTest.cc
  5842. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5844. of the number of bytes required for storing public key and shared
  5845. secret.
  5846. * src/LibgcryptDHKeyExchange.h
  5847. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5848. * src/MSEHandshake.cc
  5849. * test/DHKeyExchangeTest.cc
  5850. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Removed since they are not used.
  5852. * src/Xml2MetalinkProcessor.{h, cc}
  5853. * src/Socket.cc
  5854. * src/SegmentSplitter.{h, cc}
  5855. * test/Xml2MetalinkProcessorTest.cc
  5856. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Fixed the bug that prevents aria2 from stopping other than by pressing
  5858. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5859. option. aria2 doesn't stop even after --seed-time is satisfied and
  5860. continues to output blank lines in the console.
  5861. * src/ReceiverMSEHandshakeCommand.cc
  5862. * src/PeerReceiveHandshakeCommand.cc
  5863. * src/PeerListenCommand.cc
  5864. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5865. Bump up version number to 0.13.0rc
  5866. * configure.ac
  5867. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Updated man page and some usage text.
  5869. * doc/aria2c.1.txt
  5870. * src/usage_text.h
  5871. * po/*.{po, gmo}
  5872. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. Updated translations. Added Finnish and Hebrew translations.
  5874. Great thanks to all translators!
  5875. * po/*.{po, gmo}
  5876. * po/LINGUAS
  5877. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Log more detailed information about each message.
  5879. * src/DHTQueryMessage.{h, cc}
  5880. * src/DHTGetPeersMessage.{h, cc}
  5881. * src/DHTFindNodeReplyMessage.{h, cc}
  5882. * src/DHTGetPeersReplyMessage.{h, cc}
  5883. * src/DHTAnnouncePeerMessage.{h, cc}
  5884. * src/DHTResponseMessage.{h, cc}
  5885. * src/DHTFindNodeMessage.{h, cc}
  5886. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5887. Use constants defined in prefs.h
  5888. * src/option_processing.cc
  5889. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5891. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5892. Make room for future enchancements for IPv6 addresses.
  5893. Bump up version number of dht.dat file format to 2.
  5894. Not compatible with previous version.
  5895. * src/DHTRoutingTableSerializer.cc
  5896. * src/DHTRoutingTableDeserializer.cc
  5897. * test/DHTRoutingTableSerializerTest.cc
  5898. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5899. Added handling for the return values from
  5900. PeerMessageUtil::createcompact().
  5901. * src/DefaultBtContext.cc (computeFastSet):
  5902. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. Fixed abort when peer's ip address is IPv4-mapped address.
  5904. * src/DefaultBtContext.cc (computeFastSet)
  5905. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5906. cannot handle IPv4-mapped addresses.
  5907. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5908. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Proper return value handling for OpenSSL functions.
  5910. * src/LibsslDHKeyExchange.h
  5911. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Random bytes generation using libgcrypt and OpenSSL.
  5913. * src/DHTUtil.{h, cc}
  5914. * test/DHTUtilTest.cc
  5915. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5917. received.
  5918. * src/DHTMessageReceiver.cc (receiveMessage)
  5919. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Fixed the bug that a return code is always 0. BUG#1897704
  5921. If error occurred during the download or there exist unfinished
  5922. downloads, aria2 returns with code 1.
  5923. * src/RequestGroupMan.{h, cc}
  5924. * src/MultiUrlRequestInfo.{h, cc}
  5925. * src/main.cc
  5926. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5927. IPv6 support for SocketCore class.
  5928. TODO: In SocketCore::establishConnection(), this is insufficient to
  5929. determin the failure of connect() here because the socket is
  5930. non-blocking state. The next addresses should be tried after select().
  5931. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5932. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5933. instead which address family independent.
  5934. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5935. information in a compact peer format which is for IPv4 only.
  5936. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5937. this is a spec of BitTorrent protocol.
  5938. * src/SocketCore.{h, cc}
  5939. * src/PeerMessageUtil.cc
  5940. * test/SocketCoreTest.cc
  5941. * test/PeerMessageUtilTest.cc
  5942. * test/DHTConnectionImplTest.cc
  5943. Handle IPv4-mapped addresses.
  5944. * src/DHTNode.cc: Now identity is determined by node id.
  5945. * src/DHTMessageTrackerEntry.cc
  5946. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5947. should handle it.
  5948. * src/DHTRoutingTableDeserializer.cc
  5949. * src/DHTMessageFactoryImpl.cc
  5950. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Change the unit of --stop option from a minute to a second.
  5952. * src/usage_text.h
  5953. * src/DownloadEngineFactory.cc
  5954. * src/OptionHandlerFactory.cc
  5955. * src/message.h
  5956. * src/TimedHaltCommand.cc
  5957. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Make listening socket non-block mode.
  5959. * src/FtpConnection.cc
  5960. * src/FtpNegotiationCommand.{h, cc}
  5961. * src/PeerListenCommand.cc
  5962. Fixed the bug that cause slow ftp negotiation.
  5963. * src/FtpNegotiationCommand.{h, cc}
  5964. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Added basic tag to --enable-dht, --dht-listen-port option.
  5966. * src/HelpItemFactory.cc (createHelpItems)
  5967. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. Updated text.
  5969. * src/usage_text.h
  5970. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5972. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Determin _threadtholdSpeed in each constructor for
  5974. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5975. * src/ActivePeerConnectionCommand.{h, cc}
  5976. * src/PeerReceiveHandshakeCommand.{h, cc}
  5977. * src/BtSetup.cc
  5978. * src/BtConstants.h
  5979. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5980. Added --bt-min-crypto-level and --bt-require-crypto options.
  5981. * src/OptionHandlerFactory.cc
  5982. * src/MSEHandshake.cc
  5983. * src/HelpItemFactory.cc
  5984. * src/option_processing.cc
  5985. * src/ReceiverMSEHandshakeCommand.cc
  5986. * src/prefs.h
  5987. * src/DefaultBtAnnounce.cc
  5988. * src/InitiatorMSEHandshakeCommand.cc
  5989. * src/usage_text.h
  5990. * test/MSEHandshakeTest.cc
  5991. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Bump version number to 0.13.0b
  5993. * configure.ac
  5994. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Updated doc.
  5996. * src/MessageDigestHelper.h:
  5997. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. Use raw message digest as a token instead of its hexadecimal
  5999. representation.
  6000. * src/DHTTokenTracker.cc (generateToken)
  6001. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. Added Message Stream Encryption(MSE) support.
  6003. Currently, aria2 accepts incoming connections with Obfuscation Header
  6004. and legacy BitTorrent Header and establishes connections with
  6005. Obfuscation Header first and if failed then retry with legacy
  6006. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6007. choose ARC4. The new option to change the default behavior is planned.
  6008. For tracker extension, "supportcrypto=1" is added statically.
  6009. * src/PeerInitiateConnectionCommand.{h, cc}
  6010. * src/PeerConnection.{h, cc}
  6011. * src/HandleRegistry.h
  6012. * src/SocketCore.h
  6013. * src/PeerReceiveHandshakeCommand.{h, cc}
  6014. * src/BtRegistry.{h, cc}
  6015. * src/PeerListenCommand.cc
  6016. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6017. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6018. * src/MSEHandshake.{h, cc}
  6019. * src/ARC4Encryptor.h
  6020. * src/ARC4Decryptor.h
  6021. * src/LibgcryptARC4Encryptor.h
  6022. * src/LibgcryptARC4Decryptor.h
  6023. * src/LibgcryptARC4Context.h
  6024. * src/LibsslARC4Encryptor.h
  6025. * src/LibsslARC4Decryptor.h
  6026. * src/LibsslARC4Context.h
  6027. * src/DHKeyExchange.h
  6028. * src/LibgcryptDHKeyExchange.h
  6029. * src/LibsslDHKeyExchange.h
  6030. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6031. * test/DefaultBtAnnounceTest.cc
  6032. * test/ARC4Test.cc
  6033. * test/DHKeyExchangeTest.cc
  6034. Removed prepareForRetry() because it is not used.
  6035. * src/PeerAbstractCommand.{h, cc}
  6036. * src/PeerInteractionCommand.{h, cc}
  6037. * src/PeerInitiateConnectionCommand.{h, cc}
  6038. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Added the ability to load nodes from torrent file. These nodes are
  6040. added to the routing table when downloading that torrent.
  6041. * src/BtContext.h
  6042. * src/DefaultBtContext.{h, cc}
  6043. * src/DHTSetup.cc
  6044. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6045. hostname and port pair, and resolves all of them.
  6046. * src/NameResolver.{h, cc}: Added reset().
  6047. * src/RequestGroup.cc
  6048. * test/DefaultBtContextTest.cc
  6049. * test/MockBtContext.h
  6050. Removed assert() from DefaultBtContext and throw exception instead.
  6051. * src/DefaultBtContext.cc
  6052. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Fixed segmentation fault bug when exiting if dht is disabled.
  6054. * src/RequestGroup.cc
  6055. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Fixed typo in log message and define the message in message.h
  6057. * src/TimedHaltCommand.cc
  6058. * src/message.h
  6059. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Included RecoverableException.h to fix compilation error.
  6061. * test/DHTMessageFactoryImplTest.cc
  6062. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6064. * test/DHTPingMessageTest.cc
  6065. * test/DHTGetPeersMessageTest.cc
  6066. * test/DHTFindNodeMessageTest.cc
  6067. * test/DHTAnnouncePeerMessageTest.cc
  6068. * test/MockDHTMessage.h
  6069. * test/MockDHTMessageFactory.h
  6070. * test/MockDHTMessageDispatcher.h: New class.
  6071. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6072. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6073. virtual.
  6074. * src/DHTMessageDispatcher.h
  6075. * src/DHTMessageDispatcherImpl.{h, cc}
  6076. * src/DHTSetup.cc
  6077. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Adding handling of DHT error message. Just log error message and
  6079. throw exception.
  6080. * src/DHTMessageFactoryImpl.cc
  6081. * test/DHTMessageFactoryImplTest.cc
  6082. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Added handling of dynamic cast failure.
  6084. * src/DHTNodeLookupTask.cc
  6085. * src/DHTPeerLookupTask.cc
  6086. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. Added the ability to stop aria2 itself when given time has passed
  6088. from start. Use --stop option to specify time in minutes.
  6089. When 0 is given, this feature is disabled.
  6090. * src/OptionHandlerFactory.cc
  6091. * src/TimeBasedCommand.h: Make _interval protected scope.
  6092. * src/HelpItemFactory.cc
  6093. * src/option_processing.cc
  6094. * src/prefs.h
  6095. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6096. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6097. Without this modification, the result list shows "ERR" when aria2 is
  6098. stopped by --stop option. It should be "INPR".
  6099. * src/DownloadEngine.{h, cc}
  6100. * src/DownloadEngineFactory.cc
  6101. * src/usage_text.h
  6102. * src/TimedHaltCommand.{h, cc}: New class.
  6103. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Bootstrap through node added by port message.
  6105. Currently bootstrap is executed if the number of buckets in routing
  6106. table is 1.
  6107. * src/BtPortMessage.{h, cc}
  6108. * src/DefaultBtMessageFactory.{h, cc}
  6109. * src/PeerInteractionCommand.cc
  6110. * test/BtPortMessageTest.cc
  6111. * test/MockDHTTask.h
  6112. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. Extract the Peer class's member variables, which are only needed after
  6114. PeerInteractionCommand, into PeerSessionResource class.
  6115. This class is instantiated in PeerInteractionCommand class's ctor and
  6116. released in its dtor.
  6117. This will make Peer class lightweight and uses less memory for peers
  6118. which are not connected and wait in the queue.
  6119. * src/PeerChokeCommand.cc
  6120. * src/PeerSessionResource.{h, cc}
  6121. * src/PeerInteractionCommand.cc
  6122. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6123. * src/DefaultBtInteractive.cc
  6124. * src/BtPieceMessage.cc
  6125. * src/BtInterestedMessage.cc
  6126. * src/BtUnchokeMessage.cc
  6127. * src/DefaultPeerStorage.{h, cc}
  6128. * src/PeerInitiateConnectionCommand.cc
  6129. * src/ActivePeerConnectionCommand.cc
  6130. * src/BtNotInterestedMessage.cc
  6131. * src/DefaultBtMessageDispatcher.cc
  6132. * src/BtChokeMessage.cc
  6133. * src/BtRequestMessage.cc
  6134. * src/Peer.{h, cc}
  6135. * src/BtRegistry.h
  6136. * src/TrackerWatcherCommand.cc
  6137. * src/PeerReceiveHandshakeCommand.cc
  6138. * test/BtExtendedMessageTest.cc
  6139. * test/BtAllowedFastMessageTest.cc
  6140. * test/BtCancelMessageTest.cc
  6141. * test/DefaultPieceStorageTest.cc
  6142. * test/BtBitfieldMessageTest.cc
  6143. * test/BtHaveMessageTest.cc
  6144. * test/BtNotInterestedMessageTest.cc
  6145. * test/BtRequestMessageTest.cc
  6146. * test/PeerSessionResourceTest.cc
  6147. * test/DefaultBtMessageDispatcherTest.cc
  6148. * test/PeerTest.cc
  6149. * test/BtInterestedMessageTest.cc
  6150. * test/BtRejectMessageTest.cc
  6151. * test/BtChokeMessageTest.cc
  6152. * test/DefaultPeerStorageTest.cc
  6153. * test/BtHaveNoneMessageTest.cc
  6154. * test/BtHaveAllMessageTest.cc
  6155. * test/DefaultExtensionMessageFactoryTest.cc
  6156. * test/BtUnchokeMessageTest.cc
  6157. * test/DefaultBtMessageFactoryTest.cc
  6158. * test/HandshakeExtensionMessageTest.cc
  6159. * test/UTPexExtensionMessageTest.cc
  6160. * test/DefaultBtRequestFactoryTest.cc
  6161. * test/BtPieceMessageTest.cc
  6162. Removed typedef PeerStats.
  6163. * src/PeerStat.h
  6164. * src/SegmentMan.cc
  6165. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Added std namespace to copy, remove_copy, back_inserter,
  6167. front_inserter.
  6168. * src/RequestGroupMan.cc
  6169. * src/DefaultPieceStorage.cc
  6170. * src/StreamFileAllocationEntry.cc
  6171. * src/BtFileAllocationEntry.cc
  6172. * src/RequestGroup.cc
  6173. * src/MetalinkEntry.cc
  6174. * src/DelegatingPeerListProcessor.cc
  6175. * src/DefaultBtRequestFactory.cc
  6176. * src/DefaultBtMessageDispatcher.cc
  6177. * src/version_usage.cc: Included <algorithm>
  6178. * src/main.cc
  6179. * src/MetalinkParserController.cc
  6180. * src/DefaultBtContext.cc
  6181. * src/DownloadEngineFactory.cc
  6182. * src/a2algo.h
  6183. Removed.
  6184. * test/StreamUriListParserTest.cc
  6185. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6187. ActivePeerConnectionCommand when it is given and
  6188. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6189. * src/ActivePeerConnectionCommand.{h, cc}
  6190. * src/BtSetup.cc
  6191. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Only add socket to DownloadEngine's select routine when peer or
  6193. localhost is unchoked and interested. This lowers CPU usage a
  6194. little bit.
  6195. * src/PeerInteractionCommand.cc
  6196. * src/PeerAbstractCommand.{h, cc}
  6197. * src/BtInteractive.h
  6198. * src/DefaultBtInteractive.{h, cc}
  6199. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Revert previous change because get_peers message is needed for
  6201. announce_peer anyway.
  6202. * src/DHTGetPeersCommand.cc
  6203. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6204. Request peers thought DHT only when download hasn't finished.
  6205. * src/DHTGetPeersCommand.cc
  6206. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6208. * src/DHTBucketRefreshTask.{h, cc}
  6209. * src/DHTSetup.cc
  6210. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6212. standard classes.
  6213. Included string.h where mem* function are used.
  6214. Added namespace aria2.
  6215. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Create directory before saving DHT routing table.
  6217. Now ios::failure is now handled properly.
  6218. * src/DHTAutoSaveCommand.cc
  6219. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Removed unnecessary cerr.
  6221. * src/DownloadEngine.cc
  6222. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Catch exception inside DHTMessageReceiver::receiveMessage().
  6224. Log unknown message.
  6225. * src/DHTMessageReceiver.{h, cc}
  6226. * src/DHTMessageFactory.h
  6227. * src/DHTMessageFactoryImpl.{h, cc}
  6228. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6229. * src/DHTInteractionCommand.cc
  6230. * src/DHTUnknownMessage.{h, cc}
  6231. * test/DHTUnknownMessageTest.cc
  6232. * test/MockDHTMessageFactory.h
  6233. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Commented out ip address comparison because a host can have multiple
  6235. ip addresses and it is hard to predict the hostname is resolved into
  6236. which one.
  6237. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6238. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. * po/Makefile.in: Removed since this is generated by configure.
  6240. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Fixed compiler warning about redefinition of SIZE_MAX.
  6242. Use common.h instead of config.h directly here.
  6243. * src/Platform.{h, cc}
  6244. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6245. here.
  6246. * common.h
  6247. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6248. Updated gettext related files.
  6249. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6250. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6251. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Added DHT functionality, compatible with mainline.
  6253. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6254. You may need to specify entry point to DHT network using
  6255. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6256. Use --dht-listen-port to specify port number. Make sure that your
  6257. firewall configuration can pass through UDP traffic to the port.
  6258. The routing table is saved in $HOME/.aria2/dht.dat.
  6259. * src/DHT*
  6260. * src/BNode.{h, cc}
  6261. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6262. particular torrent.
  6263. * src/Data.cc: Rewritten ctor.
  6264. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6265. --dht-entry-point.
  6266. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6267. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6268. ends, remove BtContext from DHTPeerAnnounceStorage.
  6269. * src/BtPortMessage.{h, cc}: Rewritten.
  6270. * src/message.h
  6271. * src/OptionHandlerImpl.cc
  6272. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6273. --dht-entry-point.
  6274. * src/Dictionary.{h, cc} (remove): New function.
  6275. * src/prefs.h
  6276. * src/DefaultBtMessageFactory.h
  6277. * src/BtHandshakeMessage.cc
  6278. * src/ActivePeerConnectionCommand.cc
  6279. * src/SocketCore.{h, cc}: Added datagram socket support.
  6280. * src/DefaultBtMessageFactory.cc
  6281. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6282. Create DHT commands.
  6283. * src/BtMessageFactory.h
  6284. * src/PeerMessageUtil.{h, cc}
  6285. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Fixed the bug that log file is not written when configuration file doesn't exist.
  6287. This is caused by using Logger class before LogFactory is not configured.
  6288. BUG #1875079
  6289. * src/option_processing.cc
  6290. Warning message "configuration doesn't exist" is only printed when --conf is
  6291. given.
  6292. * src/option_processing.cc
  6293. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6295. ShaVisitor is now deprecated and slated to be removed.
  6296. * src/DefaultBtContext.cc
  6297. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Externalize message to message.h
  6299. * src/Platform.cc
  6300. * src/message.h
  6301. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. Set default domain and default path to cookie.
  6303. * src/HttpResponse.cc
  6304. * src/CookieBox.{h, cc}
  6305. * src/CookieParser.{h, cc}
  6306. * test/CookieParserTest.cc
  6307. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Added --no-conf and --conf-path command-line option.
  6309. --no-conf option disables loading aria2.conf file.
  6310. --conf-path option changes the configuration file path. The default
  6311. file path is $HOME/.aria2/aria2.conf
  6312. Added a warning message when the configuration file is not found.
  6313. * src/HelpItemFactory.cc
  6314. * src/option_processing.cc
  6315. * src/prefs.h
  6316. * src/usage_text.h
  6317. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Added the message to inform users that other help categories are
  6319. available in -h option.
  6320. * src/version_usage.cc
  6321. * src/TagContainer.{h, cc}
  6322. * test/TagContainerTest.cc
  6323. * src/TaggedItem.{h, cc}
  6324. * test/TaggedItemTest.cc
  6325. * src/HelpItem.h
  6326. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6328. from PiecedSegment's ctor.
  6329. Previously Piece::getAllMissingBlockIndexes() is called from
  6330. PiecedSegment() but it is rather expensive since only first element is
  6331. used.
  6332. * src/PiecedSegment.cc
  6333. * src/Piece.{h, cc}
  6334. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6336. each time these functions are called.
  6337. * src/BitfieldMan.{h, cc}
  6338. * test/BitfieldManTest.cc
  6339. * src/array_fun.h
  6340. * test/array_funTest.cc
  6341. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6342. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6343. filtered. Removed unnecessary cast to int32_t.
  6344. * src/BitfieldMan.{h, cc}
  6345. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6347. payload length(4bytes) are received. This happens because lenbufLength
  6348. is not updated in this particular case and successive call of
  6349. receiveMessage() overwrites payload length with bytes recieved which
  6350. are payload body.
  6351. * src/PeerConnection.{h, cc}
  6352. * src/message.h
  6353. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6355. peer if there are peers that have same ipaddr and port.
  6356. I've experiened segmentation fault and "pure virtual function was
  6357. called" error.
  6358. * src/Peer.h
  6359. * test/PeerTest.cc
  6360. * src/DefaultPeerStorage.cc
  6361. * test/DefaultPeerStorageTest.cc
  6362. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. Removed a call to isPowerOf() because it is no longer necessary here
  6364. and a request block is not always power of 2.
  6365. BUG#1866924
  6366. * src/PeerMessageUtil.cc (checkLength)
  6367. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Fixed the bug that always first found Segment is removed from
  6369. usedSegmentEntries. Removed unused functions.
  6370. * src/SegmentMan.{h, cc}
  6371. * test/SegmentManTest.cc
  6372. Fixed the bug that ServerHost is not removed.
  6373. * src/RequestGroup.cc
  6374. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. Fixed the bug that SegmentMan::completeSegment() is not called
  6376. even if Segment is complete when --lowest-speed-limit is enabled.
  6377. BUG#1864525
  6378. * src/DownloadCommand.{h, cc}
  6379. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6380. Fixed: hash algorithm 'sha1' is always used.
  6381. * src/DownloadCommand.cc (validatePieceHash)
  6382. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. Added --enable-peer-exchange command-line option.
  6384. * src/OptionHandlerFactory.cc
  6385. * src/HelpItemFactory.cc
  6386. * src/option_processing.cc
  6387. * src/usage_text.h
  6388. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. Move extension from BtRuntime to ExtensionMessageFactory, because
  6390. extension can be specified per peer, not per torrent.
  6391. * src/DefaultBtInteractive.cc
  6392. * src/BtRuntime.h
  6393. * src/ExtendedMessagingAware.h
  6394. * src/ExtensionMessageFactory.h
  6395. * src/DefaultExtensionMessageFactory.cc
  6396. * test/DefaultExtensionMessageFactoryTest.cc
  6397. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6398. Added categorized option help. Specify category using --help option.
  6399. Also added the ability to search options in forward match.
  6400. * src/HelpItem.{h, cc}
  6401. * test/HelpItemTest.cc
  6402. * src/HelpItemFactory.{h, cc}
  6403. * src/TagContainer.{h, cc}
  6404. * test/TagContainerTest.cc
  6405. * src/option_processing.cc
  6406. * src/prefs.h
  6407. * src/TaggedItem.{h, cc}
  6408. * test/TaggedItemTest.cc
  6409. * src/version_usage.cc
  6410. * src/help_tags.h
  6411. * src/usage_text.h
  6412. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Fixed segmentation fault when bad torrent metainfo is parsed.
  6414. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6415. and then throw exception or skip it.
  6416. * src/DefaultBtContext.{h, cc}
  6417. * test/DefaultBtContextTest.cc
  6418. * src/AnnounceList.cc
  6419. * src/CompactPeerListProcessor.cc
  6420. * src/message.h
  6421. * src/DefaultBtAnnounce.{h, cc}
  6422. * test/DefaultBtAnnounceTest.cc
  6423. * src/BencodeVisitor.cc
  6424. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Added missing "B"(=Byte). So now the message looks like this:
  6426. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6427. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6428. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Show the seed ratio after torrent downloads.
  6430. For example, after torrent download completed and --seed-time and
  6431. --seed-ratio conditions are fulfilled, following message is printed
  6432. right after "Download complete: .....":
  6433. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6434. * src/RequestGroupMan.cc
  6435. * src/RequestGroup.{h, cc}
  6436. * src/message.h
  6437. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Remove a defunct control file. A defunct control file means that while
  6439. it exists, but the corresponding download file is missing.
  6440. After its removal, a download restarts from the beginning.
  6441. * src/RequestGroup.cc
  6442. * src/message.h
  6443. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Allocate bitfield in Peer when it is really used. More specifically,
  6445. bitfield in Peer is allocated after the connection is established and
  6446. deallocated when the connection is dropped.
  6447. Since 2 parameters(piece length and total length) was removed from the
  6448. constructor of Peer class, many test classes were modified accordingly.
  6449. See svn log for more detailed information.
  6450. * src/PeerInteractionCommand.cc
  6451. * src/CompactPeerListProcessor.cc
  6452. * src/Peer.cc
  6453. * src/DefaultPeerListProcessor.cc
  6454. * src/PeerListenCommand.cc
  6455. * src/PeerReceiveHandshakeCommand.cc
  6456. Fixed memory leak
  6457. * src/Piece.cc
  6458. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6460. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6461. command-line options.
  6462. * src/option_processing.cc
  6463. * src/ActivePeerConnectionCommand.cc
  6464. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Send have message to peer if it already has the piece.
  6466. * src/BtHaveMessage.{h, cc}
  6467. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6469. port.
  6470. * src/DefaultPeerStorage.{h, cc}
  6471. * test/DefaultPeerStorageTest.cc
  6472. * src/HandshakeExtensionMessage.cc
  6473. * test/HandshakeExtensionMessageTest.cc
  6474. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6475. * src/PeerStorage.h
  6476. * test/MockPeerStorage.h
  6477. * src/PeerListenCommand.cc
  6478. * src/PeerReceiveHandshakeCommand.cc
  6479. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Added --metalink-enable-unique-protocol option.
  6481. * src/Metalink2RequestGroup.cc
  6482. * src/option_processing.cc
  6483. * src/prefs.h
  6484. * src/version_usage.cc
  6485. * doc/aria2c.1.txt
  6486. * doc/aria2c.1
  6487. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Allow a peer in incomingPeer to be added peers.
  6489. * src/DefaultPeerStorage.cc
  6490. * test/DefaultPeerStorageTest.cc
  6491. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6493. I could reproduce this bug in following procedure:
  6494. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6495. 2. Restart aria2.
  6496. 3. You see the download stopped around 99%.
  6497. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6498. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6499. If timeout is reached, then _nextCommand is unused and it may contains
  6500. segments and they won't be canceled. Actually, timeout is not needed
  6501. here because if the server dropped connection, then retry is made.
  6502. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Added uTorrent compatible Peer Exchange.
  6504. * src/BencodeVisitor.{h, cc}
  6505. * test/BencodeVisitorTest.cc
  6506. * src/BtConstants.h
  6507. * src/BtContext.h: Added 'private' flag.
  6508. * src/BtExtendedMessage.{h, cc}
  6509. * test/BtExtendedMessageTest.cc
  6510. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6511. reserved field.
  6512. * test/BtHandshakeMessageTest.cc
  6513. * src/BtMessageFactory.h
  6514. * src/BtRegistry.h
  6515. * src/BtRuntime.h: This class holds default extension message IDs for
  6516. aria2. By default, aria2 uses ID 8 for ut_pex.
  6517. * src/DefaultBtContext.cc
  6518. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6519. When it is true, aria2 enables ut_pex. This value is set by
  6520. PeerInteractionCommand.
  6521. * src/DefaultBtMessageFactory.{h, cc}
  6522. * test/DefaultBtMessageFactoryTest.cc
  6523. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6524. handling to DefaultBtInteractive class.
  6525. * src/DefaultExtensionMessageFactory.{h, cc}
  6526. * test/DefaultExtensionMessageFactoryTest.cc
  6527. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6528. the container(peers and incomingPeers. The equality is determined by
  6529. Peer::id).
  6530. * test/DefaultPeerStorageTest.cc
  6531. * src/ExtensionMessage.h
  6532. * test/MockExtensionMessage.h
  6533. * src/ExtensionMessageFactory.h
  6534. * test/MockExtensionMessageFactory.h
  6535. * src/HandshakeExtensionMessage.{h, cc}
  6536. * test/HandshakeExtensionMessageTest.cc
  6537. * src/MetaEntry.h
  6538. * src/Peer.{h, cc}
  6539. * src/PeerInteractionCommand.cc
  6540. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6541. addIncomingPeer.
  6542. * src/PeerMessageUtil.{h, cc}
  6543. * src/PeerObject.h
  6544. * src/UTPexExtensionMessage.{h, cc}
  6545. * test/UTPexExtensionMessageTest.cc
  6546. * src/message.h
  6547. * src/prefs.h
  6548. Fixed the bug that returns incomplete data when it contains null
  6549. character. A convenient constructor was also added.
  6550. * src/Data.{h, cc}
  6551. Rewritten.
  6552. * src/CompactPeerListProcessor.cc
  6553. Fixed typos.
  6554. * src/message.h
  6555. * src/MetaFileUtil.cc
  6556. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Added "Status Legend" label to the explanation text of 'stat' in
  6558. download result and moved it to the last. BUG#1848214
  6559. * src/RequestGroupMan.cc
  6560. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6562. * src/Makefie.am
  6563. * test/Makefile.am
  6564. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Fixed the bug that prevents aria2 from loading cookie file when expire
  6566. value is greater than 2^31-1. BUG#1851066
  6567. * src/CookieBoxFactory.cc
  6568. * test/CookieBoxFactoryTest.cc
  6569. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Fixed possible memory leak when an exception is thrown.
  6571. * src/XML2SAXMetalinkProcessor.cc
  6572. Added Expat support. If both libxml2 and Expat are installed, then
  6573. libxml2 is used by default.
  6574. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6575. ExpatMetalinkProcessor according to the configuration.
  6576. * src/ExpatMetalinkProcessor.{h, cc}
  6577. * src/main.cc: Removed libxml2 specific header and init/free function.
  6578. * src/MetalinkProcessorFactory.{h, cc}
  6579. * src/MetalinkHelper.cc
  6580. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6581. * src/MetalinkProcessor.h
  6582. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6583. MetalinkProcessorTest is used instead.
  6584. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6585. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6586. MetalinkProcessorFactory::newInstance().
  6587. * m4/libexpat.m4
  6588. * configure.ac: Added configuration options for libexpat.
  6589. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Disabled -s option in metalink download.
  6591. * src/Metalink2RequestGroup.cc
  6592. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. If several protocols are available for a mirror in metalink file,
  6594. aria2 now use one of them. --metalink-preferred-protocol option was
  6595. added to specify the preference of protocol.
  6596. * src/AbstractCommand.cc
  6597. * src/OptionHandlerFactory.cc
  6598. * src/ServerHost.{h, cc}
  6599. * src/Metalink2RequestGroup.cc
  6600. * src/RequestGroup.{h, cc}
  6601. * test/RequestGroupTest.cc
  6602. * src/option_processing.cc
  6603. * src/prefs.h
  6604. * src/HttpResponseCommand.cc
  6605. * src/MetalinkResource.{h, cc}
  6606. * src/FtpNegotiationCommand.cc
  6607. * src/MetalinkEntry.{h, cc}
  6608. * src/MetalinkEntryTest.cc
  6609. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Code cleanup and added debug log.
  6611. * src/PeerConnection.cc
  6612. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Compiler error fix: applied the patch by Tiziano Mueller
  6614. * src/RequestGroup.cc
  6615. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6617. in stopped and completed event.
  6618. * src/AnnounceList.{h, cc}
  6619. * test/AnnounceListTest.cc
  6620. * src/DefaultBtAnnounce.cc
  6621. * test/DefaultBtAnnounceTest.cc
  6622. Sorted URLs.
  6623. * test/Metalink2RequestGroupTest.cc
  6624. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Removed unnecessary string copy. Updated doc and corrected indentation.
  6626. * src/Base64.cc
  6627. Fixed compilation warnings
  6628. * test/DataTest.cc
  6629. * test/HttpRequestTest.cc
  6630. * test/MetaFileUtilTest.cc
  6631. * test/RequestTest.cc
  6632. * Release 0.12.0
  6633. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Updated translations
  6635. * po/{de,fr,ja,nl,ru}.po
  6636. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6637. translations. Many thanks to translators.
  6638. * po/{ca,es,it,pt_BR,sv}.po
  6639. * po/LINGUAS
  6640. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Added a notice about URL
  6642. * src/version_usage.cc
  6643. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6644. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6645. aria2 repeatedly sends stopped request when tracker returns error code.
  6646. * src/AnnounceList.cc
  6647. * test/AnnounceListTest.cc
  6648. * src/AnnounceTier.h
  6649. Added a message when ctrl-c is hit.
  6650. Now second ctrl-c is also handled in signal handler.
  6651. * src/RequestGroupMan.{h, cc}
  6652. * src/RequestGroup.{h, cc}
  6653. * src/MultiUrlRequestInfo.cc
  6654. * src/DownloadEngine.cc
  6655. * src/TrackerWatcherCommand.cc
  6656. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Code cleanup
  6658. * src/Base64.cc (encode)
  6659. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Changed Direct/IO enable/disable procesure in file allocation routine.
  6661. * src/SingleFileAllocationIterator.cc
  6662. (SingleFileAllocationIterator):
  6663. Disable directIO if offset is not multiple of 512.
  6664. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6665. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6666. Enable created SingleFileAllocationIterator's directIO.
  6667. * src/FileAllocationEntry.cc
  6668. (FileAllocationEntry): Enable directIO here.
  6669. (~FileAllocationEntry): Disable directIO here.
  6670. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6672. * src/Peer.{h, cc}
  6673. * src/DefaultPieceStorage.cc
  6674. * test/DefaultPieceStorageTest.cc
  6675. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Rewritten direct I/O support routine
  6677. * src/SingleFileAllocationIterator.cc
  6678. * src/MultiDiskAdaptor.{h, cc}
  6679. * src/ByteArrayDiskWriter.h
  6680. * src/AbstractSingleDiskAdaptor.h
  6681. * src/AbstractDiskWriter.cc
  6682. * src/DefaultPieceStorage.cc
  6683. * src/DiskWriter.h
  6684. * src/BinaryStream.h
  6685. * src/IteratableChunkChecksumValidator.cc
  6686. * src/IteratableChecksumValidator.cc
  6687. * src/CheckIntegrityEntry.cc
  6688. * src/FileAllocationEntry.cc
  6689. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Fixed typo
  6691. * src/version_usage.cc
  6692. Updated doc
  6693. * doc/aria2c.1.txt
  6694. * doc/aria2c.1
  6695. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Fixed compile error without message digest support.
  6697. * src/FileMetalinkParserState.cc
  6698. * src/MetalinkParserController.{h, cc}
  6699. * test/XML2SAXMetalinkProcessorTest.cc
  6700. * test/MetalinkParserControllerTest.cc
  6701. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Enable direct I/O support in checksum checking.
  6703. * src/IteratableChunkChecksumValidator.{h, cc}
  6704. * test/IteratableChunkChecksumValidatorTest.cc
  6705. * src/CheckIntegrityEntry.cc
  6706. * src/PieceHashCheckIntegrityEntry.cc
  6707. * src/IteratableChecksumValidator.{h, cc}
  6708. * src/BtCheckIntegrityEntry.cc: Added doc.
  6709. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Added --allow-piece-length-change option.
  6711. * src/DefaultBtProgressInfoFile.cc
  6712. * test/DefaultBtProgressInfoFileTest.cc
  6713. * src/OptionHandlerFactory.cc
  6714. * src/option_processing.cc
  6715. * src/prefs.h
  6716. * src/version_usage.cc
  6717. * doc/aria2c.1.txt
  6718. * doc/aria2c.1
  6719. Fixed: duplicated result entry appears when exception is thrown in
  6720. RequestGroup::createInitiateConnectionCommand().
  6721. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6722. Add RequestGroup to _requestGroup after RequetGroup::
  6723. createInitiateConnectionCommand() succeeds.
  6724. Externalized message
  6725. * src/XML2SAXMetalinkProcessor.cc
  6726. * src/message.h
  6727. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Forced download abort when received negative response from http/ftp
  6729. server.
  6730. * src/HttpResponseCommand.cc
  6731. * src/FtpNegotiationCommand.cc
  6732. * src/HttpResponse.cc
  6733. * src/FtpConnection.cc
  6734. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6736. the predecessor, Xml2MetalinkParser class.
  6737. I tested them against 94KB metalink file with 1234 chunk checksums.
  6738. The new one parsed it in 22msec, while it took 6000msec with old one.
  6739. * src/XML2SAXMetalinkProcessor.{h, cc}
  6740. * test/XML2SAXMetalinkProcessorTest.cc
  6741. * src/MetalinkParserController.{h, cc}
  6742. * test/MetalinkParserControllerTest.cc
  6743. * src/MetalinkParserState.h: Also added 16 subclasses.
  6744. * src/main.cc
  6745. * src/Metalink2RequestGroup.cc
  6746. * src/MetalinkHelper.cc
  6747. * src/MetalinkEntry.cc
  6748. * src/ChunkChecksum.h
  6749. Rewritten Base64 class for better performance.
  6750. * src/Base64.{h, cc}
  6751. * test/Base64Test.cc
  6752. * src/HttpRequest.cc
  6753. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Fixed the bug#1841757: aria2 will connect to server to only get
  6755. file size.
  6756. * src/StreamFileAllocationEntry.cc
  6757. * src/option_processing.cc
  6758. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6759. downloads.
  6760. * src/FtpNegotiationCommand.cc
  6761. Suppressed wrong message when finding PreDownloadHandler
  6762. * src/RequestGroup.cc
  6763. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Updated usage
  6765. * src/version_usage.cc
  6766. Updated man page
  6767. * doc/aria2c.1.txt
  6768. * doc/aria2c.1
  6769. Updated po files
  6770. * po/aria2c.pot
  6771. * po/*.po
  6772. * po/*.gmo
  6773. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Eliminated g++-4.2 warning
  6775. * src/DownloadHandlerConstants.{h, cc}
  6776. * src/Util.cc
  6777. * test/MetaFileUtilTest.cc
  6778. * test/PStringBuildVisitorTest.cc
  6779. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6780. * src/RequestGroup.cc
  6781. * src/BtCheckIntegrityEntry.cc
  6782. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Fixed a2io.h
  6784. * src/a2io.h
  6785. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Added direct I/O support. The current implementation uses O_DIRECT,
  6787. which is not posix standard and is tested on linux 2.6.21.
  6788. Currently only file allocation uses direct I/O.
  6789. * src/SingleFileAllocationIterator.{h, cc}
  6790. * test/SingleFileAllocationIteratorTest.cc
  6791. * src/MultiFileAllocationIterator.{h, cc}
  6792. * test/MultiFileAllocationIteratorTest.cc
  6793. * src/BinaryStream.h
  6794. * src/DiskWriter.h
  6795. * src/AbstractDiskWriter.{h, cc}
  6796. * src/ByteArrayDiskWriter.h
  6797. * src/DiskAdaptor.h
  6798. * src/AbstractSingleDiskAdaptor.{h, cc}
  6799. * src/MultiDiskAdaptor.{h, cc}
  6800. * src/FileAllocationEntry.cc
  6801. * src/Util.{h, cc}
  6802. * src/OptionHandlerFactory.cc
  6803. * src/prefs.h
  6804. * src/version_usage.cc
  6805. * src/option_processing.cc
  6806. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6807. handleException.
  6808. * src/MultiFileAllocationIterator.cc
  6809. Added EINTR handling
  6810. * src/SocketCore.cc
  6811. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Updated usage
  6813. * src/version_usage.cc
  6814. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. Applied Ross's patch for MinGW port.
  6816. * src/DownloadEngine.h
  6817. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Set Content-Type to SingleFileDownloadContext when http response is
  6819. received.
  6820. * src/HttpResponseCommand.cc
  6821. * src/HttpResponse.{h, cc}
  6822. * test/HttpResponseTest.cc
  6823. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Rewritten to add content-type support.
  6825. * src/DownloadHandler.{h, cc}
  6826. * src/BtPostDownloadHandler.{h, cc}
  6827. * test/BtPostDownloadHandlerTest.cc
  6828. * src/MetalinkPostDownloadHandler.{h, cc}
  6829. * test/MetalinkPostDownloadHandlerTest.cc
  6830. * src/PostDownloadHandler.{h, cc}
  6831. * src/DownloadHandlerConstants.{h, cc}
  6832. * src/RequestGroup.cc
  6833. * src/HttpResponseCommand.cc
  6834. * src/FtpNegotiationCommand.cc
  6835. * src/SingleFileDownloadContext.{h, cc}
  6836. * src/RequestGroup.h
  6837. * src/RequestGroupCriteria.h
  6838. * src/ContentTypeRequestGroupCriteria.h
  6839. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6840. If it is give, metalink/torrent file is not written to the disk, but
  6841. just is kept in memory. Parsing is occurred on memory.
  6842. * src/MetalinkHelper.{h, cc}
  6843. * src/MetalinkProcessor.h
  6844. * src/Xml2MetalinkProcessor.{h, cc}
  6845. * test/Xml2MetalinkProcessorTest.cc
  6846. * src/DownloadHandlerFactory.{h, cc}
  6847. * test/DownloadHandlerFactoryTest.cc
  6848. * src/PreDownloadHandler.{h, cc}
  6849. * src/OptionHandlerFactory.cc
  6850. * src/DefaultBtContext.{h, cc}
  6851. * test/DefaultBtContextTest.cc
  6852. * src/version_usage.cc
  6853. * src/Metalink2RequestGroup.{h, cc}
  6854. * src/RequestGroup.{h, cc}
  6855. * src/a2functional.h
  6856. * test/a2functionalTest.cc
  6857. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6858. * src/OptionHandlerImpl.h
  6859. * src/prefs.h
  6860. * src/Util.{h, cc}
  6861. * test/UtilTest.cc
  6862. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6863. memory usage.
  6864. * src/RequestGroupMan.{h, cc}
  6865. * src/DownloadEngine.cc
  6866. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6867. WeakHandle to SharedHandle because WeakHandle could be null.
  6868. * src/RequestGroup.{h, cc}
  6869. * src/DownloadEngineFactory.cc
  6870. * src/DownloadResult.h
  6871. Set totalLength after download finished
  6872. * src/UnknownLengthPieceStorage.{h, cc}
  6873. Keep torrent file specified in metalink in memory.
  6874. * src/Metalink2RequestGroup.cc
  6875. * src/BtDependency.cc
  6876. * src/TrueRequestGroupCriteria.h
  6877. Fixed the bug: seekg is used where seekp should be used.
  6878. * src/ByteArrayDiskWriter.cc
  6879. * test/ByteArraydiskWriterTest.cc
  6880. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Fixed syntax error
  6882. * test/SequenceTest.cc
  6883. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6885. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6886. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6887. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6888. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Added the check to see whether ares_host_callback accepts timeouts
  6890. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6891. * src/NameResolver.{h, cc}
  6892. * m4/libcares.m4
  6893. * configure.ac: Set C++ for language choice.
  6894. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Fixed: compilation fails without c-ares/ares
  6896. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6897. Generate http/ftp commands only when download is incomplete.
  6898. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6899. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Corrected typo. Examples are removed since they are available in man
  6901. page.
  6902. * src/version_usage.cc
  6903. Updated man page.
  6904. * doc/aria2c.1
  6905. * doc/aria2c.1.txt
  6906. * doc/makeman: Commented out sed command.
  6907. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Throw DlAbortEx when a remote file is not found.
  6909. * src/HttpResponse.cc
  6910. * src/FtpNegotiationCommand.cc
  6911. * src/message.h
  6912. Overwrite an existing file if --allow-overwrite=true is given.
  6913. * src/RequestGroup.cc
  6914. Removed unused functions
  6915. * src/AbstractCommand.h
  6916. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Removed 'extern' from 'extern typedef ...' in src/*.h
  6918. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Updated usage
  6920. * src/version_usage.cc
  6921. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Trim announce URL
  6923. * src/DefaultBtContext.cc
  6924. * test/ShaVisitorTest.cc
  6925. Trim argument s. Give trimed s to exception constructor.
  6926. * src/Util.cc (parseInt)(parseLLInt)
  6927. * test/UtilTest.cc
  6928. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Set precision back to 1.
  6930. * src/ConsoleStatCalc.cc (calculateStat)
  6931. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. Replaced strtol with Util::parseInt
  6933. * src/ChunkedEncoding.cc
  6934. * src/HttpConnection.cc
  6935. * src/CookieBoxFactory.cc
  6936. * src/ParameterizedStringParser.cc
  6937. * src/Util.cc
  6938. * test/UtilTest.cc
  6939. * test/OptionHandlerTest.cc
  6940. * src/Request.cc
  6941. Throw exception when empty string is given. The message for exception
  6942. changed.
  6943. * src/Util.cc (parseInt)(parseLLInt)
  6944. * src/message.h
  6945. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6947. set to 1.
  6948. * src/ConsoleStatCalc.cc (calculateStat)
  6949. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Preallocate non-requested file which is adjacent forward to requested
  6951. file('requested' files means the files given in --select-file option)
  6952. if they share a same piece.
  6953. This fixes long pause in the file system which doesn't support sparse
  6954. files like FAT32 while downloading.
  6955. * src/MultiFileAllocationIterator.{h, cc}
  6956. * test/MultiFileAllocationIteratorTest.cc
  6957. * src/FileEntry.{h, cc}
  6958. Removed unused _option.
  6959. * src/MultiDiskAdaptor.h
  6960. * test/MultiDiskAdaptorTest.cc
  6961. * src/DefaultPieceStorage.cc
  6962. Set the default value of --seed-ratio to 1.0.
  6963. If 0.0 is given, then seeding continues regardless of share ratio.
  6964. * src/version_usage.cc
  6965. * src/option_processing.cc
  6966. * src/BtSetup.cc
  6967. * doc/aria2c.1.txt
  6968. * doc/aria2c.1
  6969. Fixed: Selective download is not working in BitTorrent
  6970. * src/RequestGroup.cc
  6971. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6972. * src/PieceStorage.h
  6973. * test/MockPieceStorage.h
  6974. * src/UnknownLengthPieceStorage.h
  6975. * src/DefaultPieceStorage.{h, cc}
  6976. * src/Metalink2RequestGroup.cc
  6977. * src/RequestGroup.cc
  6978. * src/Sequence.h
  6979. * test/SequenceTest.cc
  6980. * src/IntSequence.h
  6981. * src/message.h
  6982. * src/Util.{h, cc}
  6983. * test/UtilTest.cc
  6984. Added new function 'parse' to catch exception thrown by subclass's
  6985. parseArg
  6986. * src/OptionHandler.h
  6987. * src/OptionParser.cc
  6988. * src/NameMatchOptionHandler.h
  6989. * src/OptionHandlerImpl.h
  6990. * test/OptionHandlerTest.cc
  6991. Added IntegerRangeOptionHandler. Used for --listen-port and
  6992. --select-file. Now --listen-port accepts range of port.
  6993. * src/OptionHandlerFactory.cc
  6994. * src/version_usage.cc
  6995. * src/OptionHandlerImpl.h
  6996. * src/option_processing.cc
  6997. * src/BtSetup.cc
  6998. * src/PeerListenCommand.{h, cc}
  6999. * doc/aria2c.1.txt
  7000. * doc/aria2c.1
  7001. Implemented operator< for Exception class to provide easy way to print
  7002. exception stack trace.
  7003. * src/Exception.{h, cc}
  7004. * src/main.cc
  7005. * src/option_processing.cc
  7006. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. * src/version_usage.cc
  7008. (showVersion): Reworked.
  7009. (showUsage): Added examples.
  7010. Removed Hint for total length and file name.
  7011. * src/Metalink2RequestGroup.cc
  7012. * src/RequestGroup.{h, cc}
  7013. * src/HttpResponseCommand.cc
  7014. * src/FtpNegotiationCommand.cc
  7015. Now --follow-torrent and --follow-metalink option work properly.
  7016. * src/RequestGroup.cc
  7017. Updated man page
  7018. * doc/aria2c.1.txt
  7019. * doc/aria2c.1
  7020. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Removed.
  7022. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7023. Use Segment::operator==()
  7024. * src/HttpConnection.cc
  7025. * src/Segment.h
  7026. Updated usage
  7027. * src/version_usage.cc
  7028. Added EINTR treatment.
  7029. * src/SocketCore.cc
  7030. * src/AbstractDiskWriter.cc
  7031. Rewritten.
  7032. * src/Util.cc (rangedFileCopy)
  7033. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7034. Fixed typo.
  7035. * src/version_usage.cc
  7036. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Implemented. Now -c option works fine.
  7038. * src/DefaultPieceStorage.cc (markPiecesDone)
  7039. * test/DefaultPieceStorageTest.cc
  7040. Removed.
  7041. * src/SegmentMan.{h, cc}
  7042. (markAllPiecesDone)
  7043. (markPieceDone)
  7044. Synchronized po files with
  7045. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7046. * src/fr.po
  7047. * src/ru.po
  7048. * src/de.po
  7049. * src/ja.po
  7050. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Added ifdef and some modifications to compile without BitTorrent,
  7052. Metalink, MessageDigest
  7053. support.
  7054. * src/PieceHashCheckIntegrityEntry.cc
  7055. * src/MetalinkEntry.h
  7056. * src/version_usage.cc
  7057. * src/main.cc
  7058. * src/DownloadEngine.{h, cc}
  7059. * src/Metalink2RequestGroup.cc
  7060. * src/Peer.cc
  7061. * src/RequestGroup.cc
  7062. * src/MetalinkHelper.cc
  7063. * test/DefaultPieceStorageTest.cc
  7064. * test/MetalinkPostDownloadHandlerTest.cc
  7065. * test/Metalink2RequestGroupTest.cc
  7066. Hide TOTAL SPD when all downloads complete.
  7067. * src/ConsoleStatCalc.cc
  7068. Log target system information.
  7069. * src/main.cc
  7070. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Now --metalink-location accepts a comma-deliminated list of locations.
  7072. * src/MetalinkEntry.{h, cc}
  7073. * test/MetalinkEntryTest.cc
  7074. * src/version_usage.cc
  7075. * src/Metalink2RequestGroup.cc
  7076. * src/Xml2MetalinkProcessor.cc
  7077. * test/Xml2MetalinkProcessorTest.cc
  7078. * doc/aria2c.1.txt
  7079. * doc/aria2c.1
  7080. * src/Util.cc (toUpper)(toLower): Rewritten.
  7081. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Added the ability to detect duplicate download entry which is about to
  7083. download the same file other RequestGroup is downloading.
  7084. * src/RequestGroup.cc
  7085. * src/HttpResponseCommand.cc
  7086. * src/FtpNegotiationCommand.cc
  7087. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Recalculates download progress when loading a control file,
  7089. if the piece length of DownloadContext is different from the one saved
  7090. in the control file. Currently in-flight pieces are ignored.
  7091. * src/DefaultBtProgressInfoFile.cc
  7092. * test/DefaultBtProgressInfoFileTest.cc
  7093. * src/Util.{h, cc}
  7094. * test/UtilTest.cc
  7095. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Do not rotate tiers in announce-list.
  7097. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7098. AnnounceList::allTiersFailed() used instead to detect whether all
  7099. tiers are tried and failed.
  7100. * test/DefaultBtAnnounceTest.cc
  7101. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7102. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7103. * test/AnnounceListTest.cc
  7104. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7105. clause. Catch RecoverableException instead of DlRetryEx instead.
  7106. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Implemented checksum validation feature(1 checksum for each file)
  7108. The validation takes place after the download.
  7109. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7110. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7111. * src/CheckIntegrityCommand.cc: Changed log message.
  7112. * src/Metalink2RequestGroup.cc: Set checksum to
  7113. SingleFileDownloadContext.
  7114. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7115. PieceHashCheckIntegrity class.
  7116. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7117. PieceHashCheckIntegrity class.
  7118. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7119. * src/IteratableValidator.h: New class.
  7120. * src/message.h
  7121. * src/CheckIntegrityEntry.{h, cc}
  7122. * src/IteratableChunkChecksumValidator.{h, cc}
  7123. * src/SingleFileDownloadContext.h
  7124. * src/DownloadCommand.cc
  7125. --allow-overwrite=true is no longer needed to check file integrity
  7126. before download in BitTorrent download.
  7127. * src/RequestGroup.cc (getInitialCommand)
  7128. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7129. throws exception.
  7130. * src/RequestGroupMan.cc (getInitialCommands)
  7131. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. urlencode the given url inside Request::parseUrl(...)
  7133. * src/Request.{h, cc}
  7134. * src/Util.{h, cc}
  7135. * test/RequestTest.cc
  7136. Removed #!metalink3! notation support because it is deleted from
  7137. the metalink specification.
  7138. * src/Request.{h, cc}
  7139. * test/RequestTest.cc
  7140. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Don't connect server before checking file integrity at startup, if
  7142. filesize and output file path are known.
  7143. * src/AbstractCommand.cc
  7144. * src/StreamFileAllocationEntry.cc
  7145. * src/Metalink2RequestGroup.cc
  7146. * src/RequestGroup.{h, cc}
  7147. * src/HttpResponseCommand.cc
  7148. * src/FtpNegotiationCommand.cc
  7149. Added DownloadFailureException. If it is thrown, RequestGroup should
  7150. halt.
  7151. * src/AbstractCommand.cc
  7152. * src/DownloadFailureException.h
  7153. * src/RequestGroup.cc
  7154. Catch RecoverableException, instead of DlAbortEx.
  7155. * src/RequestGroupMan.cc
  7156. * src/FillRequestGroupCommand.cc
  7157. * src/MetaFileUtil.cc
  7158. * src/IteratableChunkChecksumValidator.cc
  7159. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7160. getGID())
  7161. * src/CheckIntegrityCommand.cc
  7162. * src/message.h
  7163. Print gid instead of idx.
  7164. * src/RequestGroupMan.cc
  7165. Removed exception throwers declaration.
  7166. * src/DirectDiskAdaptor.{h, cc}
  7167. * src/SocketCore.{h, cc}
  7168. * src/MultiDiskAdaptor.{h, cc}
  7169. * src/HttpConnection.{h, cc}
  7170. * src/HttpResponse.{h, cc}
  7171. * src/DiskAdaptor.{h, cc}
  7172. * src/CopyDiskAdaptor.{h, cc}
  7173. * src/MultiDiskAdaptor.{h, cc}
  7174. * src/HttpHeaderProcessor.{h, cc}
  7175. * src/AbstractSingleDiskAdaptor.{h, cc}
  7176. * src/Util.{h, cc}
  7177. * test/UtilTest.cc
  7178. * src/DefaultDiskWriter.{h, cc}
  7179. * src/FtpConnection.{h, cc}
  7180. * src/AbstractDiskWriter.{h, cc}
  7181. Removed duplicate code.
  7182. * src/StreamCheckIntegrityEntry.cc
  7183. Removed unnecessary include.
  7184. * src/DiskWriter.h
  7185. Included Exception.h
  7186. * src/option_processing.cc
  7187. Included 2 files and added doc
  7188. * src/TrackerWatcherCommand.cc
  7189. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7190. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Changed CheckIntegrityEntry interface so that it can define
  7192. the action when all the chunk checksums are valid.
  7193. * src/CheckIntegrityEntry.h
  7194. * src/StreamCheckIntegrityEntry.{h, cc}
  7195. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7196. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7197. to exit rather than doing seeding. So, it would be good to toggle this
  7198. behavior.
  7199. * src/CheckIntegrityCommand.cc
  7200. * src/AbstractCommand.cc
  7201. * src/RequestGroup.cc
  7202. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Reflect the download length of in-flight pieces.
  7204. It makes the download length readout more precise.
  7205. * src/DefaultPieceStorage.{h, cc}
  7206. * test/DefaultPieceStorageTest.cc
  7207. * src/a2functional.h
  7208. * test/a2functionalTest.cc
  7209. Lower CPU load when --max-download-limit is used.
  7210. There is up and down in speed indicator when enabling
  7211. http-pipelining but a download goes well. I think the problem is that
  7212. because http-pipelining is enabled, DownloadCommand is created for
  7213. each segment and in its constructor, PeerStat::downloadStart() is
  7214. called. In PeerStat::downloadStart(), speed calculation object is
  7215. reseted, which makes download speed zero.
  7216. * src/DownloadCommand.cc
  7217. Rewritten using accumulate.
  7218. * src/RequestGroupMan.cc (calculateStat)
  7219. Code clearnup.
  7220. * src/FtpNegotiationCommand.cc
  7221. * src/HttpResponseCommand.cc
  7222. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Fixed: Can not resume: aria2 reports download already finished.
  7224. * src/AbstractCommand.{h, cc}
  7225. * src/HttpResponseCommand.cc
  7226. * src/FtpNegotiateCommand.cc
  7227. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Now a file is stored in the directory specified in .metalnk file
  7229. (file[@name]).
  7230. * src/Metalink2RequestGroup.cc
  7231. Create the directory structure when opening the file if it doesn't
  7232. exist.
  7233. * src/AbstractDiskWriter.cc
  7234. * src/Util.{h, cc}
  7235. * src/File.h
  7236. * test/UtilTest.cc
  7237. Removed file name comparison
  7238. * src/Metalink2RequestGroup.cc
  7239. * src/HttpResponseCommand.cc
  7240. Rewritten using Util::mkdirs()
  7241. * src/FileEntry.cc (setupDir)
  7242. * test/FileEntryTest.cc
  7243. Updated doc
  7244. * src/SingleFileDownloadContext.h
  7245. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Now SleepCommand dispatches nextCommand when halt is requested.
  7247. It avoids a possible long wait after hitting CTRL-C.
  7248. * src/SleepCommand.{h, cc}
  7249. * src/RequestGroupAware.{h, cc}
  7250. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7252. to open listen port, then remove the port number from the tracker
  7253. request.
  7254. * src/DefaultBtAnnounce.cc
  7255. * test/DefaultBtAnnounceTest.cc
  7256. * test/MockPieceStorage.h
  7257. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7258. them more testable.
  7259. * src/DefaultBtAnnounce.{h, cc}
  7260. * src/DefaultBtContext.{h, cc}
  7261. * src/Util.{h, cc}
  7262. * test/DefaultBtAnnounceTest.cc
  7263. * test/DefaultBtContextTest.cc
  7264. * test/UtilTest.cc
  7265. Added 'B' to upload bytes readout.
  7266. * src/ConsoleStatCalc.cc
  7267. Now the listen port for BitTorrent download is opened when it is
  7268. needed.
  7269. * src/DownloadEngineFactory.cc
  7270. * src/BtSetup.{h, cc}
  7271. * src/PeerListenCommand.{h, cc}
  7272. Now an exception thrown while parsing tracker response is now logged.
  7273. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7274. called, which means no retry is made in this case, assuming a tracker
  7275. has a problem.
  7276. * src/TrackerWatcherCommand.cc
  7277. Fixed: downloading a file whose length is unkown fails.
  7278. * src/DownloadCommand.cc
  7279. Simplified prepareForNextSegment()
  7280. * src/DownloadCommand.cc
  7281. Updated
  7282. * po/POTFILES.in
  7283. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7284. Re-implemented a file listing for Metalink, which was dropped while
  7285. http/ftp/torrent integration was being implemented.
  7286. * src/MetalinkHelper.{h, cc}: New class.
  7287. * test/MetalinkHelperTest.cc
  7288. * src/main.cc
  7289. * src/Metalink2RequestGroup.cc
  7290. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Added the ability to display the detailed torrent file information.
  7292. Now -S option gives not only a file listing, but also total download
  7293. length, info hash, announce URI, piece length, the number of pieces,
  7294. and mode(single or multi-torrent).
  7295. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7296. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7297. KiB)
  7298. * test/UtilTest.cc
  7299. * src/main.cc
  7300. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Added ftp://USER:PASSWD@Servername automatic parsing.
  7302. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7303. _password. Recognize username and password in URI.
  7304. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7305. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7306. * src/RequestFactory.{h, cc}: Removed.
  7307. * src/AuthConfigFactory.{h, cc}: New class.
  7308. * src/FtpConnection.cc: Use AuthConfigFactory.
  7309. * src/HttpRequest.cc: Use AuthConfigFactory.
  7310. * test/HttpRequestTest.cc: Updated.
  7311. * test/RequestTest.cc: Updated.
  7312. * test/AuthConfigFactoryTest.cc: New class.
  7313. * test/RequestFactoryTest.cc: Removed.
  7314. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Use RequestGroup::allDownloadFinished() to decide whether the control
  7316. file should be removed or saved.
  7317. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7318. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7319. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Use File::renameTo()
  7321. * src/DefaultBtProgressInfoFile.cc
  7322. Added --no-file-allocation-limit command-line option.
  7323. * src/version_usage.cc
  7324. * src/option_processing.cc
  7325. * src/OptionHandlerFactory.cc
  7326. * src/RequestGroup.{h, cc}
  7327. * src/BtCheckIntegrityEntry.cc
  7328. * src/StreamCheckIntegrityEntry.cc
  7329. * src/prefs.h
  7330. * doc/aria2c.1.txt
  7331. * doc/aria2c.1
  7332. Now prealloc is the default value for --file-allocation option.
  7333. * src/version_usage.cc
  7334. * src/option_processing.cc
  7335. * doc/aria2c.1.txt
  7336. * doc/aria2c.1
  7337. Don't URL-encode user-agent.
  7338. * src/HttpRequest.cc
  7339. Updated translations
  7340. * po/LINGUAS: Added nl for Dutch translation.
  7341. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7342. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7343. * po/POTFILES.in: Updated.
  7344. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Added the ability to recognize url-list in a torrent file.
  7346. The retrieved URLs are attached to the corresponding FileEntry.
  7347. * src/DefaultBtContext.{h, cc}
  7348. * src/FileEntry.{h, cc}
  7349. * test/DefaultBtContextTest.cc
  7350. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7352. after the download finishes.
  7353. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7355. the data smaller than block length.
  7356. A block length can be specified by constructor's argument.
  7357. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7358. Get a missing piece in the range of given FileEntry. This function is
  7359. not used in the program yet.
  7360. * src/Util.h: Added some macros.
  7361. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Added HTTP/1.1 keep alive and pipelining support.
  7363. See --enable-http-keep-alive and --enable-http-pipelining option.
  7364. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7365. Segment.
  7366. * src/HttpDownloadCommand.{h, cc}
  7367. * src/OptionHandlerFactory.cc
  7368. * src/HttpConnection.{h, cc}
  7369. * src/version_usage.cc
  7370. * src/HttpInitiateConnectionCommand.cc
  7371. * src/FtpInitiateConnectionCommand.cc
  7372. * src/Segment.h
  7373. * src/HttpRequestCommand.{h, cc}
  7374. * src/option_processing.cc
  7375. * src/prefs.h
  7376. * src/HttpResponseCommand.cc
  7377. * src/SegmentMan.{h, cc}
  7378. * src/FtpNegotiateCommand.cc
  7379. * src/HttpProxyResponseCommand.cc
  7380. * src/Request.cc
  7381. * src/HttpRequest.cc
  7382. * src/DownloadCommand.cc
  7383. * test/HttpRequestTest.cc
  7384. * test/RequestTest.cc
  7385. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7387. finished.
  7388. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7390. catching it inside the method.
  7391. When no file entry is found in a metalink without querying user
  7392. preferences, throw the exception with the error message that suggests
  7393. metalink file is probably broken.
  7394. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7395. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7397. processed.
  7398. * src/RequestGroupMan.cc (removeStoppedGroup)
  7399. Added debug message.
  7400. * src/BtPostDownloadHandler.cc
  7401. * src/MetalinkPostDownloadHandler.cc
  7402. * src/PostDownloadHandler.{h, cc}
  7403. * src/RequestGroup.cc
  7404. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7406. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7408. stops and there are any unfinished or in-progress downloads.
  7409. Added the legend of "stat".
  7410. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Throw exception when chunck checksum verification fails.
  7412. * src/DownloadCommand.cc (validatePieceHash): New function.
  7413. * src/PiecedSegment.{h, cc} (clear): New function.
  7414. * src/GrowSegment.{h, cc} (clear): New function.
  7415. * src/Segment.h (clear): New function.
  7416. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7417. * test/SegmentTest.cc
  7418. * test/GrowSegmentTest.cc
  7419. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Do not send referer when redirected.
  7421. * src/Request.cc (redirectUrl)
  7422. * test/RequestTest.cc
  7423. * test/HttpRequestTest.cc
  7424. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Implemented BitTorrent/http/ftp integrated download.
  7426. I've rewritten lots of files and now some headers have forward
  7427. class declarations to reduce compile time.
  7428. The implementation is extremely alpha stage, I recommend to use this
  7429. for testing purpose only.
  7430. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Fixed the compilation error on 64bit platform.
  7432. * test/HttpHeaderProcessorTest.cc
  7433. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Merged Ross's patch that fixes compilation problem in MinGW
  7435. * test/DefaultBtProgressInfoFileTest.cc
  7436. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Updated fr.po by sebone
  7438. * po/fr.po
  7439. Updated man page.
  7440. * doc/aria2c.1.txt
  7441. * Release 0.11.3
  7442. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7444. failure in Metalink.
  7445. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Automatically save *.aria2 control file of http/ftp download in every
  7447. 60 seconds.
  7448. * src/AutoSaveCommand.{h, cc}: New class.
  7449. * src/TimeBasedCommand.{h, cc}: New class.
  7450. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7451. Disable parameterized URI support by default. Added -P option to
  7452. enable the feature.
  7453. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7454. * src/OptionHandlerFactory.cc
  7455. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7456. Updated Japanese translation.
  7457. * po/ja.po
  7458. Updated man page.
  7459. * doc/aria2c.1.txt
  7460. * Release 0.11.3-rc
  7461. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7463. it is successful, then renamed to *.aria2.
  7464. This prevents *.aria2 file from being truncated or corrupted when
  7465. file system becomes out of space.
  7466. * src/DefaultBtProgressInfoFile.cc (save)
  7467. * src/SegmentMan.cc (save)
  7468. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7469. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7470. Reduced the fragmentation of bitfield in http/ftp download.
  7471. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7472. * test/BitfieldManTest.cc
  7473. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Added the ability to disable segmented download in .metalink.
  7475. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7476. 'url' tag.
  7477. * src/MetalinkEntry.{h, cc}
  7478. * src/RequestResource.{h, cc}
  7479. * src/MetalinkRequestInfo.cc
  7480. * src/Xml2MetalinkProcessor.cc
  7481. * test/Xml2MetalinkProcessorTest.cc
  7482. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Added parameterized URI support.
  7484. * src/main.cc: -Z option added.
  7485. * src/OptionHandlerFactory.cc
  7486. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7487. * src/PStringDatum.h: New class.
  7488. * src/PStringSegment.{h,cc}: New class.
  7489. * src/PStringNumLoop.h: New class.
  7490. * src/PStringSelect.h: New class.
  7491. * src/NumberDecorator.h: New class.
  7492. * src/FixedWidthNumberDecorator.h: New class.
  7493. * src/AlphaNumberDecorator.h: New class.
  7494. * src/PStringVisitor.h: New class.
  7495. * src/PStringBuildVisitor.{h,cc}: New class.
  7496. * src/ParameterizedStringParser.{h,cc}: New class.
  7497. * src/Util.{h,cc}
  7498. (isNumber): New function.
  7499. (isLowercase): New function.
  7500. (isUppercase): New function.
  7501. (alphaToNum): New function.
  7502. * test/ParameterizedStringParserTest.cc: New class.
  7503. * test/AlphaNumberDecoratorTest.cc: New class.
  7504. * test/PStringBuildVisitorTest.cc: New class.
  7505. * test/UtilTest.cc
  7506. (testIsNumber): New function.
  7507. (testIsLowercase): New function.
  7508. (testIsUppercase): New function.
  7509. (testAlphaToNum): New function.
  7510. Added '\n' after the error message
  7511. * src/RequestInfo.h (printDownloadAbortMessage)
  7512. Added auto file renaming feature in http(s)/ftp download.
  7513. * src/main.cc: Added --auto-file-renaming command-line option.
  7514. * src/OptionHandlerFactory.cc
  7515. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7516. * src/RequestGroup.{h, cc}
  7517. (shouldCancelDownloadForSafety): Rewritten
  7518. (tryAutoFileRenaming): New function.
  7519. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7520. * src/HttpResponseCommand.cc
  7521. (executeInternal): Removed the call to RequestGroupMan::
  7522. isSameFileBeingDownloaded()
  7523. * src/FtpNegotiateCommand.cc
  7524. (recvSize): Removed the call to RequestGroupMan::
  7525. isSameFileBeingDownloaded()
  7526. * test/RequestGroupTest.cc: New class.
  7527. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7529. IO.
  7530. * src/DefaultBtProgressInfoFile.cc
  7531. * src/MetaFileUtil.cc
  7532. * src/SimpleLogger.cc
  7533. * src/SegmentMan.cc
  7534. * src/Util.cc
  7535. * src/Platform.cc
  7536. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7538. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7540. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7541. Fixed the bug that prevents file allocation is not done when
  7542. dowloading multi-torrent file.
  7543. * src/AbstractDiskWriter.cc (openFile)
  7544. Increase the maximum number of -j option from 15 to 45.
  7545. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7546. Added fr.po, thanks to Charles Landemaine.
  7547. * po/fr.po
  7548. * po/LINGUAS
  7549. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7550. gcc 3.4.4 support:
  7551. * src/DefaultBtContext.cc: int32_t -> int
  7552. * src/main.cc: int -> int32_t, int32_t -> int
  7553. * src/messageDigest.h: uint32_t -> unsigned int
  7554. * src/NameResolver.h: int32_t -> int
  7555. * src/PeerConnection.cc: int -> int32_t
  7556. * src/SpeedCalc.cc: int32_t -> int
  7557. * src/TrackerUpdateCommand.h: int -> int32_t
  7558. * src/Util.cc: int32_t -> int
  7559. * src/Util.h: int32_t -> int
  7560. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7561. * test/AnnounceListTest.cc: int -> int32_t
  7562. * test/ChunkedEncodingTest.cc: int -> int32_t
  7563. * test/DataTest.cc: int -> int32_t
  7564. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7565. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7566. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7567. * test/FeatureConfigTest.cc: int -> int32_t
  7568. * test/MetalinkEntryTest.cc: int -> int32_t
  7569. * test/MockBtRequestFactory.h: int -> int32_t
  7570. * test/MockPieceStorage.h: int -> int32_t
  7571. * test/OptionTest.cc: int -> int32_t
  7572. * test/RequestTest.cc: int -> int32_t
  7573. * test/SegmentManTest.cc: int -> int32_t
  7574. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7575. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7576. Move sleep functions to Util class:
  7577. * src/Util.cc
  7578. (sleep): New function.
  7579. (usleep): New function.
  7580. * src/DownloadCommand.cc: sleep -> Util::sleep
  7581. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7582. MinGW build enhancements. The following files are added:
  7583. * src/timegm.{c,h}
  7584. Changes to support the above new files:
  7585. * configure.ac
  7586. * src/Makefile.am
  7587. * src/a2time.h
  7588. * src/Util.cc:
  7589. * src/strptime.c: Added support for %Z option.
  7590. Fixed MinGW non-blocking bug.
  7591. * src/SocketCore.cc
  7592. * src/HttpRequestCommand.cc
  7593. Miscellenous build fixes/enhancements.
  7594. * configure.ac: Added summary report.
  7595. * src/Platform.h: Tweaked #include's.
  7596. * src/a2netcompat.h: Tweaked #include's.
  7597. * src/strptime.h: Tweaked #include's.
  7598. * src/gai_strerror.c: Tweaked #include's.
  7599. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7600. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7601. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7602. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Increased the initial connection size in BitTorrent download to 40.
  7604. * src/BtRuntime.h
  7605. Added the usage message of --peer-id-prefix option.
  7606. * src/main.cc
  7607. * Release 0.11.2
  7608. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. MessageDigestHelper is introduced in order to simplify the use
  7610. of message digest. Removed repeated code.
  7611. The message digest algorithm is now specified by string, like "sha1",
  7612. "md5".
  7613. * src/messageDigest.{h, cc}
  7614. * src/MessageDigestHelper.{h, cc}: New class.
  7615. * src/DefaultPieceStorage.cc
  7616. * src/DefaultBtContext.{h, cc}
  7617. (computeFastSet): New function.
  7618. (setInfoHash): Added for unit testing.
  7619. (setNumPieces): Added for unit testing.
  7620. * src/DefaultBtInteractive.cc
  7621. * src/BtPieceMessage.cc
  7622. * src/Peer.cc
  7623. * src/Checksum.h
  7624. * src/message.h
  7625. * src/IteratableChecksumValidator.h
  7626. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7627. inside it.
  7628. * src/SegmentMan.{h, cc}
  7629. (checkIntegrity): Removed.
  7630. * src/IteratableChunkChecksumValidator.{h, cc}
  7631. * src/Util.h
  7632. (sha1Sum): Removed.
  7633. (simpleMessageDigest): Removed.
  7634. (fileChecksum): Removed.
  7635. (computeFastSet): Removed.
  7636. * src/ShaVisitor.cc
  7637. * src/ChunkChecksum.h
  7638. * src/DownloadCommand.cc
  7639. Removed messageDigest virtual functions.
  7640. * src/MultiDiskAdaptor.{h, cc}
  7641. * src/DiskAdaptor.h
  7642. * src/ByteArrayDiskWriter.h
  7643. * src/DiskWriter.h
  7644. * src/DiskAdaptorWriter.h
  7645. * src/AbstractSingleDiskAdaptor.{h, cc}
  7646. * src/AbstractDiskWriter.{h, cc}
  7647. Fixed comilation error when message digest is disabled.
  7648. * src/MetalinkEntry.{h, cc}
  7649. * src/MetalinkRequestInfo.cc
  7650. Removed srandom and random.
  7651. * src/SimpleRandomizer.h
  7652. Added size() virtual function to DiskAdaptor
  7653. * src/MultiDiskAdaptor.h
  7654. Fixed the bug that causes that files are not opened correctly in
  7655. multi-file torrent.
  7656. * src/TorrentRequestInfo.cc
  7657. * src/MultiDiskAdaptor.cc
  7658. Added SHA256 support
  7659. * src/messageDigest.cc
  7660. * src/Xml2MetalinkProcessor.cc
  7661. Show supported message digest algorithms
  7662. * src/main.cc
  7663. Updated contact info.
  7664. * src/main.cc
  7665. Applied Ross's patch
  7666. * src/a2netcompat.h
  7667. * src/main.cc
  7668. Fixed the bug that prevents a remote metalink from not being processed
  7669. even if '-o foo.metalink' is specified.
  7670. * src/MetalinkRequestInfo.cc
  7671. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Merged Dan's patch:
  7673. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7674. Use va_copy to avoid core dump on amd64:
  7675. * src/SimpleLogger.cc
  7676. Updated contact info.
  7677. * src/main.cc
  7678. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7679. digest is not available.
  7680. * src/MetalinkEntry.h
  7681. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Make a2netcompat.h include a2io.h to fix compilation error:
  7683. * src/a2netcompat.h
  7684. * src/SocketCore.cc: Removed include of a2io.h
  7685. * src/Util.cc: Removed include of a2io.h
  7686. Gather time related functions to a2time.h:
  7687. * src/a2time.h: New file.
  7688. * src/DefaultPeerStorage.cc
  7689. * src/SimpleLogger.cc
  7690. * src/Util.{h, cc}
  7691. * src/SimpleRandomizer.h
  7692. * src/TimeA2.{h,cc}
  7693. * src/DownloadCommand.cc
  7694. * src/main.cc
  7695. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7696. a2netcompat.h:
  7697. * src/NameResolver.cc
  7698. Fixed compilation error without openssl:
  7699. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7700. Added default block to suppress compiler warnings:
  7701. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7702. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7703. MinGW build enhancements. The following files are added:
  7704. * src/gai_strerror.{c,h}
  7705. * src/gettimeofday.{c,h}
  7706. Changes to support the above new files:
  7707. * configure.ac
  7708. * src/Makefile.am
  7709. * src/a2netcompat.h
  7710. * src/TimeA2.cc
  7711. * src/DefaultPeerStorage.cc
  7712. * src/NameResolver.cc: removed mingw_strerror() function.
  7713. * src/SocketCore.cc: removed mingw_strerror() function.
  7714. Miscellaneous MinGW build fixes.
  7715. * src/a2io.h: Use _lseeki64() instead of lseek()
  7716. * src/common.h
  7717. * src/DefaultFileAllocator.cc
  7718. * src/GlowFileAllocator.cc
  7719. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7720. * src/NameResolver.cc
  7721. (callback): Changed int32_t to int.
  7722. (resolve): Changed int32_t to int.
  7723. * src/Platform.cc
  7724. * src/Platform.h
  7725. * test/MultiDiskWriterTest.cc
  7726. * test/PeerMessageUtilTest.cc
  7727. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7728. Other enhancements and fixes.
  7729. * src/HttpRequestCommand.cc
  7730. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7731. * src/SocketCore.cc:
  7732. (error): New function to abstract errno/WSAGetLastError().
  7733. (errorMsg): New function to abstract errno/WSAGetLastError().
  7734. (initiateSecureConnection): Added more detailed error reporting.
  7735. * src/SocketCore.h: Added private variable blocking, to allow
  7736. proper handling of OpenSSL psuedo-errors.
  7737. * src/message.h
  7738. (EX_SSL_INIT_FAILURE)
  7739. (EX_SSL_IO_ERROR)
  7740. (EX_SSL_PROTOCOL_ERROR)
  7741. (EX_SSL_UNKNOWN_ERROR)
  7742. (EX_SSL_CONNECT_ERROR)
  7743. (EX_SOCKET_BLOCKING)
  7744. (EX_SOCKET_NONBLOCKING)
  7745. (EX_SOCKET_UNKNOWN_ERROR)
  7746. * src/Util.cc
  7747. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7748. reserved name.
  7749. (httpGMT): Fixed typo.
  7750. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Merged Ross's win32 patch(manually)
  7752. In the course of merging, following files are added.
  7753. * src/strptime.{h,c}
  7754. * src/libgen.{h,c}
  7755. * src/inet_aton.{h,c}
  7756. * src/Platform.{h,cc}
  7757. * src/localtime_r.{h,c}
  7758. * src/getaddrinfo.{h,c}
  7759. I've gethered network related things, and put them to following file:
  7760. * src/a2netcompat.h
  7761. Also io related things are put to following file:
  7762. * src/a2io.h
  7763. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7764. * src/message.h
  7765. (MSG_ALLOCATION_COMPLETED)
  7766. (EX_TOO_LARGE_FILE)
  7767. (EX_SIZE_MISMATCH)
  7768. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7769. (EX_INVALID_CHUNK_CHECKSUM)
  7770. (EX_INVALID_RANGE_HEADER)
  7771. * src/FileAllocationCommand.cc
  7772. * src/HttpResponse.cc
  7773. * src/RequestGroup.cc
  7774. * src/MultiDiskAdaptor.cc
  7775. * src/OptionHandlerImpl.h
  7776. * src/HttpResponseCommand.cc
  7777. * src/FtpNegotiateCommand.cc
  7778. * src/IteratableChecksumValidator.cc
  7779. * src/SegmentMan.cc
  7780. * src/ChunkChecksumValidator.cc
  7781. Added Randomizer::getRandomNumber(long int)
  7782. * src/Randomizer.h (getRandomNumber)
  7783. * src/SimpleRandomizer.h (getRandomNumber)
  7784. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7785. * src/Util.cc (randomAlpha): Use this new function.
  7786. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Converted int's to in32_t. long long int's are also converted to
  7788. int64_t
  7789. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7790. Fixed the bug that prevents cookies from being sent to the server
  7791. if the domain of cookie is FQDN and starts with ".".
  7792. * src/Cookie.cc (match)
  7793. To add the ability to change peer id.
  7794. * src/DefaultBtContext.h
  7795. (_peerIdPrefix): New variable
  7796. (setPeerIdPrefix): New function.
  7797. * src/torrentRequestInfo.cc
  7798. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7799. DefaultBtContext.
  7800. * src/main.cc (main): Added peer-id-prefix command-line option.
  7801. The usage message is not added yet.
  7802. * src/DefaultBtContext.cc
  7803. (generatePeerId): Use _peerIdPrefix.
  7804. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7805. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Fixed the bug that prevents filename in content-disposition from
  7807. being retrieved when filename is not quoted.
  7808. * src/Util.cc (getContentDispositionFilename)
  7809. Fixed the bug that causes infinate loop and memory leak when file open
  7810. operation failed.
  7811. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7812. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Fixed the bug that causes segfault when all URIs specified are
  7814. unsupported.
  7815. * src/RequestGroupMan.cc (getInitialCommands)
  7816. Check if RequestGroup::createNextCommand() returns empty list of
  7817. commands.
  7818. * src/RequestGroup.cc (createNextCommand)
  7819. Change log level from info to error so that users can notice that
  7820. an error occurred.
  7821. Fixed the bug that causes segfault when a zero-sized file is
  7822. downloaded.
  7823. * src/BitfieldMan.cc (isAllBitSet)
  7824. Return true if bitfieldLength is 0.
  7825. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. * src/main.cc
  7827. (showUsage): Added 3 usage examples for metalink download.
  7828. Replace MetalinkChunkChecksum with ChunkChecksum.
  7829. * src/MetalinkChunkChecksum.h: Removed.
  7830. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7831. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7832. * src/Xml2MetalinkProcessor.cc
  7833. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7834. * src/MetalinkRequestInfo.cc (execute)
  7835. * Release 0.11.1
  7836. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Reads URIs from stdin when "-i -" is specified.
  7838. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7839. * src/UriListParser.h, src/UriListParser.cc: New class.
  7840. * src/StreamUriListParser.h: New class.
  7841. * src/FileUriListParser.h: New class.
  7842. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7843. instead of UriFileListParser.
  7844. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Made console readout more readable.
  7846. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7847. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Fix the bug that causes -s option not to work.
  7849. * src/main.cc (main)
  7850. * src/a2algo.h: New file.
  7851. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Create directory structure specified in metalink file.
  7853. * src/RequestGroup.h, src/RequestGroup.cc
  7854. (initAndOpenFile): Create a directory to store files if it does not
  7855. exist.
  7856. (getDir): New function.
  7857. Added ETA and download speed for an individual file to readout.
  7858. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7859. * src/RequestGroup.h
  7860. (calculateDownloadSpeed): New function.
  7861. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Made -S option work with metalink file and provided selective download
  7863. to metalink.
  7864. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7865. (filename): Removed.
  7866. (file): New variable.
  7867. (size): Removed.
  7868. (operator=): Updated.
  7869. (getPath): New function.
  7870. (getLength): New function.
  7871. (toFileEntry): New function.
  7872. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7873. (execute): Use toStream.
  7874. (showFileEntry): Removed.
  7875. * src/MetalinkRequestInfo.h
  7876. (targetFiles): New variable.
  7877. (setTargetFiles): New variable.
  7878. * src/MetalinkRequestInfo.cc
  7879. (execute): Added the ability to print file information included in
  7880. a metalink file.
  7881. Added selective download mode to metalink.
  7882. * src/main.cc
  7883. (showUsage): Updated to denote that -S and --select-file options are
  7884. applicable to metalink.
  7885. * src/FileEntry.h
  7886. (operator=): New function.
  7887. (getBasename): New function.
  7888. (getDirname): New function.
  7889. * src/Util.h, src/Util.cc
  7890. (toStream): New function.
  7891. * src/Xml2MetalinkProcessor.cc: Updated.
  7892. Made aria2 work with metalink with directory structure.
  7893. * src/File.h, src/File.cc
  7894. (getBasename): New function.
  7895. (getDirname): New function.
  7896. * src/RequestGroup.h, src/RequestGroup.cc
  7897. (_topDir): New variable.
  7898. (setTopDir): New function.
  7899. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7900. Rewrote HTTP header parsing with stringstream.
  7901. * src/HttpConnection.h, src/HttpConnection.cc
  7902. (HttpRequestEntry): New class.
  7903. (headerBuf): Removed.
  7904. (headerBufLength): Removed.
  7905. (outstandingHttpRequests): Now its element type is
  7906. HttpRequestEntryHandle.
  7907. (findEndOfHeader): Removed.
  7908. (receiveResponse): Rewritten.
  7909. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7910. Updated doc for -j option to notice that it should be used with -i
  7911. option.
  7912. * src/main.cc (showUsage)
  7913. Removed unused classes.
  7914. * src/RequestInfo.h
  7915. (FileInfo): Removed.
  7916. (checksum): Removed.
  7917. (fileInfo): Removed.
  7918. (setChecksum): Removed.
  7919. (getChecksum): Removed.
  7920. (getFileInfo): Removed.
  7921. Use ISO units.
  7922. * src/ConsoleDownloadEngine.cc
  7923. * src/TorrentConsoleDownloadEngine.cc
  7924. * src/Util.cc (abbrevSize)
  7925. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Added the default listening ports to the help message.
  7927. * src/main.cc (showUsage)
  7928. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Reduce the number of calls to gettimeofday to lower CPU load.
  7930. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7931. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7932. * src/Peer.h (calculateUploadSpeed): New function.
  7933. (calculateDownloadSpeed): New function.
  7934. * src/DefaultPeerStorage.cc
  7935. (CalculateStat): Added _now variable.
  7936. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7937. and Peer::calculateUploadSpeed(const struct timeval&)
  7938. Drop connection if no request or piece message is exchanged in
  7939. a certain interval.
  7940. * src/DefaultBtInteractive.h
  7941. (btRuntime): New variable.
  7942. (inactiveCheckPoint): New variable.
  7943. (checkActiveInteraction): New function.
  7944. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7945. request or piece message is received.
  7946. (checkActiveInteraction): New function.
  7947. (doInteractionProcessing): Call checkActiveInteraction.
  7948. Fixed the bug that causes remote Metalink and Torrent files are not
  7949. processed.
  7950. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7951. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Changed format of log file.
  7953. * src/SimpleLogger.cc
  7954. * Release 0.11.0
  7955. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. * src/AbstractCommand.cc
  7957. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7958. MSG_MAX_TRY from error to info.
  7959. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7960. * src/message.h
  7961. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7962. (MSG_DOWNLOAD_ABORTED): Added %s.
  7963. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7964. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7965. * src/PeerAbstractCommand.cc
  7966. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7967. * src/Request.h
  7968. (cookieBox): Made ShardHandle.
  7969. * src/RequestGroup.h, src/RequestGroup.cc
  7970. (createNextCommandWithAdj): New function.
  7971. * src/FileAllocationCommand.cc
  7972. (executeInternal): Use createNextCommandWithAdj().
  7973. * src/CheckIntegrityCommand.cc
  7974. (executeInternal): Use createNextCommandWithAdj().
  7975. Added --load-cookies command-option.
  7976. * src/OptionHandlerFactory.cc
  7977. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7978. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7979. Now aria2 can handle cookie's expiration date.
  7980. * src/Cookie.h (expires): Changed its type to time_t.
  7981. * src/main.cc: Added --load-cookies command-line option.
  7982. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7983. * src/Util.h, src/Util.cc (httpGMT): New function.
  7984. * src/Request.cc (Request): Initialize cookieBox using
  7985. CookieBoxFactory.
  7986. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7987. * src/CookieParser.h, src/CookieParser.cc: New class.
  7988. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7989. * src/HttpResponseCommand.cc
  7990. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7991. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7992. download.
  7993. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Added -j command-line option.
  7995. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7996. * src/main.cc
  7997. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7998. Rewritten using stringstream.
  7999. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8000. Rewritten using stringstream.
  8001. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Make download size shown in MB, KB.
  8003. * src/ConsoleDownloadEngine.h (sendStatistics)
  8004. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8005. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Accept incoming connections if download rate is low.
  8007. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8008. (_lowestSpeedLimit): New variable.
  8009. (setLowestSpeedLimit): New function.
  8010. (execute): Accept incoming connections if download rate is low.
  8011. MAX_PEERS is ignored in this case.
  8012. Disable PREF_OUT in multiple concurrent download:
  8013. * src/RequestGroup.h, src/RequestGroup.cc
  8014. (setUserDefinedFilename): New function.
  8015. * src/DownloadEngineFactory.cc
  8016. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8017. concurrent download.
  8018. * src/DefaultSegmentManFactory.cc
  8019. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8020. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8022. Added its overloaded method.
  8023. * src/RequestGroup.h
  8024. (_numConcurrentCommand): New variable.
  8025. (setNumConcurrentCommand): New function.
  8026. * src/RequestGroup.cc
  8027. Abort download if same file is being downloaded concurrently.
  8028. * src/RequestGroup.h, src/RequestGroupMan.cc
  8029. (isSameFileBeingDownloaded): New function.
  8030. * src/HttpResponseCommand.cc (executeInternal)
  8031. * src/FtpNegotiateCommand.cc (recvSize)
  8032. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8033. * main.cc: Added help message for -i option.
  8034. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8036. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8037. * src/MetalinkEntry.h
  8038. (checksum): Changed to ChecksumHandle
  8039. * src/MetalinkRequestInfo.cc
  8040. (checksum): Changed to ChecksumHandle
  8041. * src/File.cc
  8042. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8043. * src/common.h
  8044. (DIR_OPEN_MODE): New definition
  8045. * src/RequestGroup.cc
  8046. (prepareForNextAction): Added an argument.
  8047. * src/message.h
  8048. (MSG_GOOD_CHECKSUM): New definition
  8049. (MSG_BAD_CHECKSUM): New definition
  8050. * src/HttpResponseCommand.cc
  8051. (handleDefaultEncoding): Continue download sequence in new
  8052. non-segmented download.
  8053. * src/FileAllocationEntry.h
  8054. (_nextDownloadCommand): New variable.
  8055. * src/DownloadCommand.cc
  8056. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8057. available.
  8058. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8059. * src/IteratableChecksumValidator.h,
  8060. src/IteratableChecksumValidator.cc: New class.
  8061. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8062. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8063. Change file mode to 666:
  8064. * src/common.h (OPEN_MODE): New definition.
  8065. * src/File.cc
  8066. * src/Util.cc
  8067. * src/Directry.cc
  8068. * src/AbstractDiskWriter.cc
  8069. Change the level of log message "download aborted" to debug:
  8070. * src/PeerAbstractCommand.cc (execute)
  8071. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8072. * src/TrackerWatcherCommand.cc
  8073. (createCommand): Sleep some seconds after request failed.
  8074. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8075. then abort tracker request.
  8076. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. * Added the simultaneous download feature.
  8078. * src/main.cc: Print "Exception caught: " when exception is caught.
  8079. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8080. * src/ActivePeerConnectionCommand.cc
  8081. * src/PeerInteractionCommand.cc
  8082. * src/BtRuntime.h
  8083. (cuidCounter): Removed.
  8084. (getNewCuid): Removed.
  8085. * src/DownloadEngineFactory.cc
  8086. * src/PeerListenCommand.cc
  8087. * src/TrackerUpdateCommand.cc
  8088. * src/PeerInitiateConnectionCommand.cc
  8089. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. * src/PeerAbstractCommand.cc
  8091. (onAbort): Call PeerStorage::returnPeer()
  8092. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8093. (incomingPeers): New variable.
  8094. (addIncomingPeer): New function.
  8095. (returnPeer): New function.
  8096. (onErasingPeer): New function.
  8097. (addPeer): push_back -> push_front
  8098. (getActivePeers): Rewritten.
  8099. (calculateStat): Rewritten.
  8100. * src/PeerStorage.h
  8101. (TransferStat::copy): New function.
  8102. (TransferStat::TransferStat): New function.
  8103. (TransferStat::operator=): New function.
  8104. (addIncomingPeer): New function.
  8105. (returnPeer): New function.
  8106. * src/PeerListenCommand.cc
  8107. (execute): Use PeerStorage::addIncomingPeer() instead of
  8108. Peer::addPeer().
  8109. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Connect to a peer actively when download speed is lower than specified
  8111. speed in torrent download:
  8112. * src/ActivePeerConnectionCommand.h: New class.
  8113. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8115. * src/main.cc: Fixed the bug that prevents download if .netrc
  8116. doesn't exist.
  8117. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8118. To cache resolved hostname:
  8119. * src/AbstractCommand.h, src/AbstractCommand.cc
  8120. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8121. Added dns cache.
  8122. * src/FtpInitiateConnectionCommand.cc
  8123. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8124. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8125. NameResolver working without ares.
  8126. * src/TorrentRequestInfo.cc
  8127. (execute): Don't cache dns in torrent download.
  8128. * src/HttpInitiateConnectionCommand.cc
  8129. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8130. * src/DNSCache.h: New class.
  8131. * src/UrlRequestInfo.cc
  8132. (execute): Use dns cache.
  8133. In http request, suppress port number in http request header if port
  8134. is 80 or 443:
  8135. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8136. request header if port is 80 or 443.
  8137. (createProxyRequest): Allways send port number.
  8138. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. To add the command-line option which disables netrc support:
  8140. * src/OptionHandlerFactory.cc
  8141. (createOptionHandlers): Added PREF_NO_NETRC.
  8142. * src/main.cc: Added -n option.
  8143. * src/prefs.h (PREF_NO_NETRC): New definition.
  8144. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8145. V_TRUE.
  8146. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8147. is V_FALSE. This may get configurable in the future release.
  8148. To clear peer's error status by time basis:
  8149. * src/PeerAbstractCommand.cc
  8150. (onAbort): Call Peer::startBadCondition().
  8151. * src/Peer.h, src/Peer.cc
  8152. (error): Removed.
  8153. (_badConditionStartTime): New variable.
  8154. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8155. (startBadCondition): New function.
  8156. (isGood): New function.
  8157. * src/DefaultPeerStorage.cc
  8158. (addPeer): Use Peer::isGood().
  8159. (FindFinePeer): Use Peer::isGood().
  8160. Always include port number in http request header:
  8161. * src/HttpRequest.cc (getHostText): Always include port number in
  8162. http request header.
  8163. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. To the ability to read options from a config file:
  8165. * src/main.cc: Command-line parameter validation is delegated to
  8166. OptionHandler class.
  8167. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8168. * src/Option.h, src/Option.cc (clear): New function.
  8169. * src/OptionParser.h, src/OptionParser.cc: New class.
  8170. * src/OptionHandler.h: New class.
  8171. * src/NameMatchOptionHandler.h: New class.
  8172. * src/OptionHandlerImpl.h: New classes.
  8173. * src/prefs.h: '_' -> '-'
  8174. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8175. (FTP_PASV): New definition.
  8176. * src/Util.h, src/Util.cc (getRealSize): New function.
  8177. To disable netrc support if .netrc file does not have correct
  8178. permissions:
  8179. * src/File.h, src/File.cc (mode): New function.
  8180. To prevent confidential information to be logged:
  8181. * src/HttpConnection.h, src/HttpConnection.cc
  8182. (eraseConfidentialInfo): New function.
  8183. (sendRequest): Call eraseConfidentialInfo().
  8184. (sendProxyRequest): Call eraseConfidentialInfo().
  8185. * src/main.cc: Validate permissions of .netrc file.
  8186. To add --user-agent command-line option:
  8187. * src/main.cc: Added new command line option: --user-agent
  8188. * src/prefs.h (PREF_USER_AGENT): New definition.
  8189. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8190. parameter to HttpRequest object.
  8191. * src/AbstractProxyRequestCommand.cc
  8192. (executeInternal): Set user-agent option parameter to HttpRequest
  8193. object.
  8194. Marged the patches from Dan Fandrich.
  8195. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Use filename and size from Metalink file instead of sending HEAD
  8197. request:
  8198. * src/UrlRequestInfo.h
  8199. (_filename): New variable.
  8200. (_totalLength): New variable.
  8201. (setTotalLength): New variable.
  8202. (setFilename): New variable.
  8203. * src/MetalinkRequestInfo.cc
  8204. (execute): Set filename and size to UrlRequestInfo
  8205. * src/UrlRequestInfo.cc
  8206. (execute): Use filename and size from Metalink instead of seding
  8207. HEAD request to servers.
  8208. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. To add the ability to resume downloading a partially downloaded file
  8210. which is downloaded from the beginning:
  8211. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8212. takes this role.
  8213. * src/main.cc: Added -c option.
  8214. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8215. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8216. * src/prefs.h (PREF_CONTINUE): New definition.
  8217. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8218. * src/DefaultDiskWriter.cc
  8219. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8220. * src/AbstractDiskWriter.h
  8221. (glowFileAllocator): New variable.
  8222. * src/AbstractDiskWriter.cc
  8223. (openExistingFile): Now preallocate file space from the end of the
  8224. existing file if totalLength argument is specified and grater than 0.
  8225. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8226. to download exists in local, continue the download of the file.
  8227. --allow-overwrite=true is assumed in this context.
  8228. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8229. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8230. Throw exception if --check-integrity=true is specified but chunk
  8231. checksums are not provided:
  8232. * src/UrlRequestInfo.cc
  8233. Do not print URLs to stdout:
  8234. * src/UrlRequestInfo.cc
  8235. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. * src/Request.h: Use AuthResolver to get authentication information.
  8237. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8238. set to RequestFactory object.
  8239. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8240. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8241. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8242. create Request object.
  8243. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8244. To integrate Netrc into exsiting classes:
  8245. * src/Request.h
  8246. (_userDefinedAuthConfig): New variable.
  8247. (findNetrcAuthenticator): New function.
  8248. (segment): Removed.
  8249. (setUserDefinedAuthConfig): New function.
  8250. (resolveHttpAuthConfigItem): New function.
  8251. (resolveFtpAuthConfigItem): New function.
  8252. (resolveHttpProxyAuthConfigItem): New function.
  8253. * src/HttpRequest.h
  8254. (authConfig): Removed.
  8255. (proxyAuthConfig): Removed.
  8256. (setAuthConfig): Removed.
  8257. (setProxyAuthConfig): Removed.
  8258. * src/UrlRequest.h
  8259. (getHeadResult): Added a parameter: authConfigHandle
  8260. * src/common.h
  8261. (SingletonHolder.h): New include.
  8262. * src/main.cc
  8263. (Netrc.h): New include.
  8264. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8265. Added initial value of PREF_NETRC_PATH.
  8266. Added the initialization of netrc.
  8267. * src/AuthConfig.h: New class.
  8268. * src/prefs.h
  8269. (PREF_NETRC_PATH): New definition.
  8270. * src/HttpAuthConfig.h: Removed.
  8271. * src/Netrc.cc
  8272. (getRequiredNextToken): New function.
  8273. (skipMacdef): New function.
  8274. (parse): Rewritten.
  8275. * src/Netrc.h
  8276. (getRequiredNextToken): New function.
  8277. (skipMacdef): New function.
  8278. * src/Util.h, src/Util.cc
  8279. (getHomeDir): New function.
  8280. * src/TrackerWatcherComand.cc
  8281. (createRequestCommand): Use AuthConfig.
  8282. * src/FtpConnection.cc
  8283. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8284. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8285. * src/Request.cc
  8286. (findNetrcAuthenticator): New function.
  8287. (resolveHttpAuthConfigItem): New function.
  8288. (resolveFtpAuthConfigItem): New function.
  8289. (resolveHttpProxyAuthConfigItem): New function.
  8290. * src/UrlRequestInfo.cc: Use AuthConfig.
  8291. * src/HttpRequest.cc
  8292. (createRequest): Use authConfig.
  8293. (getProxyAuthString): Use authConfig.
  8294. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8295. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8296. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. To reduce overhead to find commands whose socket is either
  8298. readable or writable in the download engine loop:
  8299. * src/Command.h, src/Command.cc
  8300. (STATUS): New enum.
  8301. (status): New variable.
  8302. (statusMatch): New function.
  8303. (setStatusActive): New function.
  8304. (setStatusInactive): New function.
  8305. * src/DownloadEngine.h, src/DownloadEngine.cc
  8306. (executeCommand): New function.
  8307. (run): Simplified.
  8308. (waitData): Call Command::setStatusActive() when command's socket is
  8309. readable or writable.
  8310. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. To handle Segment as SegmentHandle:
  8312. * src/AbstractCommand.cc (execute): Rewritten.
  8313. * src/SegmentMan.h: Segment -> SegmentHandle
  8314. Introducded HttpResponse class, HttpRequest class to improve code
  8315. extensiveness and make it clear:
  8316. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8317. HttpResponse class.
  8318. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8319. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8320. * src/HttpConnection.cc: Contruction of http request were moved to
  8321. HttpRequest class.
  8322. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8323. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8324. * src/HttpAuthConfig.h: New class.
  8325. * src/Range.h: New class.
  8326. To make FtpTunnel{Request, Response}Command and
  8327. HttpProxy{Request, Response}Command derived from
  8328. AbstractProxy{Request, Response}Command:
  8329. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8330. Derived from AbstractProxyRequestCommand class.
  8331. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8332. Derived from AbstractProxyResponseCommand class.
  8333. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8334. Derived from AbstractProxyRequestCommand class.
  8335. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8336. Derived from AbstractProxyResponseCommand class.
  8337. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8338. : New class.
  8339. * src/AbstractProxyResponseCommand.h,
  8340. src/AbstractProxyResponseCommand.cc: New class.
  8341. To add netrc support:
  8342. * src/Netrc.h, src/Netrc.cc: New class.
  8343. * src/Util.h, src/Util.cc (split): New function.
  8344. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8345. "Content-Range" header instead of "Range" header.
  8346. * src/HttpHeader.h
  8347. (getStatus): Removed.
  8348. (setStatus): Removed.
  8349. * src/Segment.h
  8350. (getPositionToWrite): New function.
  8351. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. * src/HttpHeader.h
  8353. (Range.h): New include.
  8354. (status): New variable.
  8355. (HttpHeader): Initialized status with 0.
  8356. (getStatus): New function.
  8357. (setStatus): New function.
  8358. (getRange): New function.
  8359. (HttpHeaderHandle): New function.
  8360. * src/HttpHeader.cc
  8361. (getRange): New function.
  8362. * src/Request.h
  8363. (RequestWeakHandle): New definition.
  8364. * src/HttpConnection.h
  8365. (HttpConnectionHandle): New type definition.
  8366. * src/HttpConnection.cc
  8367. (receiveResponse): Set HTTP status to headers.
  8368. * src/main.cc
  8369. (showUsage): Fixed typo.
  8370. * src/Segment.h
  8371. (SegmentHandle): New type definition.
  8372. * src/BitfieldMan.h
  8373. (getMissingUnusedLength): New function.
  8374. * src/BitfieldMan.cc
  8375. (getMissingUnusedLength): New function.
  8376. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. To fix static initialization order problem:
  8378. * src/BitfieldManFactory.h
  8379. (defaultRandomizer): Removed.
  8380. (factory): New variable.
  8381. (getNewFactory): Removed.
  8382. (getFactoryInstance): New function.
  8383. (setDefaultRandomizer): Rewritten.
  8384. (getDefaultRandomizer): Rewritten.
  8385. * src/BitfieldManFactory.cc
  8386. (defaultRandomizer): Removed.
  8387. (factory): Initialized to 0.
  8388. (BitfieldManFactory): Initialized randomizer to 0.
  8389. * src/DefaultPieceStorage.cc
  8390. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8391. * src/Peer.cc
  8392. (Peer): getNewFactory() -> getFactoryInstance()
  8393. * src/SegmentMan.cc
  8394. (initBitfield): getNewFactory() -> getFactoryInstance()
  8395. * src/Piece.cc
  8396. (Piece): getNewFactory() -> getFactoryInstance()
  8397. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. To fix the bug that causes crash on Max OS X:
  8399. * src/SimpleRandomizer.h
  8400. (getInstance): Create new instance if the static variable is null.
  8401. * src/SimpleRandomizer.cc
  8402. (randomizer): Initialized to 0.
  8403. * src/BitfieldManFactory.h
  8404. (getNewFactory): Removed the call to setRandomizer().
  8405. To fix the miscalculation of the range of checksum:
  8406. * src/BitfieldMan.h
  8407. (isBitSetOffsetRange): New function.
  8408. * src/BitfieldMan.cc
  8409. (isBitSetOffsetRange): New function.
  8410. * src/SegmentMan.cc
  8411. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8412. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8413. * Release 0.10.1
  8414. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. To lower CPU usage in BitTorrent download when --max-upload-limit
  8416. command-line option specified:
  8417. * src/DefaultBtMessageDispatcher.cc
  8418. (sendMessages): Calculate uploading speed only when current message
  8419. is uploading data and is not sent yet.
  8420. * src/DefaultPeerStorage.h
  8421. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8422. * src/HttpResponseCommand.cc
  8423. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8424. This fixes compile error in Soralis 10.
  8425. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. To fix segfault in Metalink download:
  8427. * src/UrlRequestInfo.h
  8428. (filename): Removed.
  8429. (totalLength): Removed.
  8430. (setTotalLength): Removed.
  8431. (setFilename): Removed.
  8432. * src/MetalinkRequestInfo.cc
  8433. (execute): Do not set filename and totalLength to reqInfo.
  8434. Set chunk checksum to reqInfo if it is not null.
  8435. * src/HttpResponseCommand.cc
  8436. (executeInternal): Fixed filename in log.
  8437. (handleDefaultEncoding): Removed the call to initBitfield() and
  8438. markAllPiecesDone().
  8439. (handleOtherEncoding): Added HEAD method handling.
  8440. * src/FtpNegotiateCommand.cc
  8441. (executeInternal): Added SEQ_HEAD_OK handling.
  8442. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8443. return false.
  8444. * src/FtpNegotiateCommand.h
  8445. (SEQ_HEAD_OK): New definition.
  8446. * src/SegmentMan.cc
  8447. (initBitfield): Delete bitfield.
  8448. (isChunkChecksumValidationReady): Fixed the condition.
  8449. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8450. works fine.
  8451. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. * src/Xml2MetalinkProcessor.h
  8453. (xpathExists): New function.
  8454. * src/Xml2MetalinkProcessor.cc
  8455. (xpathExists): New function.
  8456. Not to send HEAD request if filename and size are available in Metalink
  8457. file:
  8458. * src/UrlRequestInfo.h
  8459. (filename): New variable.
  8460. (totalLength): New variable.
  8461. (setTotalLength): New function.
  8462. (setFilename): New function.
  8463. * src/MetalinkRequestInfo.cc
  8464. (execute): Set filename and size to UrlRequestInfo.
  8465. * src/MetalinkEntry.cc
  8466. (MetalinkEntry): Initialize size with 0.
  8467. * src/UrlRequestInfo.cc
  8468. (execute): Set filename and size to SegmentMan.
  8469. Not to download rest of the files after selected files are downloaded
  8470. in BitTorrent:
  8471. * src/PieceStorage.h
  8472. (allDownloadFinished): New function.
  8473. * src/DefaultBtAnnounce.cc
  8474. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8475. downloadFinished.
  8476. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8477. * src/DefaultPieceStorage.cc
  8478. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8479. Commented out the call to finishSelectiveDownloadingMode().
  8480. (downloadFinished): Call isFilteredAllBitSet() instead of
  8481. isAllBitSet().
  8482. (allDownloadFinished): New function.
  8483. * src/DefaultBtInteractive.cc
  8484. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8485. downloadFinished().
  8486. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8487. * src/TorrentDownloadEngine.cc
  8488. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8489. * src/BitfieldMan.h
  8490. (isFilteredAllBitSet): New function.
  8491. * src/ShareRatioSeedCriteria.h
  8492. (PieceStorage.h): New include.
  8493. (pieceStorage): New variable.
  8494. (evaluate):
  8495. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8496. * src/BitfieldMan.cc
  8497. (isFilteredAllBitSet): New function.
  8498. (isAllBitSet): Filter is not took into account.
  8499. Rename --force-truncate as --allow-overwrite:
  8500. * src/TorrentRequestInfo.cc
  8501. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8502. * src/main.cc
  8503. (showUsage): --force-truncate -> --allow-overwrite
  8504. * src/message.h
  8505. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8506. * src/prefs.h
  8507. (PREF_FORCE_TRUNCATE): Removed.
  8508. (PREF_ALLOW_OVERWRITE): New definition.
  8509. * src/SegmentMan.cc
  8510. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8511. * src/MetalinkRequestInfo.cc
  8512. (execute): Queueing message are now logged in info level.
  8513. * src/common.h
  8514. (LONG_LONG_MAX): Removed.
  8515. (LONG_LONG_MIN): Removed.
  8516. * src/HttpResponseCommand.cc
  8517. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8518. * src/FtpNegotiateCommand.cc
  8519. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8520. * src/main.cc
  8521. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8522. command-line option.
  8523. (main): Added --check-integriy and --realtime-chunk-checksum
  8524. command-line option.
  8525. --force-truncate -> --allow-overwrite
  8526. Set initial value of --check-integrity option to false.
  8527. Don't show usage when error occurs while persing command-line options.
  8528. Removed deprecated --upload-limit option.
  8529. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8531. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8532. * src/BtAllowedFastMessage.cc:
  8533. * src/BtBitfieldMessage.cc
  8534. * src/BtCancelMessage.cc
  8535. * src/BtChokeMessage.cc
  8536. * src/BtHaveAllMessage.cc
  8537. * src/BtHaveMessage.cc
  8538. * src/BtHaveNoneMessage.cc
  8539. * src/BtInterestedMessage.cc
  8540. * src/BtNotInterestedMessage.cc
  8541. * src/BtPieceMessage.cc
  8542. * src/BtPortMessage.cc
  8543. * src/BtRejectMessage.cc
  8544. * src/BtRequestMessage.cc
  8545. * src/BtSuggestPieceMessage.cc
  8546. * src/BtUnchokeMessage.cc
  8547. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8548. files are affected.
  8549. * src/ChunkChecksumValidator.cc
  8550. * src/SegmentMan.cc
  8551. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. To add chunk checksum validation:
  8553. * src/MetalinkEntry.h
  8554. (MetalinkChunkChecksum.h): New include.
  8555. (chunkChecksum): New variable.
  8556. * src/Request.h
  8557. (method): New variable.
  8558. (setMethod): New function.
  8559. (getMethod): New function.
  8560. (METHOD_GET): New static constant.
  8561. (METHOD_HEAD): New static constant.
  8562. * src/Xml2MetalinkProcessor.h
  8563. (getPieceHash): New function.
  8564. * src/PieceStorage.h
  8565. (markAllPiecesDone): New function.
  8566. (checkIntegrity): New function.
  8567. * src/FileAllocator.h
  8568. (NullFileAllocationMonitor.h): New include.
  8569. (FileAllocator): Initialize fileAllocationMonitor with new
  8570. NullFileAllocationMonitor().
  8571. * src/MultiDiskAdaptor.h
  8572. (messageDigest.h): Remove include.
  8573. (ctx): Removed.
  8574. (hashUpdate): Added ctx.
  8575. (MultiDiskAdaptor): Removed ctx.
  8576. (sha1Sum): Renamed as messageDigest.
  8577. (messageDigest): New function.
  8578. * src/UrlRequestInfo.h
  8579. (HeadResult): New class.
  8580. (digestAlgo): New variable.
  8581. (chunkChecksumLength): New variable.
  8582. (chunkChecksums): New variable.
  8583. (getHeadResult): New function.
  8584. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8585. (setDigestAlgo): New function.
  8586. (setChunkChecksumLength): New function.
  8587. (setChunkChecksums): New function.
  8588. * src/DefaultPieceStorage.cc
  8589. (DiskAdaptorWriter.h): New include.
  8590. (ChunkChecksumValidator.h): New include.
  8591. (markAllPiecesDone): New function.
  8592. (checkIntegrity): New function.
  8593. * src/DefaultBtContext.h
  8594. (getPieceHashes): New function.
  8595. * src/TorrentRequestInfo.cc
  8596. (execute): Try to validate chunk checksum if file already exists and
  8597. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8598. * src/messageDigest.h
  8599. (~MessageDigestContext): Added digestFree().
  8600. * src/MetalinkRequestInfo.cc
  8601. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8602. * src/DiskAdaptor.h
  8603. (messageDigest.h): New include.
  8604. (sha1Sum): Renamed as messageDigest.
  8605. (messageDigest): New function.
  8606. * src/DownloadCommand.h
  8607. (PeerStat.h): New include.
  8608. (maxDownloadSpeedLimit): New variable.
  8609. (startupIdleTime): New variable.
  8610. (lowestDownloadSpeedLimit): New variable.
  8611. (peerStat): New variable.
  8612. (setMaxDownloadSpeedLimit): New function.
  8613. (setStartupIdleTime): New function.
  8614. (setLowestDownloadSPeedLimit): New function.
  8615. * src/BtContext.h
  8616. (getPieceHashes): New function.
  8617. * src/main.cc
  8618. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8619. option to true for testing purpose.
  8620. * src/BtPieceMessage.cc
  8621. (checkPieceHash): Use messageDigest
  8622. * src/DownloadEngine.cc
  8623. (SetDescriptor): Removed.
  8624. (AccumulateActiveCommand): Removed.
  8625. (waitData): Rewritten.
  8626. (updateFdSet): Rewritten.
  8627. * src/MultiDiskAdaptor.cc
  8628. (hashUpdate): Added ctx.
  8629. (sha1Sum): Renamed as messageDigest.
  8630. (messageDigest): New function.
  8631. * src/BitfieldMan.h
  8632. (isBitRangeSet): New function.
  8633. (unsetBitRange): New function.
  8634. * src/ByteArrayDiskWriter.h
  8635. (sha1Sum): Renamed as messageDigest.
  8636. (messageDigest): New function.
  8637. * src/ConsoleDownloadEngine.cc
  8638. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8639. * src/DiskWriter.h
  8640. (messageDigest.h): New include.
  8641. (sha1Sum): Renamed as messageDigest.
  8642. (messageDigest): New function.
  8643. * src/ChunkChecksumValidator.h: New class.
  8644. * src/DiskAdaptorWriter.h: New class.
  8645. * src/prefs.h
  8646. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8647. (PREF_CHECK_INTEGRITY): New definition.
  8648. * src/HttpResponseCommand.cc
  8649. (handleDefaultEncoding): Added method "HEAD" handling.
  8650. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8651. (handleOtherEncoding):
  8652. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8653. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8654. startupIdleTime, lowestDownloadSpeedLimit to command.
  8655. * src/SegmentMan.h
  8656. (getSegmentEntryByIndex): New function.
  8657. (getSegmentEntryByCuid): New function.
  8658. (getSegmentEntryIteratorByCuid): New function.
  8659. (diskWriter): DiskWriter -> DiskWriterHandle
  8660. (pieceHashes): New variable.
  8661. (chunkHashLength): New variable.
  8662. (digestAlgo): New variable.
  8663. (FindPeerStat): Removed.
  8664. (getPeerStat): Rewritten.
  8665. (markAllPiecesDone): New function.
  8666. (checkIntegrity): New function.
  8667. (tryChunkChecksumValidation): New function.
  8668. (isChunkChecksumValidationReady): New function.
  8669. * src/BitfieldMan.cc
  8670. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8671. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8672. blocks to 0.
  8673. (isBitRangeSet): New function.
  8674. (unsetBitRange): New function.
  8675. * src/FtpNegotiateCommand.cc
  8676. (executeInternal): Set maxDownloadSpeedLimit,
  8677. startupIdleTime, lowestDownloadSpeedLimit to command.
  8678. (recvSize): Added method "HEAD" handling.
  8679. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8680. * src/AbstractSingleDiskAdaptor.cc
  8681. (sha1Sum): Renamed as messageDigest.
  8682. (messageDigest): New function.
  8683. * src/AbstractSingleDiskAdaptor.h
  8684. (sha1Sum): Renamed as messageDigest.
  8685. (messageDigest): New function.
  8686. * src/Util.h
  8687. (indexRange): New function.
  8688. * src/MetalinkEntry.cc
  8689. (MetalinkEntry): Initialized chunkChecksum to 0.
  8690. * src/ShaVisitor.cc
  8691. (~ShaVisitor): Removed the call to ctx.digestFree().
  8692. * src/SegmentMan.cc
  8693. (ChunkChecksumValidator.h): New include.
  8694. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8695. to DIGEST_ALGO_SHA1.
  8696. (~SegmentMan): Removed diskWriter.
  8697. (FindSegmentEntryByIndex): Removed.
  8698. (FindSegmentEntryByCuid): Removed.
  8699. (checkoutSegment): Rewritten.
  8700. (findSlowerSegmentEntry): Rewritten.
  8701. (getSegment): Rewritten.
  8702. (updateSegment): Rewritten.
  8703. (completeSegment): Rewritten.
  8704. (markAllPiecesDone): New function.
  8705. (checkIntegrity): New function.
  8706. (isChunkChecksumValidationReady): New function.
  8707. (tryChunkChecksumValidation): New function.
  8708. * src/Xml2MetalinkProcessor.cc
  8709. (getEntry): Get size and set it to entry.
  8710. Get chunk checksum and set it to entry.
  8711. (getPieceHash): New function.
  8712. * src/Util.cc
  8713. (sha1Sum): Removed ctx.digestFree()
  8714. (fileChecksum): Removed ctx.digestFree()
  8715. (indexRange): New function.
  8716. * src/Request.cc
  8717. (METHOD_GET): New variable.
  8718. (METHOD_HEAD): New variable.
  8719. (Request): Added method.
  8720. * src/UrlRequestInfo.cc
  8721. (FatalException.h): New include.
  8722. (message.h): New include.
  8723. (operator<<): Added operator<< for class HeadResult.
  8724. (getHeadResult): New function.
  8725. (execute): Get filename and size in separate download engine.
  8726. * src/ChunkChecksumValidator.cc: New class.
  8727. * src/DownloadCommand.cc:
  8728. (DownloadCommand): Added peerStat.
  8729. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8730. the value from Option.
  8731. The buffer size is now 16KB.
  8732. Use peerStat member instead of getting it from SegmentMan.
  8733. Use startupIdleTime member instead of gettingit from Option.
  8734. Added chunk checksum validation.
  8735. * src/AbstractDiskWriter.cc
  8736. (AbstractDiskWriter): Removed ctx.
  8737. (~AbstractDiskWriter): Removed ctx.digestFree()
  8738. (writeDataInternal): Returns the return value of write.
  8739. (readDataInternal): Returns the return value of read.
  8740. (sha1Sum): Renamed as messageDigest
  8741. (messageDigest): New function.
  8742. * src/AbstractDiwkWriter.h
  8743. (messageDigest.h): Removed include.
  8744. (ctx): Removed.
  8745. (sha1Sum): Renamed as messageDigest
  8746. (messageDigest): New function.
  8747. * src/DefaultPieceStorage.h
  8748. (markAllPiecesDone): New function.
  8749. (checkIntegrity): New function.
  8750. * src/NullFileAllocationMonitor.h: New class.
  8751. * src/MetalinkChunkChecksum.h: New class.
  8752. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. To decrease CPU usage in bittorrent download, calculation results in
  8754. BitfieldMan were cached and realtime fetching PeerObject was removed
  8755. with WeakHandle introduced. Option values are set to the objects
  8756. by setter before download begins.
  8757. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8758. * src/DefaultBtRequestFactory.h
  8759. (dispatcher): BtMessageDispatcherHandle ->
  8760. BtMessageDispatcherWeakHandle.
  8761. (messageFactory): New variable.
  8762. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8763. BtMessageDispatcherWeakHandle.
  8764. (setBtMessageFactory): New function.
  8765. * src/DefaultBtMessageDispatcher.cc:
  8766. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8767. from Option.
  8768. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8769. feating the value from Option.
  8770. Use messageFactory member.
  8771. * src/PeerInteractionCommand.cc
  8772. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8773. Add reverse dependencies to factory object.
  8774. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8775. dispatcher.
  8776. Set messageFactory to receiver.
  8777. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8778. btInteractive.
  8779. Set receiver to peerObject.
  8780. Set maxDownloadSpeedLimit to this.
  8781. (executeInternal): Use maxDownloadSpeedLimit member.
  8782. * src/BtChokeMessage.cc
  8783. (doReceivedAction): Use dispatcher, requestFactory member.
  8784. (onSendComplete): Use dispatcher member.
  8785. * src/PeerInteractionCommand.h
  8786. (maxDownloadSpeedLimit): New variable.
  8787. * src/DefaultBtMessageReceiver.h
  8788. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8789. (dispatcher):
  8790. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8791. (messageFactory): New variable.
  8792. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8793. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8794. (setDispatcher):
  8795. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8796. (setBtMessageFactory): New function.
  8797. * src/DefaultBtInteractive.cc
  8798. (initiateHandshake): Use messageFactory member.
  8799. (addBitfieldMessageToQueue): Use messageFactory member.
  8800. (addAllowedFastMessageToQueue): Use messageFactory member.
  8801. (decideChoking): Use messageFactory member.
  8802. (checkHave): Use messageFactory member.
  8803. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8804. (receiveMessages): Use maxDownloadSpeedLimit member.
  8805. (decideInterest): Use messageFactory member.
  8806. * src/BtRequestMessage.cc
  8807. (doReceivedAction): Use messageFactory, dispatcher member.
  8808. (onQueued): Use dispatcher member.
  8809. * src/BtPieceMessage.cc
  8810. (doReceivedAction): Use dispatcher member.
  8811. (send): Use peerConnection member.
  8812. (onWrongPiece): Use requestFactory member.
  8813. (handleChokingEvent): Use messageFactory, dispatcher member.
  8814. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8815. * src/BtMessageDispatcher.h
  8816. (BtMessageDispatcherWeakHandle): New type definition.
  8817. * src/SimpleBtMessage.cc
  8818. (send): Use peerConnection member.
  8819. * src/BtRejectMessage.cc
  8820. (doReceivedAction): Use dispatcher member.
  8821. * src/DefaultBtMessageDispatcher.h
  8822. (Option.h): Removed include.
  8823. (messageFactory): New variable.
  8824. (option): Removed.
  8825. (maxUploadSpeedLimit): New variable.
  8826. (requestTimeout): New variable.
  8827. (DefaultBtMessageDispatcher): Removed option.
  8828. Added maxUploadSpeedLimit, requestTimeout.
  8829. (setOption): Removed.
  8830. (getOption): Removed.
  8831. (setMaxUploadSpeedLimit): New function.
  8832. (setRequestTimeout): New function.
  8833. (setBtMessageFactory): New function.
  8834. * src/DefaultBtInteractive.h
  8835. (btMessageReceiver):
  8836. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8837. (dispatcher):
  8838. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8839. (btRequestFactory):
  8840. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8841. (peerConnection):
  8842. PeerConnectionHandle -> PeerConnectionWeakHandle
  8843. (messageFactory): New variable.
  8844. (option): Removed.
  8845. (keepAliveInterval): New variable.
  8846. (maxDownloadSpeedLimit): New variable.
  8847. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8848. (setBtMessageReceiver):
  8849. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8850. (setDispatcher):
  8851. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8852. (setBtRequestFactory):
  8853. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8854. (setPeerConnection):
  8855. PeerConnectionHandle -> PeerConnectionWeakHandle
  8856. (setOption): Removed.
  8857. (setKeepAliveInterval): New function.
  8858. (setMaxDownloadSpeedLimit): New function.
  8859. (setBtMessageFactory): New function.
  8860. * src/BitfieldMan.h
  8861. (cachedNumMissingBlock): New variable.
  8862. (cachedNumFilteredBlock): New variable.
  8863. (cachedCompletedLength): New variable.
  8864. (cachedFilteredComletedLength): New variable.
  8865. (cachedFilteredTotalLength): New variable.
  8866. (countMissingBlockNow): New function.
  8867. (countFilteredBlockNow): New function.
  8868. (getFilteredTotalLengthNow): New function.
  8869. (getCompletedLengthNow): New function.
  8870. (getFilteredCompletedLengthNow): New function.
  8871. (updateCache): New function.
  8872. * src/AbstractBtMessage.h
  8873. (BtMessageDispatcher.h): New include.
  8874. (PeerConnection.h): New include.
  8875. (BtRequestFactory.h): New include
  8876. (BtMessageFactory.h): New include.
  8877. (dispatcher): New variable.
  8878. (messageFactory): New variable.
  8879. (peerConnection: New variable.
  8880. (setBtMessageDispatcher): New function.
  8881. (setPeerConnection): New function.
  8882. (setBtMessageFactory): New function.
  8883. (setBtRequestFactory): New function.
  8884. * src/DefaultBtMessageFactory.cc
  8885. (setCommonProperty): Set dispatcher, requestFactory, this,
  8886. peerConnection to msg.
  8887. * src/BtRegistry.h
  8888. (BT_MESSAGE_RECEIVER): New macro.
  8889. * src/PeerConnection.h
  8890. (PeerConnectionWeakHandle): New type definition.
  8891. * src/BtMessageFactory.h
  8892. (BtMessageFactoryWeakHandle): New type definition.
  8893. * src/BitfieldMan.cc
  8894. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8895. cachedCompletedLength, cachedFilteredComletedLength,
  8896. cachedFilteredTotalLength.
  8897. Call updateCache().
  8898. (countMissingBlock): Return cachedNumMissingBlock.
  8899. (countMissingBlockNow): New function.
  8900. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8901. (countFilteredBlockNow): New function.
  8902. (setBit): Call updateCache().
  8903. (unsetBit): Call updateCache().
  8904. (setBitfield): Call updateCache().
  8905. (clearAllBit): Call updateCache().
  8906. (setAllBit): Use setBitInternal instead of setBit.
  8907. Call updateCache().
  8908. (addFilter): Call updateCache().
  8909. (enableFilter): Call updateCache().
  8910. (disableFilter): Call updateCache().
  8911. (clearFilter): Call updateCache().
  8912. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8913. (getFilteredTotalLengthNow): New function.
  8914. (getCompletedLength): Return cachedCompletedLength.
  8915. (getCompletedLengthNow): New function.
  8916. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8917. (getFilteredCompletedLengthNow): New function.
  8918. (updateCache): New function.
  8919. * src/BtMessageReceiver.h
  8920. (BtMessageReceiverWeakHandle): New type definition.
  8921. * src/DefaultBtMessageReceiver.cc
  8922. (receiveHandshake): Use messageFactory member.
  8923. (sendHandshake): Use messageFactory member.
  8924. (receiveMessage): Use messageFactory member.
  8925. * src/DefaultBtMessageFactory.h
  8926. (dispatcher): New variable.
  8927. (requestFactory): New variable.
  8928. (peerConnection): New variablle.
  8929. (setBtMessageDispatcher): New function.
  8930. (setBtRequestFactory): New function.
  8931. (setPeerConnection): New function.
  8932. * src/SharedHandle.h
  8933. (RefCount): New class.
  8934. (WeakHandle): New class.
  8935. * src/PeerObject.h
  8936. (BtMessageReceiver.h): New include.
  8937. (PeerObject): Added btMessageReceiver.
  8938. (btMessageReceiver): New variable.
  8939. * src/Util.cc
  8940. (countBit): Simplified.
  8941. * src/BtCancelMessage.cc
  8942. (doReceivedAction): Use dispatcher member.
  8943. * src/BtRequestFactory.h
  8944. (BtRequestFactoryWeakHandle): New type definition.
  8945. * src/PeerStorage.h
  8946. (downloadSpeed): int -> uint32_t
  8947. (uploadSpeed): int -> uint32_t
  8948. (sessionDownloadLength): long long int -> uint64_t
  8949. (sessionUploadLength): long long int -> uint64_t
  8950. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. To add RecoverableException, FatalException:
  8952. * src/AbstractCommand.cc
  8953. (onAbort): Exception -> RecoverableException
  8954. * src/PeerAbstractCommand.h
  8955. (RecoverableException.h): New include.
  8956. (onAbort): Exception -> RecoverableException.
  8957. * src/PeerInteractionCommand.cc
  8958. (onAbort): Exception -> RecoverableException.
  8959. * src/PeerAbstractCommand.cc
  8960. (execute): Exception -> RecoverableException.
  8961. (onAbort): Exception -> RecoverableException.
  8962. * src/TorrentRequestInfo.cc
  8963. (execute): Exception -> RecoverableException.
  8964. * src/MetalinkRequestInfo.cc
  8965. (execute): Exception -> RecoverableException.
  8966. * src/MetaFileUtil.cc: RecoverableException.
  8967. * src/AbstractCommand.h
  8968. (onAbort): Exception -> RecoverableException.
  8969. * src/DlRetryEx.h: Exception -> RecoverableException.
  8970. * src/DlAbortEx.h: Exception -> RecoverableException.
  8971. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8972. * src/Util.cc: Exception -> RecoverableException.
  8973. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8974. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8975. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8976. To make ID static const int
  8977. * src/BtInterestedMessage.h
  8978. (ID_t): Removed.
  8979. (ID): New variable.
  8980. (getId): Made non-const.
  8981. * src/BtPieceMessage.h
  8982. (ID_t): Removed.
  8983. (ID): New variable.
  8984. (getId): Made non-const.
  8985. * src/BtChokeMessage.h
  8986. (ID_t): Removed.
  8987. (ID): New variable.
  8988. (getId): Made non-const.
  8989. * src/BtHaveAllMessage.h
  8990. (ID_t): Removed.
  8991. (ID): New variable.
  8992. (getId): Made non-const.
  8993. * src/BtKeepAliveMessage.h
  8994. (ID_t): Removed.
  8995. (ID): New variable.
  8996. (getId): Made non-const.
  8997. * src/BtHandshakeMessage.h
  8998. (ID): New variable.
  8999. (getId): Made non-const.
  9000. * src/BtSuggestPieceMessage.h
  9001. (ID_t): Removed.
  9002. (ID): New variable.
  9003. (getId): Made non-const.
  9004. * src/BtPortMessage.h
  9005. (ID_t): Removed.
  9006. (ID): New variable.
  9007. (getId): Made non-const.
  9008. * src/AbstractBtMessage.h
  9009. (id): Removed.
  9010. (AbstractBtMessage): Removed id.
  9011. (getId): Removed.
  9012. * src/BtHaveMessage.h
  9013. (ID_t): Removed.
  9014. (ID): New variable.
  9015. (getId): Made non-const.
  9016. * src/BtAllowedFastMessage.h
  9017. (ID_t): Removed.
  9018. (ID): New variable.
  9019. (getId): Made non-const.
  9020. * src/BtCancelMessage.h
  9021. (ID_t): Removed.
  9022. (ID): New variable.
  9023. (getId): Made non-const.
  9024. * src/BtNotInterestedMessage.h
  9025. (ID_t): Removed.
  9026. (ID): New variable.
  9027. (getId): Made non-const.
  9028. * src/BtChokeMessage.h
  9029. (ID_t): Removed.
  9030. (ID): New variable.
  9031. (getId): Made non-const.
  9032. * src/BtRejectMessage.h
  9033. (ID_t): Removed.
  9034. (ID): New variable.
  9035. (getId): Made non-const.
  9036. * src/BtBitfieldMessage.h
  9037. (ID_t): Removed.
  9038. (ID): New variable.
  9039. (getId): Made non-const.
  9040. * src/BtUnchokeMessage.h
  9041. (ID_t): Removed.
  9042. (ID): New variable.
  9043. (getId): Made non-const.
  9044. * src/BtRequestMessage.h
  9045. (ID_t): Removed.
  9046. (ID): New variable.
  9047. (getId): Made non-const.
  9048. * src/BtHaveMessage.h
  9049. (ID_t): Removed.
  9050. (ID): New variable.
  9051. (getId): Made non-const.
  9052. To add --force-truncate command-line option and a check whether
  9053. the file already exists:
  9054. * src/DirectDiskAdaptor.h
  9055. (getFilePath): Made virtual public.
  9056. * src/MultiDiskAdaptor.h
  9057. (File.h): New include.
  9058. (DiskWriterEntry::fileEntry): Made private.
  9059. (DiskWriterEntry::fileExists): New function.
  9060. (DiskWriterEntry::getFileEntry): New function.
  9061. (fileExists): New function.
  9062. (getFilePath): New function.
  9063. * src/TorrentRequestInfo.cc
  9064. (FatalException.h): New include.
  9065. (message.h): New include.
  9066. (RecoverableException.h): New include.
  9067. (execute): Added a check whether file is already exists or not.
  9068. * src/DiskAdaptor.h
  9069. (fileExists): New function.
  9070. (getFilePath): New function.
  9071. * src/main.cc
  9072. (showUsage): Added an explanation of --force-truncate command-line
  9073. option.
  9074. (main): Added --force-truncate command-line option.
  9075. * src/Exception.h
  9076. (setMsg): buf[256] -> buf[1024]
  9077. * src/CopyDiskWriter.h
  9078. (getFilePath): Made public virtual.
  9079. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9080. (fileExists): New function.
  9081. * src/DownloadEngineFactory.cc
  9082. (newTorrentConsoleEngine): Don't open file here.
  9083. * src/message.h
  9084. (EX_FILE_ALREADY_EXISTS): New definition.
  9085. * src/prefs.h
  9086. (PREF_FOECE_TRUNCATE): New definition.
  9087. * src/HttpResponseCommand.cc
  9088. (handleDefaultEncoding): Added a check whether the file already exists.
  9089. * src/SegmentMan.h
  9090. (fileExists): New function.
  9091. (shouldCancelDownloadForSafety): New function.
  9092. * src/FtpNegotiateCommand.cc
  9093. (recvSize): Added a check whether the file already exists.
  9094. * src/AbstractSingleDiskAdaptor.cc
  9095. (File.h): New include.
  9096. (fileExists): New function.
  9097. * src/AbstractSingleDiskAdaptor.h
  9098. (getFilePath): Removed.
  9099. (fileExists): New function.
  9100. * src/SegmentMan.cc
  9101. (fileExists): New function.
  9102. (shouldCancelDownloadForSafety): New function.
  9103. To fix regression bug in torrent downloading:
  9104. * src/DefaultBtRequestFactory.cc
  9105. (doChokedAction): New function.
  9106. * src/DefaultBtRequestFactory.h
  9107. (doChokedAction): New function.
  9108. * src/DefaultBtMessageDispatcher.cc
  9109. (doChokedAction): Do not delete request if its target is in allowed
  9110. fast set.
  9111. * src/DefaultBtInteractive.cc
  9112. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9113. (sendKeepAlive): Send keep alive message even if the outgoing message
  9114. queue is not empty.
  9115. (decideInterest): Simplified the code.
  9116. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9117. it is already called when BtChokeMessage is received from a peer.
  9118. * src/BtRequestFactory.h
  9119. (doChokedAction): New function.
  9120. To clean up code:
  9121. * src/PeerInteractionCommand.h
  9122. (executeInternal): Added virtual keyword explicitly.
  9123. (prepareForRetry): Added virtual keyword explicitly.
  9124. (prepareForNextPeer): Added virtual keyword explicitly.
  9125. (onAbort): Added virtual keyword explicitly.
  9126. * src/RequestSlot.cc
  9127. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9128. * src/BtPieceMessage.cc
  9129. (doReceivedAction): Added a debug log of piece's bitfield.
  9130. * src/Piece.h
  9131. (getBitfieldLength): New function.
  9132. * src/ByteArrayDiskWriter.cc
  9133. (clear): Added buf = 0 to avoid double free corruption.
  9134. * src/FileAllocator.cc
  9135. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9136. Added cp.reset().
  9137. * src/BitfieldMan.h
  9138. (operator=): Rewritten.
  9139. * src/BitfieldMan.cc
  9140. (BitfieldMan): Initialized bitfield, useBitfield.
  9141. * src/PeerConnection.cc
  9142. (receiveMessage): Added a call to socket->readable() after getting
  9143. message length to avoid possible EOF.
  9144. * src/Util.cc
  9145. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9146. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. To add an ability to pre-allocate file space:
  9148. * src/DirectDiskAdaptor.h: Rewritten.
  9149. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9150. * src/MultiDiskAdaptor.h: Rewritten.
  9151. * src/DefaultPieceStorage.cc
  9152. (MultiDiskWriter.h): Removed include.
  9153. (PreAllocationDiskWriter.h): Removed include.
  9154. (FileAllocationMonitor.h): New include.
  9155. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9156. (initStorage): Rewritten.
  9157. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9158. * src/FileAllocator.h: New class.
  9159. * src/FileAllocator.cc: New class.
  9160. * src/FileAllocationMonitor.h: New class.
  9161. * src/FileAllocationMonitor.cc: New class.
  9162. * src/ConsoleFileAllocationMonitor.h: New class.
  9163. * src/ConsoleFileAllocationMonitor.cc: New class.
  9164. * src/AbstractSingleDiskAdaptor.h: New class.
  9165. * src/AbstractSingleDiskAdaptor.cc: New class.
  9166. * src/DiskAdaptor.h
  9167. (Directory.h): Removed include.
  9168. (DiskWriter.h): Removed include.
  9169. (FileEntry.h): Removed include.
  9170. (diskWriter): Removed.
  9171. (DiskAdaptor): Removed diskWriter.
  9172. (openFile): Made pure virtual.
  9173. (closeFile): Made pure virtual.
  9174. (openExistingFile): Made pure virtual.
  9175. (initAndOpenFile): Made pure virtual.
  9176. (writeData): Made pure virtual.
  9177. (readData): Made pure virtual.
  9178. (sha1Sum): Made pure virtual.
  9179. (getStoreDir): Returns const reference of storeDir.
  9180. (DiskAdaptorHandle): New type definition.
  9181. * src/main.cc
  9182. (ConsoleFileAllocationMonitor.h): New include.
  9183. (showUsage): Added default value description of -s option.
  9184. Added the description of --file-allocation option.
  9185. (main): Set default value of --file-allocation option to 'none'.
  9186. Added --file-allocation command-line option.
  9187. Setup FileAllocationMonitorFactory.
  9188. * src/FtpInitiateConnectionCommand.cc
  9189. (executeInternal): Removed diskWriter related processing, which was
  9190. moved to FtpNegotiationCommand.cc.
  9191. * src/DirectDiskAdaptor.cc
  9192. (getFilePath): Made non-const.
  9193. * src/CopyDiskAdaptor.h
  9194. (DiskAdaptor.h): Removed include.
  9195. (DiskWriter.h): Removed include.
  9196. (AbstractSingleDiskAdaptor.h): New include.
  9197. (getFilePath): Made non-const. Added virtual keyword.
  9198. (CopyDiskAdaptor): Removed diskWriter.
  9199. (getTempFile): Returns const reference.
  9200. (CopyDiskAdaptorHandle): New type definition.
  9201. * src/ByteArrayDiskWriter.cc
  9202. (clear): Simplified.
  9203. (initAndOpenFile): Rewritten.
  9204. (openFile): Call initAndOpenFile()
  9205. * src/MultiDiskAdaptor.cc: Rewritten.
  9206. * src/DownloadEngineFactory.cc
  9207. (FileAllocator.h): New include.
  9208. (FileAllocationMonitor.h): New include.
  9209. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9210. create DefaultDiskWriter with file allocator.
  9211. * src/DiskWriter.h
  9212. (initAndOpenFile): Added totalLength argument.
  9213. (openFile): Added totalLength argument.
  9214. * src/prefs.h
  9215. (PREF_FILE_ALLOCATION): New definition.
  9216. (V_PREALLOC): New definition.
  9217. (V_NONE): New definition.
  9218. * src/HttpResponseCommand.cc
  9219. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9220. size.
  9221. * src/FtpNegotiateCommand.cc
  9222. (Util.h): New include.
  9223. (recvSize): Open file here.
  9224. * src/Util.h
  9225. (ullitos): New function.
  9226. * src/CopyDiskWriter.h
  9227. (getFilePath): Made non-const.
  9228. * src/DefaultDiskWriter.h
  9229. (Option.h): New include.
  9230. (totalLength): Removed.
  9231. (DefaultDiskWriter): Removed totalLength.
  9232. (initAndOpenFile): Added totalLength argument.
  9233. (DefaultDiskWriterHandle): New type definition.
  9234. (createNewDiskWriter): New function.
  9235. * src/Util.cc
  9236. (ullitos): New function.
  9237. * src/DefaultDiskWriter.cc
  9238. (message.h): New include.
  9239. (FileAllocator.h): New include.
  9240. (prefs.h): New include.
  9241. (Util.h): New include.
  9242. (DefaultDiskWriter): Removed totalLength.
  9243. (initAndOpenFile): Added file allocation.
  9244. (createNewDiskWriter): New function. Just for temporary solution.
  9245. It will be rewritten later.
  9246. * src/DiskAdaptor.cc
  9247. (DiskAdaptor): Removed diskWriter.
  9248. * src/AbstractDiskWriter.cc
  9249. (LogFactory.h): New include.
  9250. (AbstractDiskWriter): Added fileAllocator, logger.
  9251. (openFile): Added totalLength argument.
  9252. * src/AbstractDiskWriter.h
  9253. (FileAllocator.h): New include.
  9254. (Logger.h): New include.
  9255. (fileAllocator): New variable.
  9256. (logger): New variable.
  9257. (openFile): Added totalLength argument. Added virtual keyword
  9258. explicitly.
  9259. (openExistingFile): Added totalLength argument. Added virtual keyword
  9260. explicitly.
  9261. (closeFile): Added virtual keyword explicitly.
  9262. (sha1Sum): Added virtual keyword explicitly.
  9263. (writeData): Added virtual keyword explicitly.
  9264. (readData): Added virtual keyword explicitly.
  9265. (setFileAllocator): New function.
  9266. * src/DefaultPieceStorage.h
  9267. (FileAllocator.h): New include.
  9268. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9269. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9270. * src/FileProgressMonitor.h: New class.
  9271. To compile aria2 on PC-BSD:
  9272. * src/DefaultBtContext.cc
  9273. (libgen.h): New include.
  9274. To fix memory leak:
  9275. * src/Exception.h
  9276. (~Exception): Delete cause. Fixed memory leak.
  9277. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Rewritten a portion of bittorrent implementation:
  9279. * src/BtMessageValidator.h: New class.
  9280. * src/BtBitfieldMessageValidator.h: New class.
  9281. * src/BtHandshakeMessageValidator.h: New class.
  9282. * src/BtRequestMessageValidator.h: New class.
  9283. * src/BtSuggestPieceMessageValidator.h: New class.
  9284. * src/BtAllowedFastMessageValidator.h: New class.
  9285. * src/BtRejectMessageValidator.h: New class.
  9286. * src/BtCancelMessageValidator.h: New class.
  9287. * src/BtPieceMessageValidator.h: New class.
  9288. * src/BtHaveMessageValidator.h: New class.
  9289. * src/BtEventListener.h: New class.
  9290. * src/AbstractBtEventListener.h: New class.
  9291. * src/BtEvent.h: New class.
  9292. * src/BtChokingEvent.h: New class.
  9293. * src/BtChokedEvent.h: New class.
  9294. * src/BtCancelSendingPieceEvent.h: New class.
  9295. * src/BtAbortOutstandingRequestEvent.h: New class.
  9296. * src/Randomizer.h: New class.
  9297. * src/SimpleRandomizer.h: New class.
  9298. * src/BtMessage.h: New class.
  9299. * src/AbstractBtMessage.h: New class.
  9300. * src/SimpleBtMessage.h: New class.
  9301. * src/BtHaveMessage.h: New class.
  9302. * src/BtInterestedMessage.h: New class.
  9303. * src/BtAllowedFastMessage.h: New class.
  9304. * src/BtUnchokeMessage.h: New class.
  9305. * src/BtCancelMessage.h: New class.
  9306. * src/BtNotInterestedMessage.h: New class.
  9307. * src/BtChokeMessage.h: New class.
  9308. * src/BtHaveNoneMessage.h: New class.
  9309. * src/BtHandshakeMessage.h: New class.
  9310. * src/BtSuggestPieceMessage.h: New class.
  9311. * src/BtHaveMessage.h: New class.
  9312. * src/BtPieceMessage.h: New class.
  9313. * src/BtHaveAllMessage.h: New class.
  9314. * src/BtKeepAliveMessage.h: New class.
  9315. * src/BtPortMessage.h: New class.
  9316. * src/BtRejectMessage.h: New class.
  9317. * src/BtBitfieldMessage.h: New class.
  9318. * src/BtRequestMessage.h: New class.
  9319. * src/DefaultBtRequestFactory.h: New class.
  9320. * src/DefaultBtMessageReceiver.h: New class.
  9321. * src/BtInteractive.h: New class.
  9322. * src/BtMessageDispatcher.h: New class.
  9323. * src/DefaultBtMessageDispatcher.h: New class.
  9324. * src/DefaultBtInteractive.h: New class.
  9325. * src/BitfieldManFactory.h: New class.
  9326. * src/HandleRegistry.h: New class.
  9327. * src/BtMessageFactory.h: New class.
  9328. * src/BtMessageReceiver.h: New class.
  9329. * src/DefaultBtMessageFactory.h: New class.
  9330. * src/PeerObject.h: New class.
  9331. * src/BtRequestFactory.h: New class.
  9332. * src/SuggestPieceMessage.h: Removed.
  9333. * src/PortMessage.h: Removed.
  9334. * src/SuggestPieceMessage.h: Removed.
  9335. * src/KeepAliveMessage.h: Removed.
  9336. * src/HandshakeMessage.h: Removed.
  9337. * src/PeerInteraction.h: Removed.
  9338. * src/UnchokeMessage.h: Removed.
  9339. * src/PieceMessage.h: Removed.
  9340. * src/RequestMessage.h: Removed.
  9341. * src/InterestedMessage.h: Removed.
  9342. * src/HaveMessage.h: Removed.
  9343. * src/CancelMessage.h: Removed.
  9344. * src/RejectMessage.h: Removed.
  9345. * src/AllowedFastMessage.h: Removed.
  9346. * src/HaveNoneMessage.h: Removed.
  9347. * src/SimplePeerMessage.h: Removed.
  9348. * src/HaveAllMessage.h: Removed.
  9349. * src/BitfieldMessage.h: Removed.
  9350. * src/PeerMessageFactory.h: Removed.
  9351. * src/NotInterestedMessage.h: Removed.
  9352. * src/ChokeMessage.h: Removed.
  9353. * src/PeerMessage.h: Removed.
  9354. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. To know root cause of exception:
  9356. * src/Exception.h
  9357. (cause): New variable.
  9358. (Exception): Added a parameter.
  9359. (getMsg): Return const reference to msg.
  9360. (getCause): New function.
  9361. * src/DlRetryEx.h
  9362. (DlRetryEx): Added a parameter 'cause'.
  9363. Added an overloaded constructor.
  9364. (DlAbortEx): Added a parameter 'cause'.
  9365. Added an overloaded constructor.
  9366. * src/SimpleLogger.cc
  9367. (writeLog): Log nested exception messages recursively.
  9368. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. * src/DefaultBtProgressInfoFile.cc
  9370. (load): Fixed memory leak when the infohash doesn't match.
  9371. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. * src/DefaultPeerStorage.cc
  9373. (calculateStat): Simplified the code by combining 2 loops into 1.
  9374. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9376. for BitTorrent download:
  9377. * src/PeerAbstractCommand.cc
  9378. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9379. * src/main.cc:
  9380. (timeoutSpecified): Removed.
  9381. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9382. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9383. * src/TorrentRequestInfo.cc
  9384. (timeoutSpecified): Removed.
  9385. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9386. timeout value.
  9387. * src/prefs.h
  9388. (PREF_BT_TIMEOUT): New definition.
  9389. Delete unused variables:
  9390. * src/TorrentRequestInfo.cc
  9391. (requestInfo): Removed.
  9392. Move setSignalHander to Util::setGlobalSignalHandler:
  9393. * src/TorrentRequestInfo.cc:
  9394. setSignalHander -> Util::setGlobalSignalHandler
  9395. * src/main.cc
  9396. (setSignalHander): Removed.
  9397. (main): setSignalHander -> Util::setGlobalSignalHandler
  9398. * src/Util.h
  9399. (setGlobalSignalHandler): New function.
  9400. * src/Util.cc
  9401. (setGlobalSignalHandler): New function.
  9402. * src/UrlRequestInfo.cc:
  9403. setSignalHander -> Util::setGlobalSignalHandler
  9404. Reset peer status in order to exit gracefully:
  9405. * src/PeerAbstractCommand.cc
  9406. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9407. To fix the bug that causes the number of bytes uploaded is not saved
  9408. to .aria2 file:
  9409. * src/DefaultPeerStorage.h
  9410. (removedPeerSessionDownloadLength): New variable.
  9411. (removedPeerSessionUploadLength): New variable.
  9412. * src/DefaultPeerStorage.cc
  9413. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9414. removedPeerSessionUploadLength(0).
  9415. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9416. through all peers, and then add removedPeerSessionDownloadLength(
  9417. removedPeerSessionUploadLength) to it.
  9418. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9419. (to) the peer to removedPeerSessionDownloadLength
  9420. (removedPeerSessionUploadLength).
  9421. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. To add Metalink location option:
  9423. * src/MetalinkRequestInfo.cc
  9424. (execute): Call MetalinkEntry::setLocationPreference()
  9425. * src/main.cc
  9426. (showUsage): Added the help message for --metalink-location option.
  9427. (main): Added --metalink-location option.
  9428. * src/prefs.h
  9429. (PREF_METALINK_LOCATION): New definition.
  9430. * src/MetalinkEntry.cc
  9431. (AddLocationPreference): New function object.
  9432. (setLocationPreference): New function.
  9433. * src/Xml2MetalinkProcessor.cc
  9434. (getResource): Set location attribute to MetalinkResource
  9435. To show URLs to download
  9436. * src/UrlRequestInfo.h
  9437. (printUrls): New function.
  9438. To add multiple <file> Metalink support:
  9439. * src/MetalinkEntry.h
  9440. (MetalinkResources): Removed.
  9441. (setLocationPreference): New function.
  9442. (MetalinkEntryHandle): New type definition.
  9443. (MetalinkEntries): New type definition.
  9444. * src/Xml2MetalinkProcessor.h
  9445. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9446. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9447. (parseFile): Metalinker* -> MetalinkerHandle
  9448. * src/UrlRequestInfo.h
  9449. (execute): RequestInfo* -> RequestInfos
  9450. * src/MetalinkRequestInfo.cc
  9451. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9452. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9453. (execute): RequestInfo* -> RequestInfos
  9454. Added multiple <file> support. Print filename when it is queued.
  9455. * src/MetalinkRequestInfo.h
  9456. (execute): RequestInfo* -> RequestInfos
  9457. (getDownloadEngine): Removed.
  9458. * src/RequestInfo.h
  9459. (RequestInfoHandle): New type definition.
  9460. (RequestInfos): New type definition.
  9461. (execute): RequestInfo* -> RequestInfos
  9462. (getDownloadEngine): Removed.
  9463. * src/MetalinkResource.h
  9464. (MetalinkResourceHandle): New type definition.
  9465. (MetalinkResources): New type definition.
  9466. * src/MetalinkEntry.cc
  9467. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9468. because the element is now of type MetalinkResourceHandle.
  9469. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9470. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9471. (dropUnsupportedResource): Removed the deletion of the elements of
  9472. resources because the element is now of type MetalinkResourceHandle.
  9473. * src/Xml2MetalinkProcessor.cc
  9474. (parseFile): Metalinker* -> MetalinkerHandle
  9475. MetalinkEntry* -> MetalinkEntryHandle
  9476. Removed try-catch block.
  9477. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9478. MetalinkResource* -> MetalinkResourceHandle
  9479. Removed try-catch block.
  9480. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9481. Free result by using xmlXPathFreeObject()
  9482. * src/Metalinker.cc
  9483. (~Metalinker): Removed the deletion of entries.
  9484. MetalinkEntry* -> MetalinkEntryHandle
  9485. (queryEntry): Add multiple <file> Metalink support.
  9486. * src/Metalinker.h
  9487. (MetalinkEntries): Removed.
  9488. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9489. * src/MetalinkProcessor.h
  9490. (parseFile): Metalinker* -> MetalinkerHandle
  9491. Bug fixes:
  9492. * src/PeerChokeCommand.cc
  9493. (execute): cat01->cat02
  9494. * src/DefaultPieceStorage.cc
  9495. (DefaultPieceStorage): Added diskAdaptor(0)
  9496. * src/TrackerWatcherComand.cc:
  9497. (execute): Use btAnnounce->noMoreAnnounce()
  9498. to determin whether the function returns true or not.
  9499. * src/TrackerUpdateCommand.cc:
  9500. (execute): Use btAnnounce->noMoreAnnounce()
  9501. to determin whether the function returns true or not.
  9502. * src/FtpConnection.cc
  9503. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9504. This is the fix of the busy loop bug.
  9505. * src/DownloadCommand.cc
  9506. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9507. cached PeerStat.
  9508. The value of "name" entry in torrent file is now set by
  9509. *DiskAdaptor::setTopDir(...) methods.
  9510. * src/MultiDiskAdaptor.h
  9511. (topDir): New variable.
  9512. (setTopDir): New function.
  9513. (getTopDir): New function.
  9514. * src/MultiDiskAdaptor.cc
  9515. (getFilePath): Concat storDir, "/" and topDir.
  9516. (mkdir): Use getFilePath() to get the directory path for output.
  9517. * src/DefaultPieceStorage.cc
  9518. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9519. CopyDiskAdaptor.
  9520. * src/CopyDiskAdaptor.h
  9521. (topDir): New variable.
  9522. (setTopDir): New function.
  9523. (getTopDir): New function.
  9524. * src/CopyDiskAdaptor.cc
  9525. (fixFilename): Updated.
  9526. Misc
  9527. * src/UrlRequestInfo.h
  9528. (e): Removed.
  9529. (UrlRequestInfo): Removed e.
  9530. (getDownloadEngine): Removed.
  9531. * src/UrlRequestInfo.cc
  9532. (handler): Rewritten.
  9533. (printUrls): New function.
  9534. (execute): Call printUrls().
  9535. * src/HandshakeMessage.cc
  9536. (check): peerinteraction->getBtContext() -> btContext
  9537. * src/PeerInteraction.h
  9538. (getBtContext): Removed.
  9539. * src/TorrentRequestInfo.h
  9540. (execute): RequestInfo* -> RequestInfos
  9541. (getDownloadEngine): Removed.
  9542. * src/TorrentRequestInfo.cc
  9543. (haltRequested): Removed.
  9544. (btHaltRequested): New variable.
  9545. (torrentHandler): haltRequested -> btHaltRequested
  9546. (execute): RequestInfo* -> RequestInfos
  9547. * src/TorrentConsoleDownloadEngine.cc
  9548. (afterEachIteration): haltRequested -> btHaltRequested.
  9549. * src/ConsoleDownloadEngine.h
  9550. (initStatistics): Added virtual.
  9551. (calculateStatistics): Added virtual.
  9552. (onEndOfRun): Added virtual.
  9553. (afterEachIteration): Added virtual.
  9554. * src/ConsoleDownloadEngine.cc
  9555. (haltRequested): New variable.
  9556. (afterEachIteration): New function.
  9557. * src/main.cc
  9558. (requestInfo): Removed.
  9559. * src/SegmentMan.cc
  9560. (findSlowerSegmentEntry): Refactored.
  9561. * Release 0.9.0
  9562. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9564. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9565. * src/TorrentMan.h: Removed.
  9566. * src/TorrentMan.cc: Removed.
  9567. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9568. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9569. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9570. * src/PeerAbstractCommand.cc: Use btRuntime.
  9571. * src/BtContextAwareCommand.h: New class.
  9572. * src/FileEntry.h: Added accessor methods for following variables.
  9573. (path): Made private.
  9574. (length): Made private.
  9575. (offset): Made private.
  9576. (extracted): Made private.
  9577. (requested): Made private.
  9578. (FileEntries): New definition.
  9579. (FileEntryHandle): New definition.
  9580. * src/FileEntry.cc: New file.
  9581. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9582. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9583. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9584. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9585. * src/PieceStorage.h: New file.
  9586. * src/PeerInteractionCommand.h: Use btContext.
  9587. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9588. btRuntime.
  9589. * src/DefaultBtProgressInfoFile.h: New file.
  9590. * src/DefaultBtProgressInfoFile.cc: New file.
  9591. * src/File.cc
  9592. (Util.h): New include.
  9593. (mkdirs): New function.
  9594. * src/MultiDiskAdaptor.h
  9595. (mkdir): New function.
  9596. * src/PeerListProcessor.h
  9597. (Peers): Removed.
  9598. * src/PeerInteraction.h
  9599. (torrentMan): Removed.
  9600. (btContext): New variable.
  9601. (peerStorage): New variable.
  9602. (pieceStorage): New variable.
  9603. (btAnnounce): New variable.
  9604. (getTorrentMan): Removed.
  9605. (getBtContext): New function.
  9606. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9607. btAnnounce.
  9608. * src/HandshakeMessage.h
  9609. (TorrentMan.h): Removed.
  9610. * src/HandshakeMessage.cc: Use btContext.
  9611. * src/DefaultBtAnnounce.cc: New file.
  9612. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9613. * src/DefaultPieceStorage.cc: New file.
  9614. * src/DefaultBtContext.h: New file.
  9615. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9616. Use the accessor methods of FileEntry.
  9617. * src/CookieBox.cc: Updated to use Util::slice().
  9618. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9619. * src/common.h (SharedHandle.h): New include.
  9620. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9621. pieceStorage.
  9622. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9623. * src/DiskAdaptor.h
  9624. (topDir): Removed.
  9625. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9626. (setTopDir): Removed.
  9627. (getTopDir): Removed.
  9628. * src/BtContext.h: New file.
  9629. * src/DefaultPeerStorage.h: New file.
  9630. * src/PieceMessage.h (TorrentMan.h): Removed.
  9631. * src/RequestMessage.h (TorrentMan.h): Removed.
  9632. * src/TorrentDownloadEngine.h
  9633. (uploadLength): New variable.
  9634. (btContext): New variable.
  9635. (btRuntime): New variable.
  9636. (pieceStorage): New variable.
  9637. (peerStorage): New variable.
  9638. (btAnnounce): New variable.
  9639. (btProgressInfoFile): New variable.
  9640. (torrentMan): Removed.
  9641. (setBtContext): New function.
  9642. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9643. peerStorage, btAnnounce, btProgressInfoFile.
  9644. * src/Piece.h
  9645. (toString): New function.
  9646. (Pieces): New type definition.
  9647. * src/Peer.h
  9648. (active): New variable.
  9649. (Peer): Added active.
  9650. (activate): Set active to true.
  9651. (deactivate): Set active to false.
  9652. (isActive): New function.
  9653. (Peers): New type definition.
  9654. * src/DirectDiskAdaptor.cc
  9655. (getFilePath): Use the accessor methods of FileEntry.
  9656. * src/TorrentConsoleDownloadEngine.h
  9657. (afterEachIteration): New function.
  9658. * src/TorrentConsoleDownloadEngine.cc
  9659. (haltRequested): New variable.
  9660. (sendStatistics): Use pieceStorage, btRuntime.
  9661. (afterEachIteration): New function.
  9662. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9663. * src/Directry.h
  9664. (Directory): New function.
  9665. (DirectoryHandle): New type definition.
  9666. * src/BtProgressInfoFile.h: New file.
  9667. * src/RequestMessage.cc: Use pieceStorage.
  9668. * src/BtRuntime.h: New file.
  9669. * src/DefaultBtContext.cc: New file.
  9670. * src/BitfieldMan.h
  9671. (getCompletedLength): New function(private).
  9672. (getCompletedLength): New function.
  9673. (getFilteredCompletedLength): New function.
  9674. * src/BitfieldMan.h
  9675. (getCompletedLength): New function(private).
  9676. (getCompletedLength): New function.
  9677. (getFilteredCompletedLength): New function.
  9678. * src/MultiDiskAdaptor.cc
  9679. (mkdir): New function.
  9680. (openFile): Call mkdir().
  9681. (initAndOpenFile): Call mkdir().
  9682. * src/CancelMessage.h
  9683. (TorrentMan.h): Removed.
  9684. * src/RejectMessage.h
  9685. (TorrentMan.h): Removed.
  9686. * src/DownloadEngineFactory.cc
  9687. (DefaultPieceStorage.h): New include.
  9688. (DefaultPeerStorage.h): New include.
  9689. (DefaultBtAnnounce.h): New include.
  9690. (DefaultBtProgressInfoFile.h): New include.
  9691. (newTorrentConsoleEngine): Rewritten.
  9692. * src/ShareRatioSeedCriteria.h
  9693. (torrentMan): Removed.
  9694. (btContext): New variable.
  9695. (peerStorage): New variable.
  9696. (btRuntime): New variable.
  9697. (evaluate): Use btContext, btRuntime, peerStorage.
  9698. * src/AnnounceTier.h: New file.
  9699. * src/BtAnnounce.h: New file.
  9700. * src/BtRegistry.h: New file.
  9701. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9702. * src/PeerConnection.h (TorrentMan.h): Removed.
  9703. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9704. * src/Util.h
  9705. (slice): Added an argument.
  9706. * src/Util.cc
  9707. (slice): Added an argument to control whether trim is made or not.
  9708. * src/PeerStorage.h: New file.
  9709. * src/BtRegistry.cc: New file.
  9710. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9711. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9712. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9713. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9714. * src/TorrentRequestInfo.h
  9715. (e): Removed.
  9716. (showFileEntry): Added an argument.
  9717. (getDownloadEngine): Return 0.
  9718. * src/DefaultBtAnnounce.h: New file.
  9719. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9720. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9721. * src/PeerMessageFactory.h
  9722. (btContext): New variable.
  9723. (pieceStorage): New variable.
  9724. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9725. btAnnounce.
  9726. * src/DiskAdaptor.cc
  9727. (DiskAdaptor): Removed topDir.
  9728. (~DiskAdaptor): Removed topDir.
  9729. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9730. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9731. * src/File.h (mkdirs): New function.
  9732. * src/DefaultPeerStorage): New file.
  9733. * src/DownloadEngineFactory.h
  9734. (newTorrentConsoleEngine): Use btContext.
  9735. * src/BtContextAwareCommand.cc: New file.
  9736. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9737. * src/PeerMessage.h
  9738. (btContext): New variable.
  9739. (peerStorage): New variable.
  9740. (pieceStorage): New variable.
  9741. (setBtContext): New function.
  9742. * src/Directry.cc
  9743. (Directory): New function.
  9744. (createDir): Do nothing if name.size() == 0.
  9745. * src/AnnounceList.h
  9746. (AnnounceTier): Removed.
  9747. (AnnounceTiers): Removed.
  9748. * src/DefaultPieceStorage.h: New file.
  9749. * src/Piece.cc (toString): New function.
  9750. To fix typo:
  9751. * src/main.cc (showVersion): Fixed typo.
  9752. To fix compile warning:
  9753. * src/DelegatingPeerListProcessor.cc
  9754. (canHandle): Added "return false".
  9755. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9757. make the process of announce request testable.
  9758. * src/TrackerWatcherCommand.h
  9759. (TimeA2.h): Removed.
  9760. (interval): Removed.
  9761. (checkPoint): Removed.
  9762. (createRequestCommand): Added an argument 'url'.
  9763. (TrackerWatherCommand): Removed interval.
  9764. (createCommand): New function.
  9765. * src/DownloadEngineFactory.cc
  9766. (newTorrentConsoleEngine): Updated according to the changes in
  9767. TrackerWatherCommand.
  9768. * src/TorrentMan.cc
  9769. (DelegatingPeerListProcessor.h): New includes.
  9770. (TorrentMan): Added the initialization of announceInterval.
  9771. (isStoppedAnnounceReady): New function.
  9772. (isCompletedAnnounceReady): New function.
  9773. (isDefaultAnnounceReady): New function.
  9774. (isAnnounceReady): New function.
  9775. (getAnnounceUrl): New function.
  9776. (announceStart): New function.
  9777. (announceFailure): New function.
  9778. (announceSuccess): New function.
  9779. (isAllAnnounceFailed): New function.
  9780. (resetAnnounce): New function.
  9781. (processAnnounceResponse): New function.
  9782. (needMorePeerConnection): New function.
  9783. (noMoreAnnounce): New function.
  9784. * src/TrackerUpdateCommand.h
  9785. (getTrackerResponse): int->size_t
  9786. * src/TorrentMan.h
  9787. (isStoppedAnnounceReady): New function.
  9788. (isCompletedAnnounceReady): New function.
  9789. (isDefaultAnnounceReady): New function.
  9790. (announceInterval): New variable.
  9791. (isAnnounceReady): New function.
  9792. (getAnnounceUrl): New function.
  9793. (announceStart): New function.
  9794. (announceFailure): New function.
  9795. (announceSuccess): New function.
  9796. (isAllAnnounceFailed): New function.
  9797. (resetAnnounce): New function.
  9798. (processAnnounceResponse): New function.
  9799. (needMorePeerConnection): New function.
  9800. (noMoreAnnounce): New function.
  9801. * src/TrackerWatcherCommand.cc
  9802. (TrackerWatherCommand): Removed interval and checkPoint.
  9803. (execute): Rewritten.
  9804. (createCommand): New function.
  9805. (createRequestCommand): Rewritten.
  9806. * src/TrackerUpdateCommand.cc
  9807. (MetaFileUtil.h): Removed.
  9808. (DelegatingPeerListProcessor.h): Removed.
  9809. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9810. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. Request -> RequestHandle:
  9812. * src/HttpResponseCommand.h: Request->RequestHandle
  9813. * src/AbstractCommand.cc: Request->RequestHandle
  9814. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9815. * src/HttpRequestCommand.cc: Request->RequestHandle
  9816. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9817. * src/AbstractCommand.h: Request->RequestHandle
  9818. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9819. * src/HttpResponseCommand.cc: Request->RequestHandle
  9820. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9821. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9822. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9823. * src/HttpConnection.h: Request->RequestHandle
  9824. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9825. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9826. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9827. * src/DownloadCommand.h: Request->RequestHandle
  9828. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9829. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9830. * src/HttpRequestCommand.h: Request->RequestHandle
  9831. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9832. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9833. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9834. * src/HttpDownloadCommand.h: Request->RequestHandle
  9835. * src/FtpConnection.cc: Request->RequestHandle
  9836. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9837. * src/UrlRequestInfo.cc: Request->RequestHandle
  9838. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9839. * src/HttpConnection.h: Request->RequestHandle
  9840. * src/DownloadCommand.cc: Request->RequestHandle
  9841. * src/FtpConnection.h: Request->RequestHandle
  9842. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9843. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9844. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9845. * src/Request.h
  9846. (SharedHandle.h): New include.
  9847. (RequestHandle): New type definition.
  9848. (Requests): Redefined.
  9849. To add MULTITRACKER support:
  9850. * src/TrackerWatcherCommand.h
  9851. (createRequestCommand): New function.
  9852. * src/DownloadEngineFactory.cc
  9853. (newTorrentConsoleEngine): Removed req.
  9854. * src/prefs.h
  9855. (PREF_TRACKER_MAX_TRIES): New definition.
  9856. * src/TorrentMan.cc
  9857. (TorrentMan): Removed req. Added trackerNumTry.
  9858. (~TorrentMan): Removed req.
  9859. (setupInternal1): Added announceList.
  9860. * src/TorrentRequestInfo.cc
  9861. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9862. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9863. * src/main.cc
  9864. (main): Added PREF_TRACKER_MAX_TRIES.
  9865. * src/TorrentMan.h
  9866. (Request.h): Removed.
  9867. (AnnounceList.h): New include.
  9868. (trackerNumTry): New variable.
  9869. (req): Removed.
  9870. (announceList): New variable.
  9871. * src/TrackerWatcherCommand.cc
  9872. (execute): Rewritten.
  9873. (createRequestCommand): New function.
  9874. * src/TrackerUpdateCommand.cc
  9875. (execute): Updated with the use of AnnounceList.
  9876. * src/AnnounceList.cc: New class.
  9877. * src/AnnounceList.h: New class.
  9878. To fix typo:
  9879. * src/prefs.h
  9880. (PREF_MAX_TRIES): max_try->max_tries
  9881. To not to decode "+" as space in URL decode:
  9882. * src/Util.cc
  9883. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9884. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. To add timeout to async name resolution:
  9886. * src/AbstractCommand.h
  9887. (nameResolveFinished): New function. This is not elegant way. It needs
  9888. to be more refined.
  9889. (nameResolverCheck): New variable.
  9890. * src/AbstractCommand.cc
  9891. (AbstractCommand): Added nameResolverCheck.
  9892. (execute): Added the check whether the name resolution has finished.
  9893. (setNameResolverCheck): Set nameResolverCheck to true.
  9894. (disableNameResolverCheck): Set nameResolverCheck to false.
  9895. (nameResolverFinished): New function.
  9896. * src/FtpInitiateConnectionCommand.h
  9897. (nameResolverFinished): New function.
  9898. * src/FtpInitiateConnectionCommand.cc
  9899. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9900. * src/HttpInitiateConnectionCommand.h
  9901. (nameResolverFinished): New function.
  9902. * src/HttpInitiateConnectionCommand.cc
  9903. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9904. * src/prefs.h
  9905. (PREF_DNS_TIMEOUT): New definition.
  9906. * src/main.cc
  9907. (main): Added PREF_DNS_TIMEOUT.
  9908. To add the support for a non-compact response from a tracker:
  9909. * src/PeerListProcessor.h: New class.
  9910. * src/DefaultPeerListProcessor.h: New class.
  9911. * src/DefaultPeerListProcessor.cc: New class.
  9912. * src/CompactPeerListProcessor.h: New class.
  9913. * src/CompactPeerListProcessor.cc: New class.
  9914. * src/DelegatingPeerListProcessor.h: New class.
  9915. * src/DelegatingPeerListProcessor.cc: New class.
  9916. * src/TorrentMan.cc
  9917. (addPeer): New function(overload).
  9918. (addPeer): Delete unused peers only when new peer is added.
  9919. * src/TorrentMan.h
  9920. (PeerListProcessor.h): Included.
  9921. (Peers): Removed.
  9922. (addPeer): New function(overload).
  9923. * src/TrackerUpdateCommand.cc
  9924. (netinet/in.h): Removed.
  9925. (DelegatingPeerListProcessor.h): Included.
  9926. (execute): Updated to use DelegatingPeerListProcessor.
  9927. To fix the memory leak in TorrentMan::peers:
  9928. * src/PeerAbstractCommand.cc
  9929. (onAbort): Added peer->resetStatus().
  9930. * src/Peer.h
  9931. (resetStatus): Made public.
  9932. To improve the precision of the speed calculation:
  9933. * src/SpeedCalc.h
  9934. (nextInterval): New variable.
  9935. * src/SpeedCalc.cc
  9936. (reset): Added nextInterval.
  9937. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9938. (changeSw): Set nextInterval to 15 seconds relative to the current
  9939. instant time.
  9940. * src/main.cc
  9941. (showVersion): Updated.
  9942. (showUsage): Updated.
  9943. * Release 0.8.1
  9944. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. * src/main.cc
  9946. (showUsage): Commented out --min-segment-size option.
  9947. (main): Commented out --min-segment-size option.
  9948. * Release 0.8.0
  9949. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9950. * src/*.{h,cc}:
  9951. Added an exception to the license which allows linking with OpenSSL.
  9952. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. * src/AbstractCommand.cc
  9954. (execute): Check whether the download has finished before checking
  9955. socket status.
  9956. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9957. Do not exit even if no segment is available.
  9958. * src/prefs.h
  9959. (PREF_STARTUP_IDLE_TIME): New definition.
  9960. * src/PeerInteractionCommand.cc
  9961. (executeInternal): Removed max speed limit. Because it performs bad.
  9962. (receiveMessages): Added max speed limit. This was better than above,
  9963. but still a little bit to be desired. Sometimes the download speed
  9964. became much faster than I specified.
  9965. * src/SpeedCalc.h
  9966. (start): New variable.
  9967. (accumulatedLength): New variable.
  9968. (getAvgSpeed): New function.
  9969. * src/SpeedCalc.cc
  9970. (reset): Added start, accumulatedLength.
  9971. (update): Added calculation of an average speed.
  9972. (getAvgSpeed): New function.
  9973. * src/DownloadCommand.h
  9974. (sw): Removed.
  9975. * src/main.cc
  9976. (main): Added PREF_STARTUP_IDLE_TIME.
  9977. * src/PeerStat.h
  9978. (STATUS): Added REQUEST_IDLE.
  9979. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9980. (getAvgDownloadSpeed): New function
  9981. (requestIdle): New function.
  9982. * src/SegmentMan.h
  9983. (SegmentEntryHandle): New type definition.
  9984. (SegmentEntries): Now holds SegmentEntryHandle.
  9985. (findSlowerSegmentEntry): New funtion.
  9986. * src/SegmentMan.cc
  9987. (save): Updated according to the changes in SegmentEntries.
  9988. (read): Updated according to the changes in SegmentEntries.
  9989. (FindSegmentEntryByIndex): Updated according to the changes in
  9990. SegmentEntries.
  9991. (FindSegmentEntryByCuid): Updated according to the changes in
  9992. SegmentEntries.
  9993. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9994. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9995. Renamed uitr as itr.
  9996. (findSlowerSegmentEntry): New function.
  9997. (getSegment): Updated according to the changes in SegmentEntries.
  9998. Added the feature that cancels the segment with slow server and fast
  9999. one takes it over.
  10000. (cancelSegment): Updated according to the changes in SegmentEntries.
  10001. (getDownloadLength): Updated according to the changes in
  10002. SegmentEntries.
  10003. (init): Assigned 0 to bitfield after deleting it.
  10004. * src/DownloadCommand.cc
  10005. (STARTUP_IDLE_TIME): Removed.
  10006. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10007. * src/PeerChokeCommand.cc
  10008. (optUnchokingPeer): Updated according to the changes in Peer.
  10009. (ResetDelta): Removed.
  10010. (UploadFaster): Updated according to the changes in Peer.
  10011. (DownloadFaster): Updated according to the changes in Peer.
  10012. (execute): I clarify the meaning of "upload" and "download" here.
  10013. "upload" means the transfer from localhost to remote host.
  10014. "download" means the transfer from remote host to localhost.
  10015. Based on this rule, I swapped orderByUploadRate and
  10016. orderByDownloadRate.
  10017. * src/PeerInteractionCommand.cc
  10018. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10019. (executeInternal): Removed the argument of
  10020. peerInteraction->sendMessages().
  10021. (receiveMessages): Rewritten download speed limit.
  10022. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10023. * src/HttpResponseCommand.cc
  10024. (handleDefaultEncoding): If file size is unknown in torrent request,
  10025. do not call segmentMan->initBitfield() here.
  10026. Disabled persistent connection feature in torrent request.
  10027. * src/UrlRequestInfo.h
  10028. (UrlRequestInfo): Removed const qualifier from option.
  10029. * src/TorrentMan.h
  10030. (TransferStat): New class.
  10031. (deltaDownloadLength): Removed.
  10032. (deltaUploadLength): Removed.
  10033. (addDeltaDownloadLength): Removed.
  10034. (getDeltaDownloadLength): Removed.
  10035. (resetDeltaDownloadLength): Removed.
  10036. (addDeltaUploadLength): Removed.
  10037. (getDeltaUploadLength): Removed.
  10038. (resetDeltaUploadLength): Removed.
  10039. (addActivePeer): Added peer->activate().
  10040. (deleteActivePeer): Added peer->deactivate().
  10041. (calculateStat): New function.
  10042. * src/TorrentMan.cc
  10043. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10044. (calculateStat): New function.
  10045. * src/PeerInteraction.h
  10046. (uploadLimit): Removed.
  10047. (option): New variable.
  10048. (setUploadLimit): Removed.
  10049. (getUploadSpeed): Removed.
  10050. (sendMessages): Removed the argument "currentUploadSpeed".
  10051. * src/PeerInteraction.cc
  10052. (prefs.h): Included.
  10053. (PeerInteraction): Removed uploadLimit. Added option.
  10054. (sendMessages): Rewritten upload speed limit.
  10055. (sendHandshake): Removed the argument from sendMessages().
  10056. (sendBitfield): Removed the argument from sendMessages().
  10057. * src/PeerAbstractCommand.cc
  10058. (execute): Commented out the portion of upload limit.
  10059. (onAbort): Removed peer->resetStatus().
  10060. * src/TorrentRequestInfo.cc
  10061. (timeoutSpecified): Declared extern.
  10062. (execute): Set timeout to 180 if timeout is not specified by.
  10063. command-line.
  10064. * src/PieceMessage.cc
  10065. (receivedAction): Added peer->updateDownloadLength().
  10066. Removed peer->addPeerUpload().
  10067. Removed torrentMan->addDeltaDownloadLength().
  10068. (send): Added peer->updateUploadLength().
  10069. Removed peer->addPeerDownload().
  10070. Removed torrentMan->addDeltaUploadLength().
  10071. * src/main.cc
  10072. (timeoutSpecified): New variable.
  10073. (main): Set timeoutSpecified to false.
  10074. If the command-line option "--upload-limit" is specified, then
  10075. timeoutSpecified is set to true. This option will remain in the next
  10076. release, but be deprecated in the future release.
  10077. * src/TorrentRequestInfo.h
  10078. (TorrentRequestInfo): Removed const qualifier from op.
  10079. * src/PeerStat.h
  10080. (uploadSpeed): New variable.
  10081. (PeerStat): Added default value to cuid.
  10082. (calculateUploadSpeed): New function.
  10083. (updateUploadLength): New function.
  10084. (getMaxUploadSpeed): New function.
  10085. (getAvgUploadSpeed): New function.
  10086. (reset): Added uploadSpeed. Set status to IDLE.
  10087. * src/TorrentDownloadEngine.h
  10088. (cp): Declared as Time.
  10089. (sessionDownloadLengthArray): Removed.
  10090. (sessionUploadLengthArray): Removed.
  10091. (currentCp): Removed.
  10092. (lastCalcStat): New variable
  10093. (lastElapsed): Removed.
  10094. (sessionDownloadLength): Removed.
  10095. (calculateStat): New function.
  10096. * src/TorrentDownloadEngine.cc
  10097. (initStatistics): Removed lastElapsed, cp[],
  10098. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10099. currentCp, sessionDownloadLength.
  10100. Added cp.reset() and lastCalcStat.reset().
  10101. (calculateSpeed): Changed the name of the argument.
  10102. (calculateStatistics): Rewritten.
  10103. (calculateStat): New function.
  10104. * src/Peer.h
  10105. (PeerStat.h): Included.
  10106. (peerUpload): Removed.
  10107. (peerDownload): Removed.
  10108. (peerStat): New variable.
  10109. (sessionUploadLength): New variable.
  10110. (sessionDownloadLength): New variable.
  10111. (deltaUpload): Removed.
  10112. (deltaDownload): Removed.
  10113. (resetStatus): Made private.
  10114. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10115. Removed peerUpload, peerDownload.
  10116. (updateUploadLength): New function.
  10117. (addDeltaUpload): Removed.
  10118. (updateDownloadLength): New function.
  10119. (resetDeltaUpload): Removed.
  10120. (getDeltaUpload): Removed.
  10121. (addDeltaDownload): Removed.
  10122. (calculateUploadSpeed): New function.
  10123. (resetDeltaDownload): Removed.
  10124. (getDeltaDownload): Removed.
  10125. (calculateDownloadSpeed): New function.
  10126. (getSessionUploadLength): New function.
  10127. (getSessionDownloadLength): New function.
  10128. (activate): New function.
  10129. (deactivate): New function.
  10130. (addPeerUpload): Removed.
  10131. (setPeerUpload): Removed.
  10132. (getPeerUpload): Removed.
  10133. (addPeerDownload): Removed.
  10134. (setPeerDownload): Removed.
  10135. (getPeerDownload): Removed.
  10136. * src/Peer.cc
  10137. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10138. * src/MetalinkRequestInfo.h
  10139. (MetalinkRequestInfo): Removed const qualifier from op.
  10140. * src/RequestInfo.h
  10141. (op): Removed const qualifier.
  10142. (RequestInfo): Removed const qualifier from op.
  10143. * src/prefs.h
  10144. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10145. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10146. * src/PeerInteractionCommand.cc
  10147. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10148. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10149. * src/PeerInteraction.cc
  10150. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10151. * src/main.cc
  10152. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10153. Added the description of "--max-download-limit" option.
  10154. Removed the description of "--upload-limit" option.
  10155. Added the description of "--max-upload-limit" option.
  10156. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10157. Added "--max-download-limit" option and "--max-upload-limit" option.
  10158. Added the warning message if "--upload-limit" option is used.
  10159. * src/DownloadCommand.cc
  10160. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10161. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. To rewrite segment download mechanism for HTTP/FTP download.
  10163. Use BitfieldMan to manage segment download.
  10164. * src/HttpResponseCommand.h
  10165. (executeInternal): Pass the reference of segment.
  10166. * src/AbstractCommand.cc
  10167. (prepareForRetry): Call segmentMan->cancelSegment here.
  10168. (onAbort): Call segmentMan->cancelSegment here.
  10169. * src/HttpDownloadCommand.cc
  10170. (prepareForNextSegment): New function.
  10171. * src/DownloadEngineFactory.cc
  10172. (newConsoleEngine): Removed splitter.
  10173. (newTorrentConsoleEngine): Removed splitter.
  10174. * src/Request.h
  10175. (segment): Renamed from seg.
  10176. * src/FtpInitiateConnectionCommand.h
  10177. (executeInternal): Pass the reference of segment.
  10178. * src/AbstractCommand.h
  10179. (executeInternal): Pass the reference of segment.
  10180. * src/pref.h
  10181. (PREF_SEGMENT_SIZE): New definition.
  10182. * src/HttpProxyRequestCommand.h
  10183. (executeInternal): Pass the reference of segment.
  10184. * src/HttpResponseCommand.cc
  10185. (checkResponse): Allowed status 206 when a request range starts 0.
  10186. (handleDefaultEncoding): Rewritten the code related to Segment.
  10187. (handleOtherEncoding): Rewritten the code related to Segment.
  10188. * src/SegmentMan.h
  10189. (SegmentEntry): New class.
  10190. (SegmentEntries): New type definition.
  10191. (bitfield): New variable.
  10192. (usedSegmentEntries): New variable.
  10193. (onNullBitfield): New function.
  10194. (checkoutSegment): New function.
  10195. (segments): Removed.
  10196. (splitter): Removed.
  10197. (unregisterId): Removed.
  10198. (getSegment): New function(overload)
  10199. (getDownloadedSize): Removed.
  10200. (cancelSegment): New function.
  10201. (completeSegment): New function.
  10202. (initBitfield): New function.
  10203. (hasSegment): New function.
  10204. (getDownloadLength): New function.
  10205. * src/BitfieldMan.h
  10206. (getStartIndex): New function.
  10207. (getEndIndex): New function.
  10208. (getMissingUnusedIndex): New function(overload).
  10209. (getSparseMissingUnusedIndex): New function.
  10210. * src/BitfieldMan.cc
  10211. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10212. (getMissingUnusedIndex): New function(overload).
  10213. (Range): New class.
  10214. (getStartIndex): New function.
  10215. (getEndIndex): New function.
  10216. (getSparseMissingUnusedIndex): New function.
  10217. (isBitSetInternal): Return false if the given index is less than 0.
  10218. * src/HttpInitiateConnectionCommand.h
  10219. (executeInternal): Pass the reference of segment.
  10220. * src/FtpNegotiateCommand.h
  10221. (executeInternal): Pass the reference of segment.
  10222. * src/FtpNegotiateCommand.cc
  10223. (recvSize): Initialize bitfield here.
  10224. * src/FtpTunnelResponseCommand.h
  10225. (executeInternal): Pass the reference of segment.
  10226. * src/HttpConnection.cc
  10227. (createRequest): Rewritten range header processing.
  10228. * src/DownloadCommand.h
  10229. (executeInternal): Pass the reference of segment.
  10230. (prepareForRetry): Removed.
  10231. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10232. function.
  10233. * src/main.cc
  10234. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10235. * src/SegmentMan.cc
  10236. (SegmentMan): Added bitfield. Removed splitter.
  10237. (~SegmentMan): Added bitfield. Removed splitter.
  10238. (unregisterId): Removed.
  10239. (getSegment): Rewritten.
  10240. (updateSegment): Rewritten.
  10241. (save): Rewritten.
  10242. (read): Rewritten.
  10243. (finished): Rewritten.
  10244. (getDownloadedSize): Removed.
  10245. (initBitfield): New function.
  10246. (FindSegmentEntryByIndex): New function object.
  10247. (FindSegmentEntryByCuid): New function object.
  10248. (checkoutSegment): New function.
  10249. (onNullBitfield): New function.
  10250. (getSegment): New function(overload).
  10251. (CancelSegment): New function object.
  10252. (cancelSegment): New function.
  10253. (completeSegment): New function.
  10254. (hasSegment): New function.
  10255. (getDownloadLength): New function.
  10256. * src/FtpInitiateConnectionCommand.cc
  10257. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10258. * src/Segment.h: Rewritten.
  10259. * src/Segment.cc (operator<<): New function.
  10260. * src/HttpDownloadCommand.h
  10261. (prepareForNextSegment): New function.
  10262. * src/Request.cc
  10263. (resetUrl): Made segment null.
  10264. * src/DownloadEngine.cc
  10265. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10266. * src/HttpProxyRequestCommand.h
  10267. (executeInternal): Pass the reference of segment.
  10268. * src/DownloadCommand.cc
  10269. (executeInternal): Rewritten the code related to Segment.
  10270. (prepareForRetry): Removed.
  10271. (prepareForNextSegment): Rewritten.
  10272. * src/FtpTunnelResponseCommand.h
  10273. (executeInternal): Pass the reference of segment.
  10274. To add HTTP 1.1 persistent connection support(experimental)
  10275. * src/HttpRequestCommand.cc
  10276. (executeInternal): Disable keep alive if it is disabled by
  10277. configuration.
  10278. * src/Request.h
  10279. (keepAlive): New variable.
  10280. (isKeepAlive): New function.
  10281. (setKeepAlive): New function.
  10282. * src/pref.h
  10283. (PREF_HTTP_KEEP_ALIVE): New definition.
  10284. * src/HttpResponseCommand.cc
  10285. (executeInternal): Check the remote server supports keep alive.
  10286. * src/HttpConnection.cc
  10287. (createRequest): Send "Connection: close" only if keep alive is
  10288. disabled.
  10289. * src/main.cc
  10290. (main):
  10291. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10292. To add max download speed limit:
  10293. * src/pref.h
  10294. (PREF_MAX_SPEED_LIMIT): New definition.
  10295. * src/PeerInteractionCommand.cc
  10296. (executeInternal): Added max download speed limit. Not tested yet.
  10297. * src/SegmentMan.h
  10298. (PeerStats): New type definition.
  10299. (peerStats): New variable.
  10300. (registerPeerStat): New function.
  10301. (FindPeerStat): New function object.
  10302. (getPeerStat): New function.
  10303. (calculateDownloadSpeed): New function.
  10304. * src/SpeedCalc.h: New class.
  10305. * src/SpeedCalc.cc: New class.
  10306. * src/main.cc
  10307. (main):
  10308. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10309. download speed is not restricted).
  10310. * src/PeerStat.h: New class.
  10311. * src/SegmentMan.cc
  10312. (registerPeerStat): New function.
  10313. (calculateDownloadSpeed): New function.
  10314. * src/DownloadCommand.cc
  10315. (STARTUP_IDLE_TIME): New definition.
  10316. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10317. downloadStart.
  10318. (~DownloadCommand): Call peerStat->downloadStop.
  10319. (executeInternal): Added download speed limitter. Rewritten lowest
  10320. speed limitter.
  10321. * src/HttpConnection.cc
  10322. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10323. * src/AbstractCommand.cc
  10324. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10325. Added hostname to the error message.
  10326. * src/ConsoleDownloadEngine.cc
  10327. (calculateStatistics): Initialize psize with dlSize.
  10328. * src/PieceMessage.cc
  10329. (receivedAction): Do not call peerInteraction->abortPiece here.
  10330. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10331. * src/BitfieldMan.h
  10332. (clearAllUseBit): New function.
  10333. (setAllUseBit): New function.
  10334. * src/BitfieldMan.cc
  10335. (clearAllBit): Do not clear useBitfield here.
  10336. (clearAllUseBit): New function.
  10337. (setAllUseBit): New function.
  10338. * src/Piece.cc
  10339. (clearAllBlock): Call bitfield->clearAllUseBit().
  10340. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10341. To make filename URL-decoded:
  10342. * src/HttpResponseCommand.h: Updated doc.
  10343. * src/HttpResponseCommand.cc
  10344. (determinFilename): Made filename URL-decoded.
  10345. * src/FtpInitiateConnectionCommand.cc
  10346. (executeInternal): Made filename URL-decoded.
  10347. * src/Util.h (urldecode): New function.
  10348. * src/Util.cc (urldecode): New function.
  10349. To fix a bug that caused assertion failure in ares_strerror:
  10350. * src/NameResolver.cc (callback): Fixed the bug.
  10351. * Release 0.7.3
  10352. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. To add --seed-time and --seed-ratio command-line option:
  10354. * src/Option.h (getAsDouble): New function.
  10355. * src/Option.cc (getAsDouble): New function.
  10356. * src/SeedCheckCommand.h: New class.
  10357. * src/SeedCheckCommand.cc: New class.
  10358. * src/DownloadEngineFactory.cc
  10359. (SeedCheckCommand.h): Included.
  10360. (UnionSeedCriteria.h): Included.
  10361. (TimeSeedCriteria.h): Included.
  10362. (ShareRatioSeedCriteria.h): Included.
  10363. (newTorrentConsoleEngine): Added the processing of seed option.
  10364. * src/SeedCriteria.h: New class.
  10365. * src/ShareRatioSeedCriteria.h: New class.
  10366. * src/TimeSeedCriteria.h: New class.
  10367. * src/UnionSeedCriteria.h: New class.
  10368. * src/prefs.h
  10369. (PREF_SEED_TIME): New definition.
  10370. (PREF_SEED_RATIO): New definition.
  10371. * src/main.cc
  10372. (showUsage): Added --seed-time and --seed-ratio option.
  10373. (main): Added --seed-time and --seed-ratio option.
  10374. Made default log file name "/dev/null".
  10375. * src/SharedHandle.h
  10376. (SharedHandle): Copy constructor. Made it assignable from the
  10377. SharedHandle of the subclasses.
  10378. (operator=): Made it assignable from the SharedHandle of the
  10379. subclasses.
  10380. (getRefCount): New function.
  10381. To add notice log level and the switch to write log to stdout. This
  10382. switch is configurable per log level.
  10383. * src/Logger.h
  10384. (notice): New function.
  10385. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10386. constant.
  10387. * src/LogFactory.cc
  10388. (getInstance): The use of NullLogger was removed. A log message with
  10389. notice log level was made written to stdout along with log file.
  10390. * src/NullLogger.h
  10391. (notice): New function.
  10392. * src/SimpleLogger.h
  10393. (writeHeader): Added the 'file' argument.
  10394. (writeLog): Added the 'file' argument.
  10395. (writeFile): New function.
  10396. (stdoutField): New variable.
  10397. (SimpleLogger): Removed the default constructor.
  10398. (SimpleLogger): Made the default value of logfile 0.
  10399. (debug): Added 'virtual' keyword.
  10400. (info): Added 'virtual' keyword.
  10401. (warn): Added 'virtual' keyword.
  10402. (error): Added 'virtual' keyword.
  10403. (notice): New function.
  10404. (setStdout): New function.
  10405. * src/SimpleLogger.cc
  10406. (WRITE_LOG): Replaced writeLog with writeFile.
  10407. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10408. (SimpleLogger): Removed the default constructor.
  10409. (setStdout): New function.
  10410. (writeLog): Added the handling of NOTICE log level.
  10411. (writeFile): New function.
  10412. (notice): New function.
  10413. * src/TorrentMan.h: Updated doc.
  10414. * src/BitfieldMan.h: Updated doc.
  10415. * src/TrackerWatcherCommand.cc
  10416. (execute): Return true if error occurred in the request to the tracker
  10417. and halt is requested.
  10418. * src/TrackerUpdateCommand.cc
  10419. (execute): Return true if error occurred in the request to the tracker
  10420. and halt is requested.
  10421. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10422. DownloadEngine:
  10423. * src/TorrentConsoleDownloadEngine.h
  10424. (onSelectiveDownloadingCompletes): Removed.
  10425. * src/TorrentConsoleDownloadEngine.cc
  10426. (onSelectiveDownloadingCompletes): Removed.
  10427. * src/TorrentDownloadEngine.h
  10428. (onEndOfRun): Added 'virtual' keyword.
  10429. (afterEachIteration): Removed.
  10430. (onSelectiveDownloadingCompletes): Removed.
  10431. * src/TorrentDownloadEngine.cc
  10432. (onEndOfRun): Removed filenameFixed.
  10433. (afterEachIteration): Removed.
  10434. * src/TorrentMan.cc
  10435. (completePiece): Call onDownloadComplete here.
  10436. (onDownloadComplete): Added 2 log messages.
  10437. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10439. * src/NameResolver.h: Added the prototype declaration of callback().
  10440. To support c-ares library:
  10441. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10442. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10443. * src/FtpInitiateConnectionCommand.h:
  10444. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10445. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10446. * src/HttpInitiateConnectionCommand.h:
  10447. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10448. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10449. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10450. #1542285 by tizianomueller)
  10451. * src/HttpInitiateConnectionCommand.cc:
  10452. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10453. * src/FtpInitiateConnectionCommand.cc:
  10454. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10455. * src/DownloadEngine.h:
  10456. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10457. * src/DownloadEngine.cc:
  10458. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10459. To fix the bug that causes compilation failure with metalink-support
  10460. disabled(bug#1543587):
  10461. * src/main.cc: Fixed with the patch by tizianomueller.
  10462. * Release 0.7.2
  10463. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. * src/main.cc
  10465. (main): Added a message to inform users that aria2 is starting to
  10466. verify checksum.
  10467. * src/RequestInfo.cc
  10468. (printDownloadAbortMessage): Added a message to inform users that
  10469. transfer can be resumed.
  10470. * src/FeatureConfig.cc
  10471. (FEATURE_ASYNC_DNS): New definition.
  10472. (FeatureConfig): Added aysnc DNS entry.
  10473. To replace CommandUuid with Command* in SocketEntry and
  10474. NameResolverEntry:
  10475. * src/DownloadEngine.h
  10476. (CommandUuids): Removed.
  10477. (SocketEntry::commandUuid): Removed.
  10478. (SocketEntry::command): New variable.
  10479. (SocketEntry::SocketEntry): Updated.
  10480. (SocketEntry::operator==): Updated.
  10481. (NameResolverEntry::commandUuid): Removed.
  10482. (NameResolverEntry::command): New variable.
  10483. (NameResolverEntry::NameResolverEntry): Updated.
  10484. (NameResolverEntry::operator==): Updated.
  10485. (waitData): Changed the argument type.
  10486. (addSocketForReadCheck): Changed the argument type.
  10487. (deleteSocketForReadCheck): Changed the argument type.
  10488. (addSocketForWriteCheck): Changed the argument type.
  10489. (deleteSocketForWriteCheck): Changed the argument type.
  10490. (addNameResolverCheck): Changed the argument type.
  10491. (deleteNameResolverCheck): Changed the argument type.
  10492. * src/DownloadEngine.cc
  10493. (FindCommand): Removed.
  10494. (run): Removed activeUuid. Added activeCommands instead.
  10495. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10496. (AccumulateActiveCommand): New function object.
  10497. (waitData): Use AccumulateActiveCommand.
  10498. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10499. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10500. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10501. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10502. (addNameResolverCheck): Use Command instead of CommandUuid.
  10503. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10504. * src/AbstractCommand.cc
  10505. (disableReadCheckSocket): Updated according to the changes in
  10506. DownloadEngine.
  10507. (setReadCheckSocket): Updated according to the changes in
  10508. DownloadEngine.
  10509. (disableWriteCheckSocket): Updated according to the changes in
  10510. DownloadEngine.
  10511. (setWriteCheckSocket): Updated according to the changes in
  10512. DownloadEngine.
  10513. (setNameResolverCheck): Updated according to the changes in
  10514. DownloadEngine.
  10515. (disableNameResolverCheck): Updated according to the changes in
  10516. DownloadEngine.
  10517. * src/AbstractCommand.cc
  10518. (disableReadCheckSocket): Updated according to the changes in
  10519. DownloadEngine.
  10520. (setReadCheckSocket): Updated according to the changes in
  10521. DownloadEngine.
  10522. (disableWriteCheckSocket): Updated according to the changes in
  10523. DownloadEngine.
  10524. (setWriteCheckSocket): Updated according to the changes in
  10525. DownloadEngine.
  10526. * release 0.7.1
  10527. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. To handle the case where some BitTorrent tracker requires all letters
  10529. except for [A-Za-z0-9] is URL encoded.
  10530. * src/Util.h
  10531. (torrentUrlencode): New function.
  10532. * src/Util.cc
  10533. (ctype.h): Included.
  10534. (torrentUrlencode): New function.
  10535. * src/TrackerWatcherCommand.cc
  10536. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10537. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. To add asynchronous DNS support(libares):
  10539. * src/AbstractCommand.h
  10540. (setNameResolverCheck): New function.
  10541. (disableNameResolverCheck): New function
  10542. (resolveHostname): New function.
  10543. * src/AbstractCommand.cc
  10544. (setNameResolverCheck): New function.
  10545. (disableNameResolverCheck): New function
  10546. (resolveHostname): New function.
  10547. * src/FtpInitiateConnectionCommand.h
  10548. (nameResolver): New function.
  10549. * src/FtpInitiateConnectionCommand.cc
  10550. (Util.h): Included.
  10551. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10552. disableWriteCheckSocket.
  10553. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10554. (executeInternal): Added async DNS support.
  10555. * src/HttpInitiateConnectionCommand.h
  10556. (nameResolver): New function.
  10557. * src/HttpInitiateConnectionCommand.cc
  10558. (DlRetryEx.h): Included.
  10559. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10560. disableWriteCheckSocket.
  10561. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10562. (executeInternal): Added async DNS support.
  10563. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10564. by extern "C" declaration.
  10565. * src/NameResolver.cc: New class.
  10566. * src/Util.h:
  10567. (isNumberAndDotsNotation): New function
  10568. * src/Util.cc
  10569. (isNumberAndDotsNotation): New function.
  10570. * src/DownloadEngine.h
  10571. (NameResolver.h): Included.
  10572. (NameResolverEntry): New class.
  10573. (NameResolverEntries): New type definition.
  10574. (addNameResolverCheck): New function.
  10575. (deleteNameResolverCheck): New function.
  10576. * src/DownloadEngine.cc
  10577. (run): Initialize cp with 0.
  10578. (SetDescriptor::operator()): Added for NameResolverEntry.
  10579. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10580. (waitData): Check nameResolver entries.
  10581. (updateFdSet): Update fds in nameResolver entries.
  10582. (addNameResolverCheck): New function.
  10583. (deleteNameResolverCheck): new function.
  10584. * src/PeerInteractionCommand.cc
  10585. (executeInternal): Fixed wrong socket handling.
  10586. * src/main.cc
  10587. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10588. * src/Util.cc
  10589. (fileChecksum): Removed the call to ctx.digestReset().
  10590. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. * po/ru.po: Azamat sent me Russian translation.
  10592. * src/FtpNegotiateCommand.cc
  10593. (recvGreeting): Call disableWriteCheckSocket just after
  10594. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10595. (recvRetr): Recognized status code 125 as a acceptable response code.
  10596. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10597. case-insesitive filesystem(BUG#1531057).
  10598. * src/Time.h: Renamed as TimeA2.h.
  10599. * src/Time.cc: Renamed as TimeA2.cc.
  10600. * src/TimeA2.h: New class.
  10601. * src/TimeA2.cc: New class.
  10602. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10603. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10604. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10605. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10606. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10607. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10608. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10609. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10610. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10611. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10612. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10613. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10614. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10615. * release 0.7.0
  10616. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10617. * src/PeerChokeCommand.h
  10618. (PeerChokeCommand): Rearranged the arguments.
  10619. * src/PeerChokeCommand.cc
  10620. (PeerChokeCommand): Rearranged the arguments.
  10621. * src/MetalinkEntry.h
  10622. (Checksum.h): Included.
  10623. (md5): Removed.
  10624. (sha1): Removed.
  10625. (checksum): New variable.
  10626. (operator=): Updated.
  10627. (check): Removed.
  10628. * src/prefs.h
  10629. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10630. (PREF_FOLLOW_TORRENT): New definition.
  10631. (PREF_SELECT_FILE): New definition.
  10632. (PREF_FOLLOW_METALINK): New definition.
  10633. * src/MetalinkResource.h
  10634. (TYPE_HTTPS): Added to enum TYPE.
  10635. * src/TorrentMan.cc
  10636. (~TorrentMan): Rewritten.
  10637. * src/MultiDiskWriter.cc
  10638. (MultiDiskAdaptor): Updated according to the changes in
  10639. MessageDigestContext.
  10640. (~MultiDiskAdaptor): Updated according to the changes in
  10641. MessageDigestContext.
  10642. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10643. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10644. * src/Util.h
  10645. (fileChecksum): Updated according to the changes in
  10646. MessageDigestContext.
  10647. * src/Util.cc
  10648. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10649. (fileChecksum): Updated according to the changes in
  10650. MessageDigestContext.
  10651. * src/messageDigest.h: Rewritten.
  10652. * src/MetalinkEntry.cc
  10653. (check): Removed.
  10654. (Supported): Updated.
  10655. (dropUnsupportedResource): Fixed a memory leak.
  10656. * src/ShaVisitor.cc
  10657. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10658. (~ShaVisitor): Updated according to the changes in
  10659. MessageDigestContext.
  10660. (visit): Updated according to the changes in MessageDigestContext.
  10661. * src/main.cc
  10662. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10663. command-line option added.
  10664. * src/DownloadEngine.h
  10665. (SocketEntry): New class.
  10666. (SocketEntries): New definition.
  10667. (PairFind): Removed.
  10668. (SockCmdMap): Removed.
  10669. * src/DownloadEngine.cc
  10670. (DownloadEngine): Rewritten.
  10671. (~DownloadEngine): Rewritten.
  10672. (run): Renamed activeCommandUuids as activeUuids.
  10673. (SetDescriptor): Rewritten.
  10674. (AccumulateActiveCommandUuid): Removed.
  10675. (AccumulateActiveUuid): New function object.
  10676. (waitData): Rewritten.
  10677. (updateFdSet): Rewritten.
  10678. (addSocket): Rewritten.
  10679. (deleteSocket): Rewritten.
  10680. (addSocketForReadCheck): Rewritten.
  10681. (deleteSocketForReadCheck): Rewritten.
  10682. (addSocketForWriteCheck): Rewritten.
  10683. (deleteSocketForWriteCheck): Rewritten.
  10684. * src/Xml2MetalinkProcessor.cc
  10685. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10686. * src/DownloadCommand.cc
  10687. (executeInternal): Added the check routine for lowest speed limit.
  10688. * src/AbstractDiskWriter.cc
  10689. (AbstractDiskWriter): Updated according to the changes in
  10690. MessageDigestContext.
  10691. (~AbstractDiskWriter): Updated according to the changes in
  10692. MessageDigestContext.
  10693. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10694. * src/RequestInfo.h: New class.
  10695. * src/UrlRequestInfo.h: New class.
  10696. * src/UrlRequestInfo.cc: New class.
  10697. * src/TorrentRequestInfo.h: New class.
  10698. * src/TorrentRequestInfo.cc: New class.
  10699. * src/MetalinkRequestInfo.h: New class.
  10700. * src/MetalinkRequestInfo.cc: New class.
  10701. * src/Checksum.h: New class.
  10702. * src/DownloadEngineFactory.h: New class.
  10703. * src/DownloadEngineFactory.cc: New class.
  10704. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. * src/Option.h
  10706. (getAsBool): New function.
  10707. * src/Option.cc
  10708. (prefs.h): Included.
  10709. (defined): 0-length value is now recognized as undefined.
  10710. (getAsInt): Rewritten.
  10711. (getAsLLInt): Rewritten.
  10712. (getAsBool): New function.
  10713. * src/FeatureConfig.h: Rewritten.
  10714. * src/FeatureConfig.cc: Rewritten.
  10715. * src/prefs.h
  10716. (PREF_STDOUT_LOG): New definition.
  10717. (PREF_LOG): New definition.
  10718. (PREF_DIR): New definition.
  10719. (PREF_OUT): New definition.
  10720. (PREF_SPLIT): New definition.
  10721. (PREF_DAEMON): New definition.
  10722. (PREF_REFERER): New definition.
  10723. (PREF_TORRENT_FILE): New definition.
  10724. (PREF_LISTEN_PORT): New definition.
  10725. (PREF_METALINK_FILE): New definition.
  10726. (PREF_METALINK_VERSION): New definition.
  10727. (PREF_METALINK_LANGUAGE): New definition.
  10728. (PREF_METALINK_OS): New definition.
  10729. (PREF_METALINK_SERVERS): New definition.
  10730. * src/main.cc
  10731. (main): Following command-line parameters are now put into Option
  10732. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10733. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10734. metalinkLanguage, metalinkOs, metalinkServers
  10735. To fix the bug that aria2 can not handle http response header properly.
  10736. * src/HttpHeader.cc
  10737. (put): Made name lowercased.
  10738. (defined): Made name lowercased.
  10739. (getFirst): Made name lowercased.
  10740. (get): Made name lowercased.
  10741. (getFirstAsInt): Rewritten.
  10742. (getFirstAsLLInt): Rewritten.
  10743. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. * src/TorrentMan.h:
  10745. (advertisePiece): Updated doc.
  10746. (getAdvertisedPieceIndexes): Updated doc.
  10747. (removeAdvertisedPiece); New function.
  10748. * src/TorrentMan.cc
  10749. (FindElapsedHave): New function object.
  10750. (removeAdvertisedPiece): New function.
  10751. * src/HaveEraseCommand.h: New class.
  10752. * src/HaveEraseCommand.cc: New class.
  10753. * src/FeatureConfig.h: New class.
  10754. * src/FeatureConfig.cc: New class.
  10755. * src/Request.h
  10756. (defaultPorts): Removed.
  10757. * src/Request.cc
  10758. (FeatureConfig.h): Included.
  10759. (Request): Removed the statements related to defaultPorts.
  10760. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10761. A default port number is now retrieved from FeatureConfig.
  10762. * src/main.cc
  10763. (HaveEraseCommand.h): Included.
  10764. (showVersion): Added the output of feature list.
  10765. (main): Added HaveEraseCommand to command queue in BitTorrent
  10766. downloading.
  10767. * src/PeerInteractionCommand.h
  10768. (chokeCheckPoint): Commented out.
  10769. (periodicExecPoint): New variable.
  10770. * src/PeerInteractionCommand.cc
  10771. (executeInternal): Following methods are now called in at least every
  10772. 0.5 seconds to reduce CPU usage:
  10773. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10774. checkHave(), sendKeepAlive().
  10775. (checkLongTimePeerChoking): Commented out.
  10776. * src/BitfieldMan.h
  10777. (getNthBitIndex): Changed the method signature.
  10778. (getMissingIndexRandomly): Changed the method signature.
  10779. * src/BitfieldMan.cc
  10780. (getNthBitIndex): Rewritten
  10781. (getMissingIndexRandomly): Rewritten.
  10782. (hasMissingPiece): Rewritten.
  10783. (getMissingIndex): Refactored.
  10784. (getMissingUnusedIndex); Refactored.
  10785. (getMissingIndex): Refactored.
  10786. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10787. * src/PeerMessage.h
  10788. (Piece.h): Included.
  10789. (SharedHandle.h): Included.
  10790. (invalidate): New variable.
  10791. (uploading): New variable.
  10792. (isInvalidate): New function.
  10793. (isUploading): New function.
  10794. (onPush): New function.
  10795. (onChoked): New function.
  10796. (onCanceled): New function.
  10797. (onAbortPiece): New function.
  10798. (PeerMessageHandle): New type definition.
  10799. * src/PeerMessage.cc
  10800. (PeerMessage): Added the initialization for invalidate and uploading.
  10801. * src/CancelMessage.h
  10802. (CancelMessage): Rewritten.
  10803. * src/RejectMessage.h
  10804. (RejectMessage): Rewritten.
  10805. * src/Metalinker.h
  10806. (operator=): Defined.
  10807. * src/MetaEntry.h
  10808. (operator=): Defined.
  10809. * src/MetalinkResource.h
  10810. (operator=): Defined.
  10811. * src/AllowedFastMessage.h
  10812. (AllowedFastMessage): Rewritten.
  10813. * src/HandshakeMessage.h
  10814. (HandshakeMessage): New function(overload).
  10815. * src/HandshakeMessage.cc
  10816. (HandshakeMessage): Rewritten.
  10817. (init): New function.
  10818. * src/HaveMessage.h
  10819. (HaveMessage): Rewritten.
  10820. * src/Time.h
  10821. (operator=): Defined the function body here.
  10822. * src/Time.cc
  10823. (operator=): Removed.
  10824. * src/SocketCore.h
  10825. (operator==): Defined here.
  10826. (operator!=): Defined here.
  10827. (operator<): Defined here.
  10828. * src/SocketCore.cc
  10829. (operator==): Removed.
  10830. (operator<): Removed.
  10831. * src/BitfieldMan.h
  10832. (operator=): Defined the function body here.
  10833. * src/BitfieldMan.cc
  10834. (operator=): Removed.
  10835. * src/TorrentMan.h
  10836. (deleteErrorPeer): Removed.
  10837. (deleteUnusedPeer); New function.
  10838. * src/TorrentMan.cc
  10839. (addPeer): Call deleteUnusedPeer.
  10840. (deleteErrorPeer): Removed.
  10841. (deleteUnusedPeer): New function.
  10842. * src/PeerAbstractCommand.h
  10843. (setNoCheck): New function.
  10844. (noCheck): New variable.
  10845. * src/PeerAbstractCommand.cc
  10846. (PeerAbstractCommand): Added the initialization of noCheck.
  10847. (execute): Added a check for noCheck.
  10848. (setNoCheck): New function.
  10849. * src/Util.h
  10850. (stdio.h): Included.
  10851. * src/Util.cc
  10852. (unistd.h): Included.
  10853. * src/DefaultDiskWriter.cc
  10854. (unistd.h): Included.
  10855. * src/Peer.h
  10856. (operator==): Defined the function body here.
  10857. (operator!=): Defined the function body here.
  10858. * src/Peer.cc
  10859. (operator==): Removed.
  10860. (operator!=): Removed.
  10861. * src/Piece.h
  10862. (Piece): Defined the function body here(copy constructor).
  10863. (operator=): Defined the function body here.
  10864. (operator==): Defined the function body here.
  10865. * src/Piece.cc
  10866. (Piece): Removed(copy constructor).
  10867. (operator=): Removed.
  10868. (operator==): Removed.
  10869. * src/PeerMessageUtil.h
  10870. (ChokeMessage.h): Removed.
  10871. (UnchokeMessage.h): Removed.
  10872. (InterestedMessage.h): Removed.
  10873. (NotInterestedMessage.h): Removed.
  10874. (HaveMessage.h): Removed.
  10875. (BitfieldMessage.h): Removed.
  10876. (RequestMessage.h): Removed.
  10877. (CancelMessage.h): Removed.
  10878. (PieceMessage.h): Removed.
  10879. (HandshakeMessage.h): Removed.
  10880. (KeepAliveMessage.h): Removed.
  10881. (PortMessage.h): Removed.
  10882. (HaveAllMessage.h): Removed.
  10883. (HaveNoneMessage.h): Removed.
  10884. (PeerConnection.h): Removed.
  10885. (HandshakeMessage.h): Included.
  10886. * src/BitfieldMessage.h
  10887. (init): New function.
  10888. (BitfieldMessage): Rewritten.
  10889. (BitfieldMessage): New function(overload).
  10890. * src/RequestSlot.h
  10891. (operator=): Defined the function body here.
  10892. (operator==): Defined the function body here.
  10893. * src/RequestSlot.cc
  10894. (operator=): Removed.
  10895. (operator==): Removed.
  10896. To remove the dependency on the PeerMessage subclass from
  10897. PeerInteraction:
  10898. * src/PeerMessageFactory.h: New class.
  10899. * src/PeerMessageFactory.cc: New class.
  10900. * src/SimplePeerMessage.cc
  10901. (send): If invalidate is true then do nothing.
  10902. * src/PeerInteractionCommand.cc
  10903. (HandshakeMessage.h): Included.
  10904. (KeepAliveMessage.h): Included.
  10905. (ChokeMessage.h): Included.
  10906. (UnchokeMessage.h): Included.
  10907. (HaveMessage.h): Included.
  10908. (executeInternal): Call setNoCheck().
  10909. Removed setWriteCheckSocket(socket).
  10910. * src/PeerInteraction.h
  10911. (ChokeMessage.h): Removed.
  10912. (UnchokeMessage.h): Removed.
  10913. (InterestedMessage.h): Removed.
  10914. (NotInterestedMessage.h): Removed.
  10915. (HaveMessage.h): Removed.
  10916. (BitfieldMessage.h): Removed.
  10917. (RequestMessage.h): Removed.
  10918. (CancelMessage.h): Removed.
  10919. (PieceMessage.h): Removed.
  10920. (HandshakeMessage.h): Removed.
  10921. (KeepAliveMessage.h): Removed.
  10922. (PortMessage.h): Removed.
  10923. (HaveAllMessage.h): Removed.
  10924. (HaveNoneMessage.h): Removed.
  10925. (RejectMessage.h): Removed.
  10926. (AllowedFastMessage.h): Removed.
  10927. (SuggestPieceMessage.h): Removed.
  10928. (PeerMessageFactory.h): Included.
  10929. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10930. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10931. (PeerMessageFactory): New variable.
  10932. (createPeerMessage): Removed.
  10933. (createHandshakeMessage): Removed.
  10934. (setPeerMessageCommonProperty): Removed.
  10935. (addRequestSlot): New function.
  10936. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10937. (getPeerMessageFactory): New function.
  10938. (createRequestMessage): Removed.
  10939. (createCancelMessage): Removed.
  10940. (createPieceMessage): Removed.
  10941. (createHaveMessage): Removed.
  10942. (createChokeMessage): Removed.
  10943. (createUnchokeMessage): Removed.
  10944. (createInterestedMessage): Removed.
  10945. (createNotInterestedMessage): Removed.
  10946. (createBitfieldMessage): Removed.
  10947. (createKeepAliveMessage): Removed.
  10948. (createHaveAllMessage): Removed.
  10949. (createHaveNoneMessage): Removed.
  10950. (createRejectMessage): Removed.
  10951. (createAllowedFastMessage): Removed.
  10952. * src/PeerInteraction.cc
  10953. (PeerInteraction): Allocate PeerMessageFactory here.
  10954. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10955. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10956. PieceMessage::ID.
  10957. (addMessage): Simplified by using PeerMessage::onPush().
  10958. (addRequestSlot): New function.
  10959. (rejectAllPieceMessageInQueue): Simplified by using
  10960. PeerMessage::onChoked().
  10961. (rejectPieceMessageInQueue): Simplified by using
  10962. PeerMessage::onCanceled().
  10963. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10964. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10965. (createHandshakeMessage): Removed.
  10966. (createPeerMessage): Removed.
  10967. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10968. (setPeerMessageCommonProperty): Removed.
  10969. (createRequestMessage): Removed.
  10970. (createCancelMessage): Removed.
  10971. (createPieceMessage): Removed.
  10972. (createHaveMessage): Removed.
  10973. (createChokeMessage): Removed.
  10974. (createUnchokeMessage): Removed.
  10975. (createInterestedMessage): Removed.
  10976. (createNotInterestedMessage): Removed.
  10977. (createBitfieldMessage): Removed.
  10978. (createKeepAliveMessage): Removed.
  10979. (createHaveAllMessage): Removed.
  10980. (createHaveNoneMessage): Removed.
  10981. (createRejectMessage): Removed.
  10982. (createAllowedFastMessage): Removed.
  10983. * src/PieceMessage.h
  10984. (createRejectMessage): New function.
  10985. (PieceMessage): Rewritten.
  10986. (onChoked): New function.
  10987. (onCanceled): New function.
  10988. * src/PieceMessage.cc
  10989. (send): If invalidate is true then do nothing, just return.
  10990. (createRejectMessage): New function.
  10991. (onChoked): New function.
  10992. (onCanceled): New function.
  10993. * src/RequestMessage.h
  10994. (RequestMessage): Rewritten.
  10995. (onPush): New function.
  10996. (onAbortPiece): New function.
  10997. * src/RequestMessage.cc
  10998. (onPush): New function.
  10999. (onAbortPiece): New function.
  11000. Update fd_set when a socket is added or deleted in order to improve
  11001. performance:
  11002. * src/DownloadEngine.h
  11003. (rfdset): New variable.
  11004. (wfdset): New variable.
  11005. (updateFdSet): New function.
  11006. * src/DownloadEngine.cc
  11007. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11008. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11009. (waitData): Copy rfdset and wfdset.
  11010. (updateFdSet): New function.
  11011. (addSocket): Call updateFdSet.
  11012. (deleteSocket): Call updateFdSet.
  11013. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. To add the support for Metalink3.0 backward compatible links:
  11015. * src/Request.h
  11016. (SAFE_CHARS): Added '#'.
  11017. (METALINK_MARK): New definition.
  11018. * src/Request.cc
  11019. (parseUrl): Added the support for Metalink3.0 backward compatible
  11020. links.
  11021. etc
  11022. * src/PeerInteraction.cc
  11023. (MsgPushBack): Removed.
  11024. (sendMessages): Use STL copy and back_inserter.
  11025. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11026. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11027. * src/TorrentMan.h
  11028. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11029. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. * src/SharedHandle.h: New class.
  11031. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11032. * src/HttpResponseCommand.h
  11033. (HttpResponseCommand): Wrapped Socket.
  11034. * src/SocketCore.h
  11035. (operator==): New function.
  11036. (operator!=): New function.
  11037. (operator<): New function.
  11038. (getSockfd): New function.
  11039. (isOpen): New function.
  11040. (writeData): New function.
  11041. * src/SocketCore.cc
  11042. (operator==): New function.
  11043. (operator!=): New function.
  11044. (operator<): New function.
  11045. * src/AbstractCommand.h
  11046. (socket): Changed its type to SocketHandle.
  11047. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11048. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11049. (disableReadCheckSocket): New function.
  11050. (disableWriteCheckSocket): New function.
  11051. (readCheckTarget): Changed its type to SocketHandle.
  11052. (writeCheckTarget): Changed its type to SocketHandle.
  11053. (AbstractCommand): Replaced Socket with SocketHandle.
  11054. * src/AbstractCommand.cc
  11055. (AbstractCommand): Replaced Socket with SocketHandle.
  11056. (~AbstractCommand): Removed the deallocation for Socket object.
  11057. (disableReadCheckSocket): New function.
  11058. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11059. (disableWriteCheckSocket): New function.
  11060. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11061. * src/HttpDownloadCommand.cc
  11062. (DownloadCommand): Replaced Socket with SocketHandle.
  11063. * src/PeerAbstractCommand.h
  11064. (socket): Changed its type to SocketHandle.
  11065. (peer): Changed its type to PeerHandle.
  11066. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11067. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11068. (disableReadCheckSocket): New function.
  11069. (disableWriteCheckSocket): New function.
  11070. (readCheckTarget): Changed its type to SocketHandle.
  11071. (writeCheckTarget): Changed its type to SocketHandle.
  11072. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11073. Replaced Peer with PeerHandle.
  11074. * src/HttpRequestCommand.cc
  11075. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11076. Use disableReadCheckSocket.
  11077. * src/PeerInitiateConnectionCommand.h
  11078. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11079. * src/PeerChokeCommand.cc
  11080. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11081. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11082. (execute): Use PeerHandle.
  11083. * src/PeerConnection.h
  11084. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11085. (socket): Changed its type to SocketHandle.
  11086. (PeerConnection): Replaced Socket with SocketHandle.
  11087. * src/PeerConnection.cc
  11088. (PeerConnection): Replaced Socket with SocketHandle.
  11089. * src/PeerInteractionCommand.h
  11090. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11091. Replaced Peer with PeerHandle.
  11092. * src/PeerInteractionCommand.cc
  11093. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11094. Replaced Peer with PeerHandle.
  11095. (executeInternal): Use disableWriteCheckSocket.
  11096. Use HandshakeMessageHandle.
  11097. (receiveMessages): Use PeerMessageHandle.
  11098. (prepareForNextPeer): Use PeerHandle.
  11099. * src/HttpProxyRequestCommand.h
  11100. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11101. * src/HttpResponseCommand.cc
  11102. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11103. * src/TorrentMan.cc
  11104. (nullPeer): Added external reference.
  11105. (~TorrentMan): Removed the deallocation of the elements of peers.
  11106. (addPeer): Rewritten.
  11107. (isPeerAvailable): Use nullPeer.
  11108. (deleteOldpeers): Replaced with deleteErrorPeer.
  11109. (deleteErrorPeer): New function.
  11110. (getPeer): Use PeerHandle and nullPeer.
  11111. (hasMissingPiece): Replaced Peer with PeerHandle.
  11112. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11113. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11114. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11115. (getMissingPiece): Replaced Peer with PeerHandle.
  11116. * src/FtpNegotiateCommand.cc
  11117. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11118. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11119. (recvGreeting): Use disableWriteCheckSocket.
  11120. (recvPasv): Removed the allocation of Socket.
  11121. Use disableReadCheckSocket.
  11122. (sendRestPasv): Use disableWriteCheckSocket.
  11123. (recvRetr): Changed assertion.
  11124. * src/PeerInteraction.h
  11125. (SharedHandle.h): Included SharedHandle.h.
  11126. (PeerMessageHandle): New type definition.
  11127. (HandshakeMessageHandle): New type definition.
  11128. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11129. (peer): Changed its type to PeerHandle.
  11130. (createHandshakeMessage): Replaced HandshakeMessage with
  11131. HandshakeMessageHandle.
  11132. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11133. (PeerInteraction): Replaced Peer with PeerHandle.
  11134. Replaced Socket with SocketHandle.
  11135. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11136. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11137. (receiveHandshake): Replaced HandshakeMessage with
  11138. HandshakeMessageHandle.
  11139. * src/PeerInteraction.cc
  11140. (PeerInteraction): Replaced Peer with PeerHandle.
  11141. Replaced Socket with SocketHandle.
  11142. (~PeerInteraction): Removed the deallocation of the elements of
  11143. messageQueue.
  11144. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11145. (isSendingMessageInProgress): Replaced PeerMessage with
  11146. PeerMessageHandle.
  11147. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11148. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11149. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11150. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11151. (abortPiece): Use PeerMessageHandle.
  11152. (receiveHandshake): Replaced HandshakeMessage with
  11153. HandshakeMessageHandle. Removed try-catch block.
  11154. (createHandshakeMessage): Replaced HandshakeMessage with
  11155. HandshakeMessageHandle.
  11156. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11157. Removed try-catch block.
  11158. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11159. * src/HttpProxyResponseCommand.cc
  11160. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11161. * src/FtpTunnelResponseCommand.h
  11162. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11163. * src/HttpConnection.cc
  11164. (HttpConnection): Replaced Socket with SocketHandle.
  11165. * src/PeerAbstractCommand.cc
  11166. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11167. (~PeerAbstractCommand): Removed the deallocation of socket.
  11168. Use disableReadCheckSocket, disableWriteCheckSocket.
  11169. (disableReadCheckSocket): New function.
  11170. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11171. (disableWriteCheckSocket): New function.
  11172. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11173. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11174. * src/FtpTunnelRequestCommand.cc
  11175. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11176. (~FtpTunnelRequestCommand): Corrected indentation.
  11177. * src/DownloadCommand.h
  11178. (DownloadCommand): Replaced Socket with SocketHandle.
  11179. * src/PeerListenCommand.cc
  11180. (PeerListenCommand): Removed the initialization of socket.
  11181. (~PeerListenCommand): Removed the deallocation of socket.
  11182. (bindPort): Use SocketHandle.
  11183. (execute): Use SocketHandle and PeerHandle.
  11184. * src/FtpDowndloadCommand.cc
  11185. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11186. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11187. * src/main.cc
  11188. (main): Corrected indentation.
  11189. * src/HttpInitiateConnectionCommand.cc
  11190. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11191. (executeInternal): Removed the allocation of socket.
  11192. * src/HttpRequestCommand.h
  11193. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11194. * src/FtpNegotiationCommand.h
  11195. (dataSocket): Changed its type to SocketHandle.
  11196. (serverSocket): Changed its type to SocketHandle.
  11197. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11198. * src/TorrentMan.h
  11199. (MAX_PEER_UPDATE): Removed.
  11200. (MAX_PEERS): New definition.
  11201. (Peers): The element is now of type PeerHandle.
  11202. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11203. (getPeer): Replaced Peer with PeerHandle.
  11204. (deleteOldErrorPeers): Removed.
  11205. (deleteErrorPeer): New function.
  11206. (hasMissingPiece): Replaced Peer with PeerHandle.
  11207. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11208. (getMissingPiece): Replaced Peer with PeerHandle.
  11209. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11210. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11211. (addActivePeer): Replaced Peer with PeerHandle.
  11212. (deleteActivePeer): Replaced Peer with PeerHandle.
  11213. Added a check for the return value of find.
  11214. * src/FtpTunnelResponseCommand.cc
  11215. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11216. * src/FtpInitiateConnectionCommand.cc
  11217. (executeInternal): Removed the allocation of socket.
  11218. * src/DownloadEngine.h
  11219. (Sockets): An element is now of type SocketHandle.
  11220. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11221. (CommandUuids): New type definition.
  11222. (rsockets): Changed its type to SockCmdMap.
  11223. (wsockets): Changed its type to SockCmdMap.
  11224. (addSocket): Rewritten.
  11225. (deleteSocket): Rewritten.
  11226. (addSocketForReadCheck): Rewritten.
  11227. (deleteSocketForReadCheck): Rewritten.
  11228. (addSocketForWriteCheck): Rewritten.
  11229. (deleteSocketForWriteCheck): Rewritten.
  11230. (PairFind): New template class.
  11231. * src/HttpDownloadCommand.h
  11232. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11233. * src/FtpConnection.cc
  11234. (FtpConnection): Replaced Socket with SocketHandle.
  11235. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11236. block.
  11237. * src/InitiateConnectionCommandFactory.cc
  11238. (DlAbortEx.h): Included DlAbortEx.h.
  11239. (createInitiateConnectionCommand): Throw exception if the protocol of
  11240. requested URI is not supported.
  11241. * src/Peer.cc
  11242. (nullPeer): Changed its type to PeerHandle.
  11243. (operator==): New function.
  11244. (operator!=): New function.
  11245. * src/Peer.h
  11246. (SharedHandle.h): Included SharedHandle.h.
  11247. (operator==): New function.
  11248. (operator!=): New function.
  11249. (Peer): Added the default constructor.
  11250. Use resetStatus() to initialize member variables.
  11251. (nullPeer): Removed.
  11252. * src/TrackerUpdateCommand.cc
  11253. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11254. with MIN_PEERS.
  11255. * src/PeerListenCommand.h
  11256. (socket): Changed its type to SocketHandle.
  11257. * src/Command.h
  11258. (CommandUuid): New type definition.
  11259. (uuid): New variable.
  11260. (uuidGen): New variable.
  11261. (Command): Added the initialization of uuid.
  11262. (getUuid): New function.
  11263. * src/Socket.h
  11264. (Socket): Removed.
  11265. (SocketHandle): New type definition.
  11266. * src/DownloadEngine.h
  11267. (FindCommand): New function object.
  11268. (run): The portion of socket check was rewritten.
  11269. (SetDescriptor): New function object.
  11270. (AccumulateActiveCommandUuid): New function object.
  11271. (waitData): Rewritten.
  11272. (addSocket): Rewritten.
  11273. (deleteSocket): Rewritten.
  11274. (addSocketForReadCheck): Rewritten.
  11275. (addSocketForWriteCheck): Rewritten.
  11276. (deleteSocketForReadCheck): Rewritten.
  11277. (deleteSocketForWriteCheck): Rewritten.
  11278. * src/HttpProxyResponseCommand.h
  11279. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11280. * src/HttpConnection.h
  11281. (socket): Changed its type to SocketHandle.
  11282. (HttpConnection): Replaced Socket with SocketHandle.
  11283. * src/PeerInitiateConnectionCommand.cc
  11284. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11285. (executeInternal): Removed the allocation of socket.
  11286. (prepareForNextPeer): Use PeerHandle.
  11287. * src/PeerMessage.h
  11288. (peer): Changed its type to PeerHandle.
  11289. (getPeer): Replaced Peer with PeerHandle.
  11290. (setPeer): Replaced Peer with PeerHandle.
  11291. * src/DownloadCommand.cc
  11292. (DownloadCommand): Replaced Socket with SocketHandle.
  11293. * src/FtpConnection.h
  11294. (socket): Changed its type to SocketHandle.
  11295. (FtpConnection): Replaced Socket with SocketHandle.
  11296. (sendPort); Replaced Socket with SocketHandle.
  11297. * src/FtpDowndloadCommand.h
  11298. (ctrlSocket): Changed its type to SocketHandle.
  11299. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11300. * src/HttpProxyRequestCommand.cc
  11301. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11302. * src/FtpTunnelRequestCommand.h
  11303. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11304. etc
  11305. * src/PeerChokeCommand.h
  11306. (setAllPeerChoked): Removed.
  11307. (setAllPeerResetDelta): Removed.
  11308. * src/PeerChokeCommand.cc
  11309. (setAllPeerChoked): Removed.
  11310. (ChokePeer): New function object.
  11311. (setAllPeerResetDelta): Removed.
  11312. (ResetDelta): New function object.
  11313. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11314. (execute): Show download speed when the local node is a seeder.
  11315. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11316. using STL.
  11317. * src/TrackerWatcherCommand.h
  11318. (MIN_PEERS): Removed.
  11319. * src/TorrentMan.cc
  11320. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11321. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11322. To fix the bug that .aria2 file is not saved if downloading is stopped
  11323. by the errors:it results that aria2 can not resume downloading:
  11324. * src/main.cc
  11325. (normalDownload): Added the call to save().
  11326. (main): Added the deletion of the elements in 'reserved'.
  11327. To fix log:
  11328. * src/PeerInteraction.cc
  11329. (receiveHandshake): Fixed log.
  11330. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11331. To improve download performance in BitTorrent:
  11332. * src/TorrentMan.cc
  11333. (getPeer): Check the number of connections. Return nullPeer if
  11334. it is greater than MAX_PEER_UPDATE.
  11335. This code was originally here, but was removed in 0.5.1.
  11336. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11337. To improve the conditional compilation:
  11338. * src/MultiDiskWriter.h:
  11339. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11340. * src/MultiDiskWriter.cc:
  11341. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11342. * src/Util.h:
  11343. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11344. Added ENABLE_BITTORRENT around computeFastSet().
  11345. * src/Util.cc:
  11346. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11347. Added ENABLE_BITTORRENT around computeFastSet().
  11348. * src/messageDigest.h:
  11349. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11350. * src/ShaVisitor.h:
  11351. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11352. * src/ShaVisitor.cc:
  11353. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11354. * src/main.cc:
  11355. Added ENABLE_BITTORRENT around includes and blocks related to
  11356. BitTorrent.
  11357. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11358. digest support is not available.
  11359. * src/AbstractDiskWriter.h:
  11360. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11361. * src/AbstractDiskWriter.cc:
  11362. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11363. * src/MetalinkEntry.cc
  11364. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11365. support is not available.
  11366. To add command-line options for Metalink:
  11367. * src/main.cc:
  11368. Added metalink-version, metalink-language, metalink-os,
  11369. follow-metalink.
  11370. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11371. * src/main.cc: Use these definition.
  11372. * Release 0.6.0
  11373. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11374. To add Metalink support(http/ftp only):
  11375. * src/AbstractCommand.h
  11376. (tryReserved): New function.
  11377. * src/AbstractCommand.cc
  11378. (execute): Call tryReserved().
  11379. (tryReserved): New function.
  11380. * src/Request.h
  11381. (Requests): New type definition.
  11382. * src/SegmentMan.h
  11383. (reserved): New variable.
  11384. * src/Util.h
  11385. (fileChecksum): New function.
  11386. (toUpper): New function.
  11387. (toLower): New function.
  11388. * src/Util.cc
  11389. (messageDigest.h): Included.
  11390. (trim): Trim \r\n\t.
  11391. (fileChecksum): New function.
  11392. (toUpper): New function.
  11393. (toLower): New function.
  11394. * src/main.cc
  11395. (normalDownload): New function.
  11396. (main): Added 2 command-line options: metalink-file,
  11397. metalink-connection. Their usage has not been written yet.
  11398. * src/MetalinkProcessor.h: New class.
  11399. * src/Xml2MetalinkProcessor.h: New class.
  11400. * src/Xml2MetalinkProcessor.cc: New class.
  11401. * src/MetalinkEntry.h: New class.
  11402. * src/MetalinkEntry.cc: New class.
  11403. * src/MetalinkResource.h: New class.
  11404. * src/MetalinkResource.cc: New class.
  11405. To add md5 message digest checking:
  11406. * src/messageDigest.h: Rewritten.
  11407. * src/MultiDiskWriter.cc: Updated according to the changes in
  11408. messageDigest.h.
  11409. * src/ShaVisitor.cc: Updated according to the changes in
  11410. messageDigest.h.
  11411. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11412. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11413. messageDigest.h.
  11414. To fix a bug that causes segfault when the payload length in peer
  11415. message is less than 0:
  11416. * src/PeerConnection.cc:
  11417. (receiveMessage): Fixed the bug.
  11418. * src/PeerMessageUtil.cc
  11419. (checkLength): Throw an exception if length is less than or equals to
  11420. 0.
  11421. To add new interfaces to Base64 encoding/decoding:
  11422. * src/Base64.h
  11423. (part_encode): Changed the method signature.
  11424. (encode): New function(overload).
  11425. (decode): New function(overload).
  11426. * src/Base64.cc
  11427. (part_encode): Rewritten.
  11428. (encode): Rewritten.
  11429. (encode): New function(overload).
  11430. To prevent a peer to download same piece if there is an error in
  11431. checksum:
  11432. * src/PieceMessage.cc
  11433. (receivedAction): Call peerInteraction->abortPiece().
  11434. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. To fix the bug that causes same have message is sent many times to
  11436. a single peer.
  11437. * src/Time.cc
  11438. (isNewer): Use Util::difftv().
  11439. * src/Util.cc
  11440. (difftv): Added a cast to (long long int).
  11441. * src/TorrentMan.cc
  11442. (advertisePiece): Use push_front.
  11443. (getAdvertisedPieceIndexes): A performance improvement was made.
  11444. To fix the bug that sends tracker requests without a sleep interval
  11445. when the number of connections is less than 15.
  11446. * src/TrackerWatcherCommand.cc
  11447. (execute): Now the number of connections is not a factor to decide
  11448. whether or not a tracker request should be sent or not.
  11449. * src/Time.h
  11450. (setTimeInSec): New function.
  11451. * src/Time.cc
  11452. (setTimeInSec): New function.
  11453. etc.
  11454. * src/ChokeMessage.cc
  11455. (receivedAction): Removed peer->snubbing = false
  11456. * src/PeerConnection.h
  11457. (receiveHandshake): Updated doc.
  11458. * src/TorrentMan.h
  11459. (getAdvertisedPieceIndexes): Updated the method signature.
  11460. * src/TorrentMan.cc
  11461. (getAdvertisedPieceIndexes): Updated the method signature.
  11462. * src/Time.h
  11463. (getTimeInMicros): Added a cast to (long long int).
  11464. (getTimeInMillis): Added a cast to (long long int).
  11465. * Release 0.5.2
  11466. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. To make a listening socket non-block:
  11468. * src/SocketCore.h
  11469. (setNonBlockingMode): New function.
  11470. * src/SocketCore.cc
  11471. (setNonBlockingMode): New function.
  11472. (beginListen): Added a call to setNonBlockingMode().
  11473. (acceptConnection): Call setNonBlockingMode().
  11474. (setBlockingMode): Updated.
  11475. To handle tracker's NAT-checking:
  11476. * src/PeerConnection.cc
  11477. (receiveHandshake): 'msg' param is filled with received data and
  11478. its length is assigned to 'length' param, even if all handshake
  11479. message is not yet received.
  11480. * src/PeerInteractionCommand.cc
  11481. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11482. a new peer connects to localhost.
  11483. A call to peerInteraction->sendHandshake() was removed because
  11484. it is called from peerInteraction->receiveHandshake(true).
  11485. * src/PeerInteraction.h
  11486. (quickReplied): New variable.
  11487. (receiveHandshake): Added an argument.
  11488. * src/PeerInteraction.cc
  11489. (PeerInteraction): Added the initialization of quickReplied.
  11490. (receiveHandshake): Send handshake message as soon as the info hash
  11491. in a handshake message from a peer is correct.
  11492. To change the random part of peer id and key parameter:
  11493. * src/TorrentMan.h
  11494. (key): New variable.
  11495. * src/TorrentMan.cc
  11496. (setupInternal1): Use Util::randomAlpha() to generate random part
  11497. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11498. key is also generated by Util::randomAlpha() and it is now 8 character
  11499. long.
  11500. * src/Util.h
  11501. (randomAlpha): New function.
  11502. * src/Util.cc
  11503. (randomAlpha): New function.
  11504. * src/TrackerWatcherCommand.cc
  11505. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11506. Added no_peer_id=1.
  11507. Set snubbing flag to false when a choke message is received from a
  11508. snubbed peer.
  11509. * src/ChokeMessage.cc
  11510. (receivedAction): Set snubbing flag to false.
  11511. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11512. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11513. * src/SimpleLogger.h (writeHeader): New function.
  11514. * src/SimpleLogger.cc (writeHeader): New function.
  11515. (writeLog): Fixed the bug that causes segfaults if exception message
  11516. contains an unescaped "%" character.
  11517. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11518. when a tracker request fails.
  11519. * src/Request.cc (parseUrl): Query string is now handled properly.
  11520. * Release 0.5.1
  11521. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. To add Time class which represents a specific instant in time and
  11523. its precision is microseconds. Time checking procedures were rewritten
  11524. using this object.
  11525. * src/Time.h: New class.
  11526. * src/Time.cc: New class.
  11527. * src/AbstractCommand.h
  11528. (updateCheckPoint): Removed.
  11529. (isTimeoutDetected): Removed.
  11530. (checkPoint): Changed the type to Time.
  11531. (timeout): New variable.
  11532. (setTimeout): New function.
  11533. * src/AbstractCommand.cc
  11534. (AbstractCommand): Removed the initialization of checkPoint.
  11535. Added the initialization of timeout.
  11536. (updateCheckPoint): Removed.
  11537. (isTimeoutDetected): Removed.
  11538. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11539. * src/PeerChokeCommand.h
  11540. (checkPoint): Changed the type to Time.
  11541. * src/PeerChokeCommand.cc
  11542. (PeerChokeCommand): Removed the initialization of checkPoint.
  11543. (execute): Rewritten using Time object.
  11544. * src/TrackerWatcherCommand.h
  11545. (checkPoint): Changed the type to Time.
  11546. * src/TrackerWatcherCommand.cc
  11547. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11548. (execute): Rewritten.
  11549. * src/ConsoleDownloadEngine.h
  11550. (cp): Changed the type to Time.
  11551. (startup): Changed the type to Time.
  11552. * src/ConsoleDownloadEngine.cc
  11553. (initStatistics): Use cp.reset(), startup.reset().
  11554. (calculateStatistics): Rewritten using Time object.
  11555. * src/PeerAbstractCommand.h
  11556. (updateCheckPoint): Removed.
  11557. (isTimeoutDetected): Removed.
  11558. (checkPoint): Changed the type to Time.
  11559. * src/PeerAbstractCommand.cc
  11560. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11561. (updateCheckPoint): Removed.
  11562. (isTimeoutDetected): Removed.
  11563. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11564. * src/PeerInteractionCommand.cc
  11565. (PeerInteractionCommand): Removed the initializations of struct
  11566. timeval variables.
  11567. * src/PeerInteractionCommand.h
  11568. (keepAliveCheckPoint): Changed the type to Time.
  11569. (chokeCheckPoint): Changed the type to Time.
  11570. (freqCheckPoint): Changed the type to Time.
  11571. (haveCheckTime): Changed the type to Time.
  11572. * src/PeerInteractionCommand.cc
  11573. (executeInternal): Rewritten using Time object.
  11574. (detectMessageFlooding): Rewritten using Time object.
  11575. (checkLongTimePeerChoking): Rewritten using Time object.
  11576. (sendKeepAlive): Rewritten using Time object.
  11577. (checkHave): Rewritten using Time object.
  11578. * src/SleepCommand.h
  11579. (checkPoint): Changed the type to Time.
  11580. * src/SleepCommand.cc
  11581. (SleepCommand): Removed the initialization of checkPoint.
  11582. (execute): Rewritten using Time object.
  11583. * src/TorrentAutoSaveCommand.h
  11584. (checkPoint): Changed the type to Time.
  11585. * src/TorrentAutoSaveCommand.cc
  11586. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11587. (execute): Rewritten.
  11588. * src/DownloadCommand.h
  11589. (sw): Changed the type to Time.
  11590. * src/DownloadCommand.cc
  11591. (DownloadCommand): Removed the initialization of sw.
  11592. (executeInternal): Rewritten.
  11593. * src/RequestSlot.h
  11594. (dispatchedTime): Changed the type to Time.
  11595. * src/RequestSlot.cc
  11596. (RequestSlot): Removed the call to setDispatchedTime().
  11597. (setDispatchedTime): Rewirtten.
  11598. (isTimeout): Rewritten.
  11599. (getLatencyInMillis): Rewritten.
  11600. * src/TorrentDownloadEngine.h
  11601. (cp): Changed the type to Time[2].
  11602. (startup): Changed the type to Time.
  11603. * src/TorrentDownloadEngine.cc
  11604. (initStatistics): Rewritten.
  11605. (calculateStatistics): Rewritten.
  11606. * src/DownloadEngine.cc
  11607. (run): Rewritten.
  11608. To detect all attempts to connect to the tracker are failed:
  11609. * src/AbstractCommand.cc
  11610. (execute): Increment e->segmentMan->errors if a command aborted.
  11611. * src/SegmentMan.h
  11612. (errors): New variable.
  11613. * src/SegmentMan.cc
  11614. (SegmentMan): Added the initialization of errors.
  11615. (init): Added the initialization of errors.
  11616. * src/TrackerWatcherCommand.cc
  11617. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11618. request was failed.
  11619. To handle snubbed peers:
  11620. * src/PeerChokeCommand.cc
  11621. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11622. (execute): Snubbed peers don't get unchoked.
  11623. * src/PeerInteraction.h
  11624. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11625. * src/PeerInteraction.cc
  11626. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11627. back the requested 16k block in 60 seconds.
  11628. * src/PieceMessage.cc
  11629. (receivedAction): A peer's snubbed state is cleard if it sends
  11630. the requested 16k block in 60 seconds.
  11631. * src/Peer.h
  11632. (snubbing): New variable.
  11633. * src/Peer.cc
  11634. (resetStatus): Added snubbed = false.
  11635. To fix the bug that causes have message is not sent:
  11636. * src/PeerInteractionCommand.cc
  11637. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11638. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11639. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11640. * src/TorrentMan.h
  11641. (HaveEntry): New class.
  11642. (advertisePiece): Rewritten.
  11643. (getAdvertisedPieceIndexes): Rewritten.
  11644. (Haves): Changed the type.
  11645. (getAdvertisedPieceIndexes): Added an argument.
  11646. Others:
  11647. * src/TorrentMan.h
  11648. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11649. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11650. * src/TorrentMan.cc
  11651. (getPeer): Don't check the number of connections here.
  11652. (setupInternal1): Changed peerId.
  11653. * src/PeerInteractionCommand.h
  11654. (KEEP_ALIVE_INTERVAL): New definition.
  11655. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11656. * src/main.cc
  11657. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11658. * src/DownloadEngine.h: Removed unnecessary header includes.
  11659. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11660. To fix the bug that causes segfaults if a tracker returns a zero-length
  11661. list as "peers":
  11662. * src/TrackerUpdateCommand.cc
  11663. (execute): Added a check to see wether the type of peers is Data*.
  11664. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11665. * Release 0.5.0
  11666. To fix compile issue with gcc3:
  11667. * src/CancelMessage.h
  11668. (ID): Renamed as ID_t
  11669. (ID_t): New enum.
  11670. * src/RejectMessage.h
  11671. (ID): Renamed as ID_t
  11672. (ID_t): New enum.
  11673. * src/SuggestPieceMessage.h
  11674. (ID): Renamed as ID_t
  11675. (ID_t): New enum.
  11676. * src/AllowedFastMessage.h
  11677. (ID): Renamed as ID_t
  11678. (ID_t): New enum.
  11679. * src/PortMessage.h
  11680. (ID): Renamed as ID_t
  11681. (ID_t): New enum.
  11682. * src/HaveNoneMessage.h
  11683. (ID): Renamed as ID_t
  11684. (ID_t): New enum.
  11685. * src/KeepAliveMessage.h
  11686. (ID): Renamed as ID_t
  11687. (ID_t): New enum.
  11688. * src/HaveAllMessage.h
  11689. (ID): Renamed as ID_t
  11690. (ID_t): New enum.
  11691. * src/UnchokeMessage.h
  11692. (ID): Renamed as ID_t
  11693. (ID_t): New enum.
  11694. * src/BitfieldMessage.h
  11695. (ID): Renamed as ID_t
  11696. (ID_t): New enum.
  11697. * src/PieceMessage.h
  11698. (ID): Renamed as ID_t
  11699. (ID_t): New enum.
  11700. * src/RequestMessage.h
  11701. (ID): Renamed as ID_t
  11702. (ID_t): New enum.
  11703. * src/NotInterestedMessage.h
  11704. (ID): Renamed as ID_t
  11705. (ID_t): New enum.
  11706. * src/ChokeMessage.h
  11707. (ID): Renamed as ID_t
  11708. (ID_t): New enum.
  11709. * src/InterestedMessage.h
  11710. (ID): Renamed as ID_t
  11711. (ID_t): New enum.
  11712. * src/HaveMessage.h
  11713. (ID): Renamed as ID_t
  11714. (ID_t): New enum.
  11715. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11716. * src/PeerAbstractCommand.h
  11717. (beforeSocketCheck): Removed.
  11718. * src/PeerAbstractCommand.cc
  11719. Modified in order to call executeInternal() even if socket check
  11720. and upload limit check fail.
  11721. * src/PeerInteractionCommand.h
  11722. (keepAlive): Removed.
  11723. (sendKeepAlive): New function.
  11724. (checkHave): New function.
  11725. (beforeSocketCheck): Removed.
  11726. * src/PeerInteractionCommand.cc
  11727. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11728. calls to checkHave() and sendKeepAlive().
  11729. (keepAlive): Renamed to sendKeepAlive().
  11730. (sendKeepAlive): New function.
  11731. (beforeSocketCheck): Removed.
  11732. (checkHave): New function.
  11733. * src/BitfieldMan.cc
  11734. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11735. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11736. 0.
  11737. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11738. * src/TorrentMan.h
  11739. (UsedPieces): Removed.
  11740. (Pieces): New type definition.
  11741. * src/Piece.h: Updated doc.
  11742. * src/Peer.h
  11743. (totalLength): Removed.
  11744. * src/Peer.cc
  11745. (updateLatency): Fixed the latency calculation.
  11746. * src/TorrentMan.cc
  11747. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11748. than or equal to MAX_PEER_LIST_SIZE.
  11749. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11750. then return false.
  11751. (deleteOldErrorPeers): Rewritten.
  11752. (deleteUsedPiece): Fixed the miss use of STL remove.
  11753. * src/PeerInteraction.h
  11754. (Pieces): Removed.
  11755. (deleteTimeoutRequestSlot): Removed.
  11756. (deleteCompletedRequestSlot): Removed.
  11757. (checkRequestSlot): New function.
  11758. * src/PeerInteraction.cc
  11759. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11760. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11761. (checkRequestSlot): New function.
  11762. * src/DownloadEngine.cc
  11763. (run): Clear activeSockets before calling waitData().
  11764. (waitData): Removed a call to activeSockets.clear().
  11765. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11766. To attempt to handle EINTR:
  11767. * src/SocketCore.cc
  11768. (isReadable): Added EINTR handling.
  11769. (isWritable): Added EINTR handling.
  11770. To improve the performance:
  11771. * src/AbstractCommand.cc
  11772. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11773. * src/PeerInteractionCommand.h
  11774. (receiveMessage): Renamed as receiveMessages().
  11775. (receiveMessages): New function.
  11776. * src/PeerInteractionCommand.cc
  11777. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11778. () function. detectMessageFlooding() is moved here.
  11779. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11780. (). The flooding detection for have message is comment out.
  11781. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11782. Util::difftv().
  11783. (receiveMessage): Renamed as receiveMessages().
  11784. (receiveMessages): New function.
  11785. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11786. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11787. * src/SleepCommand.cc
  11788. (execute): Use Util::difftvsec() instead of Util::difftv().
  11789. * src/BitfieldMan.h
  11790. (getNthBitIndex): New function.
  11791. (hasMissingPiece): New function.
  11792. (getAllMissingIndexes): New function.
  11793. * src/BitfieldMan.cc
  11794. (countSetBit): Rewritten.
  11795. (getNthBitIndex): New function.
  11796. (getMissingIndexRandomly): Rewritten.
  11797. (hasMissingPiece): New function.
  11798. (getAllMissingIndexes): New function.
  11799. * src/TorrentMan.cc
  11800. (hasMissingPiece): New function.
  11801. (deleteUsedPiece): Rewritten using STL.
  11802. * src/PeerInteraction.cc
  11803. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11804. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11805. (addRequests): Updated the number of pending requests.
  11806. * src/PeerAbstractCommand.cc
  11807. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11808. (execute): Returns true if TorrentMan::isHalt() is true.
  11809. Corrected the condition of upload limit checking.
  11810. * src/Util.h
  11811. (countBit): New function.
  11812. * src/Util.cc
  11813. (nbits): New variable.
  11814. (countBit): New function.
  11815. * src/DownloadEngine.h
  11816. (SockCmdMap): New type definition.
  11817. (waitData): Added an argument.
  11818. (addSocket): Added an argument.
  11819. (addSocketForReadCheck): Added an argument.
  11820. (addSocketForWriteCheck): Added an argument.
  11821. * src/DownloadEngine.cc
  11822. (run): Executes only commands whose sockets are ready to read or write.
  11823. All commands are executed in every 1 second.
  11824. (waitData): Calls select() again if it returned
  11825. EINTR.
  11826. (addSocket): Saves socket and command object pair to the map.
  11827. (deleteSocket): Deletes socket and command object pair from the map.
  11828. (addSocketForReadCheck): Added an argument.
  11829. (addSocketForWriteCheck): Added an argument.
  11830. * src/DownloadCommand.cc
  11831. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11832. To send "event=stopped" to the tracker when the application finishes:
  11833. * src/PeerChokeCommand.h
  11834. (checkPoint): New variable.
  11835. * src/PeerChokeCommand.cc
  11836. (PeerChokeCommand): Added the initialization of checkPoint.
  11837. (execute): The interval check is now done by checkPoint, not
  11838. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11839. * src/TorrentMan.h
  11840. (halt): New function.
  11841. (hasMissingPiece): New function.
  11842. (isHalt): New function.
  11843. (setHalt): New function.
  11844. * src/TorrentMan.cc
  11845. (TorrentMan): Added the initialization of halt.
  11846. * src/TorrentAutoSaveCommand.h
  11847. (checkPoint): New variable.
  11848. * src/PeerListenCommand.cc
  11849. (execute): Returns true if TorrentMan::isHalt() is true.
  11850. * src/main.cc
  11851. (setSignalHander): Added flags argument.
  11852. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11853. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11854. Removed printDownloadAbortMessage() after torrent downloading loop.
  11855. * src/TorrentAutoSaveCommand.cc
  11856. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11857. (execute): Returns true if TorrentMan::isHalt() is true.
  11858. The interval check is now done by checkPoint, not SleepCommand.
  11859. * src/TrackerWatcherCommand.cc
  11860. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11861. event=stopped.
  11862. * src/TrackerUpdateCommand.cc
  11863. (prepareForRetry): Do not use SleepCommand here.
  11864. (execute): Returns true if TorrentMan::isHalt() is true.
  11865. Others:
  11866. * src/TorrentMan.cc
  11867. (getMissingPieceIndex): Updated log message.
  11868. * src/PeerInteraction.cc
  11869. (createPeerMessag): Updated log message.
  11870. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. To add the ability to download several pieces in mix in a command and
  11872. increase the number of request slots according to request-cancel
  11873. latency:
  11874. * src/PeerInteractionCommand.cc
  11875. (executeInternal): The number of messages to be received at a time
  11876. is increased from 10 to 50.
  11877. * src/LogFactory
  11878. (getInstance): Added NullLogger.
  11879. * src/NullLogger.h: New class.
  11880. * src/BitfieldMan.h
  11881. (getMissingIndex): New function.
  11882. * src/BitfieldMan.cc
  11883. (getMissingIndex): New function.
  11884. * src/TorrentMan.h
  11885. (checkOutPiece): New function.
  11886. (getMissingPieceIndex): New function.
  11887. (getMissingFastPieceIndex): New function.
  11888. (getMissingFastPiece): New function.
  11889. * src/TorrentMan.cc
  11890. (updatePiece): Rewritten using STL.
  11891. (syncPiece): Rewritten using STL.
  11892. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11893. checkOutPiece().
  11894. (getMissingPieceIndex): New function.
  11895. (getMissingFastPieceIndex): New function.
  11896. (getMissingFastPiece): New function.
  11897. (checkOutPiece): New function.
  11898. * src/PeerInteraction.h
  11899. (Pieces): New type definition.
  11900. (piece): Removed.
  11901. (pieces): New variable.
  11902. (getNewPieceAndSendInterest): Added the "piece" argument.
  11903. (abortPiece): Added the "piece" argument.
  11904. (abortAllPieces): New function.
  11905. (isInRequestSlot): New function.
  11906. (hasDownloadPiece): Added the "index" argument.
  11907. (setDownloadPiece): Removed.
  11908. (getDownloadPiece): Added the "index" argument.
  11909. (updatePiece): New function.
  11910. (createRequestMessage): Added the "index" argument.
  11911. * src/PeerInteraction.cc
  11912. (onChoked): Rewritten.
  11913. (abortPiece): Rewirtten.
  11914. (abortAllPieces): New function.
  11915. (deleteTimeoutRequestSlot): Rewritten.
  11916. Clarified code a little bit.
  11917. (deleteCompletedRequestSlot): Rewritten.
  11918. (isInRequestSlot): New function.
  11919. (syncPiece): Rewritten.
  11920. (updatePiece): New function.
  11921. (getNewPieceAndSendInterest): Rewritten.
  11922. (addRequests): Rewritten.
  11923. (getDownloadPiece): Rewritten.
  11924. (hasDownloadPiece): Rewritten.
  11925. (createRequestMessage): Added the "index" argument.
  11926. * src/common.h
  11927. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11928. (DIV_FLOOR): New definition.
  11929. * src/PieceMessage.cc
  11930. (receivedAction): Update request-piece latency here.
  11931. * src/RequestSlot.h
  11932. (getLatencyInMillis): New function.
  11933. * src/RequestSlot.cc
  11934. (isTimeout): Rewritten using getLatencyInMillis.
  11935. (getLatencyInMillis): New function.
  11936. * src/Piece.h
  11937. (operator==): New function.
  11938. (getMissingBlockIndex): New function.
  11939. * src/Piece.cc
  11940. (operator==): New function.
  11941. (getMissingBlockIndex): New function.
  11942. * src/Peer.h
  11943. (DEFAULT_LATENCY): New definition.
  11944. (latency): New variable.
  11945. (updateLatency): New function.
  11946. (getLatency): New function.
  11947. * src/Peer.cc
  11948. (resetStatus): Reset latecy.
  11949. (updateLatency): New function.
  11950. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11951. * src/SocketCore.cc
  11952. (isReadable): Added secure to the condition.
  11953. * src/HttpConnection.cc
  11954. (receiveResponse): Fixed a bug that causes no response header
  11955. exception.
  11956. * src/Peer.h
  11957. (getFastSet): Fixed the return value type.
  11958. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11959. To remove a wait from download loop:
  11960. * src/DownloadEngine.cc
  11961. (run): Comment out shortSleep.
  11962. To rewrite the message handling:
  11963. * src/SimplePeerMessage.h: New class.
  11964. * src/SimplePeerMessage.cc: New class.
  11965. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11966. (msg): New variable.
  11967. (create): New function.
  11968. (send): Removed.
  11969. (getMessage): New function.
  11970. (getMessageLength): New function.
  11971. * src/CancelMessage.cc
  11972. (create): New function.
  11973. (receivedAction): Replaced deleteRequestMessageInQueue with
  11974. rejectPieceMessageInQueue.
  11975. (send): Removed.
  11976. (getMessage): New function.
  11977. (getMessageLength): New function.
  11978. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11979. (msg): New variable.
  11980. (msgLength): New variable.
  11981. (~BitfieldMessage): Deleted msg.
  11982. (send): Removed.
  11983. (getMessage): New function.
  11984. (getMessageLength): New function.
  11985. * src/BitfieldMessage.cc
  11986. (create): New function.
  11987. (send): Removed.
  11988. (getMessage): New function.
  11989. (getMessageLength): New function.
  11990. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11991. (msg): New variable.
  11992. (sendPredicate): New function.
  11993. (onSendComplete): New function.
  11994. (send): Removed.
  11995. (getMessage): New function.
  11996. (getMessageLength): New function.
  11997. (create): New function.
  11998. * src/ChokeMessage.cc
  11999. (create): New function.
  12000. (send): Removed.
  12001. (sendPredicate): New function.
  12002. (getMessage): New function.
  12003. (getMessageLength): New function.
  12004. (onSendComplete): New function.
  12005. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12006. (msg): New variable.
  12007. (send): Removed.
  12008. (getMessage): New function.
  12009. (getMessageLength): New function.
  12010. * src/KeepAliveMessage.cc
  12011. (send): Removed.
  12012. (getMessage): New function.
  12013. (getMessageLength): New function.
  12014. * src/PortMessage.h
  12015. (create): New function.
  12016. (receivedAction): Updated log message.
  12017. * src/PortMessage.cc: New file.
  12018. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12019. (msg): New variable.
  12020. (sendPredicate): New function.
  12021. (onSendComplete): New function.
  12022. (create): New function.
  12023. (send): Removed.
  12024. (getMessage): New function.
  12025. (getMessageLength): New function.
  12026. * src/UnchokeMessage.cc
  12027. (create): New function.
  12028. (send): Removed.
  12029. (sendPredicate): New function.
  12030. (getMessage): New function.
  12031. (getMessageLength): New function.
  12032. (onSendComplete): New function.
  12033. * src/PieceMessage.h
  12034. (leftPieceDataLength): Removed.
  12035. (leftDataLength): New variable.
  12036. (headerSend): New variable.
  12037. (pendingCount): New variable.
  12038. (msgHeader): New variable.
  12039. (sendPieceData): New function.
  12040. (incrementPendingCount): New function.
  12041. (isPendingCountMax): New function.
  12042. (create): New function.
  12043. (getMessageHeader): New function.
  12044. (getMessageHeaderLength): New function.
  12045. * src/PieceMessage.cc
  12046. (create): New function.
  12047. (getMessageHeader): New function.
  12048. (getMessageHeaderLength): New function.
  12049. (send): Rewritten.
  12050. (sendPieceData): New function.
  12051. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12052. (msg): New variable.
  12053. (create): New function.
  12054. (getMessage): New function.
  12055. (getMessageLength): New function.
  12056. * src/HaveMessage.cc
  12057. (create): New function.
  12058. (send): Removed.
  12059. (sendPieceData): New function.
  12060. (getMessage): New function.
  12061. (getMessageLength): New function.
  12062. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12063. (msg): New variable.
  12064. (create): New function.
  12065. (send): Removed.
  12066. (getMessage): New function.
  12067. (getMessageLength): New function.
  12068. * src/RequestMessage.cc
  12069. (create): New function.
  12070. (receivedAction): Added the handling of fast extension.
  12071. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12072. (send): Removed.
  12073. (getMessage): New function.
  12074. (getMessageLength): New function.
  12075. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12076. (msg): New variable.
  12077. (sendPredicate): New function.
  12078. (onSendComplete): New function.
  12079. (create): New function.
  12080. (getMessage): New function.
  12081. (getMessageLength): New function.
  12082. * src/InterestedMessage.cc
  12083. (create): New function.
  12084. (send): Removed.
  12085. (sendPieceData): New function.
  12086. (getMessage): New function.
  12087. (getMessageLength): New function.
  12088. (onSendComplete): New function.
  12089. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12090. (msg): New variable.
  12091. (sendPieceData): New function.
  12092. (onSendComplete): New function.
  12093. (create): New function.
  12094. (send): Removed.
  12095. (getMessage): New function.
  12096. (getMessageLength): New function.
  12097. * src/NotInterestedMessage.cc
  12098. (create): New function.
  12099. (send): Removed.
  12100. (sendPredicate): New function.
  12101. (getMessage): New function.
  12102. (getMessageLength): New function.
  12103. (onSendComplete): New function.
  12104. * src/AllowedFastMessage.h: New class.
  12105. * src/AllowedFastMessage.cc: New class.
  12106. * src/RejectMessage.h: New class.
  12107. * src/RejectMessage.cc: New class.
  12108. * src/SuggestPieceMessage.h: New class.
  12109. * src/SuggestPieceMessage.cc: New class.
  12110. * src/HaveAllMessage.h: New class.
  12111. * src/HaveAllMessage.cc: New class.
  12112. * src/HaveNoneMessage.h: New class.
  12113. * src/HaveNoneMessage.cc: New class.
  12114. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12115. (msg): New variable.
  12116. (reserved): New variable.
  12117. (create): New function.
  12118. (getId): New function.
  12119. (receivedAction): New function.
  12120. (getMessage): New function.
  12121. (getMessageLength): New function.
  12122. (isFastExtensionSupported): New function.
  12123. * src/HandshakeMessage.cc
  12124. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12125. (create): New function.
  12126. (getMessage): New function.
  12127. (getMessageLength): New function.
  12128. (toString): Added the output of reserved field.
  12129. (check): Added const qualifier.
  12130. (isFastExtensionSupported): New function.
  12131. * src/PeerMessageUtil.h
  12132. (createChokeMessage): Removed.
  12133. (createUnchokeMessage): Removed.
  12134. (createInterestedMessage): Removed.
  12135. (createNotInterestedMessage): Removed.
  12136. (createHaveMessage): Removed.
  12137. (createBitfieldMessage): Removed.
  12138. (createRequestMessage): Removed.
  12139. (createCancelMessage): Removed.
  12140. (createPieceMessage): Removed.
  12141. (createPortMessage): Removed.
  12142. (createChokeMessage): Removed.
  12143. (createUnchokeMessage): Removed.
  12144. (createInterestedMessage): Removed.
  12145. (createNotInterestedMessage): Removed.
  12146. (createHaveMessage): Removed.
  12147. (createBitfieldMessage): Removed.
  12148. (createRequestMessage): Removed.
  12149. (createCancelMessage): Removed.
  12150. (createPieceMessage): Removed.
  12151. (createKeepAliveMessage): Removed.
  12152. (createHandshakeMessage): Removed.
  12153. (setIntParam): New function.
  12154. (createPeerMessageString): New function.
  12155. * src/PeerMessageUtil.cc
  12156. (createChokeMessage): Removed.
  12157. (createUnchokeMessage): Removed.
  12158. (createInterestedMessage): Removed.
  12159. (createNotInterestedMessage): Removed.
  12160. (createHaveMessage): Removed.
  12161. (createBitfieldMessage): Removed.
  12162. (createRequestMessage): Removed.
  12163. (createCancelMessage): Removed.
  12164. (createPieceMessage): Removed.
  12165. (createPortMessage): Removed.
  12166. (createRequestMessage): Removed.
  12167. (createCancelMessage): Removed.
  12168. (createPieceMessage): Removed.
  12169. (createHaveMessage): Removed.
  12170. (createChokeMessage): Removed.
  12171. (createUnchokeMessage): Removed.
  12172. (createInterestedMessage): Removed.
  12173. (createNotInterestedMessage): Removed.
  12174. (createBitfieldMessage): Removed.
  12175. (createKeepAliveMessage): Removed.
  12176. (createHandshakeMessage): Removed.
  12177. (setIntParam): New function.
  12178. (createPeerMessageString): New function.
  12179. * src/PeerConnection.h
  12180. (peer): Removed.
  12181. (torrentMan): Removed.
  12182. (createNLengthMessage): Removed.
  12183. (setIntParam): Removed.
  12184. (writeOutgoingMessageLog): Removed all overloaded functions.
  12185. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12186. (sendMessage): New function.
  12187. (sendHandshake): Removed.
  12188. (sendKeepAlive): Removed.
  12189. (sendChoke): Removed.
  12190. (sendUnchoke): Removed.
  12191. (sendInterested): Removed.
  12192. (sendNotInterested): Removed.
  12193. (sendHave): Removed.
  12194. (sendBitfield): Removed.
  12195. (sendRequest): Removed.
  12196. (sendPiece): Removed.
  12197. (sendPieceHeader): Removed.
  12198. (sendPieceData): Removed.
  12199. (sendCancel): Removed.
  12200. (getPeer): Removed.
  12201. * src/PeerConnection.cc
  12202. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12203. (sendHandshake): Removed.
  12204. (sendKeepAlive): Removed.
  12205. (createNLengthMessage): Removed.
  12206. (setIntParam): Removed.
  12207. (writeOutgoingMessageLog): Removed all overloaded functions.
  12208. (sendChoke): Removed.
  12209. (sendUnchoke): Removed.
  12210. (sendInterested): Removed.
  12211. (sendNotInterested): Removed.
  12212. (sendHave): Removed.
  12213. (sendBitfield): Removed.
  12214. (sendRequest): Removed.
  12215. (sendPiece): Removed.
  12216. (sendPieceHeader): Removed.
  12217. (sendPieceData): Removed.
  12218. (sendMessage): New function.
  12219. (sendCancel): Removed.
  12220. * src/PeerInteractionCommand.cc
  12221. (PeerInteractionCommand): Call setUploadLimit.
  12222. (executeInternal): Call setUploadLimit.
  12223. Added the handling of "inProgress" state of handshake message.
  12224. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12225. sendNow().
  12226. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12227. sendNow().
  12228. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12229. * src/TorrentMan.h
  12230. (PEER_ID_LENGTH): New definition.
  12231. (hasAllPieces): New function.
  12232. * src/TorrentMan.cc
  12233. (getMissingPiece): Added the handling of fast extension.
  12234. (cancelPiece): Call updatePiece().
  12235. (hasAllPieces): New function.
  12236. * src/PeerInteraction.h
  12237. (fastSet): New variable.
  12238. (getNewPieceAndSendInterest): Changed the return type to void.
  12239. (send): Renamed as sendMessages.
  12240. (deleteAllRequestSlot): Removed.
  12241. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12242. (cancelAllRequest): Removed all overloaded functions.
  12243. (deleteAllRequestSlot): Removed.
  12244. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12245. (rejectPieceMessageInQueue): New function.
  12246. (rejectAllPieceMessageInQueue): New function.
  12247. (onChoked): New function.
  12248. (isSendingMessageInProgress): New function.
  12249. (getCorrespondingRequestSlot): Changed its arguments.
  12250. (isInFastSet): New function.
  12251. (addFastSetIndex): New function.
  12252. (addRequests): New function.
  12253. (sendNow): Removed.
  12254. (trySendNow): Removed.
  12255. (sendBitfield): New function.
  12256. (sendAllowdFast): New function.
  12257. (createHaveAllMessage): New function.
  12258. (createHaveNoneMessage): New function.
  12259. (createRejectMessage): New function.
  12260. (createAllowedFastMessage): New function.
  12261. * src/PeerInteraction.cc
  12262. (send): Renamed as sendMessages.
  12263. (sendMessages): New function.
  12264. (MsgPushBack): New class.
  12265. (isSendingMessageInProgress): New function.
  12266. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12267. (rejectAllPieceMessageInQueue): New function.
  12268. Added the handling of fast extension.
  12269. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12270. (rejectPieceMessageInQueue): New function.
  12271. Added the handling of fast extension.
  12272. (deleteRequestSlot): Replaced for loop with std::find.
  12273. (onChoked): New function.
  12274. (deleteAllRequestSlot): Removed.
  12275. (abortPiece): Rewirtten.
  12276. (deleteTimeoutRequestSlot): Updated log messages.
  12277. (getCorrespondingRequestSlot): Changed its arguments.
  12278. (cancelAllRequest): Removed all overloaded functions.
  12279. (receiveHandshake): Added the check to see whether an incoming peer
  12280. supports fast extension.
  12281. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12282. PeerMessageUtil.
  12283. (createPeerMessage): Use create() of each message class instead of
  12284. PeerMessageUtil.
  12285. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12286. AllowedFastMessage were added.
  12287. (getNewPieceAndSendInterest): Changed its return value type to void.
  12288. Added the handling of fast extension.
  12289. (addRequests): New function.
  12290. (sendNow): Removed.
  12291. (sendHandshake): Rewritten.
  12292. (trySendNow): Removed.
  12293. (sendBitfield): New function.
  12294. (sendAllowdFast): New function.
  12295. (isInFastSet): New function.
  12296. (addFastSetIndex): New function.
  12297. (createRequestMessage): Use RequestMessage::create instead of
  12298. PeerMessageUtil.
  12299. (createCancelMessage): Use CancelMessage::create instead of
  12300. PeerMessageUtil.
  12301. (createPieceMessage): Use PieceMessage::create instead of
  12302. PeerMessageUtil.
  12303. (createHaveMessage): Use HaveMessage::create instead of
  12304. PeerMessageUtil.
  12305. (createChokeMessage): Use ChokeMessage::create instead of
  12306. PeerMessageUtil.
  12307. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12308. PeerMessageUtil.
  12309. (createInterestedMessage): Use InterestedMessage::create instead of
  12310. PeerMessageUtil.
  12311. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12312. of PeerMessageUtil.
  12313. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12314. PeerMessageUtil.
  12315. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12316. PeerMessageUtil.
  12317. (createHaveAllMessage): New function.
  12318. (createHaveNoneMessage): New function.
  12319. (createRejectMessage): New function.
  12320. (createAllowedFastMessage: New function.
  12321. * src/Util.h
  12322. (sha1Sum): New function.
  12323. (computeFastSet): New function.
  12324. * src/Util.cc
  12325. (sha1Sum): New function.
  12326. (computeFastSet): New function.
  12327. * src/Peer.h
  12328. (fastExtensionEnabled): New variable.
  12329. (fastSet): New variable.
  12330. (setAllBitfield): New function.
  12331. (setFastExtensionEnabled): New function.
  12332. (isFastExtensionEnabled): New function.
  12333. (addFastSetIndex): New function.
  12334. (getFastSet): New function.
  12335. (isInFastSet): New function.
  12336. (countFastSet): New function.
  12337. * src/Peer.cc
  12338. (isInFastSet): New function.
  12339. (addFastSetIndex): New function.
  12340. (setAllBitfield): New function.
  12341. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12342. sockets.
  12343. * src/PeerAbstractCommand.cc
  12344. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12345. and uploadLimit.
  12346. (execute): Changed the procedure of checking sockets. The upload speed
  12347. checking were added.
  12348. (setUploadLimit): New function.
  12349. (setUploadLimitCheck): New function.
  12350. * src/PeerAbstractCommand.h
  12351. (setUploadLimit): New function.
  12352. (setUploadLimitCheck): New function.
  12353. (uploadLimit): New variable.
  12354. (uploadLimitCheck): New variable.
  12355. To contact a tracker regularly:
  12356. * src/TrackerWatcherCommand.h (interval): New variable.
  12357. (checkPoint): New variable.
  12358. (TrackerWatcherCommand): Added interval argument.
  12359. * src/TrackerWatcherCommand.cc
  12360. (TrackerWatcherCommand): Initialized checkPoint.
  12361. (execute): Now a tracker is contacted in every specified period.
  12362. If peer list is not needed, send request with numwant=0.
  12363. * src/TrackerUpdateCommand.cc
  12364. (execute): Updated log messages.
  12365. * src/DownloadEngine.cc
  12366. (~DownloadEngine): Removed two asserts.
  12367. (waitData): Uncommented wfds. May be a bug fix.
  12368. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12369. * src/PeerInteractionCommand.h
  12370. (checkInactiveConnection): Removed.
  12371. * src/PeerInteractionCommand.cc
  12372. (executeInternal): Removed following function calls:
  12373. detectMessageFlooding(), checkLongTimePeerChoking and
  12374. checkInactiveConnection().
  12375. (checkInactiveConnection): Removed.
  12376. (detectMessageFlooding): Removed function call to
  12377. checkInactiveConnection().
  12378. * src/PeerMessageUtil.h
  12379. (createChokeMessage): New function. Overload.
  12380. (createUnchokeMessage): New function. Overload.
  12381. (createInterestedMessage): New function. Overload.
  12382. (createNotInterestedMessage): New function. Overload.
  12383. (createHaveMessage): New function. Overload.
  12384. (createBitfieldMessage): New function. Overload.
  12385. (createRequestMessage): New function. Overload.
  12386. (createCancelMessage): New function. Overload.
  12387. (createPieceMessage): New function. Overload.
  12388. (createKeepAliveMessage): New function. Overload.
  12389. * src/PeerMessageUtil.cc
  12390. (createChokeMessage): New function. Overload.
  12391. (createUnchokeMessage): New function. Overload.
  12392. (createInterestedMessage): New function. Overload.
  12393. (createNotInterestedMessage): New function. Overload.
  12394. (createHaveMessage): New function. Overload.
  12395. (createBitfieldMessage): New function. Overload.
  12396. (createRequestMessage): New function. Overload.
  12397. (createCancelMessage): New function. Overload.
  12398. (createPieceMessage): New function. Overload.
  12399. (createKeepAliveMessage): New function. Overload.
  12400. * src/SendMessageQueue.cc
  12401. (createRequestMessage): Use PeerMessageUtil.
  12402. (createCancelMessage): Use PeerMessageUtil.
  12403. (createPieceMessage): Use PeerMessageUtil.
  12404. (createHaveMessage): Use PeerMessageUtil.
  12405. (createChokeMessage): Use PeerMessageUtil.
  12406. (createUnchokeMessage): Use PeerMessageUtil.
  12407. (createInterestedMessage): Use PeerMessageUtil.
  12408. (createNotInterestedMessage): Use PeerMessageUtil.
  12409. (createBitfieldMessage): Use PeerMessageUtil.
  12410. (createKeepAliveMessage): Use PeerMessageUtil.
  12411. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12412. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12413. * src/PeerInteraction.h: New class.
  12414. * src/PeerInteraction.cc: New class.
  12415. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12416. Each peer message has its own class.
  12417. * src/PendingMessages.h: Removed.
  12418. * src/PendingMessages.cc: Removed. The sending process was moved to
  12419. each message class.
  12420. * src/RequestSlotMan.h: Removed.
  12421. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12422. SendMessageQueue.
  12423. * src/RequestMessage.h: New class.
  12424. * src/RequestMessage.cc: New class.
  12425. * src/CancelMessage.h: New class.
  12426. * src/CancelMessage.cc: New class.
  12427. * src/BitfieldMessage.h: New class.
  12428. * src/BitfieldMessage.cc: New class.
  12429. * src/ChokeMessage.h: New class.
  12430. * src/ChokeMessage.cc: New class.
  12431. * src/KeepAliveMessage.h: New class.
  12432. * src/KeepAliveMessage.cc: New class.
  12433. * src/PortMessage.h: New class.
  12434. * src/UnchokeMessage.h: New class.
  12435. * src/UnchokeMessage.cc: New class.
  12436. * src/PieceMessage.h: New class.
  12437. * src/PieceMessage.cc: New class.
  12438. * src/HaveMessage.h: New class.
  12439. * src/HaveMessage.cc: New class.
  12440. * src/BitfieldMessage.h: New class.
  12441. * src/BitfieldMessage.cc: New class.
  12442. * src/NotInterestedMessage.h: New class.
  12443. * src/NotInterestedMessage.cc: New class.
  12444. * src/InterestedMessage.h: New class.
  12445. * src/InterestedMessage.cc: New class.
  12446. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12447. (getSendMessageQueue): New function.
  12448. (setSendMessageQueue): New function.
  12449. * src/HandshakeMessage.cc: New class.
  12450. * src/PeerConnection.h (receiveMessage): Changed return value and
  12451. arguments.
  12452. (receiveHandshake): Changed return value and arguments.
  12453. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12454. here.
  12455. (receiveHandshake): Do not create handshake class here.
  12456. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12457. (piece): Removed.
  12458. (syncPiece): Removed.
  12459. (sendInterest): Removed.
  12460. (sendMessages): Removed.
  12461. (createRequestPendingMessage): Removed.
  12462. (checkPieceHash): Removed.
  12463. (erasePieceOnDisk): Removed.
  12464. (getNewPieceAndSendInterest): Removed.
  12465. (onGotNewPice): Removed.
  12466. (onGotWrongPiece): Removed.
  12467. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12468. Removed peerConnection, piece.
  12469. (~PeerInteractionCommand): Removed peerConnection.
  12470. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12471. (syncPiece): Moved to SendMessageQueue.
  12472. (decideChoking): Removed PendingMessage.
  12473. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12474. The action after receiving peer message was moved to each message
  12475. class.
  12476. (onGotNewPice): Moved to SendMessageQueue.
  12477. (onGotWrongPiece): Moved to SendMessageQueue.
  12478. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12479. (sendInterest): Moved to SendMessageQueue.
  12480. (createRequestPendingMessage): Removed.
  12481. (sendMessages): Moved to SendMessageQueue.
  12482. (onAbort): Use SendMessageQueue::abortPiece()
  12483. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12484. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12485. (checkPieceHash): Moved to SendMessageQueue.
  12486. (erasePieceOnDisk): Moved to SendMessageQueue.
  12487. * src/PeerMessageUtil.h
  12488. (createBitfieldMessage): Removed.
  12489. (createHaveMessage): Changed return value and arguments.
  12490. (createBitfieldMessage): Changed return value and arguments.
  12491. (createRequestCancelMessage): Removed.
  12492. (createPieceMessage): Changed return value and arguments.
  12493. (getShortIntParam): New function.
  12494. (checkIndex): Changed arguments.
  12495. (checkBegin): Changed arguments.
  12496. (checkLength): Changed arguments.
  12497. (checkPieceOffset): Removed.
  12498. (checkRange): New function.
  12499. (checkBitfield): Changed arguments.
  12500. (createPeerMessage): Removed.
  12501. (checkIntegrity): Removed.
  12502. (createHandshakeMessage): Changed arguments.
  12503. (createChokeMessage): New function.
  12504. (createUnchokeMessage): New function.
  12505. (createInterestedMessage): New function.
  12506. (createNotInterestedMessage): New function.
  12507. (createRequestMessage): New function.
  12508. (createCancelMessage): New function.
  12509. (createPortMessage): New function.
  12510. * src/PeerMessageUtil.cc
  12511. (createBitfieldMessage): Removed.
  12512. (createHaveMessage): Changed return value and arguments.
  12513. (createBitfieldMessage): Changed return value and arguments.
  12514. (createRequestCancelMessage): Removed.
  12515. (createPieceMessage): Changed return value and arguments.
  12516. (getShortIntParam): New function.
  12517. (checkIndex): Changed arguments.
  12518. (checkBegin): Changed arguments.
  12519. (checkLength): Changed arguments.
  12520. (checkPieceOffset): Removed.
  12521. (checkRange): New function.
  12522. (checkBitfield): Changed arguments.
  12523. (createPeerMessage): Removed.
  12524. (checkIntegrity): Removed.
  12525. (createHandshakeMessage): Changed arguments.
  12526. (createChokeMessage): New function.
  12527. (createUnchokeMessage): New function.
  12528. (createInterestedMessage): New function.
  12529. (createNotInterestedMessage): New function.
  12530. (createRequestMessage): New function.
  12531. (createCancelMessage): New function.
  12532. (createPortMessage): New function.
  12533. * src/PeerMessage.h
  12534. (id): Removed.
  12535. (index): Removed.
  12536. (begin): Removed.
  12537. (length): Removed.
  12538. (bitfield): Removed.
  12539. (bitfieldLength): Removed.
  12540. (block): Removed.
  12541. (blockLength): Removed.
  12542. (inProgress): New variable.
  12543. (cuid): New variable.
  12544. (peer): New variable.
  12545. (sendMessageQueue): New variable.
  12546. (logger): New variable.
  12547. (setBitfield): Removed.
  12548. (getBitfield): Removed.
  12549. (setBlock): Removed.
  12550. (getBlock): Removed.
  12551. (getBitfieldLength): Removed.
  12552. (getBlockLength): Removed.
  12553. (isInProgress): New function.
  12554. (toString): Made pure virtual.
  12555. (check): New function.
  12556. (send): New function.
  12557. (receivedAction): New function.
  12558. (getId): Made pure virtual.
  12559. (setId): Removed.
  12560. (getIndex): Removed.
  12561. (setIndex): Removed.
  12562. (getBegin): Removed.
  12563. (setBegin): Removed.
  12564. (getLength): Removed.
  12565. (setLength): Removed.
  12566. (getCuid): New function.
  12567. (setCuid): New function.
  12568. (getPeer): New function.
  12569. (setPeer): New function.
  12570. (getSendMessageQueue): New function.
  12571. (setSendMessageQueue): New function.
  12572. (ID): Removed.
  12573. * src/PeerMessage.cc
  12574. (setBitfield): Removed.
  12575. (setBlock): Removed.
  12576. (toString): Removed.
  12577. * src/TorrentMan.h
  12578. (getPieceLength): New function.
  12579. (getPieceLength): New function.
  12580. * src/SendMessageQueue.h
  12581. (REQUEST_TIME_OUT): New definition.
  12582. (RequestSlots): New definition.
  12583. (MessageQueue): New definition.
  12584. (requestSlotMan): Removed.
  12585. (pendingMessages): Removed.
  12586. (requestSlots): New variable.
  12587. (messageQueue): New variable.
  12588. (torrentMan): New variable.
  12589. (peerConnection): New variable.
  12590. (peer): New variable.
  12591. (piece): New variable.
  12592. (getNewPieceAndSendInterest): New function.
  12593. (createPeerMessage): New function.
  12594. (createHandshakeMessage): New function.
  12595. (send): Made private.
  12596. (setPeerMessageCommonProperty): New function.
  12597. (deleteAllRequestSlot): New function.
  12598. (deleteRequestMessageInQueue): New function.
  12599. (cancelAllRequest): Made private.
  12600. (cancelAllRequest): Made private.
  12601. (countRequestSlot): Made private.
  12602. (addPendingMessage): Removed.
  12603. (deletePendingPieceMessage): Removed.
  12604. (deletePendingRequestMessage): Removed.
  12605. (addMessage): New function.
  12606. (deletePieceMessageInQueue): New function.
  12607. (deleteTimeoutRequestSlot): Changed argument.
  12608. (deleteCompletedRequestSlot): Changed argument.
  12609. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12610. (getCorrespondingRequestSlot): New function.
  12611. (countPendingMessage): Removed.
  12612. (countMessageInQueue): New function.
  12613. (getTorrentMan): New function.
  12614. (getPeerConnection): New function.
  12615. (hasDownloadPiece): New function.
  12616. (getDownloadPiece): New function.
  12617. (setDownloadPiece): New function.
  12618. (syncPiece): New function.
  12619. (sendMessages): New function.
  12620. (sendNow): New function.
  12621. (trySendNow): New function.
  12622. (abortPiece): New function.
  12623. (sendHandshake): New function.
  12624. (receiveMessage): New function.
  12625. (receiveHandshake): New function.
  12626. (createRequestMessage): New function.
  12627. (createCancelMessage): New function.
  12628. (createPieceMessage): New function.
  12629. (createHaveMessage): New function.
  12630. (createChokeMessage): New function.
  12631. (createUnchokeMessage): New function.
  12632. (createInterestedMessage): New function.
  12633. (createNotInterestedMessage): New function.
  12634. (createBitfieldMessage): New function.
  12635. (createKeepAliveMessage): New function.
  12636. * src/SendMessageQueue.cc
  12637. (SendMessageQueue): Removed requestSlotMan.
  12638. Instantiated peerConnection here.
  12639. (~SendMessageQueue): Removed requestSlotMan.
  12640. Added deletion of peerConnection and the contents of messageQueue.
  12641. (send): Updated according to the change of messageQueue.
  12642. (addPendingMessage): Renamed to addMessage.
  12643. (addMessage): New function.
  12644. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12645. (deletePieceMessageInQueue): New function.
  12646. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12647. (deleteRequestMessageInQueue): New function.
  12648. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12649. here.
  12650. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12651. (...) was moved here.
  12652. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12653. moved here.
  12654. (deleteCompletedRequestSlot):
  12655. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12656. (getCorrespondingRequestSlot):
  12657. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12658. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12659. (countPendingMessage): Renamed to countMessageInQueue.
  12660. (countMessageInQueue): New function.
  12661. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12662. (receiveHandshake): New function.
  12663. (createHandshakeMessage): New function.
  12664. (receiveMessage): New function.
  12665. (createPeerMessage): New function.
  12666. (syncPiece): New function.
  12667. (getNewPieceAndSendInterest): New function.
  12668. (sendMessages): New function.
  12669. (sendNow): New function.
  12670. (trySendNow): New function.
  12671. (sendHandshake): New function.
  12672. (abortPiece): New function.
  12673. (getDownloadPiece): New function.
  12674. (getPeerMessageCommonProperty): New function.
  12675. (createRequestMessage): New function.
  12676. (createCancelMessage): New function.
  12677. (createPieceMessage): New function.
  12678. (createHaveMessage): New function.
  12679. (createChokeMessage): New function.
  12680. (createUnchokeMessage): New function.
  12681. (createInterestedMessage): New function.
  12682. (createNotInterestedMessage): New function.
  12683. (createBitfieldMessage): New function.
  12684. (createKeepAliveMessage): New function.
  12685. To add simple Content-Disposition support:
  12686. * src/HttpResponseCommand.h (determinFilename): New function.
  12687. * src/HttpResponseCommand.cc (executeInternal):
  12688. Use determinFilename(headers) instead of req->getFile() when comparing
  12689. filename.
  12690. (determinFilename): New function.
  12691. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12692. req->getFile().
  12693. (handleOtherEncoding): Use determinFilename(headers) instead of
  12694. req->getFile().
  12695. * src/Util.h (getContentDispositionFilename): New function.
  12696. * src/Util.cc (getContentDispositionFilename): New function.
  12697. * src/LogFactory.h (release): New function.
  12698. * src/LogFactory.cc (release): New function.
  12699. To fix a bug that causes out-of-bound exception when HTTP status
  12700. line is wrong:
  12701. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12702. size.
  12703. * src/common.h (Deleter): New class.
  12704. * src/SegmentMan.cc
  12705. (~SegmentMan): Added deletion of splitter and diskWriter.
  12706. * src/DownloadEngine.h
  12707. (Commands): Use deque.
  12708. (clearQueue): New function.
  12709. * src/DownloadEngine.cc
  12710. (~DownloadEngine): Added deletion of segmentMan.
  12711. (cleanQueue): New function.
  12712. * src/TorrentDownloadEngine.h
  12713. (TorrentDownloadEngine): The implementation was moved to
  12714. TorrentDownloadEngine.cc.
  12715. (~TorrentDownloadEngine): The implementation was moved to
  12716. TorrentDownloadEngine.cc.
  12717. * src/TorrentDownloadEngine.cc
  12718. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12719. * src/main.cc
  12720. (clearRequest): Removed.
  12721. (handler): Added deletion of e.
  12722. (torrentHandler): Added deletion of te.
  12723. (main): Do not share splitter.
  12724. Use Deleter instead of clearRequest.
  12725. Deletion of classes were updated.
  12726. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12727. * src/main.cc (main): Fixed typo.
  12728. * src/message.h: Fixed typo.
  12729. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12730. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12731. To add --select-file command-line option:
  12732. * src/Util.cc
  12733. (unfoldRange): New function.
  12734. (getNum): New function.
  12735. (unfoldSubRange): New function
  12736. * src/main.cc
  12737. (showUsage): Added help message.
  12738. (main): Added --select-file command-line option. Updated the layout of
  12739. file listing.
  12740. * src/common.h
  12741. (Integers): New definition.
  12742. * src/SocketCore.cc
  12743. (writeData): Removed timeout argument.
  12744. (readData): Removed timeout argument.
  12745. (peekData): Removed timeout argument.
  12746. * src/Socket.cc
  12747. (writeData): Removed timeout argument.
  12748. (readData): Removed timeout argument.
  12749. (peekData): Removed timeout argument.
  12750. * Release 0.4.1
  12751. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12752. To deploy upload rate based choking algorithm:
  12753. * src/PeerInteractionCommand.cc
  12754. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12755. peer currently used.
  12756. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12757. download completes. Simplified.
  12758. (receiveMessage): Updated.
  12759. * src/TorrentMan.h
  12760. (activePeers): New variable.
  12761. (addActivePeer): New function.
  12762. (getActivePeers): New function.
  12763. (deleteActivePeer): New function.
  12764. * src/TorrentMan.cc
  12765. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12766. * src/PeerAbstractCommand.cc
  12767. (onAbort): Use peer->resetStatus().
  12768. * src/main.cc
  12769. (PeerChokeCommand.h): Included.
  12770. (main): Added the instance of ChokingCommand to the command queue.
  12771. * src/Peer.h
  12772. (amChoking): Renamed from amChocking
  12773. (chokingRequired): New variable.
  12774. (optUnchoking): New variable.
  12775. (deltaUpload): New variable.
  12776. (deltaDownload): New variable.
  12777. (addDeltaUpload): New function.
  12778. (resetDeltaUpload): New function.
  12779. (addDeltaDownload): New function.
  12780. (resetDeltaDownload): New function.
  12781. (addPeerUpload): Added a call to addDeltaUpload.
  12782. (addPeerDownload): Added a call to addDeltaDownload.
  12783. * src/Peer.cc
  12784. (shouldBeChoking): Renamed from shouldChoke.
  12785. (resetStatus): New function.
  12786. * src/PeerChokeCommand.h: New class.
  12787. * src/PeerChokeCommand.cc: New class.
  12788. To add lazy upload speed limiter:
  12789. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12790. statistics calculation to TorrentDownloadEngine.
  12791. * src/TorrentConsoleDownloadEngine.cc
  12792. (sendStatistics): Renamed from printStatistics.
  12793. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12794. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12795. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12796. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12797. calculation.
  12798. (sendStatistics): New function as pure virtual function.
  12799. (getUploadSpeed): New function.
  12800. * src/TorrentDownloadEngine.cc
  12801. (initStatistics): New function.
  12802. (calculateSpeed): New function.
  12803. (calculateStatistics): New function.
  12804. * src/SendMessageQueue.h
  12805. (uploadLength): New variable.
  12806. (send): Added an argument.
  12807. (setUploadLimit): New function.
  12808. (getUploadLimit): New function.
  12809. * src/SendMessageQueue.cc
  12810. (send): Added upload speed limiter.
  12811. * src/prefs.h
  12812. (PREF_UPLOAD_LIMIT): New definition.
  12813. * src/PeerInteractionCommand.cc
  12814. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12815. * src/main.cc
  12816. (main): Added --upload-limit option
  12817. For bug fixes:
  12818. * src/main.cc
  12819. (showUsage): Corrected --listen-port help
  12820. Other changes:
  12821. * src/TorrentMan.cc
  12822. (getPeer): Return nullPeer if connection is grather than
  12823. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12824. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12825. To add some useful information to the exception message:
  12826. * src/SocketCore.cc : Updated messages.
  12827. * src/SegmentMan.cc :
  12828. * src/TorrentMan.cc : Updated messages.
  12829. * src/MultiDiskWriter.cc : Updated messages.
  12830. * src/Util.cc : Updated messages.
  12831. * src/AbstractDiskWriter.cc : Updated messages.
  12832. * src/PreAllocationDiskWriter.cc : Updated messages.
  12833. * src/message.cc : Added new messages. Updated some messages.
  12834. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12835. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12836. Updated threshold from 30 to 15.
  12837. * src/AbstractDiskWriter.h (filename): New variable.
  12838. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12839. (createFile): Assigned filename.
  12840. * src/main.cc: Updated the help message for http-auth-scheme.
  12841. * Release 0.4.0
  12842. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. To add TrackerUpdateCommand with which replaces
  12844. CompactTrackerResponseProcessor:
  12845. * src/TrackerWatcherCommand.h (req): Removed.
  12846. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12847. if the number of peer connections are less than 30.
  12848. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12849. * src/SegmentMan.h (diskWriter): New function.
  12850. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12851. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12852. (main): Use TrackerUpdateCommand.
  12853. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12854. (req): New variable.
  12855. (setTrackerResponseProcessor): Removed.
  12856. (getTrackerResponseProcessor): Removed.
  12857. (processTrackerResponse): Removed.
  12858. * src/DownloadEngine.h (diskWriter): Removed.
  12859. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12860. to torrentMan->processTrackerResponse().
  12861. To add Util::expandBuffer:
  12862. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12863. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12864. * src/Util.h (expandBuffer): New function.
  12865. To fix the bug that causes segmentation fault when "-l ." is specified
  12866. in command-line option:
  12867. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12868. (openFile): New function.
  12869. (closeFile): New function.
  12870. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12871. (~SimpleLogger): Call closeFile();
  12872. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12873. * src/main.cc (main): Added a check to see logger is configured
  12874. properly.
  12875. To enable HTTP authentication without specifying "--http-auth-scheme"
  12876. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12877. * src/HttpConnection.cc (createRequest): Send Authorization header
  12878. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12879. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12880. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12881. * src/Peer.cc (shouldChoke): Updated algorithm.
  12882. * src/message.h (EX_AUTH_FAILED): New definition.
  12883. (EX_FILE_OPEN): New definition.
  12884. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12885. if status == 401.
  12886. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12887. if req->isTorrent == true.
  12888. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12889. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12890. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12891. (createFile): Updated message.
  12892. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12893. To add a readout of estimated remaining time to normal HTTP/FTP
  12894. downloads:
  12895. * src/ConsoleDownloadEngine.h (startup): New variable.
  12896. (startupLength): New variable.
  12897. (isStartupLengthSet): New variable.
  12898. (avgSpeed): New variable.
  12899. (eta): New variable.
  12900. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12901. estimated remaining time.
  12902. (initStatistics): Initialized newly added variables.
  12903. (calculateStatistics): Calculate average speed and estimated remaining
  12904. time.
  12905. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12906. * src/TrackerDownloadCommand.h: Removed.
  12907. * src/TrackerDownloadCommand.cc: Removed.
  12908. * src/TrackerInitCommand.h: Removed.
  12909. * src/TrackerInitCommand.cc: Removed.
  12910. * src/TrackerUpdateCommand.h: Removed.
  12911. * src/TrackerUpdateCommand.cc: Removed.
  12912. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12913. url written in TrackerInitCommand was moved here. Do not create
  12914. tracker request command if torrentMan->trackers != 0.
  12915. * src/CompactTrackerResponseProcessor.h: New class.
  12916. * src/CompactTrackerResponseProcessor.cc: New class.
  12917. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12918. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12919. Decoupled TorrentDownloadEngine from this.
  12920. * src/SegmentMan.h (init): New function.
  12921. * src/SegmentMan.cc (init): New function.
  12922. * src/TorrentMan.h (responseProcessor): New variable.
  12923. (trackers): New variable.
  12924. (setTrackerResponseProcessor): New function.
  12925. (getTrackerResponseProcessor): New function.
  12926. (processTrackerResponse): New function.
  12927. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12928. (processTrackerResponse): New function.
  12929. * src/main.cc (main): Use ByteArrayDiskWriter and
  12930. CompactTrackerResponseProcessor.
  12931. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12932. processTrackerResponse().
  12933. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12934. readout.
  12935. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12936. which indicates download has completed.
  12937. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12938. (closeFile): fd >= 0, not fd > 0
  12939. * src/main.cc (main): Added short cut for show-files.
  12940. Added short cut for torrent-file.
  12941. Added new command-line option listen-port.
  12942. Updated i18n messages.
  12943. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12944. To add LogFactory which creates singleton logger:
  12945. * src/LogFactory.h: New class.
  12946. * src/LogFactory.cc: New class.
  12947. * src/Command.h (logger): New variable.
  12948. (Constructor): Use LogFactory.
  12949. * src/AbstractCommand.cc: Use Command::logger
  12950. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12951. Use LogFactory.
  12952. * src/SegmentSplitter.h : Made logger protected.
  12953. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12954. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12955. * src/DownloadEngine.h : Made logger protected.
  12956. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12957. * src/PeerInteractionCommand.cc : Use Command::logger.
  12958. * src/HttpResponseCommand.cc : Use Command::logger.
  12959. * src/SegmentMan.h : Made logger private.
  12960. * src/TorrentMan.h : Made logger private.
  12961. * src/TorrentMan.cc : Use LogFactory.
  12962. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12963. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12964. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12965. Use LogFactory.
  12966. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12967. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12968. Use LogFactory.
  12969. * src/DownloadCommand.cc : Use Command::logger.
  12970. * src/PeerAbstractCommand.cc : Use Command::logger.
  12971. * src/PeerListenCommand.cc : Use Command::logger.
  12972. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12973. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12974. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12975. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12976. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12977. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12978. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12979. Use LogFactory.
  12980. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12981. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12982. Use LogFactory.
  12983. * src/main.cc (main): Use LogFactory.
  12984. * src/DiskAdaptor.h (logger): New variable.
  12985. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12986. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12987. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12988. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12989. parameter to a tracker request.
  12990. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12991. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12992. * src/main.cc (setSignalHander): New function.
  12993. (main): Added a handler for SIGTERM.
  12994. (handler): Updated message.
  12995. (torrentHandler): Updated message.
  12996. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12997. * src/TorrentConsoleDownloadEngine.cc
  12998. (onPartialDownloadingCompletes): Renamed as
  12999. onSelectiveDownloadingCompletes.
  13000. (onSelectiveDownloadingCompletes): Updated message.
  13001. To add DiskAdaptor which abstract DiskWriter family:
  13002. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13003. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13004. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13005. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13006. MultiDiskAdaptor.h.
  13007. (readFileEntry): Changed its arguments.
  13008. (setup): setupDiskWriter is merged into this function.
  13009. (setupDiskWriter): Removed.
  13010. (setFileFilter): New function.
  13011. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13012. made in readFileEntry.
  13013. (getFilePath): Removed.
  13014. (getTempFilePath): Removed.
  13015. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13016. (fixFilename): Removed.
  13017. (copySingleFile): Removed.
  13018. (splitMultiFile): Removed.
  13019. (deleteTempFile): Removed.
  13020. (setFileEntriesToDownload): Removed.
  13021. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13022. (isSelectiveDownloadingMode): New function.
  13023. (setAllMultiFileRequestedState): Removed.
  13024. (finishPartialDownloadingMode): Renamed as
  13025. finishSelectiveDownloadingMode.
  13026. (finishSelectiveDownloadingMode): New function.
  13027. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13028. (getSelectedTotalLength): New function.
  13029. (onDownloadComplete): Use diskAdaptor.
  13030. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13031. (Range): Removed.
  13032. (setMultiFileEntries): Renamed as setFileEntries.
  13033. (setFileEntries): New function.
  13034. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13035. (pieceLength): New variable.
  13036. * src/main.cc (printDownloadCompeleteMessage): New function.
  13037. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13038. (main): Renamed torrent-show-files to show-files.
  13039. Rewritten file contents listing.
  13040. * src/TorrentMan.h (FileEntry): Removed.
  13041. (multiFileTopDir): Removed.
  13042. (multiFileEntries): Removed.
  13043. (diskWriter): Removed.
  13044. (diskAdaptor): New variable.
  13045. * src/DefaultDiskWriter.h (totalLength): New variable.
  13046. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13047. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13048. diskWriter.
  13049. * src/TorrentConsoleDownloadEngine.h
  13050. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13051. (partialTotalLength): Renamed as selectedTotalLength.
  13052. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13053. openExistingFile, otherwise call initAndOpenFile.
  13054. (closeFile): fd > 0, not fd != 0.
  13055. * src/DirectDiskAdaptor.h: New class.
  13056. * src/DirectDiskAdaptor.cc: New class.
  13057. * src/MultiDiskAdaptor.h: New class.
  13058. * src/MultiDiskAdaptor.cc: New class.
  13059. * src/CopyDiskAdaptor.h: New class.
  13060. * src/CopyDiskAdaptor.cc: New class.
  13061. * src/DiskAdaptor.h: New class.
  13062. * src/DiskAdaptor.cc: New class.
  13063. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13064. (PREF_SHOW_FILES): New definition.
  13065. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13066. To add the ability to download multi torrent into respective files
  13067. directly:
  13068. * src/DiskWriter.h (openFile): New function.
  13069. (seek): Removed.
  13070. * src/MultiDiskWriter.h: New class.
  13071. * src/MultiDiskWriter.cc: New class.
  13072. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13073. protected.
  13074. (openFile): New function.
  13075. * src/AbstractDiskWriter.cc (openFile): New function.
  13076. * src/prefs.h (V_FALSE): New definition.
  13077. (PREF_DIRECT_FILE_MAPPING): New definition.
  13078. * src/TorrentMan.h (setupDiskWriter): New function.
  13079. (setAllMultiFileRequestedState): New function.
  13080. (onDownloadComplete): New function.
  13081. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13082. (setupDiskWriter): New function.
  13083. (getFilePath): Updated.
  13084. (getTempFilePath): Updated.
  13085. (getSegmentFilePath): Updated.
  13086. (fixFilename): Updated.
  13087. (deleteTempFile): Updated.
  13088. (setAllMultiFileRequestedState): New function.
  13089. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13090. (finishPartialDownloadingMode): Reset requested flags.
  13091. (onDownloadComplete): New function.
  13092. * src/main.cc: Added --direct-file-mapping option.
  13093. Use TorrentMan::setupDiskWriter().
  13094. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13095. onDownloadComplete().
  13096. To fix ETA bug:
  13097. * src/Util.h (difftvsec): New function.
  13098. * src/Util.cc (difftvsec): New function.
  13099. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13100. type of "elapsed" instead of long long int.
  13101. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13102. The updates of statistics takes place every 1 seconds.
  13103. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13104. (calculateSpeed): Changed its argument signature.
  13105. * src/PeerMessage.cc (toString): Fixed message.
  13106. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13107. To print ETA:
  13108. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13109. completion handling when dealing with
  13110. TorrentMan::isPartialDownloadingMode() == true.
  13111. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13112. New function.
  13113. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13114. (sessionDownloadLength): New variable.
  13115. (avgSpeed): New variable.
  13116. (eta): New variable.
  13117. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13118. new variables: eta, avgSpeed, startup.
  13119. (calculateSpeed): Calculate average speed and ETA.
  13120. (printStatistics): Added ETA.
  13121. * src/Util.h (secfmt): New function.
  13122. * src/Util.cc (secfmt): New function.
  13123. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13124. To detect "keep alive" flooding:
  13125. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13126. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13127. variable: keepAliveCount.
  13128. (detectMessageFlooding): Added "keep alive" flooding detection.
  13129. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13130. received.
  13131. To add the ability to download only specified files in multi-file
  13132. torrent:
  13133. * src/BitfieldMan.h (filterBitfield): New variable.
  13134. (filterEnabled): New variable.
  13135. (setFilterBit): New function.
  13136. (enableFilter): New function.
  13137. (disableFilter): New function.
  13138. (isFilterEnabled): New function.
  13139. (getFilteredTotalLength): New function.
  13140. (getCompletedLength): New function.
  13141. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13142. filterBitfield, filterEnabled.
  13143. (CopyConstructor): Added filterBitfield and filterEnabled.
  13144. (operator==): Added filterBitfield and filterEnabled.
  13145. (Destructor): Added filterBitfield.
  13146. (getMissingIndex): Use filterBitfield.
  13147. (getMissingUnusedIndex): Use filterBitfield.
  13148. (getFirstMissingUnusedIndex): Use filterBitfield.
  13149. (getFirstMissingUnusedIndex): Use filterBitfield.
  13150. (getAllMissingIndexes): Use filterBitfield.
  13151. (countMissingBlock): Use filterBitfield.
  13152. (countBlock): Use filterBitfield.
  13153. (setBitInternal): Added new argument on.
  13154. (setUseBit): Use setBitInternal.
  13155. (unsetUseBit): Use setBitInternal.
  13156. (setBit): Use setBitInternal.
  13157. (unsetBit): Use setBitInternal.
  13158. (isAllBitSet): Use filterBitfield.
  13159. (setFilterBit): New function.
  13160. (addFilter): New function.
  13161. (enableFilter): New function.
  13162. (disableFilter): New function.
  13163. (clearFilter): New function.
  13164. (isFilterEnabled): New function.
  13165. (getFilteredTotalLength): New function.
  13166. (getCompletedLength): New function.
  13167. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13168. Initalized newly added variables.
  13169. [FileEntry](offset): New variable.
  13170. [FileEntry](extracted): New variable.
  13171. [FileEntry](requested): New variable.
  13172. (readFileEntry): New function.
  13173. (option): New variable.
  13174. (splitMultiFile): Removed const qualifier.
  13175. (fixFilename): Removed const qualifier.
  13176. (readFileEntryFromMetaInfoFile): New function.
  13177. (finishPartialDownloadingMode): New function.
  13178. (isPartialDownloadingMode): New function.
  13179. (setFileEntriesToDownload): New function.
  13180. (getCompletedLength): New function.
  13181. (getPartialTotalLength): New function.
  13182. * src/TorrentMan.cc (readFileEntry): New function.
  13183. (setup): Use readFileEntry. If no-preallocation option is specified,
  13184. use DefaultDiskWriter.
  13185. (readFileEntryFromMetaInfoFile): New function.
  13186. (fixFilename): Removed const qualifier.
  13187. (splitMultiFile): Removed const qualifier.
  13188. (setFileEntriesToDownload): New function.
  13189. (isPartialDownloadingMode): New function.
  13190. (finishPartialDownloadingMode): New function.
  13191. (getCompletedLength): New function.
  13192. (getPartialTotalLength): New function.
  13193. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13194. New variable.
  13195. (partialTotalLength): New variable.
  13196. (downloadLength): New variable.
  13197. (totalLength): New variable.
  13198. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13199. Added log.
  13200. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13201. partialTotalLength, downloadLength, totalLength.
  13202. (calculate): Calculate downloadLength and totalLength.
  13203. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13204. * src/main.cc (addCommand): Changed argument signature.
  13205. (main): Added new variable: args. Added new option "torrent-show-files"
  13206. "no-preallocation". Usage is not updated yet.
  13207. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13208. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13209. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13210. Attempt to add the ability to listing file entries in a .torrent file.
  13211. This feature is not yet complete.
  13212. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13213. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13214. (getName): New function.
  13215. * src/TorrentMan.h (getMultiFileEntries): New function.
  13216. (getName): New function.
  13217. * src/main.cc (main): Use above 2 funtion.
  13218. * Release 0.3.2
  13219. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13220. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13221. (detectMessageFlooding): Updated threshold value.
  13222. (checkLongTimePeerChoking): Updated timeout value.
  13223. (getNewPieceAndSendInterest): Added debug log.
  13224. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13225. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13226. (getPeer): Updated.
  13227. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13228. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13229. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13230. is localhost.
  13231. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13232. * src/PendingMessage.cc (processMessage): Not to send piece message
  13233. if peer is not interested in the pieces localhost has.
  13234. * src/Peer.cc (shouldChoke): Updated.
  13235. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13236. * src/Util.cc (isPowerOf): New function.
  13237. * src/Util.h (isPowerOf): New function.
  13238. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13239. whether or not it is power of 2.
  13240. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13241. Added new class SendMessageQueue that includes PendingMessages and
  13242. RequestSlotMan.
  13243. * src/SendMessageQueue.h: New class.
  13244. * src/SendMessageQueue.cc: New class.
  13245. * src/PendingMessage.h: Added new member variable blockIndex and its
  13246. accessors.
  13247. (createRequestMessage): Updated.
  13248. * src/PendingMessage.cc (createRequestMessage): Updated.
  13249. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13250. SendMessageQueue.
  13251. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13252. (receiveMessage): Updated with SendMessageQueue.
  13253. (deletePendingPieceMessage): Removed.
  13254. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13255. (sendInterest): Updated with SendMessageQueue.
  13256. (createRequestPendingMessage): Updated with SendMessageQueue.
  13257. (sendMessages): Updated with SendMessageQueue.
  13258. (onAbort): Updated with SendMessageQueue.
  13259. (keepAlive): Updated with SendMessageQueue.
  13260. (beforeSocketCheck): Updated SendMessageQueue.
  13261. * src/PeerInteractionCommand (sendMessages): Shuffle
  13262. missingBLockIndexes before using it.
  13263. Added its own timeout for peer connection.
  13264. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13265. setter.
  13266. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13267. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13268. Added setTimeout() call.
  13269. (executeInternal): Added setTimeout() call.
  13270. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13271. Added timeout.
  13272. (isTimeoutDetected): Updated.
  13273. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13274. option.
  13275. Added *simple* message flooding checker.
  13276. * src/PeerInteractionCommand.cc (executeInternal):
  13277. Added detectMessageFlooding() call.
  13278. (detectMessageFlooding): New function.
  13279. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13280. (beforeSocketCheck): Added detectMessageFlooding() call.
  13281. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13282. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13283. Removed deletePendingPieceMessage(), getRequestSlot(),
  13284. deleteRequestSlot(), deleteAllRequestSlot().
  13285. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13286. Added checkLongTimePeerChoking() call.
  13287. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13288. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13289. if duplicate == false.
  13290. The parameter "uploaded" and "downloaded" in the tracker request are
  13291. the size since the client sent the "started" event to the tracker.
  13292. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13293. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13294. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13295. getSessionDownloadedSize(), getSessionUploadedSize().
  13296. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13297. getSessionUploadedSize() instead of getDownloadedSize(),
  13298. getUploadedSize().
  13299. * src/PendingMessage.cc (processMessage): Do not send request message
  13300. if the peer is choking the client.
  13301. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13302. less than interval.
  13303. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13304. * configure.in: Added gnutls support. Added several CPP macros.
  13305. * m4/openssl.m4: Added.
  13306. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13307. readData(), peekData(). Added gnutls support.
  13308. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13309. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13310. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13311. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13312. Instead, added a check for whether setup method has executed
  13313. successfully.
  13314. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13315. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13316. * src/Makefile.am: Updated.
  13317. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13318. using whether OpenSSL or gcrypt, depending on the result of configure
  13319. script.
  13320. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13321. messageDigest.h.
  13322. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13323. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13324. Fixed memory leak.
  13325. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13326. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13327. Removed instantiation of TrackerInitCommand. Instead,
  13328. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13329. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13330. ENABLE_SSL.
  13331. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13332. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13333. If a piece is already acquired by another command, delete the request
  13334. slots for the piece.
  13335. * src/TrackerUpdateCommand.cc (execute):
  13336. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13337. Added a check whether peer list is null.
  13338. Fixed the bug that causes sending completed event to the tracker
  13339. several times.
  13340. * src/TrackerInitCommand.cc (execute):
  13341. Fixed the bug that causes sending completed event to the tracker
  13342. several times.
  13343. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13344. by using messageDigest.h.
  13345. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13346. * PeerConnection.cc: Replaced log message "keep-alive" with
  13347. "keep alive".
  13348. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13349. localhost long time.
  13350. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13351. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13352. at most 100 failure entry from the list. If with duplicate = false,
  13353. MAX_PEER_LIST is not checked.
  13354. * PeerListenCommand.cc: Fixed the argument order of log message.
  13355. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13356. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13357. Added warn().
  13358. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13359. Implemented warn().
  13360. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13361. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13362. * Request.h: Added AFTER_COMPLETED event.
  13363. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13364. instead of downloaded size and progress(%) after download completes.
  13365. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13366. message to the peer if it is interested in what localhost has
  13367. downloaded.
  13368. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13369. destination instead of just renaming it.
  13370. * TorrentMan.cc: Added deleteTempFile().
  13371. * PeerAbstractCommand.cc: do not stop execution after download
  13372. completes. This makes localhost a seeder.
  13373. * Util.{h,cc}: Added fileCopy().
  13374. * PeerListenCommand.cc: do not stop execution after download completes.
  13375. This makes localhost a seeder.
  13376. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13377. Added TorrentMan::deleteTempFile() to torrentHandler.
  13378. Initialized the variable dir as ".".
  13379. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13380. Deleted renameSingleFile().
  13381. Added copySingleFile(), deleteTempFile().
  13382. * DownloadEngine.h: Added virtual function afterEachIteration().
  13383. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13384. in onEndOfRun() to afterEachIteration().
  13385. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13386. true.
  13387. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13388. In rangedFileCopy(), added try-catch block to properly close file
  13389. descriptors.
  13390. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13391. Added afterEachIteration(), isFilenameFixed().
  13392. * Peer.cc: Changed choking strategy.
  13393. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13394. * TrackerInitCommand.cc: Send completed event only once.
  13395. * DownloadEngine.cc: Added a call to afterEachIteration().
  13396. * TrackerUpdateCommand.cc: Do not stop execution after download
  13397. completes.
  13398. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13399. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13400. received from a tracker.
  13401. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13402. Decreased the number of failure peers to delete to 0(just comment out
  13403. the line).
  13404. * Release 0.3.1
  13405. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13406. * PeerInteractionCommand.cc: added a call to
  13407. TorrentMan::unadvertisePiece in Destructor.
  13408. * PeerInteractionCommand.cc: make have message sent immediately
  13409. if the size of pending message queue is zero.
  13410. * TorrentMan.cc: set the maximum size of peer list to 250.
  13411. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13412. to deque.
  13413. * Util.cc: fixed rangedFileCopy.
  13414. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13415. to Constructor. Also, moved digest cleanup to Destructor.
  13416. * MetaFileUtil.cc: fixed memory leak
  13417. * replaced std::vector with std::deque.
  13418. * AbstractCommand.cc: casted timeout value to long long int.
  13419. * ChunkedEncoding.cc: fixed memory leak.
  13420. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13421. * SleepCommand.cc: casted timeout value to long long int.
  13422. * Data.cc: fixed memory leak.
  13423. * Data.cc: fixed toLLInt().
  13424. * BitfieldMan.cc: fixed memory leak.
  13425. * TorrentMan.cc: initialized storeDir to ".".
  13426. * TorrentMan.cc: fixed memory leak.
  13427. * TorrentMan.cc: corrected file paths of splitted files.
  13428. * PeerAbstractCommand.cc: casted timeout to long long int.
  13429. * main.cc: added delete(req) and delete(te->diskWriter).
  13430. * RequestSlot.cc: casted timeout value to long long int.
  13431. * Request.cc: fixed memory leak.
  13432. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13433. have the piece.
  13434. * Peer.{h,cc}: added hasPiece(int index).
  13435. * main.cc: corrected addCommand.
  13436. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13437. * BitTorrent protocol support added.
  13438. * Release 0.3.0
  13439. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13440. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13441. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13442. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13443. decoding did not work properly.
  13444. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13445. * DownloadEngine.h: included sys/time.h
  13446. * DownloadEngine.cc: remove sys/time.h
  13447. * Makefile.am (SUBDIRS): Add intl.
  13448. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13449. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13450. * main.cc: correct help message for --http-auth-scheme.
  13451. * main.cc: changed e-mail address for bug reports.
  13452. * ja.po: added japanese translation.
  13453. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13454. * SimpleLogger.cc: flush log file instead of stdout.
  13455. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13456. * main.cc: Fixed command-line option: max-tries
  13457. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13458. does not equal to seg.sp.
  13459. * DownloadCommand.cc: If EOF is got from the server and the total size
  13460. of file is not zero, then throw DlRetryEx.
  13461. * main.cc: Set the minium value of min-segment-size to 1024.
  13462. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13463. fails because of a regression since 0.2.0 release.
  13464. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13465. * HttpConnection.cc:
  13466. * common.h: defined the user agent name as macro
  13467. * DownloadEngine.{h, cc}:
  13468. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13469. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13470. * main.cc: Download complete/abort message is now generated by main.
  13471. * Makefile.am (SUBDIRS): Add m4.
  13472. (ACLOCAL_AMFLAGS): New variable.
  13473. (EXTRA_DIST): New variable.
  13474. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13475. * gettext: added gettext functionality
  13476. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13477. * AbstractCommand.cc:
  13478. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13479. unregister its cuid from SegmentMan.
  13480. * DownloadEngine.cc: .aria2 file was written when a downloading
  13481. failed with errors.
  13482. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13483. Added "User-Agent" header to CONNECT proxy request.
  13484. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13485. properly.
  13486. * Logger.h:
  13487. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13488. * ChunkedEncoding.cc: Added #include directive for strings.h
  13489. * Release 0.2.1
  13490. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13491. * Util.{h,cc}: added startsWith().
  13492. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13493. Util::endsWith().
  13494. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13495. * common.h: added #include directive of limit.h.
  13496. * DownloadEngine.cc: added #include directive of sys/time.h and
  13497. algorithm.
  13498. * Exception.h: added #include directive of stdio.h.
  13499. * AbstractCommand.h: added #include directive of sys/time.h.
  13500. * DownloadCommand.h: added #include directive of sys/time.h.
  13501. * *.h: added #include directive of common.h to all base classes.
  13502. subclasses' one was removed.
  13503. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13504. does not define these macros.
  13505. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13506. * Release 0.2.0
  13507. * main.cc:
  13508. * HttpInitiateConnectionCommand.{h,cc}:
  13509. * prefs.h:
  13510. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13511. We can now use GET command in http proxy.
  13512. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13513. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13514. that splits slowest segment of SegmentMan::commands vector.
  13515. This is the default split algorithm of aria2.
  13516. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13517. that splits first segment of SegmentMan::commands vector.
  13518. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13519. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13520. * Segment.h:
  13521. * SegmentMan.cc: Added speed field to Segment.h
  13522. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13523. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13524. * message.h: Change file size related %d to %lld.
  13525. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13526. * FtpInitiateConnectionCommand.{h,cc}:
  13527. * FtpNegotiationCommand.{h,cc}:
  13528. * FtpDownloadCommand.{h,cc}:
  13529. * FtpConnection.{h,cc}: Added FTP support
  13530. * SimpleLogger.cc: Log message now includes time information.
  13531. * main.cc: The value of --http-auth-scheme option is chagned from
  13532. 'BASIC' to 'basic'
  13533. * main.cc: Added --timeout command-line option.
  13534. * main.cc: Added --min-segment-size command-line option.
  13535. * main.cc: Added --max-retries command-line option.
  13536. * prefs.h: option string constants are now defined in prefs.h
  13537. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13538. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13539. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13540. with version 0.1.0's one.
  13541. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13542. * configure.in: Added --enable-ssl option to configure script.
  13543. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13544. cannot permit absoluteURI as Request-URI.
  13545. * HttpConnection.cc: Added Referer support.
  13546. * main.cc: Added referer command-line option.
  13547. * main.cc: Added rety-wait command-line option.
  13548. * Exception.h: Fixed formating bug in Exception::setMsg()
  13549. * SocketCore.{h,cc}:
  13550. * Socket.{h, cc}:
  13551. * Request.cc:
  13552. * InitiateConnectionCommandFactory.cc:
  13553. * HttpRequestCommand.cc: Added HTTPS support.
  13554. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13555. for SocketCore.
  13556. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13557. size is wrong
  13558. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13559. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13560. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13561. * Release 0.1.0