ChangeLog 538 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008
  1. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added xml-rpc functionality. Currently only addURI commad is
  3. supported. To enable xml-rpc, run aria2 with
  4. --enable-http-server. This option name is temporal and will be
  5. changed. The feature that reports download progress in html format
  6. is temporarily disabled.
  7. * src/HttpServer.cc
  8. * src/HttpServer.h
  9. * src/HttpServerBodyCommand.cc
  10. * src/HttpServerBodyCommand.h
  11. * src/HttpServerCommand.cc
  12. * src/HttpServerResponseCommand.cc
  13. * src/Makefile.am
  14. * src/OptionParser.cc
  15. * src/OptionParser.h
  16. * src/RequestGroupMan.cc
  17. * src/RequestGroupMan.h
  18. * src/XmlRpcMethod.cc
  19. * src/XmlRpcMethod.h
  20. * src/XmlRpcMethodFactory.cc
  21. * src/XmlRpcMethodFactory.h
  22. * src/XmlRpcMethodImpl.cc
  23. * src/XmlRpcMethodImpl.h
  24. * src/download_helper.cc
  25. * src/download_helper.h
  26. * test/Makefile.am
  27. * test/XmlRpcMethodTest.cc
  28. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Added xml-rpc request parser. The supported value types are:
  30. i4/int, string, double, struct, array, base64. Currently only
  31. libxml2 version is provided.
  32. * src/Xml2XmlRpcRequestProcessor.cc
  33. * src/Xml2XmlRpcRequestProcessor.h
  34. * src/XmlRpcElements.cc
  35. * src/XmlRpcElements.h
  36. * src/XmlRpcRequest.h
  37. * src/XmlRpcRequestParserController.cc
  38. * src/XmlRpcRequestParserController.h
  39. * src/XmlRpcRequestParserState.h
  40. * src/XmlRpcRequestParserStateImpl.cc
  41. * src/XmlRpcRequestParserStateImpl.h
  42. * src/XmlRpcRequestParserStateMachine.cc
  43. * src/XmlRpcRequestParserStateMachine.h
  44. * src/XmlRpcRequestProcessor.h
  45. * test/XmlRpcRequestParserControllerTest.cc
  46. * test/XmlRpcRequestProcessorTest.cc
  47. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. * Release 1.3.3
  49. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Fixed compile error since r1202.
  51. * src/ExpatMetalinkProcessor.cc
  52. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Updated Ukrainian, Russian and Simplified Chinese
  54. translations. Thanks to all translators.
  55. * po/ru.po
  56. * po/uk.po
  57. * po/zh_CN.po
  58. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Pass reference of Option object instead of pointer.
  60. * src/download_helper.cc
  61. * src/download_helper.h
  62. * src/main.cc
  63. * test/DownloadHelperTest.cc
  64. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  66. from option directly. Instead, get them from RequestGroup.
  67. * src/ActivePeerConnectionCommand.cc
  68. * src/ActivePeerConnectionCommand.h
  69. * src/PeerReceiveHandshakeCommand.cc
  70. * src/RequestGroup.h
  71. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Removed unused uploadLimitCheck and uploadLimit from
  73. PeerAbstractCommand. Removed unused maxDownloadLimit from
  74. PeerInteractionCommand.
  75. * src/PeerAbstractCommand.cc
  76. * src/PeerAbstractCommand.h
  77. * src/PeerInteractionCommand.cc
  78. * src/PeerInteractionCommand.h
  79. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Fixed broken file renaming feature since r1202.
  81. * src/FtpNegotiationCommand.cc
  82. * src/FtpNegotiationCommand.h
  83. * src/HttpResponseCommand.cc
  84. * src/RequestGroup.cc
  85. * src/RequestGroup.h
  86. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Removed unused debug log
  88. * src/SocketCore.cc
  89. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Generated configure and Makefile.in using autoconf 2.63 and
  91. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  92. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  93. * configure.ac
  94. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Moved piece statistics stuff to new PieceStatMan class.
  96. Refactored PieceSelector interface.
  97. * src/DefaultPieceStorage.cc
  98. * src/DefaultPieceStorage.h
  99. * src/LongestSequencePieceSelector.cc
  100. * src/LongestSequencePieceSelector.h
  101. * src/Makefile.am
  102. * src/PieceSelector.h
  103. * src/PieceStatMan.cc
  104. * src/PieceStatMan.h
  105. * src/RarestPieceSelector.cc
  106. * src/RarestPieceSelector.h
  107. * src/RequestGroup.cc
  108. * test/DefaultPieceStorageTest.cc
  109. * test/InOrderPieceSelector.h
  110. * test/Makefile.am
  111. * test/PieceStatManTest.cc
  112. * test/RarestPieceSelectorTest.cc
  113. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Added static member _protocolFamily to SocketCore. By default,
  115. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  116. address. Sometime SocketCore::bind() and
  117. SocketCore::establishConnection() use difference protocl family
  118. and latter cannot connect to former. To avoid this situation, we
  119. limit protocol family to AF_INET for unit tests.
  120. * src/SocketCore.cc
  121. * src/SocketCore.h
  122. * test/AllTest.cc
  123. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Avoid std::bad_alloc for negative bencode string length.
  125. * src/bencode.cc
  126. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Supported segmented downloading with chunked transfer encoding and
  128. content-length.
  129. * src/DownloadCommand.cc
  130. * src/HttpResponseCommand.cc
  131. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Bump up version number to 1.3.3
  133. * configure.ac
  134. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  136. from 4096 to 65536 (for insanely large ftp login banners)
  137. * src/FtpConnection.h
  138. * test/FtpConnectionTest.cc
  139. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. In DefaultBtContext::getActualBasePath(), return first
  141. FileEntry::getPath() for single file torrent.
  142. * src/DefaultBtContext.cc
  143. * test/DefaultBtContextTest.cc
  144. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Removed directIOAllowed() from BinaryStream, DiskWriter,
  146. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  147. Removed _directIOAllowed member from DiskWriter.
  148. * src/AbstractDiskWriter.cc
  149. * src/AbstractDiskWriter.h
  150. * src/AbstractSingleDiskAdaptor.cc
  151. * src/AbstractSingleDiskAdaptor.h
  152. * src/BinaryStream.h
  153. * src/ByteArrayDiskWriter.h
  154. * src/DefaultPieceStorage.cc
  155. * src/DiskWriter.h
  156. * src/MultiDiskAdaptor.cc
  157. * src/MultiDiskAdaptor.h
  158. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Now the constructor of AbstractDiskWriter takes filename as an
  160. argument and filename argument is removed from openFile(),
  161. initAndOpenFile(), openExistingFile() interface. storeDir member
  162. and its accessor functions are removed from DiskAdaptor because it
  163. is not used anymore. size() member function of DefaultDiskWriter,
  164. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  165. opening file.
  166. * src/AbstractDiskWriter.cc
  167. * src/AbstractDiskWriter.h
  168. * src/AbstractSingleDiskAdaptor.cc
  169. * src/AbstractSingleDiskAdaptor.h
  170. * src/ByteArrayDiskWriter.cc
  171. * src/ByteArrayDiskWriter.h
  172. * src/ByteArrayDiskWriterFactory.cc
  173. * src/ByteArrayDiskWriterFactory.h
  174. * src/DefaultDiskWriter.cc
  175. * src/DefaultDiskWriter.h
  176. * src/DefaultDiskWriterFactory.cc
  177. * src/DefaultDiskWriterFactory.h
  178. * src/DefaultPieceStorage.cc
  179. * src/DirectDiskAdaptor.cc
  180. * src/DirectDiskAdaptor.h
  181. * src/DiskAdaptor.h
  182. * src/DiskWriter.h
  183. * src/DiskWriterFactory.h
  184. * src/MessageDigestHelper.cc
  185. * src/MultiDiskAdaptor.cc
  186. * src/RequestGroup.cc
  187. * src/UnknownLengthPieceStorage.cc
  188. * src/Util.cc
  189. * test/DefaultDiskWriterTest.cc
  190. * test/DirectDiskAdaptorTest.cc
  191. * test/FallocFileAllocationIteratorTest.cc
  192. * test/MessageDigestHelperTest.cc
  193. * test/MetalinkProcessorTest.cc
  194. * test/MultiDiskAdaptorTest.cc
  195. * test/MultiFileAllocationIteratorTest.cc
  196. * test/SingleFileAllocationIteratorTest.cc
  197. * test/UtilTest.cc
  198. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Fixed the bug that aria2 aborts when --select-file is used. This
  200. bug was introduced in r1199.
  201. * src/MultiDiskAdaptor.cc
  202. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Code cleanup
  204. * test/MockPieceStorage.cc
  205. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Fixed the bug that read-only file with wrong file size will cause
  207. error because it cannot be truncated to the correct size. Now if
  208. file size is different than the expected one, re-open file in
  209. writable mode.
  210. * src/AbstractSingleDiskAdaptor.cc
  211. * src/AbstractSingleDiskAdaptor.h
  212. * src/BtCheckIntegrityEntry.cc
  213. * src/DiskAdaptor.h
  214. * src/MultiDiskAdaptor.h
  215. * src/RequestGroup.cc
  216. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Fixed the bug that with --check-integrity option aria2 reports
  218. downloaded file size is 0 even if some parts of file is correctly
  219. downloaded. This bug is reproducible for the download that a file
  220. includes last piece is missing. This bug doesn't reveal for
  221. single-torrent with file allocation on.
  222. * src/IteratableChecksumValidator.cc
  223. * test/IteratableChecksumValidatorTest.cc
  224. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Avoid circular reference between RequestGroup and AdaptiveURISelector
  226. * src/RequestGroupMan.cc
  227. * src/AdaptiveURISelector.cc
  228. * src/AdaptiveURISelector.h
  229. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. * Release 1.3.2
  231. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Updated README
  233. * README
  234. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Updated Ukrainian translations. Thanks to Alexander10.
  236. * po/uk.po
  237. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Code cleanup
  239. * src/MetalinkParserStateMachine.cc
  240. * src/MetalinkParserStateMachine.h
  241. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  243. and expat simultaneously, MetalinkProcessor is now not base class
  244. and it is directly implemented in XML2SAXMetalinkProcessor and
  245. ExpatMetalinkProcessor.
  246. * src/ExpatMetalinkProcessor.cc
  247. * src/ExpatMetalinkProcessor.h
  248. * src/Makefile.am
  249. * src/MetalinkHelper.cc
  250. * src/MetalinkProcessor.h
  251. * src/MetalinkProcessorFactory.cc: Removed.
  252. * src/MetalinkProcessorFactory.h: Removed
  253. * src/XML2SAXMetalinkProcessor.cc
  254. * src/XML2SAXMetalinkProcessor.h
  255. * test/MetalinkProcessorTest.cc
  256. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Bump up version number to 1.3.2
  258. * configure.ac
  259. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Added missing file.
  261. * test/Makefile.am
  262. * test/url-list-singleFileEndsWithSlash.torrent
  263. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  265. request.
  266. * src/AnnounceList.cc
  267. * src/AnnounceList.h
  268. * src/BDE.cc: Added
  269. * src/BDE.h: Added
  270. * src/DHTAbstractMessage.cc
  271. * src/DHTAbstractMessage.h
  272. * src/DHTAnnouncePeerMessage.cc
  273. * src/DHTAnnouncePeerMessage.h
  274. * src/DHTAnnouncePeerReplyMessage.cc
  275. * src/DHTAnnouncePeerReplyMessage.h
  276. * src/DHTFindNodeMessage.cc
  277. * src/DHTFindNodeMessage.h
  278. * src/DHTFindNodeReplyMessage.cc
  279. * src/DHTFindNodeReplyMessage.h
  280. * src/DHTGetPeersMessage.cc
  281. * src/DHTGetPeersMessage.h
  282. * src/DHTGetPeersReplyMessage.cc
  283. * src/DHTGetPeersReplyMessage.h
  284. * src/DHTMessageFactory.h
  285. * src/DHTMessageFactoryImpl.cc
  286. * src/DHTMessageFactoryImpl.h
  287. * src/DHTMessageReceiver.cc
  288. * src/DHTMessageTracker.cc
  289. * src/DHTMessageTracker.h
  290. * src/DHTPingMessage.cc
  291. * src/DHTPingMessage.h
  292. * src/DHTPingReplyMessage.cc
  293. * src/DHTPingReplyMessage.h
  294. * src/DHTQueryMessage.cc
  295. * src/DHTQueryMessage.h
  296. * src/DHTResponseMessage.cc
  297. * src/DHTResponseMessage.h
  298. * src/DefaultBtAnnounce.cc
  299. * src/DefaultBtContext.cc
  300. * src/DefaultBtContext.h
  301. * src/HandshakeExtensionMessage.cc
  302. * src/Makefile.am
  303. * src/PeerListProcessor.h
  304. * src/UTPexExtensionMessage.cc
  305. * src/bencode.cc
  306. * src/bencode.h
  307. * test/AnnounceListTest.cc
  308. * test/BDETest.cc: Added
  309. * test/BencodeTest.cc
  310. * test/DHTAnnouncePeerMessageTest.cc
  311. * test/DHTAnnouncePeerReplyMessageTest.cc
  312. * test/DHTFindNodeMessageTest.cc
  313. * test/DHTFindNodeReplyMessageTest.cc
  314. * test/DHTGetPeersMessageTest.cc
  315. * test/DHTGetPeersReplyMessageTest.cc
  316. * test/DHTMessageFactoryImplTest.cc
  317. * test/DHTMessageTrackerTest.cc
  318. * test/DHTPingMessageTest.cc
  319. * test/DHTPingReplyMessageTest.cc
  320. * test/Makefile.am
  321. * test/MockDHTMessageFactory.h
  322. * test/PeerListProcessorTest.cc
  323. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Use url-list (web-seeding) only for single-file torrent. This is
  325. basically the same behavior with Metalink file with torrent and
  326. URIs.
  327. * src/RequestGroup.cc
  328. * src/DefaultBtContext.cc
  329. * test/DefaultBtContextTest.cc
  330. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Rewritten expr
  332. * src/array_fun.h
  333. * test/array_funTest.cc
  334. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  336. * src/DefaultBtMessageDispatcher.cc
  337. * src/a2algo.h
  338. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Removed ExtendedMessagingAware. Instead of using inheritance,
  340. added ExtensionMessageRegistry and it is passed to
  341. DefaultExtensionMessageFactory.
  342. * src/DefaultBtInteractive.cc
  343. * src/DefaultBtInteractive.h
  344. * src/DefaultExtensionMessageFactory.cc
  345. * src/DefaultExtensionMessageFactory.h
  346. * src/ExtendedMessagingAware.h: Removed.
  347. * src/ExtensionMessageFactory.h
  348. * src/ExtensionMessageRegistry.h: Added.
  349. * src/Makefile.am
  350. * src/PeerInteractionCommand.cc
  351. * test/DefaultExtensionMessageFactoryTest.cc
  352. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Fixed typo in log messages
  354. * src/MSEHandshake.cc
  355. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Fixed the bug that prevents torrent download from finishing. The
  357. bug doesn't reveal for all torrents. The torrents affected this
  358. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  359. of pieces.
  360. * src/bitfield.h
  361. * test/bitfieldTest.cc
  362. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Code cleanup
  364. * src/PeerListProcessor.h
  365. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Removed RequestGroupAware
  367. * src/AbstractCommand.cc
  368. * src/AbstractCommand.h
  369. * src/ActivePeerConnectionCommand.cc
  370. * src/ActivePeerConnectionCommand.h
  371. * src/DHTGetPeersCommand.cc
  372. * src/DHTGetPeersCommand.h
  373. * src/InitiatorMSEHandshakeCommand.cc
  374. * src/InitiatorMSEHandshakeCommand.h
  375. * src/Makefile.am
  376. * src/PeerInitiateConnectionCommand.cc
  377. * src/PeerInitiateConnectionCommand.h
  378. * src/PeerInteractionCommand.cc
  379. * src/PeerInteractionCommand.h
  380. * src/RealtimeCommand.cc
  381. * src/RealtimeCommand.h
  382. * src/RequestGroupAware.cc: Removed
  383. * src/RequestGroupAware.h: Removed
  384. * src/SeedCheckCommand.cc
  385. * src/SeedCheckCommand.h
  386. * src/SleepCommand.cc
  387. * src/TrackerWatcherCommand.cc
  388. * src/TrackerWatcherCommand.h
  389. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Rewritten PeerListProcessor
  391. * src/PeerListProcessor.h
  392. * src/CompactPeerListProcessor.h: Removed
  393. * src/CompactPeerListProcessor.cc: Removed
  394. * src/DelegatingPeerListProcessor.cc: Removed.
  395. * src/DefaultBtAnnounce.cc
  396. * src/Makefile.am
  397. * src/UTPexExtensionMessage.cc
  398. * src/DefaultPeerListProcessor.h: Removed.
  399. * src/DefaultPeerListProcessor.cc: Removed.
  400. * src/DelegatingPeerListProcessor.h: Removed.
  401. * test/Makefile.am
  402. * test/PeerListProcessorTest.cc
  403. * test/DefaultPeerListProcessorTest.cc: Removed.
  404. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Rewritten RequestGroupMan::calculateStat()
  406. * src/RequestGroupMan.cc
  407. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Removed unnecessary virtual destructor for Request class.
  409. * src/Request.cc
  410. * src/Request.h
  411. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Avoid dynamic_pointer_cast.
  413. * src/DHTGetPeersCommand.cc
  414. * src/DHTGetPeersCommand.h
  415. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  417. BtEvent.
  418. * src/AbstractBtEventListener.h: Removed.
  419. * src/AbstractBtMessage.cc
  420. * src/AbstractBtMessage.h
  421. * src/BtAbortOutstandingRequestEvent.h
  422. * src/BtCancelSendingPieceEvent.h
  423. * src/BtChokedEvent.h: Removed.
  424. * src/BtChokingEvent.h
  425. * src/BtEvent.h: Removed
  426. * src/BtEventListener.h: Removed.
  427. * src/BtMessage.h
  428. * src/BtPieceMessage.cc
  429. * src/BtPieceMessage.h
  430. * src/BtRequestMessage.cc
  431. * src/BtRequestMessage.h
  432. * src/DefaultBtMessageDispatcher.cc
  433. * src/Makefile.am
  434. * src/a2functional.h
  435. * test/BtPieceMessageTest.cc
  436. * test/BtRequestMessageTest.cc
  437. * test/DefaultBtMessageDispatcherTest.cc
  438. * test/MockBtMessage.h
  439. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Code cleanup
  441. * src/RequestGroupMan.cc
  442. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Code cleanup
  444. * src/DownloadCommand.cc
  445. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Fixed segmentation fault when GZipDecoder::decode() returns 0
  447. byte.
  448. * src/DownloadCommand.cc
  449. * src/bitfield.h
  450. * test/bitfieldTest.cc
  451. Fixed the bug that causes infinite loop if broken web server
  452. returns chunked response without last "0" chunk-size marker and
  453. closes connection.
  454. * src/DownloadCommand.cc
  455. Instantiate properly configured HttpDownloadCommand for
  456. non-resumable downlaods.
  457. * src/HttpResponseCommand.cc
  458. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. Rewritten array operation functions.
  460. * src/BitfieldMan.cc
  461. * src/array_fun.h
  462. * test/array_funTest.cc
  463. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Removed unused variable 'query'
  465. * src/Request.cc
  466. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  468. accidentally set to false in r1162.
  469. * configure.ac
  470. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Code cleanup
  472. * src/BNode.cc
  473. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Increase prefixLength for the bucket which doesn't own local node
  475. ID when splitting bucket.
  476. * src/DHTBucket.cc
  477. * test/DHTBucketTest.cc
  478. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. * Release 1.3.1
  480. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Bump up version number to 1.3.1
  482. * configure.ac
  483. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Removed unused variable checkPoint. Also removed include directive
  485. for TimeA2.h.
  486. * src/SeedCheckCommand.h
  487. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Fixed the bug that upload limit exceeds the value specified in
  489. --seed-ratio option depending on the timing of the execution of
  490. SeedCheckCommand.
  491. * src/SeedCheckCommand.cc
  492. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Fixed the bug that removed peer's session upload/download length
  494. are counted twice in _cachedTransferStat before it is
  495. re-calculated. This affected the calculation of shara ratio,
  496. resulting aria2 wrongly determines that specified share ratio is
  497. reached. Also fixed the typo in calculateStatFor function name.
  498. * src/BtSetup.cc
  499. * src/DefaultPeerStorage.cc
  500. * src/ShareRatioSeedCriteria.h
  501. * test/ShareRatioSeedCriteriaTest.cc
  502. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. * Release 1.3.0
  504. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  506. Nynorsk translations. Thanks to all translators.
  507. * po/es.po
  508. * po/ja.po
  509. * po/nn.po
  510. * po/ru.po
  511. * po/uk.po
  512. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Rewritten isInRange()
  514. * src/DHTBucket.cc
  515. * test/DHTBucketTest.cc
  516. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Fixed typo
  518. * doc/aria2c.1.txt
  519. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  521. malloc/realloc is not used.
  522. * src/configure.ac
  523. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. BitfieldMan::getMissingIndexes family functions now takes unsigned
  525. char* bitfield instead of stl container for efficiency.
  526. PieceSelector::select now takes this
  527. bitfield. RarestPieceSelector::select now also performs
  528. efficiently for this change. bitfield namespace is introduced and
  529. it has several helper functions to handle basic bitfield
  530. operations such as test, count set bits, etc.
  531. * src/BitfieldMan.cc
  532. * src/BitfieldMan.h
  533. * src/DefaultBtRequestFactory.cc
  534. * src/DefaultPieceStorage.cc
  535. * src/DefaultPieceStorage.h
  536. * src/LongestSequencePieceSelector.cc
  537. * src/LongestSequencePieceSelector.h
  538. * src/Makefile.am
  539. * src/Piece.cc
  540. * src/Piece.h
  541. * src/PieceSelector.h
  542. * src/RarestPieceSelector.cc
  543. * src/RarestPieceSelector.h
  544. * src/Util.cc
  545. * src/Util.h
  546. * src/bitfield.h
  547. * test/BitfieldManTest.cc
  548. * test/LongestSequencePieceSelectorTest.cc
  549. * test/Makefile.am
  550. * test/RarestPieceSelectorTest.cc
  551. * test/UtilTest.cc
  552. * test/bitfieldTest.cc
  553. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Made accepted socket non-block.
  555. * src/FtpNegotiationCommand.cc
  556. * src/HttpListenCommand.cc
  557. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Guarded #ifdef HAVE_POSIX_FALLOCATE
  559. * src/AbstractSingleDiskAdaptor.cc
  560. * src/DefaultPieceStorage.cc
  561. * src/DiskAdaptor.h
  562. * src/DiskAdaptor.h
  563. * src/MultiFileAllocationIterator.cc
  564. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Run
  566. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  567. in every 1 sec. The timeout of RequestSlot is 60s by default and
  568. it doesn't need to be called every time when
  569. DefaultBtInteractive::doInteractionProcessing() is called.
  570. * src/DefaultBtInteractive.cc
  571. * src/DefaultBtInteractive.h
  572. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Documented 'falloc' in man page.
  574. * doc/aria2c.1.txt
  575. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Updated doc
  577. * src/usage_text.h
  578. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Added 'falloc' parameter for --file-allocation option. 'falloc'
  580. allocation mode uses posix_fallocate() system call to allocate
  581. file on disk. If you are using newer file systems such as ext4
  582. (with extents support), btrfs or xfs, 'falloc' is your best
  583. choice. It allocates large(few GiB) files almost instantly. Don't
  584. use 'falloc' with legacy file systems such as ext3 because it
  585. takes almost same time as 'prealloc' and it blocks aria2 entirely
  586. until allocation finishes. 'falloc' may not be available if your
  587. system doesn't have posix_fallocate() system call.
  588. * configure.ac
  589. * src/AbstractDiskWriter.cc
  590. * src/AbstractDiskWriter.h
  591. * src/AbstractSingleDiskAdaptor.cc
  592. * src/BinaryStream.h
  593. * src/BtCheckIntegrityEntry.cc
  594. * src/ByteArrayDiskWriter.h
  595. * src/CheckIntegrityEntry.cc
  596. * src/CheckIntegrityEntry.h
  597. * src/DefaultPieceStorage.cc
  598. * src/DiskAdaptor.cc
  599. * src/DiskAdaptor.h
  600. * src/DiskWriter.h
  601. * src/FallocFileAllocationIterator.cc
  602. * src/FallocFileAllocationIterator.h
  603. * src/FileAllocationEntry.cc
  604. * src/FileAllocationEntry.h
  605. * src/Makefile.am
  606. * src/MultiFileAllocationIterator.cc
  607. * src/MultiFileAllocationIterator.h
  608. * src/OptionHandlerFactory.cc
  609. * src/RequestGroup.cc
  610. * src/StreamCheckIntegrityEntry.cc
  611. * src/prefs.cc
  612. * src/prefs.h
  613. * src/usage_text.h
  614. * test/FallocFileAllocationIteratorTest.cc
  615. * test/Makefile.am
  616. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Removed duplicate enableDirectIO() call.
  618. * src/MultiFileAllocationIterator.cc
  619. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  621. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  622. cost of std::rotate().
  623. * src/RarestPieceSelector.cc
  624. * src/RarestPieceSelector.h
  625. * test/RarestPieceSelectorTest.cc
  626. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Updated usage doc for --bt-tracker-interval option.
  628. * src/usage_text.h
  629. * doc/aria2c.1.txt
  630. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Documented --bt-tracker-interval option in man page.
  632. * doc/aria2c.1.txt
  633. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Added an option to specify the interval between tracker requests.
  635. If non-zero value is specified, aria2 uses it and ignores the
  636. interval value in the response of tracker. If zero is specified,
  637. aria2 determines the inteval value based on the tarcker response
  638. and download progress.
  639. * src/DefaultBtAnnounce.cc
  640. * src/DefaultBtAnnounce.h
  641. * src/OptionHandlerFactory.cc
  642. * src/RequestGroup.cc
  643. * src/prefs.cc
  644. * src/prefs.h
  645. * src/usage_text.h
  646. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Added operator+=, operator-=, operator-
  648. * src/TransferStat.cc
  649. * src/TransferStat.h
  650. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Refactored RarestPieceSelector to reduce CPU load, especially for
  652. addPieceStats.
  653. * src/RarestPieceSelector.cc
  654. * src/RarestPieceSelector.h
  655. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  657. getAllMissingBlockIndexes to reduce a call to
  658. array_function_base::operator[].
  659. * src/BitfieldMan.cc
  660. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Cached TransferStat/download speed to avoid to sum them up in each
  662. call.
  663. * src/DefaultPeerStorage.cc
  664. * src/DefaultPeerStorage.h
  665. * src/SegmentMan.cc
  666. * src/SegmentMan.h
  667. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Typedefed cuid_t as int32_t in Command.h
  669. * src/CUIDCounter.h
  670. * src/Command.cc
  671. * src/Command.h
  672. * src/DownloadEngine.cc
  673. * src/DownloadEngine.h
  674. * src/PeerStat.h
  675. * src/SegmentMan.cc
  676. * src/SegmentMan.h
  677. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Reduced the number of calls to PeerStorage::calculateStat() and
  679. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  680. transfer rate.
  681. * src/DefaultBtInteractive.cc
  682. * src/DefaultBtMessageDispatcher.cc
  683. * src/DefaultPeerStorage.cc
  684. * src/DefaultPeerStorage.h
  685. * src/DownloadCommand.cc
  686. * src/DownloadEngine.cc
  687. * src/PeerStorage.h
  688. * src/SegmentMan.cc
  689. * src/SegmentMan.h
  690. * test/MockPeerStorage.h
  691. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Prepended _dir+"/" after joining path elements in torrent file.
  693. * src/DefaultBtContext.cc
  694. * test/DefaultBtContextTest.cc
  695. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Added missing IndexBtMessageValidator.h
  697. * src/Makefile.am
  698. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  700. Chinese translations. Thank you for contributing our project.
  701. * po/id.po
  702. * po/it.po
  703. * po/ru.po
  704. * po/uk.po
  705. * po/zh_CN.po
  706. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Updated README
  708. * README
  709. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Bump up version number to 1.3.0
  711. * configure.ac
  712. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Updated doc
  714. * src/DefaultBtContext.h
  715. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Slice/joinPath for name of single torrent.
  717. * src/DefaultBtContext.cc
  718. * test/DefaultBtContextTest.cc
  719. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Updated man page: Documented --dry-run and --index-out
  721. options. Changed the default value of --uri-selector and
  722. --http-auth-challenge options. Removed --direct-file-mapping
  723. option. Added example for --index-out
  724. * doc/aria2c.1.txt
  725. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Updated TEXT_DRY_RUN
  727. * src/usage_text.h
  728. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Changed the default value of --uri-selector option from 'inorder'
  730. to 'feedback'
  731. * src/OptionHandlerFactory.cc
  732. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Included current URI in exception message.
  734. * src/AbstractCommand.cc
  735. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Renamed ServerStatURISelector as FeedbackURISelector.
  737. * src/FeedbackURISelector.cc
  738. * src/FeedbackURISelector.h
  739. * src/Makefile.am
  740. * src/RequestGroupMan.cc
  741. * src/ServerStatURISelector.cc
  742. * src/ServerStatURISelector.h
  743. * test/FeedbackURISelectorTest.cc
  744. * test/Makefile.am
  745. * test/ServerStatURISelectorTest.cc
  746. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  748. all URIs are tested and their timeout is not reached.
  749. * src/AdaptiveURISelector.cc
  750. * src/AdaptiveURISelector.h
  751. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Changed the default value of --http-auth-challenge option to false.
  753. * src/OptionHandlerFactory.cc
  754. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Reuse URIs when all unused URIs run out.
  756. * src/OptionHandlerFactory.cc
  757. * src/RequestGroup.cc
  758. * src/prefs.cc
  759. * src/prefs.h
  760. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  762. and BtRejectMessage are derived from RangeBtMessage class.
  763. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  764. derived from IndexBtMessage class. BtChokeMessage,
  765. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  766. BtNotInterestedMessage and BtUnchokeMessage are derived from
  767. ZeroBtMessage class.
  768. * src/AbstractBtMessage.cc
  769. * src/AbstractBtMessage.h
  770. * src/BtAllowedFastMessage.cc
  771. * src/BtAllowedFastMessage.h
  772. * src/BtAllowedFastMessageValidator.h: Removed
  773. * src/BtBitfieldMessage.cc
  774. * src/BtBitfieldMessage.h
  775. * src/BtCancelMessage.cc
  776. * src/BtCancelMessage.h
  777. * src/BtCancelMessageValidator.h: Removed
  778. * src/BtChokeMessage.cc
  779. * src/BtChokeMessage.h
  780. * src/BtExtendedMessage.cc
  781. * src/BtExtendedMessage.h
  782. * src/BtHandshakeMessage.cc
  783. * src/BtHandshakeMessage.h
  784. * src/BtHaveAllMessage.cc
  785. * src/BtHaveAllMessage.h
  786. * src/BtHaveMessage.cc
  787. * src/BtHaveMessage.h
  788. * src/BtHaveMessageValidator.h: Removed
  789. * src/BtHaveNoneMessage.cc
  790. * src/BtHaveNoneMessage.h
  791. * src/BtInterestedMessage.cc
  792. * src/BtInterestedMessage.h
  793. * src/BtKeepAliveMessage.cc
  794. * src/BtKeepAliveMessage.h
  795. * src/BtNotInterestedMessage.cc
  796. * src/BtNotInterestedMessage.h
  797. * src/BtPieceMessage.cc
  798. * src/BtPieceMessage.h
  799. * src/BtPortMessage.cc
  800. * src/BtPortMessage.h
  801. * src/BtRejectMessage.cc
  802. * src/BtRejectMessage.h
  803. * src/BtRejectMessageValidator.h: Removed
  804. * src/BtRequestMessage.cc
  805. * src/BtRequestMessage.h
  806. * src/BtRequestMessageValidator.h: Removed
  807. * src/BtSuggestPieceMessage.cc
  808. * src/BtSuggestPieceMessage.h
  809. * src/BtSuggestPieceMessageValidator.h: Removed
  810. * src/BtUnchokeMessage.cc
  811. * src/BtUnchokeMessage.h
  812. * src/DefaultBtMessageFactory.cc
  813. * src/IndexBtMessage.cc
  814. * src/IndexBtMessage.h
  815. * src/IndexBtMessageValidator.h
  816. * src/Makefile.am
  817. * src/PeerMessageUtil.cc
  818. * src/PeerMessageUtil.h
  819. * src/RangeBtMessage.cc
  820. * src/RangeBtMessage.h
  821. * src/RangeBtMessageValidator.h
  822. * src/SimpleBtMessage.cc
  823. * src/SimpleBtMessage.h
  824. * src/ZeroBtMessage.cc
  825. * src/ZeroBtMessage.h
  826. * test/BtRequestMessageTest.cc
  827. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Reverted usage_text.h to r1093 to avoid to lose translated
  829. messages.
  830. * src/usage_text.h
  831. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  833. declared as non-const previously is now const and defined in class
  834. definition.
  835. * src/AbstractBtMessage.cc
  836. * src/AbstractBtMessage.h
  837. * src/BtAllowedFastMessage.cc
  838. * src/BtAllowedFastMessage.h
  839. * src/BtBitfieldMessage.h
  840. * src/BtCancelMessage.cc
  841. * src/BtCancelMessage.h
  842. * src/BtChokeMessage.cc
  843. * src/BtChokeMessage.h
  844. * src/BtExtendedMessage.cc
  845. * src/BtExtendedMessage.h
  846. * src/BtHandshakeMessage.cc
  847. * src/BtHandshakeMessage.h
  848. * src/BtHaveAllMessage.cc
  849. * src/BtHaveAllMessage.h
  850. * src/BtHaveMessage.cc
  851. * src/BtHaveMessage.h
  852. * src/BtHaveNoneMessage.cc
  853. * src/BtHaveNoneMessage.h
  854. * src/BtInterestedMessage.cc
  855. * src/BtInterestedMessage.h
  856. * src/BtKeepAliveMessage.cc
  857. * src/BtKeepAliveMessage.h
  858. * src/BtMessage.h
  859. * src/BtNotInterestedMessage.cc
  860. * src/BtNotInterestedMessage.h
  861. * src/BtPieceMessage.h
  862. * src/BtPortMessage.cc
  863. * src/BtPortMessage.h
  864. * src/BtRejectMessage.cc
  865. * src/BtRejectMessage.h
  866. * src/BtRequestMessage.cc
  867. * src/BtRequestMessage.h
  868. * src/BtSuggestPieceMessage.cc
  869. * src/BtSuggestPieceMessage.h
  870. * src/BtUnchokeMessage.cc
  871. * src/BtUnchokeMessage.h
  872. * src/SimpleBtMessage.cc
  873. * src/SimpleBtMessage.h
  874. * test/MockBtMessage.h
  875. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Use FileEntry::exists()
  877. * src/MultiDiskAdaptor.cc
  878. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Added exists()
  880. * src/FileEntry.cc
  881. * src/FileEntry.h
  882. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Added missing prefix dir.
  884. * src/download_helper.cc
  885. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Removed --direct-file-mapping option and CopyDiskAdaptor.
  887. * src/CopyDiskAdaptor.cc: Removed
  888. * src/CopyDiskAdaptor.h: Removed
  889. * src/DefaultPieceStorage.cc
  890. * src/Makefile.am
  891. * src/OptionHandlerFactory.cc
  892. * src/prefs.cc
  893. * src/prefs.h
  894. * src/usage_text.h
  895. * test/CopyDiskAdaptorTest.cc: Removed
  896. * test/Makefile.am
  897. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Rewritten isSameFileBeingDownloaded()
  899. * src/RequestGroupMan.cc
  900. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Removed getName() from DownloadContext. getName() is declared in
  902. BtContext.
  903. * src/BtContext.h
  904. * src/DownloadContext.h
  905. * src/SingleFileDownloadContext.cc
  906. * src/SingleFileDownloadContext.h
  907. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  908. in AbstractSingleDiskAdaptor.
  909. * src/AbstractSingleDiskAdaptor.h
  910. * src/DiskAdaptor.h
  911. * src/MultiDiskAdaptor.h
  912. * src/RequestGroup.cc
  913. Removed setTopDir() and getTopDir() and getTopDirPath() from
  914. MultiDiskAdaptor.
  915. * src/DefaultPieceStorage.cc
  916. * src/MultiDiskAdaptor.cc
  917. * src/MultiDiskAdaptor.h
  918. * test/MultiDiskAdaptorTest.cc
  919. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. FileEntry::getPath() contains store(top level) directory to
  921. simplify path handling operation. In the previous implementation,
  922. store directory is concatenated to FileEntry::getPath() in
  923. DownloadContext.
  924. * src/BtDependency.cc
  925. * src/BtPostDownloadHandler.cc
  926. * src/CopyDiskAdaptor.cc
  927. * src/DefaultBtContext.cc
  928. * src/DirectDiskAdaptor.cc
  929. * src/FileEntry.cc
  930. * src/FileEntry.h
  931. * src/FtpNegotiationCommand.cc
  932. * src/HttpResponse.cc
  933. * src/HttpResponseCommand.cc
  934. * src/Metalink2RequestGroup.cc
  935. * src/MultiDiskAdaptor.cc
  936. * src/MultiDiskAdaptor.h
  937. * src/MultiFileAllocationIterator.cc
  938. * src/RequestGroup.cc
  939. * src/SingleFileDownloadContext.cc
  940. * src/SingleFileDownloadContext.h
  941. * src/download_helper.cc
  942. * test/BtDependencyTest.cc
  943. * test/CopyDiskAdaptorTest.cc
  944. * test/DefaultBtContextTest.cc
  945. * test/DefaultBtProgressInfoFileTest.cc
  946. * test/DirectDiskAdaptorTest.cc
  947. * test/DownloadHelperTest.cc
  948. * test/FileEntryTest.cc
  949. * test/MultiDiskAdaptorTest.cc
  950. * test/MultiFileAllocationIteratorTest.cc
  951. * test/RequestGroupTest.cc
  952. * test/SingleFileDownloadContextTest.cc
  953. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Fixed compiler warning
  955. * src/download_helper.cc
  956. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Throw exception if same infohash torrent is now downloading.
  958. * src/RequestGroup.cc
  959. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Added --dry-run option. In this mode, aria2 just checks whether
  961. the remote file is available and doesn't download data. This
  962. option has effect on HTTP/FTP downloads and BitTorrent downloads
  963. are canceled in this mode.
  964. * src/FtpNegotiationCommand.cc
  965. * src/HttpResponseCommand.cc
  966. * src/HttpResponseCommand.h
  967. * src/OptionHandlerFactory.cc
  968. * src/RequestGroup.cc
  969. * src/RequestGroupMan.cc
  970. * src/prefs.cc
  971. * src/prefs.h
  972. * src/usage_text.h
  973. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Fixed compiler waring
  975. * test/UriListParserTest.cc
  976. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Parse options in -i list using OptionParser.
  978. * src/UriListParser.cc
  979. * src/UriListParser.h
  980. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Don't reset URI in retry to avoid additional round trips because
  982. of redirects.
  983. * src/AbstractCommand.cc
  984. * src/OptionHandlerFactory.cc
  985. * src/prefs.cc
  986. * src/prefs.h
  987. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Declared hide() in OptionHandler.
  989. * src/NameMatchOptionHandler.h
  990. * src/OptionHandler.h
  991. * src/OptionHandlerImpl.h
  992. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Updated doc
  994. * src/Peer.h
  995. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Added log message in setStatusInternal()
  997. * src/ServerStat.cc
  998. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1000. effectively exclude failed server.
  1001. * src/AbstractCommand.cc
  1002. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Added --index-out option to specify each file path for torrent.
  1004. Here index shown in --show-files option is used to specify which
  1005. file path should be altered. For example, to change the file path
  1006. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1007. option multiple times: --index-out=1=aria2.tar.bz2
  1008. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1009. available. This option can be specified in -i list.
  1010. * src/DefaultBtContext.cc
  1011. * src/DefaultBtContext.h
  1012. * src/MultiDiskAdaptor.cc
  1013. * src/MultiDiskAdaptor.h
  1014. * src/MultiFileAllocationIterator.cc
  1015. * src/OptionHandlerFactory.cc
  1016. * src/OptionHandlerImpl.h
  1017. * src/Util.cc
  1018. * src/Util.h
  1019. * src/download_helper.cc
  1020. * src/prefs.cc
  1021. * src/prefs.h
  1022. * src/usage_text.h
  1023. * test/DefaultBtContextTest.cc
  1024. * test/MultiDiskAdaptorTest.cc
  1025. * test/MultiFileAllocationIteratorTest.cc
  1026. * test/UtilTest.cc
  1027. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Use Util::pathJoin()
  1029. * src/MetalinkParserController.cc
  1030. * test/test.xml
  1031. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Use Util::pathJoin()
  1033. * src/DefaultBtContext.cc
  1034. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Added Util::pathJoin()
  1036. * src/Util.h
  1037. * test/UtilTest.cc
  1038. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Applied basename function to remove directory element in
  1040. content-disposition value.
  1041. Return empty string if content-disposition value is ".." or ".".
  1042. * src/Util.cc
  1043. * test/UtilTest.cc
  1044. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Added --max-overall-download-limit in man page.
  1046. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1047. * doc/aria2c.1.txt
  1048. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Added --max-overall-download-limit option. Now --max-upload-limit
  1050. option is not ignored when --max-overall-upload-limit option has
  1051. non-zero value. aria2 checks download(upload) speed in the order:
  1052. first checks overall speed limit and if it is not exceeded, then
  1053. checks speed limit per download. Thus you can specify both
  1054. value. For example, set --max-overall-download-limit=1M and
  1055. --max-download-limit=500K to prevent from one download from eating
  1056. all overall speed limit.
  1057. * src/DefaultBtInteractive.cc
  1058. * src/DefaultBtInteractive.h
  1059. * src/DefaultBtMessageDispatcher.cc
  1060. * src/DefaultBtMessageDispatcher.h
  1061. * src/DownloadCommand.cc
  1062. * src/DownloadCommand.h
  1063. * src/FtpNegotiationCommand.cc
  1064. * src/HttpResponseCommand.cc
  1065. * src/OptionHandlerFactory.cc
  1066. * src/PeerInteractionCommand.cc
  1067. * src/RequestGroup.cc
  1068. * src/RequestGroup.h
  1069. * src/RequestGroupMan.cc
  1070. * src/RequestGroupMan.h
  1071. * src/prefs.cc
  1072. * src/prefs.h
  1073. * src/usage_text.h
  1074. * test/DefaultBtMessageDispatcherTest.cc
  1075. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Documented select-file option in Input File section.
  1077. Documented --http-auth-challenge option.
  1078. * doc/aria2c.1.txt
  1079. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Now select-file can be specified in the uri list(-i list).
  1081. * src/BtContext.cc
  1082. * src/BtContext.h
  1083. * src/RequestGroup.cc
  1084. * src/Sequence.h
  1085. * src/download_helper.cc
  1086. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Made the upper value of --max-concurrent-downloads options unlimited.
  1088. * src/OptionHandlerFactory.cc
  1089. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Fixed the bug that disk writer is not created even if it shares
  1091. same piece with the preceding file if the length of previous file
  1092. is 0.
  1093. * src/MultiDiskAdaptor.cc
  1094. * test/MultiDiskAdaptorTest.cc
  1095. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. In BitTorrent, Open files in read-only mode for hash check. After
  1097. that, re-open file in read/write mode only when the download is
  1098. not finished.
  1099. * src/AbstractDiskWriter.cc
  1100. * src/AbstractDiskWriter.h
  1101. * src/AbstractSingleDiskAdaptor.cc
  1102. * src/AbstractSingleDiskAdaptor.h
  1103. * src/BtCheckIntegrityEntry.cc
  1104. * src/DiskAdaptor.h
  1105. * src/DiskWriter.h
  1106. * src/MultiDiskAdaptor.cc
  1107. * src/MultiDiskAdaptor.h
  1108. * src/RequestGroup.cc
  1109. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Added --http-auth-challenge option. If it is set to true(by
  1111. default), aria2 sends HTTP authorization header only when it is
  1112. requested by the server. If false is set, then authorization
  1113. header is always sent to the server. This is useful for servers
  1114. that don't respond 401 code when authentication is required.
  1115. There is an exception: if username and password are embedded in
  1116. URI, authorization header is always sent to the server regardless
  1117. of this option.
  1118. * src/AuthConfigFactory.cc
  1119. * src/HttpSkipResponseCommand.cc
  1120. * src/OptionHandlerFactory.cc
  1121. * src/prefs.cc
  1122. * src/prefs.h
  1123. * src/usage_text.h
  1124. * test/AuthConfigFactoryTest.cc
  1125. * test/HttpRequestTest.cc
  1126. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. * Release 1.2.0
  1128. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1130. Thanks to all translators.
  1131. * po/es.po
  1132. * po/ja.po
  1133. * po/ru.po
  1134. * po/uk.po
  1135. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Call deleteSocketForReadCheck() before socket is closed.
  1137. * src/HttpListenCommand.cc
  1138. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Defined virtual destructor for BObject.
  1140. * src/bencode.h
  1141. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Rewritten BDE to make it efficient.
  1143. * src/bencode.cc
  1144. * src/bencode.h
  1145. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Removed function throw list.
  1147. * src/bencode.cc
  1148. * src/bencode.h
  1149. * test/BencodeTest.cc
  1150. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Enclosed all URLs in double quotes in command-line examples.
  1152. * doc/aria2c.1.txt
  1153. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Updated reference/see also section.
  1155. * README
  1156. * doc/aria2c.1.txt
  1157. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Reorganized man page based on man man-pages.
  1159. * doc/aria2c.1.txt
  1160. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1162. because same documents are available in man page. Added
  1163. References section.
  1164. * README
  1165. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1167. PERFORMANCE PROFILE section.
  1168. * doc/aria2c.1.txt
  1169. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Rewritten the section for configuration file.
  1171. * README
  1172. * doc/aria2c.1.txt
  1173. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Fixed the segmentation fault during execution of choking algorithm
  1175. in leecher state because of broken compare operator
  1176. implementation.
  1177. * src/BtLeecherStateChoke.cc
  1178. * src/BtLeecherStateChoke.h
  1179. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Open file in binary mode.
  1181. * src/CookieStorage.cc
  1182. * src/DHTSetup.cc
  1183. * src/DHTUtil.cc
  1184. * src/Netrc.cc
  1185. * src/NsCookieParser.cc
  1186. * src/ProtocolDetector.cc
  1187. * src/RequestGroupMan.cc
  1188. * src/Signature.cc
  1189. * src/bencode.cc
  1190. * src/download_helper.cc
  1191. * src/option_processing.cc
  1192. * test/CookieParserTest.cc
  1193. * test/DefaultBtProgressInfoFileTest.cc
  1194. * test/FileTest.cc
  1195. * test/GZipDecoderTest.cc
  1196. * test/RequestGroupManTest.cc
  1197. * test/SignatureTest.cc
  1198. * test/SingleFileAllocationIteratorTest.cc
  1199. * test/UriListParserTest.cc
  1200. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Removed operator[] because it is ambiguous with built-in []
  1202. operator.
  1203. * src/array_fun.h
  1204. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Fixed compile error
  1206. * src/OptionParser.cc
  1207. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Added missing call to arrayWrapperConst
  1209. * test/array_funTest.cc
  1210. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Use array_wrapper instead of array_ptr.
  1212. * src/DHTRoutingTableDeserializer.cc
  1213. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1215. * src/array_fun.h
  1216. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Added array_wrapper template.
  1218. * src/array_fun.h
  1219. * test/array_funTest.cc
  1220. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Use operator T* of array_ptr.
  1222. * src/OptionParser.cc
  1223. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Use localhost instead of 127.0.0.1
  1225. * test/FtpConnectionTest.cc
  1226. * test/MSEHandshakeTest.cc
  1227. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Added operator T*
  1229. * src/array_fun.h
  1230. * test/array_funTest.cc
  1231. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Use dynamically allocated char array to detect memory access
  1233. violation.
  1234. * src/DHTRoutingTableDeserializer.cc
  1235. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1237. defined.
  1238. * src/PeerMessageUtil.cc
  1239. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1241. * configure.ac
  1242. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Added a check to see struct sockaddr_in has sin_len member.
  1244. * configure.ac
  1245. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Fixed buffer overrun.
  1247. * src/DHTRoutingTableDeserializer.cc
  1248. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Added LL for long long int constant.
  1250. * test/FtpConnectionTest.cc
  1251. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Casted to unsigned int to suppress compiler warning on netbsd.
  1253. * src/BtRuntime.h
  1254. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1256. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1257. type time_t.
  1258. * src/SimpleLogger.cc
  1259. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Added test for FtpConnection::receiveSizeResponse().
  1261. * test/FtpConnectionTest.cc
  1262. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Fix epoll error on the old kernel 2.6.8 or ealier.
  1264. * src/EpollEventPoll.cc
  1265. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Use Util::parseLLInt instead of sscanf for portability. The
  1267. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1268. * src/FtpConnection.cc
  1269. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1271. block. It should not filter anything.
  1272. * src/BitfieldMan.cc
  1273. * src/ConsoleStatCalc.cc
  1274. * test/BitfieldManTest.cc
  1275. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Fixed the bug that the boolean options that don't take arguments
  1277. don't work.
  1278. * src/OptionHandlerImpl.h
  1279. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Fixed broken selected file BitTorrent download.
  1281. * src/MultiDiskAdaptor.cc
  1282. * test/MultiDiskAdaptorTest.cc
  1283. * test/MultiFileAllocationIteratorTest.cc
  1284. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Fixed #define guard for EpollEventPoll
  1286. * src/EpollEventPoll.h
  1287. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1288. Wait 2 seconds. 1 second is sometimes not enough.
  1289. * test/TimeSeedCriteriaTest.cc
  1290. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Use localhost instead of 127.0.0.1.
  1292. * test/DHTConnectionImplTest.cc
  1293. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Suppressed compiler warning.
  1295. * src/AdaptiveURISelector.cc
  1296. * src/DefaultPieceStorage.cc
  1297. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Defined virtual destructor.
  1299. * src/MetalinkParserState.h
  1300. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Give NULL for second argument of getaddrinfo instead of "0".
  1302. * src/NameResolver.cc
  1303. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1305. included strptime doesn't parse data for this format.
  1306. * src/FtpConnection.cc
  1307. * test/FtpConnectionTest.cc
  1308. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Removed tests giving -1 for unsigned argument.
  1310. * test/SingleFileDownloadContextTest.cc
  1311. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Don't use sha256 in tests because it might not be supported by the
  1313. SSL library.
  1314. * test/MetalinkProcessorTest.cc
  1315. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Removed tests giving -1 for unsigned argument.
  1317. * test/AlphaNumberDecoratorTest
  1318. * test/BitfieldManTest.cc
  1319. * test/DefaultBtContextTest.cc
  1320. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Fixed compile error without libcares when epoll is available.
  1322. * src/EpollEventPoll.cc
  1323. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Included fstream instead of iostream.
  1325. * test/SignatureTest.cc
  1326. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Removed #include <algorithm>
  1328. * test/RequestGroupTest.cc
  1329. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1331. using RequestGroup::extractURIResult().
  1332. * src/AdaptiveURISelector.cc
  1333. * src/RequestGroup.cc
  1334. * src/RequestGroup.h
  1335. * test/RequestGroupTest.cc
  1336. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Added tests for array_ptr.
  1338. * test/array_funTest.cc
  1339. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Don't send ip parameter to a tracker if ip parameter is empty
  1341. string.
  1342. * src/DefaultBtAnnounce.cc
  1343. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Adjusted line feed.
  1345. * src/version_usage.cc
  1346. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Print tags, possible values when OptionHandlerException is caught.
  1348. * src/option_processing.cc
  1349. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Changed the message for FatalException.
  1351. * src/OptionParser.cc
  1352. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Documented --bt-external-ip option in man page. Updated man pages
  1354. for --proxy-method option.
  1355. * doc/aria2c.1.txt
  1356. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Use GET method for FTP via HTTP proxy.
  1358. * src/FtpInitiateConnectionCommand.cc
  1359. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Changed the default value of --proxy-method option from 'tunnel'
  1361. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1362. option.
  1363. * src/AbstractCommand.cc
  1364. * src/AbstractCommand.h
  1365. * src/FtpInitiateConnectionCommand.cc
  1366. * src/HttpDownloadCommand.cc
  1367. * src/HttpInitiateConnectionCommand.cc
  1368. * src/HttpInitiateConnectionCommand.h
  1369. * src/OptionHandlerFactory.cc
  1370. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Initialized _logger
  1372. * src/SelectEventPoll.cc
  1373. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Defined a copy constructor for the same type.
  1375. * src/SharedHandle.h
  1376. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Added OptionParser::parseArg() which internally uses getopt_long
  1378. to parse command-line options. All command-line options are now
  1379. configured by OptionHandler. No manual editing of struct option*
  1380. is required any more.
  1381. * src/NameMatchOptionHandler.h
  1382. * src/OptionHandler.h
  1383. * src/OptionHandlerFactory.cc
  1384. * src/OptionHandlerImpl.h
  1385. * src/OptionParser.cc
  1386. * src/OptionParser.h
  1387. * src/array_fun.h
  1388. * src/main.cc
  1389. * src/option_processing.cc
  1390. * test/OptionHandlerTest.cc
  1391. * test/OptionParserTest.cc
  1392. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Fixed configure error with --disable-epoll
  1394. * configure.ac
  1395. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Fixed compile error when HAVE_EPOLL is not defined.
  1397. Fixed linker error on bigendian systems.
  1398. * src/SocketCore.cc
  1399. * src/SocketCore.h
  1400. * test/DefaultBtProgressInfoFileTest.cc
  1401. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Added --bt-external-ip option. You can specify the external IP
  1403. address to report to a BitTorrent tracker. Although this function
  1404. is named 'external', it can accept any kind of IP addresses.
  1405. * src/DefaultBtAnnounce.cc
  1406. * src/OptionHandlerFactory.cc
  1407. * src/option_processing.cc
  1408. * src/prefs.cc
  1409. * src/prefs.h
  1410. * src/usage_text.h
  1411. * test/DefaultBtAnnounceTest.cc
  1412. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Extracted the algorithm to find the longest incremental sequence
  1414. as max_sequence template.
  1415. * src/LongestSequencePieceSelector.cc
  1416. * src/a2algo.h
  1417. * test/Makefile.am
  1418. * test/a2algoTest.cc
  1419. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1421. * src/usage_text.h
  1422. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Updated doc for --uri-selector, --http-server-listen-port and
  1424. --enable-http-server option. Documented --event-poll option.
  1425. * doc/aria2c.1.txt
  1426. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Updated doc for --enable-http-server.
  1428. * src/usage_text.h
  1429. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Documented --http-server-listen-port and --enable-http-server in
  1431. man page.
  1432. * doc/aria2c.1.txt
  1433. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1435. translations. Thanks to all translators.
  1436. * po/es.po
  1437. * po/id.po
  1438. * po/it.po
  1439. * po/ru.po
  1440. * po/uk.po
  1441. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Bump up version number to 1.2.0
  1443. * configure.ac
  1444. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. BtContext::getAnnounceTiers() now returns const reference.
  1446. * src/BtContext.h
  1447. * src/DefaultBtContext.cc
  1448. * src/DefaultBtContext.h
  1449. * test/MockBtContext.h
  1450. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Change the number of retries for tracker request based on the
  1452. number of available tracker in a torrent file.
  1453. * src/TrackerWatcherCommand.cc
  1454. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Added _maxTries property to RequestGroup and assign the option
  1456. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1457. RequestGroup::getMaxTries() instead of
  1458. Option::getAsInt(PREF_MAX_TRIES).
  1459. * src/AbstractCommand.cc
  1460. * src/RequestGroup.cc
  1461. * src/RequestGroup.h
  1462. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1464. Mandriva. I modified the patch: make RequestGroup have the
  1465. timeout value and AdaptiveURISelector directly modifies that
  1466. value.
  1467. * src/AbstractCommand.cc
  1468. * src/AdaptiveURISelector.cc
  1469. * src/AdaptiveURISelector.h
  1470. * src/FtpNegotiationCommand.cc
  1471. * src/RequestGroup.cc
  1472. * src/RequestGroup.h
  1473. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed compiler warning
  1475. * test/IteratableChecksumValidatorTest.cc
  1476. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1478. integrated downloads. This PieceSelector subclass finds the
  1479. longest continuous sequence in the available missing pieces and
  1480. selects the last index of such sequence. This makes HTTP/FTP
  1481. connections less interrupted by the pieces obtained by BitTorrent
  1482. peers.
  1483. * src/DefaultPieceStorage.cc
  1484. * src/DefaultPieceStorage.h
  1485. * src/LongestSequencePieceSelector.cc
  1486. * src/LongestSequencePieceSelector.h
  1487. * src/Makefile.am
  1488. * src/PieceSelector.h
  1489. * src/RarestPieceSelector.h
  1490. * src/RequestGroup.cc
  1491. * test/BtDependencyTest.cc
  1492. * test/DefaultPieceStorageTest.cc
  1493. * test/IteratableChecksumValidatorTest.cc
  1494. * test/LongestSequencePieceSelectorTest.cc
  1495. * test/Makefile.am
  1496. * test/SegmentManTest.cc
  1497. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Fixed the bug that the average speed is wrong in
  1499. http/ftp/BitTorrent integrated download. Only the download bytes
  1500. in BitTorrent were considered.
  1501. * src/RequestGroup.cc
  1502. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Choose port for BitTorrent/DHT randomly from the specified range.
  1504. * src/DHTConnectionImpl.cc
  1505. * src/PeerListenCommand.cc
  1506. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Send HTTP Authorization header only if it is requested by the
  1508. server(response 401). There are some exceptions. The authorization
  1509. header for proxy is always sent if it is available without request
  1510. by the server. If username/password is specified in the URI, it
  1511. is immediately sent to the server without request by the server.
  1512. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1513. SharedHandle<AuthConfig>().
  1514. NetrcAuthResolver::resolveAuthConfig() returns
  1515. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1516. * src/AbstractAuthResolver.cc
  1517. * src/AbstractProxyRequestCommand.cc
  1518. * src/AuthConfigFactory.cc
  1519. * src/AuthConfigFactory.h
  1520. * src/HttpConnection.cc
  1521. * src/HttpRequest.cc
  1522. * src/HttpRequest.h
  1523. * src/HttpResponse.cc
  1524. * src/HttpResponseCommand.cc
  1525. * src/HttpSkipResponseCommand.cc
  1526. * test/AuthConfigFactoryTest.cc
  1527. * test/HttpRequestTest.cc
  1528. * test/HttpResponseTest.cc
  1529. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Remove leading "--" from help keyword and a substring after "="
  1531. from help keyword, so that one can query options by '-h--max-' or
  1532. '-hmax-peers=10'.
  1533. * src/option_processing.cc
  1534. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Rewritten PStringVisitor and its implementation.
  1536. * src/PStringBuildVisitor.cc
  1537. * src/PStringBuildVisitor.h
  1538. * src/PStringDatum.h
  1539. * src/PStringNumLoop.h
  1540. * src/PStringSegment.cc
  1541. * src/PStringSegment.h
  1542. * src/PStringSelect.h
  1543. * src/PStringVisitor.h
  1544. * src/download_helper.cc
  1545. * test/PStringBuildVisitorTest.cc
  1546. * test/ParameterizedStringParserTest.cc
  1547. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Persist connection between the built-in HTTP server and a client
  1549. if a client supports keep-alive. Fixed the bug that aria2 exits
  1550. when the HTTP server receives EOF from a client.
  1551. * src/HttpServer.cc
  1552. * src/HttpServer.h
  1553. * src/HttpServerCommand.cc
  1554. * src/HttpServerCommand.h
  1555. * src/HttpServerResponseCommand.cc
  1556. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Added experimental built-in HTTP server. Currently, when a client
  1558. accesses to the server, it responds with the current download
  1559. progress. By default, it is disabled. To enable the server, give
  1560. --enable-http-server option. To change the default port number
  1561. for the server to listen to, use --http-server-listen-port option.
  1562. The response HTML is very simple and refreshes it self each 1
  1563. second. Because of this refresh, you see flicker in normal web
  1564. browser such as Firefox. I recommend to use console-based browser
  1565. such as elinks, w3m. To connect to the server, run 'elinks
  1566. http://localhost:6800/' while running aria2. Please replace port
  1567. number '6800'(which is default) with your preference.
  1568. * src/DownloadEngineFactory.cc
  1569. * src/HttpHeader.cc
  1570. * src/HttpHeader.h
  1571. * src/HttpHeaderProcessor.cc
  1572. * src/HttpHeaderProcessor.h
  1573. * src/HttpListenCommand.cc
  1574. * src/HttpListenCommand.h
  1575. * src/HttpServer.cc
  1576. * src/HttpServer.h
  1577. * src/HttpServerCommand.cc
  1578. * src/HttpServerCommand.h
  1579. * src/HttpServerResponseCommand.cc
  1580. * src/HttpServerResponseCommand.h
  1581. * src/Makefile.am
  1582. * src/OptionHandlerFactory.cc
  1583. * src/Util.cc
  1584. * src/Util.h
  1585. * src/help_tags.h
  1586. * src/option_processing.cc
  1587. * src/prefs.cc
  1588. * src/prefs.h
  1589. * src/usage_text.h
  1590. * test/HttpHeaderProcessorTest.cc
  1591. * test/UtilTest.cc
  1592. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Removed.
  1594. * src/CheckIntegrityMan.cc
  1595. * src/FileAllocationMan.cc
  1596. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Made (piece) hash check sequential for each RequestGroup because
  1598. simultaneous hash check is slower than sequential execution.
  1599. * src/CheckIntegrityCommand.cc
  1600. * src/CheckIntegrityDispatcherCommand.cc
  1601. * src/CheckIntegrityDispatcherCommand.h
  1602. * src/CheckIntegrityMan.h
  1603. * src/ConsoleStatCalc.cc
  1604. * src/DownloadCommand.cc
  1605. * src/DownloadEngine.cc
  1606. * src/DownloadEngine.h
  1607. * src/DownloadEngineFactory.cc
  1608. * src/Makefile.am
  1609. * src/Makefile.in
  1610. * src/RequestGroup.cc
  1611. * src/StatCalc.h
  1612. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1614. SequentialDispatcherCommand.
  1615. * src/FileAllocationDispatcherCommand.cc
  1616. * src/SequentialDispatcherCommand.h
  1617. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Rewritten FileAllocationDispatcherCommand using brand new
  1619. SequentialDispatcherCommand.
  1620. * src/DownloadEngineFactory.cc
  1621. * src/FileAllocationCommand.cc
  1622. * src/FileAllocationDispatcherCommand.cc
  1623. * src/FileAllocationDispatcherCommand.h
  1624. * src/Makefile.am
  1625. * src/SequentialDispatcherCommand.h
  1626. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Replaced FileAllocationMan with
  1628. SequentialPicker<FileAllocationEntry>.
  1629. * src/BtCheckIntegrityEntry.cc
  1630. * src/ConsoleStatCalc.cc
  1631. * src/DownloadEngine.cc
  1632. * src/DownloadEngine.h
  1633. * src/DownloadEngineFactory.cc
  1634. * src/FileAllocationCommand.cc
  1635. * src/FileAllocationDispatcherCommand.cc
  1636. * src/FileAllocationMan.h
  1637. * src/Makefile.am
  1638. * src/SequentialPicker.h
  1639. * src/StatCalc.h
  1640. * src/StreamCheckIntegrityEntry.cc
  1641. * test/Makefile.am
  1642. * test/SequentialPickerTest.cc
  1643. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Added doc for adaptive URI selector.
  1645. * doc/aria2c.1.txt
  1646. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Added doc for adaptive URI selector.
  1648. * src/usage_text.h
  1649. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Added doc for --bt-max-peers option.
  1651. * doc/aria2c.1.txt
  1652. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Added doc for --bt-hash-check-seed option.
  1654. * doc/aria2c.1.txt
  1655. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Documented exit codes.
  1657. * doc/aria2c.1.txt
  1658. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Added --bt-max-peers option to specify the maximum number of peers
  1660. per torrent. 0 means unlimited number of peers.
  1661. * src/ActivePeerConnectionCommand.cc
  1662. * src/BtRuntime.h
  1663. * src/DefaultPeerStorage.cc
  1664. * src/DefaultPeerStorage.h
  1665. * src/OptionHandlerFactory.cc
  1666. * src/RequestGroup.cc
  1667. * src/option_processing.cc
  1668. * src/prefs.cc
  1669. * src/prefs.h
  1670. * src/usage_text.h
  1671. * test/DefaultPeerStorageTest.cc
  1672. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Added --bt-hash-check-seed option. If true is given to this
  1674. option, after hash check using --check-integrity option and file
  1675. is complete, continue to seed file. If you want to check file and
  1676. download it only when it is damaged or incomplete, set this option
  1677. to false. This option has effect only on BitTorrent download.
  1678. The default value is true(This is the same behavior with the
  1679. previous release).
  1680. * src/BtCheckIntegrityEntry.cc
  1681. * src/OptionHandlerFactory.cc
  1682. * src/option_processing.cc
  1683. * src/prefs.cc
  1684. * src/prefs.h
  1685. * src/usage_text.h
  1686. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Updated copyright year.
  1688. * src/version_usage.cc
  1689. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1691. * doc/aria2c.1.txt
  1692. * src/usage_text.h
  1693. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Made the max value of split option unlimited.
  1695. * doc/aria2c.1.txt
  1696. * src/OptionHandlerFactory.cc
  1697. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Fixed compile warning/error.
  1699. * src/DownloadResult.h
  1700. * src/HttpDownloadCommand.cc
  1701. * src/ServerStat.cc
  1702. * test/RequestGroupTest.cc
  1703. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Added --event-poll option to select the method for polling events.
  1705. The available methods are "select" and "epoll". "epoll" is
  1706. available on Linux only. The earlier release has the compile
  1707. option to choose from these methods.
  1708. * configure.ac
  1709. * src/RequestGroupMan.cc
  1710. * src/OptionHandlerFactory.cc
  1711. * src/EpollEventPoll.h
  1712. * src/StreamFileAllocationEntry.cc
  1713. * src/a2io.h
  1714. * src/SelectEventPoll.h
  1715. * src/option_processing.cc
  1716. * src/prefs.h
  1717. * src/EpollEventPoll.cc
  1718. * src/EventPoll.h
  1719. * src/SocketCore.h
  1720. * src/Makefile.am
  1721. * src/main.cc
  1722. * src/DownloadEngine.h
  1723. * src/SelectEventPoll.cc
  1724. * src/DownloadEngine.cc
  1725. * src/SocketCore.cc
  1726. * src/DownloadEngineFactory.cc
  1727. * src/Makefile.in
  1728. * src/prefs.cc
  1729. * src/usage_text.h
  1730. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Included RecoverableException.h from main.cc
  1732. * src/main.cc
  1733. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1735. now returns last error encountered in the HTTP/FTP downloads as a
  1736. exit status value. If all downloads finished successfully, aria2
  1737. returns 0. The error code is defined in src/DownloadResult.h.
  1738. The error occurred in the download currently in progress is not
  1739. reported as a last error. If no error has encountered but there
  1740. are in progress or waiting downloads, aria2 returns 7.
  1741. * src/AbstractCommand.cc
  1742. * src/DlAbortEx.h
  1743. * src/DlRetryEx.h
  1744. * src/DownloadCommand.cc
  1745. * src/DownloadFailureException.h
  1746. * src/DownloadResult.h
  1747. * src/FtpNegotiationCommand.cc
  1748. * src/HttpSkipResponseCommand.cc
  1749. * src/Makefile.am
  1750. * src/MultiUrlRequestInfo.cc
  1751. * src/MultiUrlRequestInfo.h
  1752. * src/RecoverableException.h
  1753. * src/RequestGroup.cc
  1754. * src/RequestGroup.h
  1755. * src/RequestGroupMan.cc
  1756. * src/RequestGroupMan.h
  1757. * src/URIResult.cc
  1758. * src/URIResult.h
  1759. * src/main.cc
  1760. * src/option_processing.cc
  1761. * test/RequestGroupTest.cc
  1762. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1764. patch adds AdaptiveURISelector, which selects one of the bests
  1765. mirrors for first and reserved connections. For supplementary
  1766. ones, it returns mirrors which has not been tested yet, and if
  1767. each of them already tested, returns mirrors which has to be
  1768. tested again. Otherwise, it doesn't return anymore mirrors.
  1769. * src/AdaptiveURISelector.cc
  1770. * src/AdaptiveURISelector.h
  1771. * src/FtpNegotiationCommand.cc
  1772. * src/HttpResponseCommand.cc
  1773. * src/Makefile.am
  1774. * src/Makefile.in
  1775. * src/OptionHandlerFactory.cc
  1776. * src/RequestGroup.cc
  1777. * src/RequestGroup.h
  1778. * src/RequestGroupMan.cc
  1779. * src/ServerStat.cc
  1780. * src/ServerStat.h
  1781. * src/ServerStatMan.cc
  1782. * src/SpeedCalc.cc
  1783. * src/URISelector.h
  1784. * src/prefs.cc
  1785. * src/prefs.h
  1786. * test/RequestGroupManTest.cc
  1787. * test/ServerStatManTest.cc
  1788. * test/ServerStatTest.cc
  1789. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Fixed unit test error.
  1791. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1792. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. * Release 1.1.2
  1794. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Updated Russian translation. Thanks to the translators.
  1796. * po/ru.po
  1797. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Added the description of --use-head option to man page.
  1799. * doc/aria2c.1.txt
  1800. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1801. Bump up version number to 1.1.2
  1802. * configure.ac
  1803. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Added --use-head option to toggle whether HEAD method should be
  1805. used in the first HTTP request. By default aria2 uses HEAD method
  1806. as the first request. When the server doesn't recognize HEAD, then
  1807. give aria2 --use-head=false to force aria2 to use GET method
  1808. instead.
  1809. * src/OptionHandlerFactory.cc
  1810. * src/RequestGroupMan.cc
  1811. * src/option_processing.cc
  1812. * src/prefs.cc
  1813. * src/prefs.h
  1814. * src/usage_text.h
  1815. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1817. message is received before CHOKE message. The old implementation
  1818. doen't clear the use-bit of the piece when recieved REJECT
  1819. message.
  1820. * src/DefaultBtMessageDispatcher.cc
  1821. * test/DefaultBtMessageDispatcherTest.cc
  1822. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. * Release 1.1.1
  1824. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Bump up version number to 1.1.1.
  1826. * configure.ac
  1827. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1829. is printed repeatedly.
  1830. * src/ConsoleStatCalc.cc
  1831. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. * Release 1.1.0
  1833. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Added ifdef clause for conditional compilation.
  1835. * src/main.cc
  1836. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1838. translations. Thanks to all translators.
  1839. * po/ja.po
  1840. * po/ru.po
  1841. * po/uk.po
  1842. * po/zh_CN.po
  1843. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Added the preceding ">>> " before the message "Printing the
  1845. contents of file..." to make the output more readable.
  1846. * src/main.cc
  1847. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Added try-catch block in the loop in showFiles() to continue the
  1849. operation even if the exception occurred in one file.
  1850. * src/main.cc (showFiles)
  1851. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Made messages in showFiles() translatable.
  1853. * po/aria2.pot
  1854. * src/main.cc
  1855. * src/message.h
  1856. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Print the contents of Torrent/Metalink files are printed without
  1858. -T/-M options.
  1859. * src/main.cc
  1860. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Escaped '--' with '\--'
  1862. * README
  1863. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Updated "How to build" section in README. Mentioned about
  1865. --with-ca-bundle compile option.
  1866. * README
  1867. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Bump up version number to 1.1.0.
  1869. * configure.ac
  1870. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Added a note for --dht-listen-port option.
  1872. * doc/aria2c.1.txt
  1873. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Update doc for --realtime-chunk-checksum option.
  1875. * doc/aria2c.1.txt
  1876. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Update doc for --realtime-chunk-checksum option.
  1878. * src/usage_text.h
  1879. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Updated French, Japanese, Russian and Ukrainian translations.
  1881. Thanks to all translators.
  1882. * po/fr.po
  1883. * po/ja.po
  1884. * po/ru.po
  1885. * po/uk.po
  1886. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Renamed aria2c.pot to aria2.pot
  1888. * po/aria2.pot
  1889. * po/aria2c.pot: Removed.
  1890. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Removed MetaEntry.h
  1892. * src/Makefile.am
  1893. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Rename file by appending digits if a local file exists and its
  1895. file size is larger than that of remote file with --continue
  1896. option. The old implementation just throws exception in such case.
  1897. * src/RequestGroup.cc
  1898. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Fixed the bug that download progress summary is not printed in the
  1900. interval specified by the option.
  1901. * src/ConsoleStatCalc.cc
  1902. * src/ConsoleStatCalc.h
  1903. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Fixed compiler warning
  1905. * src/Cookie.cc
  1906. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Fixed the cookie implementation based on RFC2965.
  1908. Now if a value in domain field is not started with dot, then
  1909. prepend dot. That means a cookie with domain=sf.net is sent to
  1910. wiki.sf.net.
  1911. * src/Cookie.cc
  1912. * test/CookieParserTest.cc
  1913. * test/CookieStorageTest.cc
  1914. * test/CookieTest.cc
  1915. * test/NsCookieParserTest.cc
  1916. * test/Sqlite3MozCookieParserTest.cc
  1917. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1919. is enabled and the server doesn't support keep-alive.
  1920. * src/AbstractCommand.cc
  1921. * src/DownloadCommand.cc
  1922. * src/HttpDownloadCommand.cc
  1923. * src/HttpDownloadCommand.h
  1924. * src/HttpResponseCommand.cc
  1925. * src/Request.cc
  1926. * src/Request.h
  1927. * test/RequestTest.cc
  1928. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Removed Dictionary/List/Data and its related classes.
  1930. * src/BencodeVisitor.cc: Removed.
  1931. * src/BencodeVisitor.h: Removed.
  1932. * src/Data.cc: Removed.
  1933. * src/Data.h: Removed.
  1934. * src/Dictionary.cc: Removed.
  1935. * src/Dictionary.h: Removed.
  1936. * src/List.cc: Removed.
  1937. * src/List.h: Removed.
  1938. * src/Makefile.am
  1939. * src/MetaEntry.h: Removed.
  1940. * src/MetaEntryVisitor.h: Removed.
  1941. * src/MetaFileUtil.cc: Removed.
  1942. * src/MetaFileUtil.h: Removed.
  1943. * test/BencodeVisitorTest.cc: Removed.
  1944. * test/DataTest.cc: Removed.
  1945. * test/DictionaryTest.cc: Removed.
  1946. * test/ListTest.cc: Removed.
  1947. * test/Makefile.am
  1948. * test/MetaFileUtilTest.cc: Removed.
  1949. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1950. Removed include of MetaEntry.h
  1951. * test/DHTMessageTrackerEntryTest.cc
  1952. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Use BDE instead of Dictionary/List/Data.
  1954. * src/AnnounceList.cc
  1955. * src/AnnounceList.h
  1956. * test/AnnounceListTest.cc
  1957. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Use BDE instead of Dictionary/List/Data.
  1959. * src/DHTAbstractMessage.cc
  1960. * src/DHTAbstractMessage.h
  1961. * src/DHTAnnouncePeerMessage.cc
  1962. * src/DHTAnnouncePeerMessage.h
  1963. * src/DHTAnnouncePeerReplyMessage.cc
  1964. * src/DHTAnnouncePeerReplyMessage.h
  1965. * src/DHTFindNodeMessage.cc
  1966. * src/DHTFindNodeMessage.h
  1967. * src/DHTFindNodeReplyMessage.cc
  1968. * src/DHTFindNodeReplyMessage.h
  1969. * src/DHTGetPeersMessage.cc
  1970. * src/DHTGetPeersMessage.h
  1971. * src/DHTGetPeersReplyMessage.cc
  1972. * src/DHTGetPeersReplyMessage.h
  1973. * src/DHTMessageFactory.h
  1974. * src/DHTMessageFactoryImpl.cc
  1975. * src/DHTMessageFactoryImpl.h
  1976. * src/DHTMessageReceiver.cc
  1977. * src/DHTMessageTracker.cc
  1978. * src/DHTMessageTracker.h
  1979. * src/DHTPingMessage.cc
  1980. * src/DHTPingMessage.h
  1981. * src/DHTPingReplyMessage.cc
  1982. * src/DHTPingReplyMessage.h
  1983. * src/DHTQueryMessage.cc
  1984. * src/DHTQueryMessage.h
  1985. * src/DHTResponseMessage.cc
  1986. * src/DHTResponseMessage.h
  1987. * test/DHTAnnouncePeerMessageTest.cc
  1988. * test/DHTAnnouncePeerReplyMessageTest.cc
  1989. * test/DHTFindNodeMessageTest.cc
  1990. * test/DHTFindNodeReplyMessageTest.cc
  1991. * test/DHTGetPeersMessageTest.cc
  1992. * test/DHTGetPeersReplyMessageTest.cc
  1993. * test/DHTMessageFactoryImplTest.cc
  1994. * test/DHTMessageTrackerTest.cc
  1995. * test/DHTPingMessageTest.cc
  1996. * test/DHTPingReplyMessageTest.cc
  1997. * test/MockDHTMessageFactory.h
  1998. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Added tests the case where length < 0 is specified.
  2000. * test/BencodeTest.cc
  2001. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Fixed memory leak in decoderawstring()
  2003. * src/bencode.cc
  2004. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Added missing #ifdef guard. Added uc() function for String and
  2006. removeKey() for Dict.
  2007. * src/bencode.cc
  2008. * src/bencode.h
  2009. * test/BencodeTest.cc
  2010. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Use BDE instead of Dictionary/List/Data.
  2012. * src/HandshakeExtensionMessage.cc
  2013. * src/HandshakeExtensionMessage.h
  2014. * test/HandshakeExtensionMessageTest.cc
  2015. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Added --max-overall-upload-limit option. This option limits the
  2017. overall upload speed. Stated in help message that the existing
  2018. --max-upload-limit option limits the upload speed per each
  2019. torrent. Man page is also updated.
  2020. * doc/aria2c.1.txt
  2021. * src/DefaultBtMessageDispatcher.cc
  2022. * src/DefaultBtMessageDispatcher.h
  2023. * src/OptionHandlerFactory.cc
  2024. * src/PeerInteractionCommand.cc
  2025. * src/option_processing.cc
  2026. * src/prefs.cc
  2027. * src/prefs.h
  2028. * src/usage_text.h
  2029. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Use BDE instead of Dictionary/List/Data classes.
  2031. * src/CompactPeerListProcessor.cc
  2032. * src/CompactPeerListProcessor.h
  2033. * src/DefaultBtAnnounce.cc
  2034. * src/DefaultBtContext.cc
  2035. * src/DefaultBtContext.h
  2036. * src/DefaultPeerListProcessor.cc
  2037. * src/DefaultPeerListProcessor.h
  2038. * src/DelegatingPeerListProcessor.cc
  2039. * src/DelegatingPeerListProcessor.h
  2040. * src/PeerListProcessor.h
  2041. * src/UTPexExtensionMessage.cc
  2042. * src/Util.h
  2043. * src/message.h
  2044. * test/DefaultBtContextTest.cc
  2045. * test/DefaultPeerListProcessorTest.cc
  2046. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Added bencode helper functions and BDE class.
  2048. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2049. * src/Makefile.am
  2050. * src/bencode.cc
  2051. * src/bencode.h
  2052. * test/BencodeTest.cc
  2053. * test/Makefile.am
  2054. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Fixed the bug that bad URI is sent to the tracker when the announe
  2056. URI in torrent file includes query.
  2057. * src/DefaultBtAnnounce.cc
  2058. * test/DefaultBtAnnounceTest.cc
  2059. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Added Option::blank().
  2061. Use !Option::blank(name) instead of Option::defined(name) for
  2062. the options that take filename.
  2063. * src/MultiUrlRequestInfo.cc
  2064. * src/Option.cc
  2065. * src/Option.h
  2066. * src/main.cc
  2067. * src/option_processing.cc
  2068. * test/OptionTest.cc
  2069. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Documented the default value of --check-certificate option in man
  2071. page.
  2072. * doc/aria2c.1.txt
  2073. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Enabled --check-certificate by default. Added compile
  2075. time(configure) option --with-ca-bundle to specify CA bundle.
  2076. Warn if --check-certificate=true and --ca-certificate is not
  2077. specified or loading CA certificate is failed.
  2078. * configure.ac
  2079. * src/MultiUrlRequestInfo.cc
  2080. * src/OptionHandlerFactory.cc
  2081. * src/message.h
  2082. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Mentioned https tag in help option.
  2084. * doc/aria2c.1.txt
  2085. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Added `https' tag to help option category. Added https tag to
  2087. --ca-certificate, --certificate, --check-certificate and
  2088. --private-key option.
  2089. * src/OptionHandlerFactory.cc
  2090. * src/help_tags.h
  2091. * src/option_processing.cc
  2092. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Changed the package name from `aria2c' to `aria2' in order to fix
  2094. the packaging issue in Debian and Fedora. The name of the
  2095. executable is not changed.
  2096. * configure.ac
  2097. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Fixed typos
  2099. * src/usage_text.h
  2100. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Fixed typos and updated doc.
  2102. * README
  2103. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Fixed typos
  2105. * doc/aria2c.1.txt
  2106. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Fixed typos
  2108. * src/usage_text.h
  2109. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Print a message when no files to download.
  2111. * src/download_helper.cc
  2112. * src/main.cc
  2113. * src/message.h
  2114. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. RFC3986 complied Percent-Encoding(urlencode).
  2116. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2117. ones.
  2118. * src/Request.cc
  2119. * src/Util.cc
  2120. * src/Util.h
  2121. * test/BtHandshakeMessageTest.cc
  2122. * test/DefaultBtAnnounceTest.cc
  2123. * test/DefaultBtContextTest.cc
  2124. * test/RequestTest.cc
  2125. * test/UtilTest.cc
  2126. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Fixed the bug that prevents aria2 from downloading 0-length files
  2128. via HTTP/FTP.
  2129. * src/DefaultBtContext.cc
  2130. * src/DefaultBtContext.h
  2131. * src/DownloadContext.h
  2132. * src/FtpNegotiationCommand.cc
  2133. * src/HttpResponseCommand.cc
  2134. * src/HttpResponseCommand.h
  2135. * src/RequestGroup.cc
  2136. * src/SingleFileDownloadContext.cc
  2137. * src/SingleFileDownloadContext.h
  2138. * test/BtPostDownloadHandlerTest.cc
  2139. * test/MetalinkPostDownloadHandlerTest.cc
  2140. * test/MockBtContext.h
  2141. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2143. * src/option_processing.cc
  2144. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Applied aria2-1.0.1-mingw.patch.
  2146. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2147. mingw.
  2148. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2149. * src/SocketCore.cc
  2150. * src/a2netcompat.h
  2151. * test/SocketCoreTest.cc
  2152. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. * Release 1.0.1
  2154. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Updated Ukrainian and Norwegian Nynorsk translations.
  2156. Thanks to all translators.
  2157. * po/nn.po
  2158. * po/uk.po
  2159. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Don't show download result when -S option is used.
  2161. * src/main.cc
  2162. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Bump up version number to 1.0.1
  2164. * configure.ac
  2165. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Closed files after the test cases in MultiDiskWriterTest::
  2167. testResetDiskWriterEntries(). This will fix the unit test error
  2168. in mingw32 build.
  2169. * test/MultiDiskWriterTest.cc
  2170. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Use HEAD method to get file size from HTTP server for segmented
  2172. downloading.
  2173. The request to the BitTorrent Tracker always uses GET method because
  2174. the response of the tracker is small and it doesn't need segmented
  2175. download.
  2176. * src/FtpNegotiationCommand.cc
  2177. * src/HttpRequest.cc
  2178. * src/HttpResponseCommand.cc
  2179. * src/HttpSkipResponseCommand.cc
  2180. * src/RequestGroup.cc
  2181. * src/RequestGroup.h
  2182. * src/TrackerWatcherCommand.cc
  2183. * test/HttpRequestTest.cc
  2184. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Fixed the bug that causes floating exception when -T option is used and
  2186. no URIs are given.
  2187. * src/download_helper.cc
  2188. * test/DownloadHelperTest.cc
  2189. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2190. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2191. errors in MinGW:
  2192. Closed file after saving server stats (RequestGroupMan.cc)
  2193. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2194. Ignored case & handled 2-digit years (strptime.c)
  2195. Added missing suseconds_t definition (a2time.h)
  2196. Fixed socket CLOSE() define (SocketCore.cc)
  2197. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2198. Changed utime() test values from x000 to x00000 as MinGW failed on
  2199. values less than timezone offset from Unix epoch
  2200. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2201. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2202. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2203. handle negative dates (CookieParserTest.cc)
  2204. * src/a2time.h
  2205. * src/FtpConnection.cc
  2206. * src/RequestGroupMan.cc
  2207. * src/SocketCore.cc
  2208. * src/strptime.c
  2209. * test/CookieParserTest.cc
  2210. * test/CopyDiskAdaptorTest.cc
  2211. * test/FileTest.cc
  2212. * test/FtpConnectionTest.cc
  2213. * test/MultiDiskAdaptorTest.cc
  2214. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2216. * doc/aria2c.1.txt
  2217. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. * Release 1.0.0
  2219. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Added '~' to reserved characters.
  2221. * src/Util.cc
  2222. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Do not urlencode Request::url in setUrl() because we want unmodified
  2224. URL using Request::getUrl()
  2225. * src/Request.cc
  2226. * src/Request.h
  2227. * test/RequestTest.cc
  2228. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2230. Thanks to all translators.
  2231. * po/bg.po
  2232. * po/fr.po
  2233. * po/ja.po
  2234. * po/ru.po
  2235. * po/uk.po
  2236. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Bump up version number to 1.0.0
  2238. * configure.ac
  2239. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added nosqlite3 build to build_test.sh.
  2241. Renamed noxml as expat.
  2242. * build_test.sh
  2243. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Updated INPUT FILE section.
  2245. * doc/aria2c.1.txt
  2246. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2248. on big endian systems because test .aria2 files are made for little
  2249. endian systems.
  2250. * test/DefaultBtProgressInfoFileTest.cc
  2251. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Dropped ares support.
  2253. * README
  2254. * configure.ac
  2255. * m4/libares.m4: Removed.
  2256. * src/AsyncNameResolver.cc
  2257. * src/Makefile.am
  2258. * test/Makefile.am
  2259. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2261. Removed const qualifier from DiskWriter::size().
  2262. * src/AbstractDiskWriter.cc
  2263. * src/AbstractDiskWriter.h
  2264. * src/ByteArrayDiskWriter.cc
  2265. * src/ByteArrayDiskWriter.h
  2266. * src/DiskWriter.h
  2267. * test/ByteArrayDiskWriterTest.cc
  2268. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Fixed the bug that causes segmentation fault/bus error during executing
  2270. choking algorithm while seeding. This is caused by improper
  2271. implementation of compare function which returns inconsistent results
  2272. depending on the timing of last unchoke.
  2273. * src/BtSeederStateChoke.cc
  2274. * src/BtSeederStateChoke.h
  2275. * src/DefaultPeerStorage.cc
  2276. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Removed TODO
  2278. * TODO
  2279. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Added a section that explains how to pass argument to options that
  2281. takes optional arguments with its short form.
  2282. * doc/aria2c.1.txt
  2283. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Added -u for the short form of --max-upload-limit option.
  2285. * doc/aria2c.1.txt
  2286. * src/option_processing.cc
  2287. * src/usage_text.h
  2288. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Added -V for the short form of --check-integrity option.
  2290. Now the argument of --check-integrity option is optional:
  2291. if it is omitted, it is evaluated as true.
  2292. * doc/aria2c.1.txt
  2293. * src/option_processing.cc
  2294. * src/usage_text.h
  2295. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Made the default value of --ftp-pasv option set to true and it can take
  2297. true/false values.
  2298. * src/OptionHandlerFactory.cc
  2299. * src/option_processing.cc
  2300. * src/usage_text.h
  2301. * doc/aria2c.1.txt
  2302. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Given custom random number generator to std::random_shuffle.
  2304. * src/AnnounceList.cc
  2305. * src/BtLeecherStateChoke.cc
  2306. * src/BtSeederStateChoke.cc
  2307. * src/DefaultBtRequestFactory.cc
  2308. * src/MetalinkEntry.cc
  2309. * src/RarestPieceSelector.cc
  2310. * src/SimpleRandomizer.cc
  2311. * src/SimpleRandomizer.h
  2312. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Now the default value of --enable-direct-io is true.
  2314. * src/OptionHandlerFactory.cc
  2315. * doc/aria2c.1.txt
  2316. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Erase peer before executing onReturningPeer and onErasingPeer
  2318. because choking algorithm called from onReturningPeer doesn't
  2319. like erasing peer in the active peer list.
  2320. * src/DefaultPeerStorage.cc
  2321. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Instead of creating special filename in createDownloadResult() if
  2323. inMemoryDownload() is true, now it is done in getFilePath().
  2324. * src/RequestGroup.cc
  2325. * test/RequestGroupTest.cc
  2326. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2328. processed in memory. This is the fix for previous comment out.
  2329. * src/MemoryBufferPreDownloadHandler.cc
  2330. * src/RequestGroup.cc
  2331. * src/RequestGroup.h
  2332. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Commented out the code which sets virtual directory path "[MEMORY]"
  2334. propagate directory to store to following RequestGroup.
  2335. * src/MemoryBufferPreDownloadHandler.cc
  2336. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Bump up version number to 1.0.0b
  2338. * configure.ac
  2339. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Added input_uris.txt to EXTRA_DIST
  2341. * test/Makefile.am
  2342. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Removed PeerObject.h from Makefile.am
  2344. * src/Makefile.am
  2345. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Avoid slow seeding
  2347. * src/PeerInteractionCommand.cc
  2348. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Updated usage for -i option.
  2350. * src/usage_text.h (TEXT_INPUT_FILE)
  2351. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Added INPUT FILE section to man page.
  2353. Escaped fake URLs.
  2354. * doc/aria2c.1.txt
  2355. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Fixed wrong note position for -o option.
  2357. * doc/aria2c.1.txt
  2358. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Fixed compile error without SSL/XML library.
  2360. * src/DefaultBtProgressInfoFile.cc
  2361. * src/DefaultBtProgressInfoFile.h
  2362. * src/FileMetalinkParserState.cc
  2363. * src/RequestGroup.h
  2364. * src/SocketCore.cc
  2365. * src/SocketCore.h
  2366. * src/VerificationMetalinkParserState.cc
  2367. * src/download_helper.h
  2368. * src/main.cc
  2369. * test/DefaultBtProgressInfoFileTest.cc
  2370. * test/DownloadHelperTest.cc
  2371. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Rewritten URI handling functions. They are now provided as a testable
  2373. functions.
  2374. * src/Makefile.am
  2375. * src/RequestGroup.cc
  2376. * src/RequestGroup.h
  2377. * src/download_helper.cc
  2378. * src/download_helper.h
  2379. * src/main.cc
  2380. * test/DownloadHelperTest.cc
  2381. * test/Makefile.am
  2382. * test/input_uris.txt
  2383. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Quickly terminate commands when ctrl-c is pressed.
  2385. * src/DownloadEngine.cc
  2386. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Quickly terminate idle commands when download finished.
  2388. * src/AbstractCommand.cc
  2389. * src/DownloadCommand.cc
  2390. * src/DownloadEngine.cc
  2391. * src/DownloadEngine.h
  2392. * src/SleepCommand.cc
  2393. * src/SleepCommand.h
  2394. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Added the ability to specify output filename and directory in input
  2396. file.
  2397. Additional parameters are added in the following line of URIs
  2398. with proceeding white space(s), 1 parameter in 1 line.
  2399. The parameter names are the same with the command-line option name
  2400. without proceeding "--". Not all the options are available here:
  2401. at the moment, 'dir' and 'out' options are avialable.
  2402. Please note that out option has no effect against Metalink or BitTorrent
  2403. downloads.
  2404. Example input file:
  2405. http://host/foo-1.1.tar.bz2
  2406. out=foo.tar.bz2
  2407. dir=/tmp/downloads
  2408. http://host/thundermonkey-2.0.tar.bz2
  2409. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2410. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2411. thundermonkey-2.0.tar.bz2 is saved as
  2412. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2413. * src/BtPostDownloadHandler.cc
  2414. * src/Metalink2RequestGroup.cc
  2415. * src/Metalink2RequestGroup.h
  2416. * src/MetalinkPostDownloadHandler.cc
  2417. * src/UriListParser.cc
  2418. * src/UriListParser.h
  2419. * src/main.cc
  2420. * test/Metalink2RequestGroupTest.cc
  2421. * test/UriListParserTest.cc
  2422. * test/filelist1.txt
  2423. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Fixed error when SSL library is not found.
  2425. * configure.ac
  2426. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Cross referenced among -s, -C and -j options.
  2428. Updated usage of -C and -s options.
  2429. * src/usage_text.h
  2430. * doc/aria2c.1.txt
  2431. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Fixed bad cast in 32bit platforms.
  2433. * test/DefaultPieceStorageTest.cc
  2434. (DefaultPieceStorageTest::testGetCompletedLength)
  2435. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Fixed unit test fails on 32bit platforms.
  2437. * test/CookieParserTest.cc
  2438. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Show an average download speed in Download results.
  2440. * src/BtFileAllocationEntry.cc
  2441. * src/DefaultPieceStorage.cc
  2442. * src/DownloadContext.cc
  2443. * src/DownloadContext.h
  2444. * src/DownloadResult.h
  2445. * src/RequestGroup.cc
  2446. * src/RequestGroupMan.cc
  2447. * src/StreamFileAllocationEntry.cc
  2448. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Fixed the bug that metalink file is not processed if Content-Type
  2450. field has a paramter.
  2451. * src/HttpResponse.cc
  2452. * src/HttpResponse.h
  2453. * test/HttpResponseTest.cc
  2454. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Removed unused code.
  2456. * src/DefaultBtAnnounce.cc
  2457. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2459. the value larger than DefaultPieceStorage::getTotalLength() when
  2460. in flight pieces are involved.
  2461. * src/DefaultPieceStorage.cc
  2462. * test/DefaultPieceStorageTest.cc
  2463. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Bump up version number to 1.0.0a.
  2465. * configure.ac
  2466. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Updated configure.ac
  2468. * configure.ac
  2469. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Added usege for proxy.
  2471. * doc/aria2c.1.txt
  2472. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Added usage for --ca-certificate, --certificate, --private-key and
  2474. --check-certificate options.
  2475. * doc/aria2c.1.txt
  2476. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Updated man page
  2478. * doc/aria2c.1.txt
  2479. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Added --no-proxy option. It receives comman separated hostname or
  2481. domains to which proxy should not be used.
  2482. aria2 honors the environment variable no_proxy to override no-proxy
  2483. value in configuration file. The user can override the environment
  2484. variable no_proxy with --no-proxy command-line option.
  2485. * src/AbstractCommand.cc
  2486. * src/OptionHandlerFactory.cc
  2487. * src/option_processing.cc
  2488. * src/prefs.cc
  2489. * src/prefs.h
  2490. * src/usage_text.h
  2491. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2493. The CA certificates are specified in --ca-certificate option.
  2494. By default, the verification is disabled. Use --check-certificate
  2495. option to enable it.
  2496. * src/HttpRequestCommand.cc
  2497. * src/LibgnutlsTLSContext.cc
  2498. * src/LibgnutlsTLSContext.h
  2499. * src/LibsslTLSContext.cc
  2500. * src/LibsslTLSContext.h
  2501. * src/MultiUrlRequestInfo.cc
  2502. * src/OptionHandlerFactory.cc
  2503. * src/SocketCore.cc
  2504. * src/SocketCore.h
  2505. * src/a2functional.h
  2506. * src/message.h
  2507. * src/option_processing.cc
  2508. * src/prefs.cc
  2509. * src/prefs.h
  2510. * src/usage_text.h
  2511. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Added client certificate authentication for SSL/TLS.
  2513. Currently a private key must be decrypted for use with aria2.
  2514. If a user accidentally gives encrypted file to aria2 then following
  2515. thing happens:
  2516. If encrypted private key is given to aria2, it behaves differently
  2517. depending on the ssl library it uses. If aria2 built with openssl then
  2518. openssl prompts the user for password. If aria2 build with gnutls then
  2519. aria2 exists with error at start up.
  2520. * src/DownloadEngineFactory.cc
  2521. * src/MultiUrlRequestInfo.cc
  2522. * src/OptionHandlerFactory.cc
  2523. * src/option_processing.cc
  2524. * src/prefs.cc
  2525. * src/prefs.h
  2526. * src/usage_text.h
  2527. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Introduced TLSContext that holds TLS related data that can be shared
  2529. with multiple SSL connections.
  2530. * src/DownloadEngineFactory.cc
  2531. * src/LibgnutlsTLSContext.cc
  2532. * src/LibgnutlsTLSContext.h
  2533. * src/LibsslTLSContext.cc
  2534. * src/LibsslTLSContext.h
  2535. * src/Makefile.am
  2536. * src/SocketCore.cc
  2537. * src/SocketCore.h
  2538. * src/TLSContext.h
  2539. * src/message.h
  2540. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Fixed the bug that the DiskWriter of the first FileEntry whose
  2542. `needsFileAllocation' property is false is not created
  2543. even if it shares a piece with next FileEntry which `requested' property
  2544. is true.
  2545. Fixed the bug that zero-length file is not created if pre file
  2546. allocation is not done.
  2547. * src/MultiDiskAdaptor.cc
  2548. * src/MultiDiskAdaptor.h
  2549. * test/MultiDiskAdaptorTest.cc
  2550. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2551. Added the ability to pool proxy connection.
  2552. The conneciton in FTP with proxy-method=GET is not pooled.
  2553. Proxy-Connection header will not be sent when sending CONNECT method.
  2554. * src/DownloadEngine.cc
  2555. * src/DownloadEngine.h
  2556. * src/FtpFinishDownloadCommand.cc
  2557. * src/FtpInitiateConnectionCommand.cc
  2558. * src/FtpNegotiationCommand.cc
  2559. * src/HttpDownloadCommand.cc
  2560. * src/HttpInitiateConnectionCommand.cc
  2561. * src/HttpRequest.cc
  2562. * src/HttpRequest.h
  2563. * src/HttpResponse.cc
  2564. * src/HttpSkipResponseCommand.cc
  2565. * test/HttpRequestTest.cc
  2566. * test/HttpResponseTest.cc
  2567. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2568. Handle date before epoch.
  2569. To create *bad* Time object, call Time::null().
  2570. * src/CookieParser.cc
  2571. * src/FtpConnection.cc
  2572. * src/FtpConnection.h
  2573. * src/FtpNegotiationCommand.cc
  2574. * src/RequestGroup.cc
  2575. * src/TimeA2.cc
  2576. * src/TimeA2.h
  2577. * test/CookieParserTest.cc
  2578. * test/FtpConnectionTest.cc
  2579. * test/TimeTest.cc
  2580. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2581. Added support for following envrionment variables: http_proxy,
  2582. https_proxy, ftp_proxy and all_proxy.
  2583. Each variable is equivalent to the aria2 option whose name is the
  2584. variable name with '_' replaced with '-'.
  2585. They overrides options specified in aria2.conf file.
  2586. The envrionment variables can be overrode using command-line option.
  2587. * src/option_processing.cc
  2588. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Renamed --http-proxy-method as --proxy-method.
  2590. * src/AbstractCommand.cc
  2591. * src/FtpInitiateConnectionCommand.cc
  2592. * src/HttpInitiateConnectionCommand.cc
  2593. * src/OptionHandlerFactory.cc
  2594. * src/option_processing.cc
  2595. * src/prefs.cc
  2596. * src/prefs.h
  2597. * src/usage_text.h
  2598. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2599. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2600. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2601. Above 3 options and --http-proxy option can handle proxy in URL format
  2602. like: http://user:passwd@host:port.
  2603. If a proxy requires user/password, they must be specified in a URL.
  2604. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2605. instead.
  2606. * src/AbstractCommand.cc
  2607. * src/AbstractCommand.h
  2608. * src/AbstractProxyRequestCommand.cc
  2609. * src/AbstractProxyRequestCommand.h
  2610. * src/AuthConfigFactory.cc
  2611. * src/AuthConfigFactory.h
  2612. * src/FtpFinishDownloadCommand.cc
  2613. * src/FtpInitiateConnectionCommand.cc
  2614. * src/FtpInitiateConnectionCommand.h
  2615. * src/FtpNegotiationCommand.cc
  2616. * src/FtpTunnelRequestCommand.cc
  2617. * src/FtpTunnelRequestCommand.h
  2618. * src/HttpDownloadCommand.cc
  2619. * src/HttpInitiateConnectionCommand.cc
  2620. * src/HttpInitiateConnectionCommand.h
  2621. * src/HttpProxyRequestCommand.cc
  2622. * src/HttpProxyRequestCommand.h
  2623. * src/HttpRequest.cc
  2624. * src/HttpRequest.h
  2625. * src/HttpRequestCommand.cc
  2626. * src/HttpRequestCommand.h
  2627. * src/HttpSkipResponseCommand.cc
  2628. * src/InitiateConnectionCommand.cc
  2629. * src/InitiateConnectionCommand.h
  2630. * src/OptionHandlerFactory.cc
  2631. * src/OptionHandlerImpl.h
  2632. * src/Request.cc
  2633. * src/option_processing.cc
  2634. * src/prefs.cc
  2635. * src/prefs.h
  2636. * src/usage_text.h
  2637. * test/AuthConfigFactoryTest.cc
  2638. * test/HttpRequestTest.cc
  2639. * test/OptionHandlerTest.cc
  2640. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2641. Execute choking algorithm when unchoked and interested peer is
  2642. disconected.
  2643. * src/DefaultPeerStorage.cc
  2644. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2645. Added testcase for BtNotInterestedMessage from unchoked peer.
  2646. * test/BtNotInterestedMessageTest.cc
  2647. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2648. Execute choking algorithm when BtInterestedMessage arrives from
  2649. unchoked peer.
  2650. * src/BtInterestedMessage.cc
  2651. * src/BtInterestedMessage.h
  2652. * src/DefaultBtMessageFactory.cc
  2653. * test/BtInterestedMessageTest.cc
  2654. * test/MockPeerStorage.h
  2655. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2656. AuthConfigFactory is now part of DownloadEngine.
  2657. * src/AbstractProxyRequestCommand.cc
  2658. * src/AuthConfigFactory.h
  2659. * src/DownloadEngine.cc
  2660. * src/DownloadEngine.h
  2661. * src/FtpConnection.cc
  2662. * src/FtpConnection.h
  2663. * src/FtpNegotiationCommand.cc
  2664. * src/HttpConnection.cc
  2665. * src/HttpRequest.cc
  2666. * src/HttpRequest.h
  2667. * src/HttpRequestCommand.cc
  2668. * src/HttpResponse.cc
  2669. * src/HttpResponseCommand.cc
  2670. * src/HttpSkipResponseCommand.cc
  2671. * src/MultiUrlRequestInfo.cc
  2672. * src/main.cc
  2673. * test/FtpConnectionTest.cc
  2674. * test/HttpRequestTest.cc
  2675. * test/HttpResponseTest.cc
  2676. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Corrected catched exception type.
  2678. * src/ServerStatMan.cc
  2679. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2680. DNSCache is now part of DownloadEngine.
  2681. * src/DNSCache.h
  2682. * src/DownloadEngine.cc
  2683. * src/DownloadEngine.h
  2684. * src/InitiateConnectionCommand.cc
  2685. * src/MultiUrlRequestInfo.cc
  2686. * test/Makefile.am
  2687. * test/Makefile.in
  2688. * test/SimpleDNSCacheTest.cc
  2689. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2691. DownloadEngine.
  2692. * src/ActivePeerConnectionCommand.cc
  2693. * src/BtSetup.cc
  2694. * src/CUIDCounter.h
  2695. * src/DHTSetup.cc
  2696. * src/DownloadCommand.cc
  2697. * src/DownloadEngine.cc
  2698. * src/DownloadEngine.h
  2699. * src/DownloadEngineFactory.cc
  2700. * src/FileAllocationDispatcherCommand.cc
  2701. * src/InitiatorMSEHandshakeCommand.cc
  2702. * src/PeerInitiateConnectionCommand.cc
  2703. * src/PeerInteractionCommand.cc
  2704. * src/PeerListenCommand.cc
  2705. * src/RequestGroup.cc
  2706. * src/StreamFileAllocationEntry.cc
  2707. * src/TrackerWatcherCommand.cc
  2708. * src/main.cc
  2709. * test/RequestGroupManTest.cc
  2710. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2711. Implemented commented code in BtSeederStateChoke
  2712. * src/BtSeederStateChoke.cc
  2713. * src/Peer.cc
  2714. * src/Peer.h
  2715. * src/PeerInteractionCommand.cc
  2716. * src/PeerSessionResource.cc
  2717. * src/PeerSessionResource.h
  2718. * test/MockBtMessageDispatcher.h
  2719. * test/PeerSessionResourceTest.cc
  2720. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2722. its object.
  2723. * src/AbstractBtMessage.cc
  2724. * src/ActivePeerConnectionCommand.cc
  2725. * src/ActivePeerConnectionCommand.h
  2726. * src/BtContextAwareCommand.cc
  2727. * src/BtContextAwareCommand.h
  2728. * src/BtExtendedMessage.cc
  2729. * src/BtExtendedMessage.h
  2730. * src/BtInterestedMessage.cc
  2731. * src/BtInterestedMessage.h
  2732. * src/BtNotInterestedMessage.cc
  2733. * src/BtNotInterestedMessage.h
  2734. * src/BtRegistry.cc
  2735. * src/BtRegistry.h
  2736. * src/BtSeederStateChoke.cc
  2737. * src/BtSetup.cc
  2738. * src/DHTGetPeersCommand.cc
  2739. * src/DHTGetPeersCommand.h
  2740. * src/DHTPeerAnnounceEntry.cc
  2741. * src/DHTPeerAnnounceEntry.h
  2742. * src/DHTPeerAnnounceStorage.cc
  2743. * src/DHTPeerAnnounceStorage.h
  2744. * src/DHTPeerLookupTask.cc
  2745. * src/DHTPeerLookupTask.h
  2746. * src/DHTSetup.cc
  2747. * src/DHTSetup.h
  2748. * src/DHTTaskFactory.h
  2749. * src/DHTTaskFactoryImpl.cc
  2750. * src/DHTTaskFactoryImpl.h
  2751. * src/DefaultBtAnnounce.cc
  2752. * src/DefaultBtInteractive.cc
  2753. * src/DefaultBtInteractive.h
  2754. * src/DefaultBtMessageDispatcher.cc
  2755. * src/DefaultBtMessageDispatcher.h
  2756. * src/DefaultBtMessageFactory.cc
  2757. * src/DefaultBtMessageFactory.h
  2758. * src/DefaultBtMessageReceiver.cc
  2759. * src/DefaultBtProgressInfoFile.cc
  2760. * src/DefaultBtProgressInfoFile.h
  2761. * src/DefaultBtRequestFactory.cc
  2762. * src/DefaultBtRequestFactory.h
  2763. * src/DefaultExtensionMessageFactory.cc
  2764. * src/DefaultExtensionMessageFactory.h
  2765. * src/DefaultPeerStorage.cc
  2766. * src/DefaultPeerStorage.h
  2767. * src/DownloadEngine.cc
  2768. * src/DownloadEngine.h
  2769. * src/InitiatorMSEHandshakeCommand.cc
  2770. * src/InitiatorMSEHandshakeCommand.h
  2771. * src/MSEHandshake.cc
  2772. * src/MSEHandshake.h
  2773. * src/Makefile.am
  2774. * src/Makefile.in
  2775. * src/PeerChokeCommand.cc
  2776. * src/PeerChokeCommand.h
  2777. * src/PeerInitiateConnectionCommand.cc
  2778. * src/PeerInitiateConnectionCommand.h
  2779. * src/PeerInteractionCommand.cc
  2780. * src/PeerInteractionCommand.h
  2781. * src/PeerObject.h
  2782. * src/PeerReceiveHandshakeCommand.cc
  2783. * src/PeerReceiveHandshakeCommand.h
  2784. * src/ReceiverMSEHandshakeCommand.cc
  2785. * src/RequestGroup.cc
  2786. * src/RequestGroup.h
  2787. * src/RequestGroupMan.cc
  2788. * src/RequestGroupMan.h
  2789. * src/SeedCheckCommand.cc
  2790. * src/SeedCheckCommand.h
  2791. * src/ShareRatioSeedCriteria.h
  2792. * src/SimpleBtMessage.cc
  2793. * src/TrackerWatcherCommand.cc
  2794. * src/TrackerWatcherCommand.h
  2795. * src/UTPexExtensionMessage.cc
  2796. * src/UTPexExtensionMessage.h
  2797. * test/BtCancelMessageTest.cc
  2798. * test/BtChokeMessageTest.cc
  2799. * test/BtExtendedMessageTest.cc
  2800. * test/BtInterestedMessageTest.cc
  2801. * test/BtNotInterestedMessageTest.cc
  2802. * test/BtPieceMessageTest.cc
  2803. * test/BtPortMessageTest.cc
  2804. * test/BtRegistryTest.cc
  2805. * test/BtRejectMessageTest.cc
  2806. * test/BtRequestMessageTest.cc
  2807. * test/DHTPeerAnnounceEntryTest.cc
  2808. * test/DHTPeerAnnounceStorageTest.cc
  2809. * test/DefaultBtMessageDispatcherTest.cc
  2810. * test/DefaultBtMessageFactoryTest.cc
  2811. * test/DefaultBtProgressInfoFileTest.cc
  2812. * test/DefaultBtRequestFactoryTest.cc
  2813. * test/DefaultExtensionMessageFactoryTest.cc
  2814. * test/MSEHandshakeTest.cc
  2815. * test/MockDHTTaskFactory.h
  2816. * test/ShareRatioSeedCriteriaTest.cc
  2817. * test/UTPexExtensionMessageTest.cc
  2818. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. Fixed compiler warning.
  2820. * test/UtilTest.cc
  2821. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2822. Treat Cookie object as session cookie if expiry = 0 is given.
  2823. With this change, you can specify session scoped cookies in an external
  2824. file setting expiry value to 0.
  2825. * src/Cookie.cc
  2826. * src/Cookie.h
  2827. * test/CookieParserTest.cc
  2828. * test/CookieStorageTest.cc
  2829. * test/CookieTest.cc
  2830. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2831. Changed signature of DHTMessageFactory::createResponseMessage().
  2832. Removed unused validateIDMatch.
  2833. * src/DHTMessageFactory.h
  2834. * src/DHTMessageFactoryImpl.cc
  2835. * src/DHTMessageFactoryImpl.h
  2836. * src/DHTMessageTracker.cc
  2837. * test/DHTMessageFactoryImplTest.cc
  2838. * test/MockDHTMessageFactory.h
  2839. Dropped DHT message coming from same ID of localhost.
  2840. * src/DHTMessageReceiver.cc
  2841. Rejected adding node whose ID is the same as localhost's.
  2842. * src/DHTRoutingTable.cc
  2843. * test/BtPortMessageTest.cc
  2844. * test/DHTRoutingTableTest.cc
  2845. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2846. Pool connection when redirection occurs with Content-Length = 0.
  2847. * src/HttpSkipResponseCommand.cc
  2848. * src/HttpSkipResponseCommand.h
  2849. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2850. Fixed the bug that causes time out when redirection occurs with
  2851. content-length 0.
  2852. * src/HttpResponseCommand.cc
  2853. * src/HttpSkipResponseCommand.cc
  2854. * src/HttpSkipResponseCommand.h
  2855. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Now each status legends is shown only when it appears in Download
  2857. Result. If Download Result has no item, then status legend will not
  2858. be printed.
  2859. * src/RequestGroupMan.cc
  2860. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2861. Removed duplicate creation of OptionHandlers.
  2862. * src/option_processing.cc
  2863. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Fixed the bug that causes segmentation fault when accessing files which
  2865. don't exist or are not included in --select-file option while
  2866. validating chunk checksum.
  2867. * src/MultiDiskAdaptor.cc
  2868. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Fixed compiler warning.
  2870. * test/UtilTest.cc
  2871. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2873. * src/IteratableChecksumValidator.cc
  2874. * src/IteratableChunkChecksumValidator.cc
  2875. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. * Release 0.16.2
  2877. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2878. Added Serbian translation. Updated Ukrainian translation.
  2879. Thanks to all translators.
  2880. * po/sr.po
  2881. * po/uk.po
  2882. * po/LINGUAS
  2883. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Bump up version number to 0.16.2
  2885. * configure.ac
  2886. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Added length equality test to operator== to drop a piece message
  2888. whose length does not match to the requested one.
  2889. * src/RequestSlot.cc
  2890. * test/DefaultBtMessageDispatcherTest.cc
  2891. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2892. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2893. recieved.
  2894. In this fix, if a request larger than 16KiB length is received, aria2
  2895. disconnects the peer.
  2896. * src/BtConstants.h
  2897. * src/PeerMessageUtil.cc
  2898. * src/PeerMessageUtil.h
  2899. * test/BtRequestMessageTest.cc
  2900. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2901. * Release 0.16.1
  2902. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2903. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2904. * doc/aria2c.1.txt
  2905. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2906. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2907. Updated French, Simplified Chinese and Japanese translations.
  2908. Thanks to all translators.
  2909. en@quot and en@boldquot are also added.
  2910. * po/LINGUAS
  2911. * po/fr.po
  2912. * po/ja.po
  2913. * po/uk.po
  2914. * po/vi.po
  2915. * po/zh_CN.po
  2916. * po/zh_TW.po
  2917. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2918. Bump up version number to 0.16.1.
  2919. * configure.ac
  2920. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2921. Updated README.
  2922. * README
  2923. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2924. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2925. not to replace '--' with em dash character.
  2926. * doc/aria2c.1.txt
  2927. * doc/makeman
  2928. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2930. every SEC seconds.
  2931. * src/DownloadEngineFactory.cc
  2932. * src/OptionHandlerFactory.cc
  2933. * src/option_processing.cc
  2934. * src/usage_text.h
  2935. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2936. Fixed compile warning on linux-amd64
  2937. * src/FtpConnection.cc
  2938. * src/IteratableChunkChecksumValidator.cc
  2939. * src/MultiDiskAdaptor.cc
  2940. Fixed the bug that unit test fails on linux-amd64
  2941. * test/UtilTest.cc
  2942. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. Added --dht-file-path option to change the path to dht.dat, which is a
  2944. serialized DHT routing table.
  2945. * src/OptionHandlerFactory.cc
  2946. * src/option_processing.cc
  2947. * src/usage_text.h
  2948. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Fixed possible underflow.
  2950. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2951. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2952. Fixed the bug that last character in URI is not encoded.
  2953. * src/Request.cc
  2954. * test/RequestTest.cc
  2955. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2956. Fixed the bug that referer header field contains fragment.
  2957. Now Request class removes fragment part of URI and encodes it
  2958. in Request::setUri() and setReferer().
  2959. * src/Request.h
  2960. * src/Request.cc
  2961. * test/RequestTest.cc
  2962. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2963. Added missing m4 macros.
  2964. * m4/cppunit.m4
  2965. * m4/libgcrypt.m4
  2966. * m4/libgnutls-extra.m4
  2967. * m4/libgnutls.m4
  2968. * m4/libxml2.m4
  2969. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2970. Fixed compile error with gcc-4.4(snapshot)
  2971. * src/File.cc
  2972. * src/FtpConnection.cc
  2973. * src/OptionHandlerImpl.h
  2974. * src/Util.cc
  2975. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Removed assert()
  2977. * src/SocketBuffer.cc (SocketBuffer::send)
  2978. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Changed the type of _numNewConnection to unsigned int.
  2980. * src/ActivePeerConnectionCommand.cc
  2981. * src/ActivePeerConnectionCommand.h
  2982. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. * Release 0.16.0
  2984. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2985. Updated doc
  2986. * README
  2987. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2989. translations. Thanks to all translators.
  2990. * po/bg.po
  2991. * po/de.po
  2992. * po/fr.po
  2993. * po/ja.po
  2994. * po/zh_CN.po
  2995. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Bump up version number to 0.16.0.
  2997. * configure.ac
  2998. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3000. int32_t.
  3001. Changed the type of count to int32_t.
  3002. * src/Metalink2RequestGroup.cc
  3003. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Added test for Time::elapsed(time_t).
  3005. * test/TimeTest.cc
  3006. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3007. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3008. Util::difftv() should be used instead.
  3009. * src/TimeA2.cc
  3010. * src/TimeA2.h
  3011. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3012. Made socket for dht connections non-blocking
  3013. * src/DHTAbstractMessage.cc
  3014. * src/DHTAbstractMessage.h
  3015. * src/DHTConnection.h
  3016. * src/DHTConnectionImpl.cc
  3017. * src/DHTConnectionImpl.h
  3018. * src/DHTMessage.h
  3019. * src/DHTMessageDispatcherImpl.cc
  3020. * src/DHTMessageDispatcherImpl.h
  3021. * src/DHTUnknownMessage.cc
  3022. * src/DHTUnknownMessage.h
  3023. * src/SocketCore.cc
  3024. * src/SocketCore.h
  3025. * test/MockDHTMessage.h
  3026. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Changed the type of offset to int.
  3028. * src/ParameterizedStringParser.cc
  3029. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Made getAsInt() return int32_t
  3031. * src/Option.h
  3032. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3033. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3034. build.
  3035. * configure.ac
  3036. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Use sqlite3_open if sqlite3_open_v2 is not available.
  3038. * src/Sqlite3MozCookieParser.cc
  3039. * src/Sqlite3MozCookieParser.h
  3040. * m4/sqlite3.m4
  3041. * test/Sqlite3MozCookieParserTest.cc
  3042. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3043. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3044. * src/BtPieceMessage.cc
  3045. * src/DHTPeerAnnounceStorage.cc
  3046. * src/DefaultPieceStorage.cc
  3047. * src/DownloadCommand.cc
  3048. * src/DownloadEngine.cc
  3049. * src/FtpConnection.cc
  3050. * src/PeerConnection.cc
  3051. * src/PeerMessageUtil.cc
  3052. * src/RequestGroup.cc
  3053. * src/RequestGroupMan.cc
  3054. * src/SimpleBtMessage.cc
  3055. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3057. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3058. * src/AbstractDiskWriter.cc
  3059. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Don't set Request::supportsPersistentConnection() in HttpConnection
  3061. since this code is also used in AbstractProxyResponseCommand.
  3062. Moved those code to HttpResponse.
  3063. * src/HttpResponse.cc
  3064. * src/HttpResponse.h
  3065. * src/HttpConnection.cc
  3066. * src/HttpConnection.h
  3067. * src/HttpResponseCommand.cc
  3068. * test/HttpResponseTest.cc
  3069. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3071. The configuration is minimum: no torrent, no metalink, so there may be
  3072. other compile error on their code.
  3073. * src/a2netcompat.h
  3074. * src/File.cc
  3075. * src/File.h
  3076. * src/SocketCore.cc
  3077. * src/SocketCore.h
  3078. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Made a socket of incoming peer non-blocking.
  3080. * src/PeerListenCommand.cc
  3081. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3082. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3083. whole message data is not sent in one send() call.
  3084. * src/BtPieceMessage.cc
  3085. * src/BtPieceMessage.h
  3086. * src/PeerConnection.cc
  3087. * src/PeerConnection.h
  3088. * src/SimpleBtMessage.cc
  3089. * src/SimpleBtMessage.h
  3090. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Fixed the bug that aria2 downloads faster than max-download-limit when
  3092. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3093. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3094. , instead of sum of them.
  3095. * src/ActivePeerConnectionCommand.cc
  3096. * src/DefaultBtInteractive.cc
  3097. * src/DownloadCommand.cc
  3098. * src/PeerInteractionCommand.cc
  3099. * src/PeerReceiveHandshakeCommand.cc
  3100. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3101. Fixed the bug that HTTPS download fails.
  3102. * src/AbstractCommand.cc
  3103. * src/AbstractCommand.h
  3104. * src/DownloadCommand.cc
  3105. * src/FtpConnection.cc
  3106. * src/HttpConnection.cc
  3107. * src/HttpRequestCommand.cc
  3108. * src/HttpResponseCommand.cc
  3109. * src/HttpSkipResponseCommand.cc
  3110. * src/MSEHandshake.cc
  3111. * src/PeerConnection.cc
  3112. * src/SocketCore.cc
  3113. * src/SocketCore.h
  3114. Fixed the bug that aria2 doesn't download whole content body and cannot
  3115. reuse connection if chunked transfer encoding and gzip content encoding
  3116. are set.
  3117. * src/DownloadCommand.cc
  3118. * src/HttpSkipResponseCommand.cc
  3119. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Updated man page.
  3121. * doc/aria2c.1.txt
  3122. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. When error occurred while aria2 was parsing an .aria2.conf file, print
  3124. the usage of the option that caused error.
  3125. * src/option_processing.cc
  3126. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3127. Fixed compile error on OptionHandlerException
  3128. * src/Makefile.am
  3129. * src/OptionHandlerException.cc
  3130. * src/OptionHandlerException.h
  3131. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Moved message of the error to OptionHandlerException.h
  3133. * src/NameMatchOptionHandler.h
  3134. * src/OptionHandlerException.h
  3135. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3136. When error occurs while aria2 is parsing an command-line option, print
  3137. the usage of the option.
  3138. * src/Makefile.am
  3139. * src/NameMatchOptionHandler.h
  3140. * src/OptionHandlerException.h
  3141. * src/option_processing.cc
  3142. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Reverted previous change.
  3144. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3145. username is not in URI.
  3146. * src/HttpRequest.cc
  3147. * src/Request.cc
  3148. * test/HttpRequestTest.cc
  3149. * test/RequestTest.cc
  3150. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3151. Now colon is required for username and password in FTP URL, like:
  3152. ftp://username:password@host.
  3153. If colon is not there, aria2 don't parse it as a username. For example,
  3154. aria2 don't retrieve username from ftp://username@host.
  3155. This fix was made in order to login FTP server via non-transparent ftp
  3156. proxy.
  3157. * src/Request.cc
  3158. * test/RequestTest.cc
  3159. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Use netrc for HTTP.
  3161. Now FTP user/password is sent in Authorization header when
  3162. --ftp-via-http-proxy=get is given.
  3163. * src/AuthConfigFactory.cc
  3164. * src/HttpRequest.cc
  3165. * src/HttpRequest.h
  3166. * src/NetrcAuthResolver.cc
  3167. * src/NetrcAuthResolver.h
  3168. * src/OptionHandlerFactory.cc
  3169. * src/option_processing.cc
  3170. * src/prefs.cc
  3171. * src/prefs.h
  3172. * test/AuthConfigFactoryTest.cc
  3173. * test/HttpRequestTest.cc
  3174. * test/NetrcAuthResolverTest.cc
  3175. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Issue PWD command first and get working directory and use it as a prefix
  3177. for CWD command.
  3178. * src/DownloadEngine.cc
  3179. * src/DownloadEngine.h
  3180. * src/FtpConnection.cc
  3181. * src/FtpConnection.h
  3182. * src/FtpFinishDownloadCommand.cc
  3183. * src/FtpInitiateConnectionCommand.cc
  3184. * src/FtpNegotiationCommand.cc
  3185. * src/FtpNegotiationCommand.h
  3186. * test/FtpConnectionTest.cc
  3187. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3188. Removed default user/pass for FTP user/pass, since it should not have
  3189. precedence over netrc configuration by default.
  3190. * src/OptionHandlerFactory.cc
  3191. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. Added debug log for socket event.
  3193. * src/AbstractCommand.cc
  3194. * src/PeerAbstractCommand.cc
  3195. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3196. Log microseconds.
  3197. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3198. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3199. Replaced HelpItem.cc with OptionHandler.cc.
  3200. * po/POTFILES.in
  3201. Updated po files with 'make update-po'
  3202. * po/aria2c.pot
  3203. * po/*.po
  3204. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3205. Removed possible values from the text.
  3206. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3207. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3208. Removed unused preferences:
  3209. PREF_NO_PREALLOCATION
  3210. PREF_STDOUT_LOG
  3211. PREF_TRACKER_MAX_TRIES
  3212. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3213. PREF_MIN_SEGMENT_SIZE
  3214. * src/option_processing.cc
  3215. * src/prefs.cc
  3216. * src/prefs.h
  3217. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Integrated HelpItem into OptionParser to ease the workload for adding
  3219. new options. Removed default value from usage text.
  3220. * src/HelpItem.cc: Removed.
  3221. * src/HelpItem.h: Removed.
  3222. * src/HelpItemFactory.cc: Removed.
  3223. * src/HelpItemFactory.h: Removed.
  3224. * src/Makefile.am
  3225. * src/Makefile.in
  3226. * src/NameMatchOptionHandler.h
  3227. * src/OptionHandler.cc
  3228. * src/OptionHandler.h
  3229. * src/OptionHandlerFactory.cc
  3230. * src/OptionHandlerImpl.h
  3231. * src/OptionParser.cc
  3232. * src/OptionParser.h
  3233. * src/TagContainer.cc: Removed.
  3234. * src/TagContainer.h: Removed.
  3235. * src/TaggedItem.cc: Removed.
  3236. * src/TaggedItem.h: Removed.
  3237. * src/main.cc
  3238. * src/option_processing.cc
  3239. * src/usage_text.h
  3240. * src/version_usage.cc
  3241. * test/HelpItemTest.cc: Removed.
  3242. * test/Makefile.am
  3243. * test/Makefile.in
  3244. * test/OptionHandlerTest.cc
  3245. * test/OptionParserTest.cc
  3246. * test/TagContainerTest.cc: Removed.
  3247. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Moved `TransferStat stat = ...' to inside the `if' clause.
  3249. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3250. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Fixed the bug that a block in a piece is requested when same block is
  3252. already requested to the same peer in end game mode.
  3253. * src/BtRequestFactory.h
  3254. * src/DefaultBtInteractive.cc
  3255. * src/DefaultBtRequestFactory.cc
  3256. * src/DefaultBtRequestFactory.h
  3257. * src/DefaultPieceStorage.cc
  3258. * src/DefaultPieceStorage.h
  3259. * src/PieceStorage.h
  3260. * src/UnknownLengthPieceStorage.cc
  3261. * src/UnknownLengthPieceStorage.h
  3262. * test/DefaultBtRequestFactoryTest.cc
  3263. * test/DefaultPieceStorageTest.cc
  3264. * test/MockBtRequestFactory.h
  3265. * test/MockPieceStorage.h
  3266. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3267. Removed _uploadLength and _downloadLength from PeerSessionResource
  3268. and use PeerStat::_sessionUploadLength and
  3269. PeerStat::_sessionDownloadLength.
  3270. * src/PeerSessionResource.cc
  3271. * src/PeerSessionResource.h
  3272. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Fixed the bug that prefixLength of split bucket which doesn't include
  3274. local node ID is incremented.
  3275. * src/DHTBucket.cc
  3276. * src/DHTBucket.h
  3277. * test/DHTBucketTest.cc
  3278. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Added cookies.sqlite to EXTRA_DIST
  3280. * test/Makefile.am
  3281. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Added Turkish translation. Updated French, German, Russian and
  3283. Simplified Chinese translations. Thanks to all translators.
  3284. * po/LINGUAS
  3285. * po/de.po
  3286. * po/fr.po
  3287. * po/ru.po
  3288. * po/tr.po
  3289. * po/zh_CN.po
  3290. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. Added deliminating text to the beginning of the log so that one can find
  3292. where the log starts easily.
  3293. * src/main.cc
  3294. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3296. to fix compile error when async DNS is not enabled by configuration.
  3297. * src/AbstractCommand.cc
  3298. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. If establishing conneciton to a server is failed, then mark error on
  3300. its ServerStat.
  3301. Added the cause of error to log when error event occurred.
  3302. Moved message string to message.h for translation.
  3303. * src/AbstractCommand.cc
  3304. * src/AbstractCommand.h
  3305. * src/FtpNegotiationCommand.cc
  3306. * src/HttpRequestCommand.cc
  3307. * src/PeerAbstractCommand.cc
  3308. * src/message.h
  3309. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3310. Added the function to get error message from socket.
  3311. * src/SocketCore.cc
  3312. * src/SocketCore.h
  3313. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3315. * src/RequestGroupMan.cc
  3316. * src/RequestGroupMan.h
  3317. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3318. If error event is received in epoll, then abort download immediately.
  3319. * src/AbstractCommand.cc
  3320. * src/Command.cc
  3321. * src/Command.h
  3322. * src/DownloadEngine.cc
  3323. * src/PeerAbstractCommand.cc
  3324. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Added usage message for --uri-selector, --server-stat-of,
  3326. --server-stat-in, --server-stat-timeout options.
  3327. * src/HelpItemFactory.cc
  3328. * src/usage_text.h
  3329. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. Added upper limit of FTP response buffer. The current implementation
  3331. uses 4096bytes as a limit.
  3332. * src/FtpConnection.cc
  3333. * src/FtpConnection.h
  3334. * test/FtpConnectionTest.cc
  3335. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. Use non-blocking socket for TCP communication to avoid possible
  3337. blocking due to buffer full.
  3338. * src/AbstractProxyRequestCommand.cc
  3339. * src/FtpConnection.cc
  3340. * src/FtpConnection.h
  3341. * src/FtpNegotiationCommand.cc
  3342. * src/FtpNegotiationCommand.h
  3343. * src/HttpConnection.cc
  3344. * src/HttpConnection.h
  3345. * src/HttpRequestCommand.cc
  3346. * src/InitiatorMSEHandshakeCommand.cc
  3347. * src/InitiatorMSEHandshakeCommand.h
  3348. * src/MSEHandshake.cc
  3349. * src/MSEHandshake.h
  3350. * src/Makefile.am
  3351. * src/PeerConnection.cc
  3352. * src/PeerConnection.h
  3353. * src/PeerInteractionCommand.cc
  3354. * src/PeerListenCommand.cc
  3355. * src/ReceiverMSEHandshakeCommand.cc
  3356. * src/ReceiverMSEHandshakeCommand.h
  3357. * src/SocketBuffer.cc
  3358. * src/SocketBuffer.h
  3359. * src/SocketCore.cc
  3360. * src/SocketCore.h
  3361. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. Call setStatusRealtime() in constructor.
  3363. * src/RealtimeCommand.cc
  3364. * src/RealtimeCommand.h
  3365. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Call Download::setNoWait(true) to execute newly created command without
  3367. a pause.
  3368. * src/AbstractCommand.cc
  3369. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3371. found' error from HTTP/FTP server NUM times without getting single
  3372. bytes of data, then force the download to fail.
  3373. Basically aria2 tris all URIs available. So if long list of URIs are
  3374. specified in Metalink, then aria2 will take a long time to fail
  3375. eventually if all URIs are outdated. This option eases this situation
  3376. to limit the number of servers to try.
  3377. * src/FtpNegotiationCommand.cc
  3378. * src/HelpItemFactory.cc
  3379. * src/HttpResponseCommand.cc
  3380. * src/OptionHandlerFactory.cc
  3381. * src/PeerStat.h
  3382. * src/RequestGroup.cc
  3383. * src/RequestGroup.h
  3384. * src/SegmentMan.cc
  3385. * src/SegmentMan.h
  3386. * src/option_processing.cc
  3387. * src/prefs.cc
  3388. * src/prefs.h
  3389. * src/usage_text.h
  3390. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3392. response even if more than one response is in it.
  3393. * src/FtpConnection.cc
  3394. * src/FtpConnection.h
  3395. * test/FtpConnectionTest.cc
  3396. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3397. Merged from stable-0.15
  3398. * m4/libcares.m4
  3399. Use pkg-config
  3400. * m4/sqlite3.m4
  3401. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3402. Removed unnecessary if statement.
  3403. * src/DefaultPieceStorage.cc (initPieceStorage)
  3404. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Added --connect-timeout option to specify connect timeout in seconds.
  3406. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3407. connecting to BitTorrent peer is not controlled by this option.
  3408. * src/AbstractProxyRequestCommand.cc
  3409. * src/FtpNegotiationCommand.cc
  3410. * src/HelpItemFactory.cc
  3411. * src/HttpRequestCommand.cc
  3412. * src/OptionHandlerFactory.cc
  3413. * src/option_processing.cc
  3414. * src/prefs.cc
  3415. * src/prefs.h
  3416. * src/usage_text.h
  3417. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3418. Added help message for -R option.
  3419. * src/HelpItemFactory.cc
  3420. * src/usage_text.h
  3421. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3422. Added the message that the time is in local time zone.
  3423. * src/RequestGroup.cc
  3424. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Implemented the ability to get timestamp from remote FTP server using
  3426. MDTM command described in RFC3659.
  3427. * src/FtpConnection.cc
  3428. * src/FtpConnection.h
  3429. * src/FtpNegotiationCommand.cc
  3430. * src/FtpNegotiationCommand.h
  3431. * test/FtpConnectionTest.cc
  3432. * test/Makefile.am
  3433. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3434. Implemented the ability to get timestamp from remote HTTP server and
  3435. apply it to local file. To enable this feature, --remote-time option
  3436. is added. No usage text has been written yet.
  3437. If several servers returns difference timestamp, then aria2 uses latest
  3438. one.
  3439. * src/CopyDiskAdaptor.cc
  3440. * src/CopyDiskAdaptor.h
  3441. * src/DirectDiskAdaptor.cc
  3442. * src/DirectDiskAdaptor.h
  3443. * src/DiskAdaptor.h
  3444. * src/File.cc
  3445. * src/File.h
  3446. * src/HttpHeader.cc
  3447. * src/HttpHeader.h
  3448. * src/HttpResponse.cc
  3449. * src/HttpResponse.h
  3450. * src/HttpResponseCommand.cc
  3451. * src/HttpResponseCommand.h
  3452. * src/MultiDiskAdaptor.cc
  3453. * src/MultiDiskAdaptor.h
  3454. * src/OptionHandlerFactory.cc
  3455. * src/RequestGroup.cc
  3456. * src/RequestGroup.h
  3457. * src/RequestGroupMan.cc
  3458. * src/option_processing.cc
  3459. * src/prefs.cc
  3460. * src/prefs.h
  3461. * test/CopyDiskAdaptorTest.cc
  3462. * test/FileTest.cc
  3463. * test/Makefile.am
  3464. * test/Makefile.in
  3465. * test/MultiDiskAdaptorTest.cc
  3466. * test/TestUtil.cc
  3467. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Fixed the bug that DiskWriterEntry is not created when its
  3469. FileEntry.isRequested() is false and it doesn't share a piece with
  3470. other FileEntries that are requested. This bug causes segmentation fault
  3471. in the end.
  3472. * src/MultiDiskAdaptor.cc
  3473. * src/MultiDiskAdaptor.h
  3474. * src/MultiFileAllocationIterator.cc
  3475. * test/MultiDiskAdaptorTest.cc
  3476. * test/MultiFileAllocationIteratorTest.cc
  3477. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3479. called if the number of file entries are greater than max open files.
  3480. * src/AbstractSingleDiskAdaptor.cc
  3481. * src/AbstractSingleDiskAdaptor.h
  3482. * src/DiskAdaptor.h
  3483. * src/MultiDiskAdaptor.cc
  3484. * src/MultiDiskAdaptor.h
  3485. * test/MultiDiskAdaptorTest.cc
  3486. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Added a constuctor that receives struct timeval.
  3488. Added operator<.
  3489. * src/TimeA2.cc
  3490. * src/TimeA2.h
  3491. * test/TimeTest.cc
  3492. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3493. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3494. * src/CookieParser.cc
  3495. * test/CookieParserTest.cc
  3496. * test/HttpResponseTest.cc
  3497. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Implmented the functions to parse date.
  3499. * src/TimeA2.cc
  3500. * src/TimeA2.h
  3501. * test/TimeTest.cc
  3502. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Added "Firefox3 Cookie" feature to FeatureConfig
  3504. * src/FeatureConfig.cc
  3505. * src/FeatureConfig.h
  3506. * test/FeatureConfigTest.cc
  3507. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Bump up version number to 0.16.0b
  3509. * configure.ac
  3510. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. Use pkg-config if is is available.
  3512. * m4/openssl.m4
  3513. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3515. * src/BtAnnounce.h
  3516. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3517. If an error occurred with a URI, remove identical URI from remaining
  3518. URI list because it is likely that same error occurred in the end and it
  3519. is waste of time.
  3520. * src/AbstractCommand.cc
  3521. * src/RequestGroup.cc
  3522. * src/RequestGroup.h
  3523. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3524. Removed wrong comment.
  3525. * src/DefaultPeerStorage.cc
  3526. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3528. Added return value of getpid() to argument of srand() to achieve more
  3529. randomized value.
  3530. * src/SimpleRandomizer.cc
  3531. * src/SimpleRandomizer.h
  3532. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3533. Contact tracker frequently when the number of connections are 0 and
  3534. download is not finished yet.
  3535. * src/ActivePeerConnectionCommand.cc
  3536. * src/BtAnnounce.h
  3537. * src/DefaultBtAnnounce.cc
  3538. * src/DefaultBtAnnounce.h
  3539. * test/MockBtAnnounce.h
  3540. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3541. Moved threshold values to UTPexExtensionMessage.
  3542. * src/DefaultBtInteractive.cc
  3543. * src/Peer.cc
  3544. * src/Peer.h
  3545. * src/UTPexExtensionMessage.cc
  3546. * src/UTPexExtensionMessage.h
  3547. * test/UTPexExtensionMessageTest.cc
  3548. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Added _incoming member to Peer class and made it true if the peer
  3550. initiated connection. Don't add those peer to UTPex message.
  3551. If extended handshake is received, assign _incoming to false.
  3552. * src/DefaultBtInteractive.cc
  3553. * src/HandshakeExtensionMessage.cc
  3554. * src/Peer.cc
  3555. * src/Peer.h
  3556. * src/PeerListenCommand.cc
  3557. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3559. Encoding Decoder. Removed size threshold for turning off on the fly
  3560. inflation because resulting file may or may not be inflated depending
  3561. on the file size and I think it is not expected by users.
  3562. This change fixes segmentation fault when Metalink file contains gzipped
  3563. file and its filesize is provided.
  3564. * src/HttpResponseCommand.cc
  3565. * src/HttpResponseCommand.h
  3566. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Made Cookie immutable.
  3568. * src/Cookie.cc
  3569. * src/Cookie.h
  3570. * src/CookieParser.cc
  3571. * src/CookieParser.h
  3572. * src/CookieStorage.cc
  3573. * test/CookieParserTest.cc
  3574. * test/CookieStorageTest.cc
  3575. * test/NsCookieParserTest.cc
  3576. * test/Sqlite3MozCookieParserTest.cc
  3577. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Removed CookieBox, CookieBoxFactory.
  3579. * src/CookieBox.cc
  3580. * src/CookieBox.h
  3581. * src/CookieBoxFactory.cc
  3582. * src/CookieBoxFactory.h
  3583. * src/Makefile.am
  3584. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. Use CookieStorage class instead of CookieBox class.
  3586. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3587. * src/AbstractProxyRequestCommand.cc
  3588. * src/CookieStorage.cc
  3589. * src/DownloadEngine.cc
  3590. * src/DownloadEngine.h
  3591. * src/HttpConnection.cc
  3592. * src/HttpConnection.h
  3593. * src/HttpRequest.cc
  3594. * src/HttpRequest.h
  3595. * src/HttpRequestCommand.cc
  3596. * src/HttpResponse.cc
  3597. * src/HttpResponseCommand.cc
  3598. * src/HttpSkipResponseCommand.cc
  3599. * src/Makefile.am
  3600. * src/MultiUrlRequestInfo.cc
  3601. * src/Request.cc
  3602. * src/Request.h
  3603. * src/main.cc
  3604. * test/AllTest.cc
  3605. * test/CookieStorageTest.cc
  3606. * test/CookieTest.cc
  3607. * test/HttpRequestTest.cc
  3608. * test/HttpResponseTest.cc
  3609. * test/Makefile.am
  3610. * test/NsCookieParserTest.cc
  3611. * test/Sqlite3MozCookieParserTest.cc
  3612. * test/nscookietest.txt
  3613. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Updated
  3615. * test/Cookies.sqlite
  3616. * test/nscookietest.txt
  3617. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3618. Added tests for CookieStorage::load()
  3619. * test/CookieStorageTest.cc
  3620. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Added CookieStorage class which is based on RFC2109 and manages cookies
  3622. more strictly than CookieBox and CookieBoxFactory class.
  3623. * src/CookieStorage.cc
  3624. * src/CookieStorage.h
  3625. * src/Cookie.cc
  3626. * src/Cookie.h
  3627. * test/CookieStorageTest.cc
  3628. * test/CookieTest.cc
  3629. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. Fixed the bug that commands are created more than the number of pieces.
  3631. * src/RequestGroup.cc
  3632. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3633. Fixed infinite loop bug in FTP when SIZE command failed.
  3634. * src/FtpNegotiationCommand.cc
  3635. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Removed DirectDiskAdaptorTest.h
  3637. * test/Makefile.am
  3638. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3639. Fixed chunk checksum validation cannot detect trailing garbage data.
  3640. BUG#2074141
  3641. * src/AbstractSingleDiskAdaptor.cc
  3642. * src/AbstractSingleDiskAdaptor.h
  3643. * src/CheckIntegrityEntry.cc
  3644. * src/CheckIntegrityEntry.h
  3645. * src/DiskAdaptor.h
  3646. * src/MultiDiskAdaptor.cc
  3647. * src/MultiDiskAdaptor.h
  3648. * src/RequestGroup.cc
  3649. * test/DirectDiskAdaptorTest.cc
  3650. * test/MultiDiskAdaptorTest.cc
  3651. * test/TestUtil.cc
  3652. * test/TestUtil.h
  3653. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Bump up version number of dht.dat file to 3. In version 3 format, time
  3655. is stored in 64bit, network byte order.
  3656. New build can load old format(version 2) but it saves the file in new
  3657. format. It means once you used new build, your dht.dat becomes
  3658. incompatible with older build.
  3659. * src/DHTRoutingTableDeserializer.cc
  3660. * src/DHTRoutingTableSerializer.cc
  3661. * test/DHTRoutingTableSerializerTest.cc
  3662. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3663. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3664. * test/Makefile.am
  3665. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Bump up version number of .aria2 control file to 0001.
  3667. New aria2 can still load version 0000 file but it saves the file in
  3668. version 0001 format. It means that new aria2 can resume download
  3669. started by old aria2 but the opposite is not true.
  3670. * src/DefaultBtProgressInfoFile.cc
  3671. * src/DefaultBtProgressInfoFile.h
  3672. * test/DefaultBtProgressInfoFileTest.cc
  3673. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Added ntoh64 and hton64 as inline functions.
  3675. * src/Util.cc
  3676. * test/UtilTest.cc
  3677. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3678. Added sqlite3 depenency and Firefox3 cookie support.
  3679. * README
  3680. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3681. State that firefox3 cookie is supported explicitly in the usage.
  3682. * src/usage_text.h
  3683. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Externalized message.
  3685. * src/RequestGroupMan.cc
  3686. * src/message.h
  3687. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Save temporary file first and rename to the destination on success.
  3689. Added test cases.
  3690. * src/RequestGroupMan.cc
  3691. * test/RequestGroupManTest.cc
  3692. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Fixed the bug that the number of connected peer is exceeding the limit
  3694. (55 by default) in seeding mode.
  3695. Multiplied 0.8 to _maxUploadSpeedLimit.
  3696. * src/ActivePeerConnectionCommand.cc
  3697. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. Clear table item.
  3699. * src/Dictionary.cc
  3700. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Fixed error handling of lseek.
  3702. * src/AbstractDiskWriter.cc
  3703. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3705. style cookie file.
  3706. * src/usage_text.h
  3707. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3708. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3709. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3710. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3711. * src/Util.cc
  3712. * src/Util.h
  3713. * src/CookieParser.cc
  3714. * test/UtilTest.cc
  3715. * test/CookieParserTest.cc
  3716. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3717. Separate the implementation to load old mozilla format of cookie to
  3718. NsCookieParser class.
  3719. * src/CookieBoxFactory.cc
  3720. * src/CookieBoxFactory.h
  3721. * src/NsCookieParser.cc
  3722. * src/NsCookieParser.h
  3723. * test/NsCookieParserTest.cc
  3724. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Made parse() const
  3726. * src/Sqlite3MozCookieParser.cc
  3727. * src/Sqlite3MozCookieParser.h
  3728. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Added firefox3 cookie support based on the patch submitted by
  3730. tizianomueller.
  3731. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3732. this functionality.
  3733. * configure.ac
  3734. * m4/sqlite3.m4
  3735. * src/CookieBoxFactory.cc
  3736. * src/CookieBoxFactory.h
  3737. * src/Makefile.am
  3738. * src/Makefile.in
  3739. * src/Sqlite3MozCookieParser.cc
  3740. * src/Sqlite3MozCookieParser.h
  3741. * src/main.cc
  3742. * test/CookieBoxFactoryTest.cc
  3743. * test/Makefile.am
  3744. * test/Makefile.in
  3745. * test/Sqlite3MozCookieParserTest.cc
  3746. * test/badcookies.sqlite
  3747. * test/cookies.sqlite
  3748. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Added Danish and Greek translations.
  3750. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3751. Great thanks to all translators.
  3752. * po/LINGUAS
  3753. * po/el.po
  3754. * po/da.po
  3755. * po/es.po
  3756. * po/ca.po
  3757. * po/nn.po
  3758. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3759. Fixed man page: --follow-bittorrent should be --follow-torrent
  3760. * doc/aria2c.1.txt
  3761. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3762. Fixed: numCommand is less than the value specified in -C option.
  3763. * src/RequestGroup.cc
  3764. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3765. Fixed occasional assertion failure in PieceSegment.
  3766. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3767. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3768. creation of duplicate segments and one of the segment was finished then
  3769. assertion failure was caused.
  3770. * src/SegmentMan.cc
  3771. * test/SegmentManTest.cc
  3772. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Added options to load/save the server's performance/status to a file
  3774. and the timeout to drop their data.
  3775. --server-stat-of=FILE specifies the file to which performance data
  3776. is saved.
  3777. --server-stat-if=FILE specifies the file to read previously saved
  3778. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3779. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3780. TIMEOUT is specified in seconds and the default value is 24hours.
  3781. * src/MultiUrlRequestInfo.cc
  3782. * src/OptionHandlerFactory.cc
  3783. * src/RequestGroupMan.cc
  3784. * src/RequestGroupMan.h
  3785. * src/ServerStatMan.cc
  3786. * src/ServerStatMan.h
  3787. * src/option_processing.cc
  3788. * src/prefs.cc
  3789. * src/prefs.h
  3790. * test/ServerStatManTest.cc
  3791. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3793. * src/ServerStatMan.cc
  3794. * src/ServerStatMan.h
  3795. * test/ServerStatManTest.cc
  3796. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3797. Implemented ServerStatMan::load(...) function and its test case.
  3798. * src/ServerStat.cc
  3799. * src/ServerStat.h
  3800. * src/ServerStatMan.cc
  3801. * test/ServerStatManTest.cc
  3802. * test/ServerStatTest.cc
  3803. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3804. Use time_t instead of int32_t. Use int64_t where milli second is
  3805. expected.
  3806. * src/TimeA2.cc
  3807. * src/TimeA2.h
  3808. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Implemented ServerStatMan::save(...) function and its test case.
  3810. * src/ServerStat.cc
  3811. * src/ServerStat.h
  3812. * src/ServerStatMan.cc
  3813. * src/ServerStatMan.h
  3814. * test/ServerStatManTest.cc
  3815. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Now aria2 uses name attribute in Metalink as local filename in
  3817. BitTorrent downloads. BUG#2033999
  3818. * src/BtContext.h
  3819. * src/BtDependency.cc
  3820. * src/DefaultBtContext.cc
  3821. * src/DefaultBtContext.h
  3822. * src/SingleFileDownloadContext.cc
  3823. * src/SingleFileDownloadContext.h
  3824. * test/BtDependencyTest.cc
  3825. * test/DefaultBtContextTest.cc
  3826. * test/MockBtContext.h
  3827. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Added AC_C_BIGENDIAN
  3829. * src/configure.ac
  3830. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Limited numCommand less than or equal to the number of piece.
  3832. * src/RequestGroup.cc
  3833. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3835. directive.
  3836. * test/DefaultPieceStorageTest.cc
  3837. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3838. Fixed memory leak in test code
  3839. * test/AnnounceListTest.cc
  3840. * test/DefaultPeerListProcessorTest.cc
  3841. * test/DefaultPeerStorageTest.cc
  3842. * test/MetaFileUtilTest.cc
  3843. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3845. * src/DefaultPieceStorage.cc
  3846. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3847. Initialized _directIOAllowed
  3848. * src/MultiDiskAdaptor.cc
  3849. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Fixed memory leak
  3851. * src/GZipDecoder.cc
  3852. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3853. Fixed memory leak
  3854. * src/MetalinkParserStateMachine.cc
  3855. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Fixed memory leak
  3857. * src/Dictionary.cc
  3858. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Fixed memory leak
  3860. * src/IteratableChunkChecksumValidator.h
  3861. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Fixed unmatched malloc/free.
  3863. * src/IteratableChunkChecksumValidator.cc
  3864. * src/IteratableChecksumValidator.cc
  3865. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Removed max chunk size check. This change fixes BUG#2040169
  3867. * src/ChunkedDecoder.cc
  3868. * src/ChunkedDecoder.h
  3869. * test/ChunkedDecoderTest.cc
  3870. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Implemented download speed based URI selection algorithm.
  3872. Introduced new option --uri-selector.
  3873. If --uri-selector=feedback is given, aria2 uses download speed observed
  3874. in the previous downloads and chooses fastest server in the URI list.
  3875. Currently at most 10 URIs are considered to introduce randomeness for
  3876. finding better servers. The speed is average download speed in the
  3877. downloads.
  3878. On the other hand, if --uri-selector=inorder is given, which is default,
  3879. URI is tried in order in URI list.
  3880. The usage text for the new option has not been written yet.
  3881. * src/AbstractCommand.cc
  3882. * src/DownloadCommand.cc
  3883. * src/DownloadEngine.cc
  3884. * src/DownloadEngineFactory.cc
  3885. * src/InOrderURISelector.cc
  3886. * src/InOrderURISelector.h
  3887. * src/OptionHandlerFactory.cc
  3888. * src/PeerStat.h
  3889. * src/RequestGroup.cc
  3890. * src/RequestGroup.h
  3891. * src/RequestGroupMan.cc
  3892. * src/RequestGroupMan.h
  3893. * src/SegmentMan.cc
  3894. * src/SegmentMan.h
  3895. * src/ServerStat.cc
  3896. * src/ServerStat.h
  3897. * src/ServerStatMan.cc
  3898. * src/ServerStatMan.h
  3899. * src/ServerStatURISelector.cc
  3900. * src/ServerStatURISelector.h
  3901. * src/URISelector.h
  3902. * src/option_processing.cc
  3903. * src/prefs.cc
  3904. * src/prefs.h
  3905. * test/InOrderURISelectorTest.cc
  3906. * test/RequestGroupManTest.cc
  3907. * test/ServerStatManTest.cc
  3908. * test/ServerStatURISelectorTest.cc
  3909. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3910. * Release 0.15.1+2
  3911. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3912. Bump up version number to 0.15.1+2
  3913. * configure.ac
  3914. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3915. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3916. * m4/aria2_arg.m4
  3917. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. * Release 0.15.1+1
  3919. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Bump up version number to 0.15.1+1
  3921. * configure.ac
  3922. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3923. Fixed the bug that causes segmentaion fault when resuming download
  3924. using metalink without size tag. Reproducible only using HTTP URI.
  3925. * src/HttpResponseCommand.cc
  3926. * src/FtpNegotiationCommand.cc
  3927. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3928. * Release 0.15.1
  3929. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Updated Bulgarian and French translations, thanks to all translators.
  3931. * po/bg.po
  3932. * po/fr.po
  3933. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. Bump up version number to 0.15.1
  3935. * configure.ac
  3936. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. Avoid repeated call of gettimeofday() when calculating speed.
  3938. * src/SpeedCalc.cc
  3939. * src/SpeedCalc.h
  3940. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Removed writable check when socket's send buffer is full in BitTorrent
  3942. downloads to lower CPU usage.
  3943. * src/PeerInteractionCommand.cc
  3944. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3945. Fixed broken gzip inflation.
  3946. Turn off segmented downloading if gzip content is smaller than or equal
  3947. to 1MiB and inflate the data on the fly, because HTTP response header
  3948. doesn't contain the length of inflated file we can't determin where
  3949. the chunk of data should be written.
  3950. On the other hand, if gzip content is larger than 1MB, then turn off
  3951. on the fly inflation, because some servers returns "content-type: gzip"
  3952. for *.tgz, *.gz files.
  3953. * src/DownloadCommand.cc
  3954. * src/HttpResponseCommand.cc
  3955. * src/HttpResponseCommand.h
  3956. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Applied tizianomueller's patch to fix compile error.
  3958. * test/BitfieldManTest.cc
  3959. * test/BtRequestMessageTest.cc
  3960. * test/DefaultBtContextTest.cc
  3961. * test/DefaultDiskWriterTest.cc
  3962. * test/DefaultPieceStorageTest.cc
  3963. * test/HttpHeaderProcessorTest.cc
  3964. * test/HttpResponseTest.cc
  3965. * test/Metalink2RequestGroupTest.cc
  3966. * test/MetalinkParserControllerTest.cc
  3967. * test/MetalinkProcessorTest.cc
  3968. * test/PeerSessionResourceTest.cc
  3969. * test/UtilTest.cc
  3970. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. * Release 0.15.0
  3972. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Reordered src files in POTFILES.in so that usage text appears first.
  3974. * po/POTFILES.in
  3975. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. Bump up version number to 0.15.0
  3977. * configure.ac
  3978. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Added Bulgarian translation.
  3980. Updated Catalan, Spanish, French and Japanese translations.
  3981. Thanks to all translators.
  3982. * po/LINGUAS
  3983. * po/bg.po
  3984. * po/ca.po
  3985. * po/es.po
  3986. * po/fr.po
  3987. * po/ja.po
  3988. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Updated feature list. Added libz for dependency section.
  3990. Added a description about unit testing using CppUnit.
  3991. * README
  3992. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Added a test for libz. Quoted where it is necessary.
  3994. * build_test.sh
  3995. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Added GZip to `Enabled Features' list.
  3997. * src/FeatureConfig.cc
  3998. * src/FeatureConfig.h
  3999. * test/FeatureConfigTest.cc
  4000. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4001. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4002. the transfer has not yet started.
  4003. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4004. * src/SegmentMan.cc
  4005. * src/SegmentMan.h
  4006. * test/SegmentManTest.cc
  4007. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4008. Cache last calculated average download/upload speed.
  4009. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4010. cached value.
  4011. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4012. * src/PeerStat.h
  4013. * src/SpeedCalc.cc
  4014. * src/SpeedCalc.h
  4015. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Call parseUrl directly.
  4017. * src/Request.cc (resetUrl)
  4018. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4019. Supported absolute/relative path in Location header field.
  4020. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4021. * src/HttpHeader.cc
  4022. * src/HttpHeader.h
  4023. * src/HttpResponse.cc
  4024. * src/HttpSkipResponseCommand.cc
  4025. * src/Request.cc
  4026. * test/HttpHeaderTest.cc
  4027. * test/HttpResponseTest.cc
  4028. * test/RequestTest.cc
  4029. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Changed help text for --load-cookie option.
  4031. * doc/aria2c.1.txt
  4032. * src/usage_text.h
  4033. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4034. Regenerated test/Makefile.in to remove stale ChangeLog.
  4035. * test/Makefile.in
  4036. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4037. Updated po files.
  4038. * po/aria2c.pot
  4039. * po/*.po
  4040. * po/*.gmo
  4041. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4042. Bump up version number to 0.15.0b
  4043. * configure.ac
  4044. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4045. Externalize messages.
  4046. * src/RequestGroupMan.cc
  4047. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4048. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4049. Use File::exists() instead of File::isFile() to allow non-regular file
  4050. such as block special files.
  4051. * src/AbstractDiskWriter.cc
  4052. * src/MultiDiskWriter.cc
  4053. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4055. * src/gai_strerror.h
  4056. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Fixed compile error. Thanks gknauf for the patch.
  4058. * src/asctime_r.c
  4059. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Included asctime_r.h from a2time.h.
  4061. * src/a2time.h
  4062. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. Added a message "aria2 doesn't verify signature" to log message when
  4064. signature file is saved.
  4065. * src/RequestGroupMan.cc
  4066. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Added the ability to save signature when download is completed if
  4068. signature is available. The filename of signature file is the path to
  4069. download file followed by ".sig". If it already exists, then signature
  4070. will not be saved.
  4071. * src/RequestGroupMan.cc
  4072. * src/Signature.cc
  4073. * test/SignatureTest.cc
  4074. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4075. Updated the descriptions for --bt-seed-unverified.
  4076. * doc/aria2c.1
  4077. * doc/aria2c.1.html
  4078. * doc/aria2c.1.txt
  4079. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4081. that this is not going to verify files using piece hashes.
  4082. * src/HelpItemFactory.cc
  4083. * src/OptionHandlerFactory.cc
  4084. * src/RequestGroup.cc
  4085. * src/option_processing.cc
  4086. * src/prefs.cc
  4087. * src/prefs.h
  4088. * src/usage_text.h
  4089. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4090. Added the ability to retrieve signature from Metalink file.
  4091. A retrieved signature is stored in Signature class and it is held by
  4092. DownloadContext class. Note that aria2 doesn't verify signature.
  4093. * src/DownloadContext.cc
  4094. * src/DownloadContext.h
  4095. * src/Makefile.am
  4096. * src/Makefile.in
  4097. * src/Metalink2RequestGroup.cc
  4098. * src/MetalinkEntry.cc
  4099. * src/MetalinkEntry.h
  4100. * src/MetalinkParserController.cc
  4101. * src/MetalinkParserController.h
  4102. * src/MetalinkParserStateMachine.cc
  4103. * src/MetalinkParserStateMachine.h
  4104. * src/Signature.cc
  4105. * src/Signature.h
  4106. * src/SignatureMetalinkParserState.cc
  4107. * src/SignatureMetalinkParserState.h
  4108. * src/VerificationMetalinkParserState.cc
  4109. * src/VerificationMetalinkParserState.h
  4110. * test/Metalink2RequestGroupTest.cc
  4111. * test/MetalinkParserControllerTest.cc
  4112. * test/MetalinkProcessorTest.cc
  4113. * test/test.xml
  4114. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Close DiskAdaptor after renaming file.
  4116. * src/RequestGroup.cc
  4117. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Corrected indentation
  4119. * src/DefaultBtProgressInfoFile.cc
  4120. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Moved the calls of std::ios::exceptions() inside of try-catch block
  4122. because if an error occurred in constructor of std::fstream, then
  4123. exception is thrown immediately when std::ios::exceptions() is called
  4124. which results unhandled exception and aria2c aborts.
  4125. * src/DefaultBtProgressInfoFile.cc
  4126. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4127. Added the test for the previous change in DefaultBtContext.cc
  4128. * test/DefaultBtContextTest.cc
  4129. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Fixed the bug that causes infinite loop when the number of pieces are
  4131. fewer than allowed fast set size which is 10 by default.
  4132. * src/DefaultBtContext.cc
  4133. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4134. Updated the descriptions for -j, -s. Added --bt-seed.
  4135. * doc/aria2c.1
  4136. * doc/aria2c.1.html
  4137. * doc/aria2c.1.txt
  4138. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4139. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4140. aria2 seeds previously downloaded files without validating piece hashs.
  4141. * src/HelpItemFactory.cc
  4142. * src/OptionHandlerFactory.cc
  4143. * src/RequestGroup.cc
  4144. * src/option_processing.cc
  4145. * src/prefs.cc
  4146. * src/prefs.h
  4147. * src/usage_text.h
  4148. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Updated DESCRIPTION of man page.
  4150. * doc/aria2c.1
  4151. * doc/aria2c.1.html
  4152. * doc/aria2c.1.txt
  4153. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4154. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4155. Don't define `struct addrinfo' when __sun is defined.
  4156. * src/getaddrinfo.h
  4157. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4158. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4159. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4160. second argument is of type `struct _stati64'. Otherwise it is defined as
  4161. `struct stat'.
  4162. * src/AbstractDiskWriter.cc
  4163. * src/File.cc
  4164. * src/File.h
  4165. * src/a2io.h
  4166. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Fixed the compile error in hurd-i386
  4168. See the original bug report:
  4169. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4170. * src/a2io.h
  4171. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Code cleanup.
  4173. * src/PeerAbstractCommand.cc
  4174. * src/PeerAbstractCommand.h
  4175. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4176. Removed TransferEncoding.
  4177. * src/DownloadCommand.cc
  4178. * src/DownloadCommand.h
  4179. * src/HttpResponseCommand.cc
  4180. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Updated po files.
  4182. * po/aria2c.pot
  4183. * po/*.po
  4184. * po/*.gmo
  4185. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4187. * src/A2STR.cc
  4188. * src/A2STR.h
  4189. * src/ChunkedDecoder.cc
  4190. * src/ChunkedDecoder.h
  4191. * src/ChunkedEncoding.cc: Removed
  4192. * src/ChunkedEncoding.h: Removed
  4193. * src/DownloadCommand.cc
  4194. * src/DownloadCommand.h
  4195. * src/HttpDownloadCommand.cc
  4196. * src/HttpResponse.cc
  4197. * src/HttpResponse.h
  4198. * src/HttpResponseCommand.cc
  4199. * src/HttpSkipResponseCommand.cc
  4200. * src/HttpSkipResponseCommand.h
  4201. * src/Makefile.am
  4202. * src/TransferEncoding.h: Removed
  4203. * test/ChunkedDecoderTest.cc
  4204. * test/ChunkedEncodingTest.cc: Removed
  4205. * test/HttpResponseTest.cc
  4206. * test/Makefile.am
  4207. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4208. Use append instead of insert.
  4209. * src/GZipDecoder.cc
  4210. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4211. Updated doc
  4212. * src/Decoder.h
  4213. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Updated usage text for -s option.
  4215. * src/usage_text.h
  4216. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4217. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4218. * src/Request.cc
  4219. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4220. Cleaned up configure.ac.
  4221. * configure.ac
  4222. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4224. AC_ARG_ENABLE.
  4225. * configure.ac
  4226. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4228. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4229. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4230. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4231. fly and writes decoded data to a local disk.
  4232. * README
  4233. * README.html
  4234. * configure.ac
  4235. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4236. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4237. * m4/libz.m4
  4238. * src/Decoder.h
  4239. * src/DownloadCommand.cc
  4240. * src/DownloadCommand.h
  4241. * src/Exception.h
  4242. * src/GZipDecoder.cc
  4243. * src/GZipDecoder.h
  4244. * src/HttpHeader.cc
  4245. * src/HttpHeader.h
  4246. * src/HttpRequest.cc
  4247. * src/HttpRequest.h
  4248. * src/HttpResponse.cc
  4249. * src/HttpResponse.h
  4250. * src/HttpResponseCommand.cc
  4251. * src/Makefile.am
  4252. * test/GZipDecoderTest.cc
  4253. * test/HttpRequestTest.cc
  4254. * test/HttpResponseTest.cc
  4255. * test/Makefile.am
  4256. * test/Makefile.in
  4257. * test/gzip_decode_test.gz
  4258. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4259. Clarified usage of -j option.
  4260. * src/usage_text.h
  4261. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Disabled getting size from the response of RETR.
  4263. If SIZE command failed, then disable resuming and segmented downloading.
  4264. * src/FtpConnection.cc
  4265. * src/FtpConnection.h
  4266. * src/FtpNegotiationCommand.cc
  4267. * src/FtpNegotiationCommand.h
  4268. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4269. Use digits to find first byte of file size, which makes the intention
  4270. of the code clearer.
  4271. * src/FtpConnection.cc
  4272. Don't call validateTotalLength() when size is 0.
  4273. * src/FtpNegotiationCommand.cc
  4274. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4275. Updated po files.
  4276. * po/aria2c.pot
  4277. * po/*.gmo
  4278. * po/*.po
  4279. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4280. Clarified usage text for --split option.
  4281. * src/usage_text.h
  4282. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4283. Bump up version number to 0.15.0dev. "dev" means "development"
  4284. version, which means I started the development of the next release!
  4285. * src/configure.ac
  4286. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. If FTP server returns negative response with REST raw command and
  4288. requested range is not 0, throw exception. If requested range is 0,
  4289. continue download a file from 0 byte.
  4290. * src/FtpNegotiationCommand.cc
  4291. * src/FtpNegotiationCommand.h
  4292. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Supported FTP server which don't recognize SIZE raw command.
  4294. If SIZE raw command is failed, aria2 will try to get file size
  4295. from the response of RETR raw command. If both attempts are failed,
  4296. then resuming and segmented downloading are disabled.
  4297. * src/FtpConnection.cc
  4298. * src/FtpConnection.h
  4299. * src/FtpNegotiationCommand.cc
  4300. * src/FtpNegotiationCommand.h
  4301. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. * Release 0.14.0+1
  4303. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Bump up version number to 0.14.0+1
  4305. * src/configure.ac
  4306. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Fixed the code that refers static member variable from non-static
  4308. context.
  4309. * src/DefaultPeerStorage.cc
  4310. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. * Release 0.14.0
  4312. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Added build test script
  4314. * build_test.sh
  4315. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Updated ja.po
  4317. * src/ja.po
  4318. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4319. Bump up version number to 0.14.0
  4320. * src/configure.ac
  4321. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Updated ja.po and fr.po. Great thanks for french translators and
  4323. Sebastien WILLEMIJNS.
  4324. * po/fr.po
  4325. * po/ja.po
  4326. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Added configure option to enable/disable epoll support.
  4328. * configure.ac
  4329. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Updated man page.
  4331. * doc/aria2c.1.txt
  4332. * doc/aria2c.1
  4333. * doc/aria2c.1.html
  4334. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Added missing default value '5' to the usage of --split option.
  4336. * src/HelpItemFactory.cc
  4337. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Filled up pieces based on the number of missing blocks, rather than
  4339. simplay the number of piece * block length.
  4340. * src/BtRequestFactory.h
  4341. * src/DefaultBtInteractive.cc
  4342. * src/DefaultBtInteractive.h
  4343. * src/DefaultBtRequestFactory.cc
  4344. * src/DefaultBtRequestFactory.h
  4345. * src/Piece.cc
  4346. * src/Piece.h
  4347. * test/BitfieldManTest.cc
  4348. * test/DefaultBtRequestFactoryTest.cc
  4349. * test/MockBtRequestFactory.h
  4350. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4351. Made _epEvents a member variable.
  4352. * src/DownloadEngine.cc
  4353. * src/DownloadEngine.h
  4354. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4355. Cancel download if http redirect is bounded more than 20 times.
  4356. * src/AbstractCommand.cc
  4357. * src/HttpSkipResponseCommand.cc
  4358. * src/Request.cc
  4359. * src/Request.h
  4360. * test/RequestTest.cc
  4361. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Fixed unhandled exception(removed keyword `new').
  4363. * src/SocketCore.cc (initEPOLL)
  4364. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4365. Removed visit(const MetaEntry*)
  4366. * src/MetaEntryVisitor.h:
  4367. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4368. and made them virtual.
  4369. * src/BencodeVisitor.h
  4370. * src/BencodeVisitor.cc
  4371. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4372. Updated po files.
  4373. * po/aria2c.pot
  4374. * po/*.po
  4375. * po/*.gmo
  4376. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4377. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4378. the number of socket to watch out.
  4379. * src/PeerInteractionCommand.cc
  4380. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4381. When there is not enough space in disk when writing a chunk of data,
  4382. aria2 now prints the message to the console to warn user and aborts
  4383. its download. Not all downloads are canceled because some downloads
  4384. may use another disk or partition. BUG#1640332
  4385. * src/AbstractDiskWriter.cc
  4386. * src/PeerAbstractCommand.cc
  4387. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4388. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4389. setHaltRequested(true) to cancel download.
  4390. * src/PeerInteractionCommand.h
  4391. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4393. socket from int to sock_t as sockets are unsigned in Windows.
  4394. For AsyncNameResolver, DownloadEngine, I did additional modification
  4395. for the portion of the code changed according to epoll support.
  4396. I defined sock_t in a2netcompat.h to use sock_t without including
  4397. SocketCore.h.
  4398. * src/AsyncNameResolver.cc
  4399. * src/AsyncNameResolver.h
  4400. * src/DownloadEngine.cc
  4401. * src/DownloadEngine.h
  4402. * src/SocketCore.cc
  4403. * src/SocketCore.h
  4404. * src/a2netcompat.h
  4405. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4406. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4407. changes in the patch were applied.
  4408. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4409. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4410. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4411. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4413. a2io.h and common.h were modified.
  4414. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4415. MinGW.
  4416. * src/common.h: Changed off_t to 64 bit in MinGW.
  4417. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4419. only a2netcompat.h is modified.
  4420. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4421. directives.
  4422. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4424. only gai_strerror.h is modified.
  4425. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4426. winsock errors in MinGW.
  4427. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4429. follow sources are applied.
  4430. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4431. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4432. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4433. I included locale.h from Platform.cc.
  4434. * src/main.cc: Moved common setup/teardown code to Platform class.
  4435. * test/AllTest.cc: Use Platform class.
  4436. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4437. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4439. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4440. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4441. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4443. aria2-0.13.2+1-mingw-2.patch.
  4444. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4445. systems which don't have termious.h. I moved the directive inside of
  4446. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4447. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4448. anyway.
  4449. * src/asctime_r.h
  4450. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4451. I added 2nd argument to the prototype declaration.
  4452. * src/StringFormat.cc: Get rid of vasprintf.
  4453. * src/getaddrinfo.h: Fixed constants.
  4454. * configure.ac: Added the check for asctime_r function.
  4455. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4456. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Added writable test for Socket when the sending message is in progress.
  4458. Usually the sending message is piece message. Without wriable check,
  4459. upload latency is dropped to more than 1sec.
  4460. * src/PeerInteractionCommand.cc
  4461. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Create only requested files and files which shares a piece with
  4463. requested file in multi-torrent downloads. Directory structures are
  4464. also created in the same rule.
  4465. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4466. DiskWriterEntry as in the previous implementation.
  4467. * src/MultiDiskWriter.cc
  4468. * src/MultiFileAllocationIterator.cc
  4469. * src/MultiFileAllocationIterator.h
  4470. * test/MultiFileAllocationIteratorTest.cc
  4471. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Commented out -lprofiler
  4473. * src/Makefile.am
  4474. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Bump up version number to 0.14.0b.
  4476. * src/configure.ac
  4477. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Actively establish connection to peers in seeding, when peer cache
  4479. is not full and max upload speed limit is not reached.
  4480. * src/ActivePeerConnectionCommand.cc
  4481. * src/ActivePeerConnectionCommand.h
  4482. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4484. to make room more fleshy, recently found peers.
  4485. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4486. it.
  4487. * src/DefaultPeerStorage.cc
  4488. * test/DefaultPeerStorageTest.cc
  4489. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Returns cached data only when the previous receiveHandshake() is called
  4491. with peek = true.
  4492. * src/PeerConnection.cc (receiveHandshake)
  4493. * src/PeerConnection.h (receiveHandshake)
  4494. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4495. Changed default value of -s option from 1 to 5.
  4496. Also max value of -s option is changed from 5 to 16.
  4497. * src/HelpItemFactory.cc
  4498. * src/OptionHandlerFactory.cc
  4499. * src/option_processing.cc
  4500. * src/usage_text.h
  4501. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Changed -s options behavior. Now it means the number of connections
  4503. made simultaneously in each http/ftp download.
  4504. If 1 URL is specified, the behavior is the same with old implementation.
  4505. If -s N is given and more than N URLs are specified, first N URLs are
  4506. used and remaining URLs are used for backup. If less than N URLs are
  4507. specified, some of URLs are used more than once so that totally N
  4508. connections are made simultaneously.
  4509. * src/main.cc
  4510. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Included missing iosfwd or ostream header.
  4512. * src/RequestGroupMan.cc
  4513. * src/TaggedItem.cc
  4514. * src/TaggedItem.h
  4515. * src/Util.cc
  4516. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4518. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4519. * src/HttpConnection.cc: Included missing sstream.
  4520. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4521. Added --bt-max-open-files option.
  4522. * src/DefaultPieceStorage.cc
  4523. * src/HelpItemFactory.cc
  4524. * src/MultiDiskAdaptor.cc
  4525. * src/MultiDiskAdaptor.h
  4526. * src/OptionHandlerFactory.cc
  4527. * src/option_processing.cc
  4528. * src/prefs.cc
  4529. * src/prefs.h
  4530. * src/usage_text.h
  4531. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4532. Fixed the bug that aria2 aborts when a path to a directory is given
  4533. in command-line.
  4534. * src/ProtocolDetector.cc
  4535. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Limited the number files opened in each BitTorrent download. The default
  4537. value is 100. The option to change this value will be added.
  4538. * src/MultiDiskAdaptor.cc
  4539. * src/MultiDiskAdaptor.h
  4540. * src/MultiFileAllocationIterator.cc
  4541. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Fixed the bug that HTTP downloads don't start with old libraries.
  4543. * src/HttpHeaderProcessor.cc
  4544. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Use empty() instead of size() > 0.
  4546. * src/HttpConnection.cc
  4547. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Drop connection if the incoming peer ID is the same with localhost's
  4549. one. The previous implementation drops connection when incoming peer's
  4550. IP address is the same with localhost's one.
  4551. * src/PeerListenCommand.cc
  4552. * src/DefaultBtInteractive.cc
  4553. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Returns cached data without checking whether socket is readable
  4555. if the cache is available.
  4556. * src/PeerConnection.cc (receiveHandshake)
  4557. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Included stdint.h
  4559. * src/common.h
  4560. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Removed duplicate HAVE_GETTIMEOFDAY
  4562. * src/Makefile.am
  4563. * src/Makefile.in
  4564. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Use interval as a minInterval when minInterval is not supplied.
  4566. * src/DefaultBtAnnounce.cc
  4567. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4568. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4569. attempt is failed, then 2nd attempt get kicked out more quickly.
  4570. And it is now static const member of DefaultBtAnnounce.
  4571. * src/DefaultBtAnnounce.h
  4572. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4574. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4575. * src/ActivePeerConnectionCommand.cc
  4576. * src/BtConstants.h
  4577. * src/BtRuntime.h
  4578. * src/DHTGetPeersCommand.cc
  4579. * src/DefaultBtAnnounce.cc
  4580. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4581. BtRuntime::MAX_PEERS.
  4582. * src/DefaultPeerStorage.h
  4583. * src/InitiatorMSEHandshakeCommand.cc
  4584. * src/PeerInitiateConnectionCommand.cc
  4585. * src/PeerInteractionCommand.cc
  4586. * src/PeerReceiveHandshakeCommand.cc
  4587. * src/TrackerWatcherCommand.cc
  4588. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Always Connect to _numNewConnection
  4590. * src/ActivePeerConnectionCommand.cc
  4591. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Made `begin' unsigned int.
  4593. * src/GrowSegment.h
  4594. * src/Piece.cc
  4595. * src/Piece.h
  4596. * src/PiecedSegment.cc
  4597. * src/PiecedSegment.h
  4598. * src/Segment.h
  4599. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Calculate piece hash when data is arrived if the data is arrived in
  4601. order. This removes additional read operation for hash calculation.
  4602. If the data is arrived in out of order, the hash is calucated when the
  4603. piece is completed. This is the same behavior as the old implementation.
  4604. * src/BtPieceMessage.cc
  4605. * src/DefaultBtProgressInfoFile.cc
  4606. * src/DefaultPieceStorage.cc
  4607. * src/DownloadCommand.cc
  4608. * src/DownloadCommand.h
  4609. * src/DownloadEngine.cc
  4610. * src/GrowSegment.cc
  4611. * src/GrowSegment.h
  4612. * src/Piece.cc
  4613. * src/Piece.h
  4614. * src/PiecedSegment.cc
  4615. * src/PiecedSegment.h
  4616. * src/Segment.h
  4617. * test/PieceTest.cc
  4618. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Try to keep the ordering of outgoing piece message.
  4620. * src/DefaultBtMessageDispatcher.cc
  4621. (DefaultBtMessageDispatcher::sendMessages)
  4622. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Fixed busy loop when error/hup epoll events occur.
  4624. * src/AbstractCommand.cc
  4625. * src/PeerAbstractCommand.cc
  4626. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Added --bt-request-peer-speed-limit option, which was a constant
  4628. SLOW_SPEED_THRESHOLD.
  4629. * src/ActivePeerConnectionCommand.cc
  4630. * src/ActivePeerConnectionCommand.h
  4631. * src/BtConstants.h
  4632. * src/HelpItemFactory.cc
  4633. * src/OptionHandlerFactory.cc
  4634. * src/PeerReceiveHandshakeCommand.cc
  4635. * src/option_processing.cc
  4636. * src/prefs.cc
  4637. * src/prefs.h
  4638. * src/usage_text.h
  4639. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4640. Removed repeated call of getTopDirPath(). Instead, call it once and
  4641. cache the result.
  4642. * src/MultiDiskAdaptor.cc
  4643. * src/MultiDiskAdaptor.h
  4644. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4645. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Fixed compile error on debian etch.
  4647. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4648. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4649. it is undefined.
  4650. * src/Util.cc (ULLONG_MAX)
  4651. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Added epoll support. Use epoll if it is available. If not, use select.
  4653. When async dns is enabled in compile time, epoll support is enabled
  4654. only when aria2 is built with c-ares. This condition statement is
  4655. defined in a2io.h.
  4656. Currently aria2 supports both c-ares and ares, but ares is maintained
  4657. for quite a while and debian already has c-ares package, ares support
  4658. will be dropped in the future version.
  4659. * configure.ac
  4660. * src/AbstractCommand.cc
  4661. * src/AsyncNameResolver.cc
  4662. * src/AsyncNameResolver.h
  4663. * src/Command.cc
  4664. * src/Command.h
  4665. * src/DownloadEngine.cc
  4666. * src/DownloadEngine.h
  4667. * src/PeerAbstractCommand.cc
  4668. * src/SocketCore.cc
  4669. * src/SocketCore.h
  4670. * src/a2io.h
  4671. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4673. directive.
  4674. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Do not do write operation to /dev/null file.
  4676. * src/LogFactory.cc
  4677. * src/SimpleLogger.cc
  4678. Replaced vasprintf with vsnprintf
  4679. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4680. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4681. * src/BtRequestMessage.cc
  4682. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4683. for segmentation fault caused by previous commit.
  4684. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Reduced the usage of gettimeofday().
  4686. * src/DefaultBtMessageDispatcher.cc
  4687. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4688. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4689. * src/RequestSlot.cc
  4690. * src/RequestSlot.h
  4691. (RequestSlot::isTimeout)
  4692. Made RequestSlot have a reference to Piece object to avoid find
  4693. Piece repeatedly.
  4694. * src/DefaultBtMessageDispatcher.cc
  4695. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4696. * src/RequestSlot.cc
  4697. * src/RequestSlot.h
  4698. (RequestSlot::getPiece)
  4699. * test/DefaultBtMessageDispatcherTest.cc
  4700. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4701. * src/TimeA2.cc
  4702. * src/TimeA2.h
  4703. (Time::difference): New function.
  4704. (Time::elapsed): Done optimization.
  4705. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4707. directive.
  4708. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. * src/option_processing.cc: Added missing `defined' keyword to #if
  4710. directive.
  4711. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4712. Bump up version number to 0.13.2+1
  4713. * src/configure.ac
  4714. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Refactored broken outstanding piece handling.
  4716. * src/DefaultPieceStorage.cc
  4717. * src/DefaultPieceStorage.h
  4718. * src/Piece.cc
  4719. * src/Piece.h
  4720. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4722. name collision of static variable and predefined macro.
  4723. * src/BtContext.cc
  4724. * src/BtContext.h
  4725. * src/CookieBoxFactory.cc
  4726. * src/CookieBoxFactory.h
  4727. * src/CookieParser.cc
  4728. * src/CookieParser.h
  4729. * src/DefaultBtContext.cc
  4730. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. * src/RequestGroup.cc
  4732. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4733. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. * Release 0.13.2
  4735. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4737. * po/fr.po
  4738. * po/ja.po
  4739. * po/aria2c.pot
  4740. * po/*.po
  4741. * po/*.gmo
  4742. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Bump up version number to 0.13.2
  4744. * src/configure.ac
  4745. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Refactord.
  4747. * src/RequestGroupMan.cc
  4748. (removeStoppedGroup)
  4749. (fillRequestGroupFromReserver)
  4750. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Fixed compile error on Ubuntu.
  4752. * src/BtPieceMessage.cc
  4753. * src/MessageDigestHelper.cc
  4754. * src/Util.cc
  4755. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4756. Fixed compile error when configured with --disable-bittorrent
  4757. * test/DownloadHandlerFactoryTest.cc
  4758. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4759. Done make update-po
  4760. * po/aria2c.pot
  4761. * po/*.po
  4762. * po/*.gmo
  4763. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Bump up version number to 0.13.2rc.
  4765. * src/configure.ac
  4766. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Made option name bold. Updated SYNOPSIS to make it more readable.
  4768. * doc/aria2c.1.txt
  4769. * doc/aria2c.1
  4770. * doc/aria2c.1.html
  4771. * src/version_usage.cc
  4772. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Refactored. Use std::string instead of size and char*.
  4774. * Data.cc
  4775. * Data.h
  4776. * test/Data.cc
  4777. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Added trimSelf(). Rewritten trim() to use trimSelf().
  4779. * Util.cc
  4780. * Util.h
  4781. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4783. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Fixed compile error when configured with --disable-metalink.
  4785. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4786. * test/FeatureConfigTest.cc
  4787. * test/DownloadHandlerFactoryTest.cc
  4788. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Fixed compile error when configured with --without-gnutls
  4790. --without-openssl
  4791. * src/main.cc
  4792. * test/DefaultBtProgressInfoFileTest.cc
  4793. * test/SegmentManTest.cc
  4794. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Fixed compile error with OpenSSL.
  4796. * src/IteratableChunkChecksumValidator.cc
  4797. * src/LibsslDHKeyExchange.h
  4798. * src/MessageDigestHelper.cc
  4799. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4800. Revert the default value of --max-concurrent-downloads to 5.
  4801. Revert the default value of --metalink-servers to 5.
  4802. Man pages was also updated.
  4803. * src/option_processing.cc
  4804. * doc/aria2c.1.txt
  4805. * doc/aria2c.1.html
  4806. * doc/aria2c.1
  4807. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. Returns const reference:
  4809. DownloadContext::getPieceHash, DownloadContext::getName,
  4810. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4811. BtContext::getInfoHashAsString,
  4812. * src/BtContext.h
  4813. * src/DefaultBtContext.cc
  4814. * src/DefaultBtContext.h
  4815. * src/DownloadContext.h
  4816. * src/SingleFileDownloadContext.h
  4817. * test/MockBtContext.h
  4818. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. * src/RequestGroup.h (getDir): Removed.
  4820. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4821. Returns const reference. The internal urlencode function was optimized
  4822. a little bit.
  4823. * src/Request.cc
  4824. * src/Request.h
  4825. * src/HttpRequest.cc
  4826. * src/HttpRequest.h
  4827. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Defined option name and possible values as std::string to reduce
  4829. temporary string object creation in runtime.
  4830. * src/HelpItemFactory.cc
  4831. * src/LogFactory.cc
  4832. * src/Option.cc
  4833. * src/OptionHandlerFactory.cc
  4834. * src/option_processing.cc
  4835. * src/prefs.cc
  4836. * src/prefs.h
  4837. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Return const reference.
  4839. * src/DownloadHandlerConstants.cc
  4840. * src/DownloadHandlerConstants.h
  4841. (getMetalinkExtensions)
  4842. (getMetalinkContentTypes)
  4843. (getBtExtensions)
  4844. (getBtContentTypes)
  4845. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. * src/HttpHeader.cc (get): Rewritten.
  4847. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Make HttpHeader::getFirst(...) return const reference.
  4849. * src/HttpHeader.cc
  4850. * src/HttpHeader.h
  4851. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4852. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4853. it with V_TRUE.
  4854. * src/DefaultPieceStorage.cc
  4855. * src/DownloadCommand.cc
  4856. * src/FtpNegotiationCommand.cc
  4857. * src/HttpRequest.cc
  4858. * src/InitiateConnectionCommand.cc
  4859. * src/RequestGroup.cc
  4860. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Made Option::get(...) return const reference of std::string.
  4862. * src/Option.cc
  4863. * src/Option.h
  4864. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Replaced std:copy with insert.
  4866. * src/DefaultBtMessageDispatcher.cc
  4867. * src/DefaultPieceStorage.cc
  4868. * src/DownloadEngineFactory.cc
  4869. * src/RequestGroup.cc
  4870. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Included SocketCore.h to fix compiler warning.
  4872. * src/InitiateConnectionCommand.cc
  4873. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Put piece selection strategy algorithm to RarestPieceSelector class,
  4875. Added a switch to choose whether randomized selection so that unit
  4876. tests emit same results in, possibly, win32.
  4877. * src/DefaultPieceStorage.cc
  4878. * src/DefaultPieceStorage.h
  4879. * src/RarestPieceSelector.cc
  4880. * src/RarestPieceSelector.h
  4881. * test/DefaultPieceStorageTest.cc
  4882. * test/RarestPieceSelectorTest.cc
  4883. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Don't pool connection if HTTP proxy is enabled.
  4885. * src/FtpFinishDownloadCommand.cc
  4886. * src/FtpNegotiationCommand.cc
  4887. * src/HttpSkipResponseCommand.cc
  4888. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4890. * src/AbstractCommand.cc
  4891. * src/AbstractCommand.h
  4892. * src/ActivePeerConnectionCommand.cc
  4893. * src/FtpInitiateConnectionCommand.cc
  4894. * src/HttpInitiateConnectionCommand.cc
  4895. * src/InitiateConnectionCommandFactory.cc
  4896. * src/PeerAbstractCommand.cc
  4897. * src/PeerAbstractCommand.h
  4898. * src/PeerInitiateConnectionCommand.cc
  4899. * src/TrackerWatcherCommand.cc
  4900. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4901. Sort RequestSlot in ascending order and manipulate them using
  4902. lower_bound.
  4903. * src/DefaultBtMessageDispatcher.cc
  4904. * src/DefaultBtMessageDispatcher.h
  4905. (getMessageQueue): Added const qualifier.
  4906. (getRequestSlots): Added const qualifier.
  4907. (sendMessages): Use empty() instead of size().
  4908. (doCancelSendingPieceAction): Use HandleEvent object.
  4909. (doAbortOutstandingRequestAction): Rewritten.
  4910. (doChokedAction): Rewritten.
  4911. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4912. (isOutstandingRequest): Rewritten.
  4913. (getOutstandingRequest): Rewritten.
  4914. (removeOutstandingRequest): Rewritten.
  4915. (addOutstandingRequest): Rewritten.
  4916. * src/RequestSlot.cc
  4917. * src/RequestSlot.h
  4918. (operator=): Rewritten.
  4919. (operator!=): New function.
  4920. (operator<): New function.
  4921. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4922. * src/DefaultBtRequestFactory.cc
  4923. (doChokedAction): Rewritten.
  4924. (removeCompletedPiece): Rewritten.
  4925. (removeTargetPiece): Rewritten.
  4926. (createRequestMessages): Added the debug log.
  4927. (createRequestMessagesOnEndGame: Added the debug log.
  4928. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Added the debug log message.
  4930. * src/BtPieceMessage.cc (doReceivedAction)
  4931. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4933. used lower_bound to process them rather than linear search.
  4934. * src/DHTPeerAnnounceStorage.cc
  4935. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4936. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4937. peer has at least one completed piece.
  4938. * src/Peer.cc
  4939. * src/Peer.h
  4940. * src/PeerInteractionCommand.cc
  4941. * src/PeerSessionResource.cc
  4942. * src/PeerSessionResource.h
  4943. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Removed unnecessary sorting
  4945. * src/DefaultPieceStorage (DefaultPieceStorage)
  4946. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Rewritten the portion of the code that mangaes allowed fast indexes.
  4948. * src/PeerSessionResource.cc
  4949. * src/PeerSessionResource.h
  4950. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Removed the invalid string including '\r' from ru.po and
  4952. did make update-po.
  4953. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Added --log-level and --summary-interval to man page.
  4955. * doc/aria2c.1.txt
  4956. * doc/aria2c.1.html
  4957. * doc/aria2c.1
  4958. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Added --log-level option to specify log level. Log messages under
  4960. the specified level are not output. Default value is `debug'.
  4961. * src/HelpItemFactory.cc
  4962. * src/LogFactory.cc
  4963. * src/LogFactory.h
  4964. * src/Logger.h
  4965. * src/OptionHandlerFactory.cc
  4966. * src/SimpleLogger.cc
  4967. * src/SimpleLogger.h
  4968. * src/main.cc
  4969. * src/option_processing.cc
  4970. * src/prefs.h
  4971. * src/usage_text.h
  4972. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Print download progress summary of all parallel downloads in specified
  4974. interval, default 60 secs. While aria2 could download several files
  4975. in parallel (see -j option), it displayed just first download progress,
  4976. and the other downloads are hidden from the users. This new feature
  4977. prints all downloads currently in-progress to the console so that you
  4978. can check the status of all downloads. The interval can be adjusted
  4979. by --summary-interval option.
  4980. The progress readout is now cut so that all fits in the one line of
  4981. console.
  4982. * src/ConsoleStatCalc.cc
  4983. * src/ConsoleStatCalc.h
  4984. * src/HelpItemFactory.cc
  4985. * src/OptionHandlerFactory.cc
  4986. * src/RequestGroupMan.cc
  4987. * src/RequestGroupMan.h
  4988. * src/main.cc
  4989. * src/option_processing.cc
  4990. * src/prefs.h
  4991. * src/usage_text.h
  4992. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4994. * src/DownloadEngine.cc (DownloadEngine)
  4995. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4997. defined.
  4998. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4999. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Use erase+lower_bound+insert instead of sort.
  5001. * src/DefaultPieceStorage.cc (addPieceStats)
  5002. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5004. * src/A2STR.cc
  5005. * src/A2STR.h
  5006. * src/OptionParser.cc (parse)
  5007. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5008. Defined fake filename `[tracker.announce]' as static const std::string.
  5009. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5010. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Defined default filename `index.html' as static const std::string
  5012. * src/SingleFileDownloadContext.cc
  5013. * src/SingleFileDownloadContext.h
  5014. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Defined "[MEMORY]" as static const std::string.
  5016. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5017. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Defined control file's version number as static const std::string.
  5019. * src/DefaultBtProgressInfoFile.cc
  5020. * src/DefaultBtProgressInfoFile.h
  5021. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Use Request::METHOD_GET
  5023. * src/RequestGroup.cc (createNextCommandWithAdj)
  5024. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Defined "OK", "ERR", "INPR" as static const std::string
  5026. * src/RequestGroupMan.cc (showDownloadResults)
  5027. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Defined default client used in extended handshake as static const
  5029. std::string
  5030. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5031. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5032. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5033. * src/HttpConnection.cc (eraseConfidentialInfo)
  5034. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5035. Defined default ftp user and password as static const std::string
  5036. * src/AuthConfigFactory.cc
  5037. * src/AuthConfigFactory.h
  5038. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. Defined strings used in netrc as static const std::string
  5040. * src/Netrc.cc
  5041. * src/Netrc.h
  5042. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5043. Defined HTTP status as static const std::string
  5044. * src/AbstractProxyResponseCommand.cc
  5045. * src/HttpHeader.cc
  5046. * src/HttpHeader.h
  5047. * src/HttpResponse.cc
  5048. * src/HttpResponseCommand.cc
  5049. * src/HttpSkipResponseCommand.cc
  5050. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Defined "\r\n", "A", "I" as static const std::string
  5052. * src/A2STR.cc
  5053. * src/A2STR.h
  5054. * src/FtpConnection.cc
  5055. * src/FtpConnection.h
  5056. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Added COLON_C(".") and used it in Request::parseUrl()
  5058. * src/A2STR.cc
  5059. * src/A2STR.h
  5060. * src/Request.cc (parseUrl)
  5061. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Changed the type of padName from `const std::string&' to `const char*'.
  5063. * src/MSEHandshake.cc (verifyPadLength)
  5064. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5065. Defined "sha1" as static const std::string.
  5066. * src/MetalinkParserController.cc
  5067. * src/MetalinkParserController.h
  5068. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Defined message digest algorithm name as static const std::string
  5070. * src/DHTTokenTracker.cc
  5071. * src/DHTUtil.cc
  5072. * src/DefaultBtContext.cc
  5073. * src/MSEHandshake.cc
  5074. * src/MessageDigestHelper.cc
  5075. * src/Peer.cc
  5076. * src/messageDigest.cc
  5077. * src/messageDigest.h
  5078. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. Made string literals used in SAX parser static const std::string.
  5080. * src/FileMetalinkParserState.cc
  5081. * src/FileMetalinkParserState.h
  5082. * src/FilesMetalinkParserState.cc
  5083. * src/FilesMetalinkParserState.h
  5084. * src/InitialMetalinkParserState.cc
  5085. * src/InitialMetalinkParserState.h
  5086. * src/MetalinkMetalinkParserState.cc
  5087. * src/MetalinkMetalinkParserState.h
  5088. * src/PiecesMetalinkParserState.cc
  5089. * src/PiecesMetalinkParserState.h
  5090. * src/ResourcesMetalinkParserState.cc
  5091. * src/ResourcesMetalinkParserState.h
  5092. * src/VerificationMetalinkParserState.cc
  5093. * src/VerificationMetalinkParserState.h
  5094. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5095. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5096. * src/A2STR.cc
  5097. * src/A2STR.h
  5098. * src/File.cc
  5099. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Defined static const std::string IP("ip"), PORT("port") and use them
  5101. instead of string literals.
  5102. * src/DefaultPeerListProcessor.cc
  5103. * src/DefaultPeerListProcessor.h
  5104. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Made string literals for torrent file processing static const
  5106. std::string.
  5107. * src/BtContext.cc
  5108. * src/BtContext.h
  5109. * src/DefaultBtContext.cc
  5110. * src/DefaultBtContext.h
  5111. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Made string literal for tracker response static const std::string
  5113. * src/BtAnnounce.cc
  5114. * src/BtAnnounce.h
  5115. * src/DefaultBtAnnounce.cc
  5116. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Use DHTMessage::T instead of "t".
  5118. * src/DHTMessageTracker.cc (messageArrived)
  5119. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Made keyName static const. Made trimmed charset static const
  5121. std::string.
  5122. * src/Util.cc (getContentDispositionFilename)
  5123. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Made USER_AGENT const. Made "/" static const std::string.
  5125. * src/A2STR.cc
  5126. * src/A2STR.h
  5127. * src/HttpRequest.cc
  5128. * src/HttpRequest.h
  5129. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Made string listeral to static const std::string:
  5131. "Content-Range", "Content-Length"
  5132. * src/HttpHeader.cc
  5133. * src/HttpHeader.h
  5134. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Made string listeral to static const std::string.
  5136. * src/HttpConnection.cc
  5137. * src/HttpHeader.cc
  5138. * src/HttpHeader.h
  5139. * src/HttpResponse.cc
  5140. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Made string listeral to static const std::string.
  5142. * src/A2STR.cc
  5143. * src/A2STR.h
  5144. * src/SimpleLogger.cc
  5145. * src/SimpleLogger.h
  5146. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Made string literal to static const std::string.
  5148. Rewritten CookieParser::setField.
  5149. * src/A2STR.cc
  5150. * src/A2STR.h
  5151. * src/CookieBoxFactory.cc
  5152. * src/CookieBoxFactory.h
  5153. * src/CookieParser.cc
  5154. * src/CookieParser.h
  5155. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Made string literal to static const std::string
  5157. * src/DHTAbstractMessage.cc
  5158. * src/DHTAnnouncePeerMessage.cc
  5159. * src/DHTAnnouncePeerMessage.h
  5160. * src/DHTAnnouncePeerReplyMessage.cc
  5161. * src/DHTAnnouncePeerReplyMessage.h
  5162. * src/DHTFindNodeMessage.cc
  5163. * src/DHTFindNodeMessage.h
  5164. * src/DHTFindNodeReplyMessage.cc
  5165. * src/DHTFindNodeReplyMessage.h
  5166. * src/DHTGetPeersMessage.cc
  5167. * src/DHTGetPeersMessage.h
  5168. * src/DHTGetPeersReplyMessage.cc
  5169. * src/DHTGetPeersReplyMessage.h
  5170. * src/DHTMessage.cc
  5171. * src/DHTMessage.h
  5172. * src/DHTMessageFactoryImpl.cc
  5173. * src/DHTMessageReceiver.cc
  5174. * src/DHTPingMessage.cc
  5175. * src/DHTPingMessage.h
  5176. * src/DHTPingReplyMessage.cc
  5177. * src/DHTPingReplyMessage.h
  5178. * src/DHTQueryMessage.cc
  5179. * src/DHTQueryMessage.h
  5180. * src/DHTResponseMessage.cc
  5181. * src/DHTResponseMessage.h
  5182. * src/DHTUnknownMessage.cc
  5183. * src/DHTUnknownMessage.h
  5184. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Made string literal to static const std::string
  5186. * src/BtChokeMessage.cc (toString)
  5187. * src/BtHaveAllMessage.cc (toString)
  5188. * src/BtHaveNoneMessage.cc (toString)
  5189. * src/BtInterestedMessage.cc (toString)
  5190. * src/BtNotInterestedMessage.cc (toString)
  5191. * src/BtUnchokeMessage.cc (toString)
  5192. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. Replaced "" with static const variable A2STR::NIL.
  5194. Replaced string comparison against "" with std::string::empty().
  5195. Added PROTO_* to Request class and use them as a protocol string
  5196. constant.
  5197. Made "started", "stopped", "completed" static const variable in
  5198. AnnounceList class.
  5199. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Updated translations. Great thanks to translators.
  5201. * po/ca.po
  5202. * po/de.po
  5203. * po/fr.po
  5204. * po/it.po
  5205. * po/ja.po
  5206. * po/ru.po
  5207. * po/zh_CN.po
  5208. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5209. Updated man page; categorized options and fixed typo.
  5210. * doc/aria2c.1.txt
  5211. * doc/aria2c.1.html
  5212. * doc/aria2c.1
  5213. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Removed const ref
  5215. * src/MetalinkEntry.cc (AddProtocolPreference)
  5216. * src/RequestGroup.cc (FindServerHostByHostname)
  5217. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Rewritten Accept-Features handling.
  5219. * src/HttpRequestCommand.cc (createHttpRequest)
  5220. * src/a2functional.h
  5221. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Changed method signature:
  5223. DHTAbstractNodeLookupTask::toEntries
  5224. * src/DHTAbstractNodeLookupTask.cc
  5225. * src/DHTAbstractNodeLookupTask.h
  5226. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. Changed method signature:
  5228. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5229. * src/BtContext.h
  5230. * src/DefaultBtContext.cc
  5231. * src/DefaultBtContext.h
  5232. * src/DefaultBtInteractive.cc
  5233. * test/DefaultBtContextTest.cc
  5234. * test/MockBtContext.h
  5235. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Changed method signature:
  5237. MultiFileAllocationIterator::makeDiskWriterEntries
  5238. * src/MultiFileAllocationIterator.cc
  5239. * src/MultiFileAllocationIterator.h
  5240. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Changed method sinature:
  5242. MetalinkEntry::toFileEntry,
  5243. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5244. Metalinker::queryEntry
  5245. * src/Metalink2RequestGroup.cc
  5246. * src/MetalinkEntry.cc
  5247. * src/MetalinkEntry.h
  5248. * src/MetalinkHelper.cc
  5249. * src/MetalinkHelper.h
  5250. * src/Metalinker.cc
  5251. * src/Metalinker.h
  5252. * src/main.cc
  5253. * test/MetalinkHelperTest.cc
  5254. * test/MetalinkerTest.cc
  5255. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Changed method sinature:
  5257. RequestGroup::getURIs
  5258. * src/RequestGroup.cc
  5259. * src/RequestGroup.h
  5260. * test/Metalink2RequestGroupTest.cc
  5261. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Changed method signature:
  5263. PeerListProcessor::extractPeer
  5264. * src/CompactPeerListProcessor.cc
  5265. * src/CompactPeerListProcessor.h
  5266. * src/DefaultBtAnnounce.cc
  5267. * src/DefaultPeerListProcessor.cc
  5268. * src/DefaultPeerListProcessor.h
  5269. * src/DelegatingPeerListProcessor.cc
  5270. * src/DelegatingPeerListProcessor.h
  5271. * src/PeerListProcessor.h
  5272. * src/UTPexExtensionMessage.cc
  5273. * test/DefaultPeerListProcessorTest.cc
  5274. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Changed method signature:
  5276. BtRequestFactory::createRequestMessages,
  5277. BtRequestFactory::createRequestMessagesOnEndGame
  5278. * src/BtRequestFactory.h
  5279. * src/DefaultBtInteractive.cc
  5280. * src/DefaultBtRequestFactory.cc
  5281. * src/DefaultBtRequestFactory.h
  5282. * test/DefaultBtRequestFactoryTest.cc
  5283. * test/MockBtRequestFactory.h
  5284. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Changed method signature:
  5286. PieceStorage::getInFlightPieces
  5287. * src/DefaultBtProgressInfoFile.cc
  5288. * src/DefaultPieceStorage.cc
  5289. * src/DefaultPieceStorage.h
  5290. * src/PieceStorage.h
  5291. * src/UnknownLengthPieceStorage.cc
  5292. * src/UnknownLengthPieceStorage.h
  5293. * test/DefaultBtProgressInfoFileTest.cc
  5294. * test/MockPieceStorage.h
  5295. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Changed method signature:
  5297. PostDownloadHandler::getNextRequestGroups
  5298. Metalink2RequestGroup::generate
  5299. RequestGroup::postDownloadProcessing
  5300. * src/BtPostDownloadHandler.cc
  5301. * src/BtPostDownloadHandler.h
  5302. * src/Metalink2RequestGroup.cc
  5303. * src/Metalink2RequestGroup.h
  5304. * src/MetalinkPostDownloadHandler.cc
  5305. * src/MetalinkPostDownloadHandler.h
  5306. * src/PostDownloadHandler.h
  5307. * src/RequestGroup.cc
  5308. * src/RequestGroup.h
  5309. * src/RequestGroupMan.cc
  5310. * src/main.cc
  5311. * test/BtPostDownloadHandlerTest.cc
  5312. * test/Metalink2RequestGroupTest.cc
  5313. * test/MetalinkPostDownloadHandlerTest.cc
  5314. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Rewritten AccRequestGroup
  5316. * src/main.cc
  5317. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Rewritten.
  5319. * src/TaggedItem.cc (toTagString)
  5320. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Rewritten Accept-Features handling.
  5322. * src/HttpRequestCommand.cc (createHttpRequest)
  5323. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Rewritten accept types handling.
  5325. * HttpRequest.cc (createRequest)
  5326. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5327. Rewritten
  5328. * src/FeatureConfig.cc (featureSummary)
  5329. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Changed method signature:
  5331. PeerStorage::getActivePeers
  5332. * src/DHTPeerAnnounceEntry.cc
  5333. * src/DefaultPeerStorage.cc
  5334. * src/DefaultPeerStorage.h
  5335. * src/PeerStorage.h
  5336. * test/DefaultPeerStorageTest.cc
  5337. * test/MockPeerStorage.h
  5338. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. Changed method signature:
  5340. DHTPeerAnnounceStorage::getPeers,
  5341. DHTPeerAnnounceEntry::getPeers
  5342. * src/DHTGetPeersMessage.cc
  5343. * src/DHTPeerAnnounceEntry.cc
  5344. * src/DHTPeerAnnounceEntry.h
  5345. * src/DHTPeerAnnounceStorage.cc
  5346. * src/DHTPeerAnnounceStorage.h
  5347. * test/DHTAnnouncePeerMessageTest.cc
  5348. * test/DHTPeerAnnounceEntryTest.cc
  5349. * test/DHTPeerAnnounceStorageTest.cc
  5350. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Changed method signature:
  5352. NameResolver::resolve
  5353. * src/DHTEntryPointNameResolveCommand.cc
  5354. * src/InitiateConnectionCommand.cc
  5355. * src/NameResolver.cc
  5356. * src/NameResolver.h
  5357. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Changed method signature:
  5359. PieceStorage::getAdvertisedPieceIndexes
  5360. * src/DefaultBtInteractive.cc
  5361. * src/DefaultPieceStorage.cc
  5362. * src/DefaultPieceStorage.h
  5363. * src/PieceStorage.h
  5364. * src/UnknownLengthPieceStorage.h
  5365. * test/MockPieceStorage.h
  5366. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Changed method signature:
  5368. SegmentMan::getInFlightSegment
  5369. * src/AbstractCommand.cc
  5370. * src/SegmentMan.cc
  5371. * src/SegmentMan.h
  5372. * test/SegmentManTest.cc
  5373. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Changed method signature:
  5375. DHTAbstractNodeLookupTask::getNodesFromMessage
  5376. * src/DHTAbstractNodeLookupTask.cc
  5377. * src/DHTAbstractNodeLookupTask.h
  5378. * src/DHTNodeLookupTask.cc
  5379. * src/DHTNodeLookupTask.h
  5380. * src/DHTPeerLookupTask.cc
  5381. * src/DHTPeerLookupTask.h
  5382. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5384. * src/AbstractCommand.cc
  5385. * src/BtCheckIntegrityEntry.cc
  5386. * src/BtCheckIntegrityEntry.h
  5387. * src/BtFileAllocationEntry.cc
  5388. * src/BtFileAllocationEntry.h
  5389. * src/BtSetup.cc
  5390. * src/BtSetup.h
  5391. * src/CheckIntegrityCommand.cc
  5392. * src/CheckIntegrityEntry.h
  5393. * src/ChecksumCheckIntegrityEntry.cc
  5394. * src/ChecksumCheckIntegrityEntry.h
  5395. * src/DHTSetup.cc
  5396. * src/DHTSetup.h
  5397. * src/DownloadEngine.cc
  5398. * src/FileAllocationCommand.cc
  5399. * src/FileAllocationEntry.h
  5400. * src/RequestGroup.cc
  5401. * src/RequestGroup.h
  5402. * src/RequestGroupMan.cc
  5403. * src/RequestGroupMan.h
  5404. * src/StreamCheckIntegrityEntry.cc
  5405. * src/StreamCheckIntegrityEntry.h
  5406. * src/StreamFileAllocationEntry.cc
  5407. * src/StreamFileAllocationEntry.h
  5408. * src/TrackerWatcherCommand.cc
  5409. * src/a2functional.h
  5410. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5411. Changed method signature:
  5412. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5413. DHTBucket::getGoodNodes,
  5414. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5415. * src/BNode.cc
  5416. * src/BNode.h
  5417. * src/DHTAbstractNodeLookupTask.cc
  5418. * src/DHTAutoSaveCommand.cc
  5419. * src/DHTBucket.cc
  5420. * src/DHTBucket.h
  5421. * src/DHTBucketRefreshTask.cc
  5422. * src/DHTFindNodeMessage.cc
  5423. * src/DHTGetPeersMessage.cc
  5424. * src/DHTRoutingTable.cc
  5425. * src/DHTRoutingTable.h
  5426. * test/BNodeTest.cc
  5427. * test/DHTBucketTest.cc
  5428. * test/DHTRoutingTableTest.cc
  5429. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5430. In piece selection functions, Pass std::deque<...> by reference rather
  5431. than returning it.
  5432. * src/BitfieldMan.cc
  5433. * src/BitfieldMan.h
  5434. * src/DefaultBtRequestFactory.cc
  5435. * src/DefaultPieceStorage.cc
  5436. * src/Piece.cc
  5437. * src/Piece.h
  5438. * test/BitfieldManTest.cc
  5439. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Implemented rarest piece first piece selection strategy.
  5441. * src/AbstractBtMessage.cc
  5442. * src/AbstractBtMessage.h
  5443. * src/BitfieldMan.cc
  5444. * src/BitfieldMan.h
  5445. * src/BtBitfieldMessage.cc
  5446. * src/BtHaveAllMessage.cc
  5447. * src/BtHaveMessage.cc
  5448. * src/DefaultPieceStorage.cc
  5449. * src/DefaultPieceStorage.h
  5450. * src/PeerInteractionCommand.cc
  5451. * src/PieceStorage.h
  5452. * src/UnknownLengthPieceStorage.h
  5453. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Rewritten readData and writeData.
  5455. * src/MultiDiskAdaptor.cc
  5456. * src/MultiDiskAdaptor.h
  5457. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Move \n out of the message "Usage: ...".
  5459. * src/version_usage.cc
  5460. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Bump up version number to 0.13.2b.
  5462. * configure.ac
  5463. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Added const qualifier to argument Exception& e.
  5465. * src/Logger.h
  5466. * src/SimpleLogger.cc
  5467. * src/SimpleLogger.h
  5468. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5469. Pool connection when CWD, SIZE command fails.
  5470. * src/FtpNegotiationCommand.cc
  5471. * src/FtpNegotiationCommand.h
  5472. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5474. * src/HttpResponseCommand.cc
  5475. * src/HttpSkipResponseCommand.cc
  5476. * src/HttpSkipResponseCommand.h
  5477. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. Pool connection when a server returns 4xx, 5xx responses.
  5479. * src/HttpNullDownloadCommand.cc
  5480. * src/HttpNullDownloadCommand.h
  5481. * src/HttpResponse.cc
  5482. * src/HttpResponse.h
  5483. * src/HttpResponseCommand.cc
  5484. * src/HttpResponseCommand.h
  5485. * test/HttpResponseTest.cc
  5486. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5487. Print usage when no URL is specifed or bad command-line option is
  5488. specified.
  5489. * src/HelpItemFactory.cc
  5490. * src/help_tags.h
  5491. * src/option_processing.cc
  5492. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. Removed duplicate log message.
  5494. * src/AbstractCommand.cc (asyncResolveHostname)
  5495. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5497. Changed -j option's default value from 5 to 1.
  5498. Added new examples using protocol auto detection feature.
  5499. Removed -T, -M usage where it can be omitted.
  5500. * doc/aria2c.1.txt
  5501. * doc/aria2c.1.html
  5502. * doc/aria2c.1.txt
  5503. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5504. Updated command-line usage text, so that it tells users that they
  5505. can specify any number of torrent files and metalink files in
  5506. command-line.
  5507. * src/version_usage.cc
  5508. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Changed the default value of -j option to 1.
  5510. * src/HelpItemFactory.cc
  5511. * src/option_processing.cc
  5512. * src/usage_text.h
  5513. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Added the ability to reuse connection in FTP and it is enabled by
  5515. default. It can be disabled by --ftp-reuse-connection=false option.
  5516. * src/Command.cc
  5517. * src/DownloadCommand.cc
  5518. * src/FtpDownloadCommand.cc
  5519. * src/FtpDownloadCommand.h
  5520. * src/FtpFinishDownloadCommand.cc
  5521. * src/FtpFinishDownloadCommand.h
  5522. * src/FtpInitiateConnectionCommand.cc
  5523. * src/FtpNegotiationCommand.cc
  5524. * src/FtpNegotiationCommand.h
  5525. * src/HelpItemFactory.cc
  5526. * src/Makefile.am
  5527. * src/Makefile.in
  5528. * src/OptionHandlerFactory.cc
  5529. * src/option_processing.cc
  5530. * src/prefs.h
  5531. * src/usage_text.h
  5532. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5533. Call Command::transitStatus() before calling Command::execute(),
  5534. so that the status change made in execute() is not cleared.
  5535. * src/DownloadEngine.cc
  5536. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. Removed forward declaration of SocketCore class.
  5538. * src/HttpDownloadCommand.h
  5539. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5540. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5541. in InitiateConnectionCommandFactory. They should be set only when
  5542. the protocol is HTTP or HTTPS.
  5543. * src/InitiateConnectionCommandFactory.cc
  5544. * src/RequestGroup.cc
  5545. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Fixed infinite loop in checksum checking.
  5547. * src/IteratableChecksumValidator.cc
  5548. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. Set _supportsPersistentConnection to true by default.
  5550. * src/Request.cc
  5551. * src/RequestGroup.cc
  5552. * test/HttpRequestTest.cc
  5553. * test/RequestTest.cc
  5554. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5555. Added timeout to socket pool. The default timeout is 15 seconds,
  5556. which is the same value Apache uses.
  5557. * src/DownloadEngine.cc
  5558. * src/DownloadEngine.h
  5559. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5560. Fixed misuse of multimap::find()
  5561. * src/HttpHeader.cc
  5562. * test/HttpHeaderTest.cc
  5563. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5564. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5565. option.
  5566. The asynchronous DNS is not capable of IPv6 yet.
  5567. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5568. least for HTTP download.
  5569. * src/AbstractCommand.cc
  5570. * src/AbstractCommand.h
  5571. * src/AsyncNameResolver.cc
  5572. * src/AsyncNameResolver.h
  5573. * src/DHTEntryPointNameResolveCommand.cc
  5574. * src/DHTEntryPointNameResolveCommand.h
  5575. * src/DownloadEngine.cc
  5576. * src/DownloadEngine.h
  5577. * src/FtpInitiateConnectionCommand.cc
  5578. * src/FtpInitiateConnectionCommand.h
  5579. * src/HelpItemFactory.cc
  5580. * src/HttpInitiateConnectionCommand.cc
  5581. * src/HttpInitiateConnectionCommand.h
  5582. * src/InitiateConnectionCommand.cc
  5583. * src/InitiateConnectionCommand.h
  5584. * src/Makefile.am
  5585. * src/Makefile.in
  5586. * src/NameResolver.cc
  5587. * src/NameResolver.h
  5588. * src/OptionHandlerFactory.cc
  5589. * src/SocketCore.cc
  5590. * src/SocketCore.h
  5591. * src/Util.cc
  5592. * src/Util.h
  5593. * src/option_processing.cc
  5594. * src/prefs.h
  5595. * src/usage_text.h
  5596. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Updated man page: --quiet, --header were added.
  5598. --metalink-servers and --enable-http-keep-alive option were updated.
  5599. * doc/aria2c.1
  5600. * doc/aria2c.1.html
  5601. * doc/aria2c.1.txt
  5602. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Enable HTTP keep-alive by default.
  5604. * src/HelpItemFactory.cc
  5605. * src/option_processing.cc
  5606. * src/usage_text.h
  5607. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5608. Disable http keep-alive if the remote server is not HTTP/1.1.
  5609. * src/HttpConnection.cc
  5610. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5611. Receive content body of 302 response so that the connection can be
  5612. reused later when http keep-alive is enabled.
  5613. * src/HttpNullDownloadCommand.cc
  5614. * src/HttpNullDownloadCommand.h
  5615. * src/HttpResponseCommand.cc
  5616. * src/HttpResponseCommand.h
  5617. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. const SharedHandle<Request> -> const SharedHandle<Request>&
  5619. * src/FtpDowndloadCommand.cc
  5620. * src/FtpDowndloadCommand.h
  5621. * src/HttpDownloadCommand.cc
  5622. * src/HttpDownloadCommand.h
  5623. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Fixed the bug that the control file(.aria2 file) is not renamed
  5625. according to tryAutoFileRenaming().
  5626. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5627. its control file exist, use them and continue download.
  5628. The old implementation didn't take into account of control file's
  5629. existence, so basically you couldn't continue download of renamed file.
  5630. * src/BtProgressInfoFile.h
  5631. * src/DefaultBtProgressInfoFile.cc
  5632. * src/DefaultBtProgressInfoFile.h
  5633. * src/NullProgressInfoFile.h
  5634. * src/RequestGroup.cc
  5635. * test/DefaultBtProgressInfoFileTest.cc
  5636. * test/MockBtProgressInfoFile.h
  5637. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Change the default value of --metalink-servers option from `5' to `1'.
  5639. * src/HelpItemFactory.cc
  5640. * src/option_processing.cc
  5641. * src/usage_text.h
  5642. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Reimplemented transparent metalink using Accept request header.
  5644. * src/HttpRequest.cc
  5645. * src/HttpRequest.h
  5646. * src/HttpRequestCommand.cc
  5647. * src/Metalink2RequestGroup.cc
  5648. * src/RequestGroup.cc
  5649. * src/RequestGroup.h
  5650. * test/HttpRequestTest.cc
  5651. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. Bump up version number to 0.13.2a
  5653. * configure.ac
  5654. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Updated configure.ac using the result of autoscan.
  5656. * configure.ac
  5657. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5658. Fixed compilation error without gcrypt/openssl.
  5659. * src/DownloadCommand.cc
  5660. * src/DownloadCommand.h
  5661. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. Reorganized version information so that it can be displayed in a
  5663. standard terminal screen without scrolling.
  5664. Removed http, ftp from Configuration section, because they are always
  5665. enabled.
  5666. * src/FeatureConfig.cc
  5667. * src/FeatureConfig.h
  5668. * src/main.cc
  5669. * src/messageDigest.cc
  5670. * src/messageDigest.h
  5671. * src/version_usage.cc
  5672. * test/FeatureConfigTest.cc
  5673. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Masked user ID in log.
  5675. * src/FtpConnection.cc (sendUser)
  5676. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Removed query part from filename in HTTP download. The query part means
  5678. the substring after "?" in URL. Firefox seems do the same thing.
  5679. A query part is sometimes very long and not suitable to filename,
  5680. so I think it is better to remove it from filename.
  5681. * src/HttpRequest.cc
  5682. * src/HttpRequest.h
  5683. * src/Request.cc
  5684. * src/Request.h
  5685. * test/HttpRequestTest.cc
  5686. * test/RequestTest.cc
  5687. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Rewritten Exception class. Throw exception object, not its pointer and
  5689. catch by reference, so that remove problematic delete operator for
  5690. catched exception.
  5691. * src/Exception.cc
  5692. * src/Exception.h
  5693. * test/ExceptionTest.cc
  5694. * src/*: All files throwing/catching exception.
  5695. * test/*: All files throwing/catching exception.
  5696. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Now auto protocol detection is enabled without -Z option.
  5698. But there is a important difference between with/without -Z optoin.
  5699. For example, if you type:
  5700. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5701. then, aria2 interprets there are 3 request groups:
  5702. (1) http://host/file, http://mirror/file <-- multi-source download
  5703. (2) file1.torrent
  5704. (3) file2.metalink
  5705. On the other hand, if you invoke above command with -Z option, it is
  5706. interpreted as 4 request groups:
  5707. (1) http://host/file
  5708. (2) file1.torrent
  5709. (3) file2.metalink
  5710. (4) http://mirror/file
  5711. I think usually user don't mix multi-source URLs and torrent files, so
  5712. there is no big problem here.
  5713. * src/main.cc
  5714. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Fixed the bug that causes segmentaion fault when reading XML containing
  5716. unescapsed character like '&'.
  5717. Also a modification was made which avoids adding unnecessary
  5718. characters stack and appending unused string.
  5719. * src/ExpatMetalinkProcessor.cc
  5720. * src/FileMetalinkParserState.h
  5721. * src/FilesMetalinkParserState.h
  5722. * src/FinMetalinkParserState.h
  5723. * src/HashMetalinkParserState.h
  5724. * src/InitialMetalinkParserState.h
  5725. * src/LanguageMetalinkParserState.h
  5726. * src/MetalinkMetalinkParserState.h
  5727. * src/MetalinkParserState.h
  5728. * src/MetalinkParserStateMachine.cc
  5729. * src/MetalinkParserStateMachine.h
  5730. * src/OSMetalinkParserState.h
  5731. * src/PieceHashMetalinkParserState.h
  5732. * src/PiecesMetalinkParserState.h
  5733. * src/ResourcesMetalinkParserState.h
  5734. * src/SizeMetalinkParserState.h
  5735. * src/SkipTagMetalinkParserState.h
  5736. * src/URLMetalinkParserState.h
  5737. * src/VerificationMetalinkParserState.h
  5738. * src/VersionMetalinkParserState.h
  5739. * src/XML2SAXMetalinkProcessor.cc
  5740. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Added StringFormat class, which internally calls vasprintf.
  5742. operator<< is defined for this class, so it can be used with iostream
  5743. classes nicely. SimpleLogger and following functions are rewritten
  5744. using StringFormat class.
  5745. Besides, now Logger class's methods are non-const, many classes
  5746. that has a const Logger* as a member variable are modified to remove
  5747. const qualifier from the variable declaration.
  5748. * src/HelpItemFactory.cc
  5749. * src/Request.cc
  5750. * src/SimpleLogger.cc
  5751. * src/StringFormat.cc
  5752. * src/StringFormat.h
  5753. * src/Util.cc
  5754. * src/option_processing.cc
  5755. * src/version_usage.cc
  5756. * test/StringFormatTest.cc
  5757. * src/*.h: The classes that has const Logger* as a member variable.
  5758. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5760. failed. Also fixed memory link when exception is thrown there.
  5761. * src/main.cc (AccRequestGroup)
  5762. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Added build-in "Accept-Features" support. For now only "metalink" is
  5764. used in this header field.
  5765. This "metalink" value is removed from the list when connecting URLs
  5766. fed by metalink file to avoid loop in "transparent" metlaink.
  5767. * src/HttpRequest.cc
  5768. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5769. header is also held in this variable. Also renamed setUserHeaders as
  5770. addHeader and it was rewritten to add header not just to clear the old
  5771. value.
  5772. * src/HttpRequestCommand.cc
  5773. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5774. from "Accept-Features" list.
  5775. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5776. default.
  5777. * src/RequestGroup.h
  5778. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5779. * src/a2functional.h: Included <string> because Concat class depends on
  5780. it.
  5781. * test/HttpRequestTest.cc
  5782. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Added comment
  5784. * src/RequestGroup.cc (createNextCommand)
  5785. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Capitalized METHOD_GET and METHOD_HEAD
  5787. * src/Request.cc
  5788. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Added getDownloadResults() method
  5790. * src/RequestGroupMan.cc
  5791. * src/RequestGroupMan.h
  5792. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Fixed the bug that aria2 exits when commands is empty() but
  5794. _routineCommands are not.
  5795. * src/DownloadEngine.cc
  5796. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Use the default value pulled from Option object in HelpItemFactory.
  5798. except options whose defualt value is embedded in a usage text.
  5799. * src/HelpItemFactory.cc
  5800. * src/HelpItemFactory.h
  5801. * src/option_processing.cc
  5802. * src/version_usage.cc
  5803. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Added --quiet option to make aria2 quiet (no console output).
  5805. --quiet option is tagged with ADVANCED.
  5806. * src/HelpItemFactory.cc
  5807. * src/LogFactory.cc
  5808. * src/LogFactory.h
  5809. * src/MultiUrlRequestInfo.cc
  5810. * src/MultiUrlRequestInfo.h
  5811. * src/NullStatCalc.h: New class. This class prints nothing.
  5812. * src/OptionHandlerFactory.cc
  5813. * src/main.cc
  5814. * src/option_processing.cc
  5815. * src/prefs.h
  5816. * src/usage_text.h
  5817. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5818. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5819. * src/HelpItemFactory.cc (createHelpItems):
  5820. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Fixed compilation error in ExpatMetalinkProcessor.cc
  5822. * src/ExpatMetalinkProcessor.cc
  5823. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Reuse socket if the origin server supports HTTP keep-alive and
  5825. --enable-http-keep-alive or --enable-http-pipelining is given.
  5826. The current implementation doesn't reuse the connections established
  5827. against proxy server.
  5828. * src/AbstractCommand.cc
  5829. * src/DownloadEngine.cc
  5830. * src/DownloadEngine.h
  5831. * src/HttpDownloadCommand.cc
  5832. * src/HttpInitiateConnectionCommand.cc
  5833. * src/HttpResponseCommand.cc
  5834. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Rewritten HTTP keep-alive and pipelining routine.
  5836. * src/AbstractCommand.cc
  5837. * src/HttpConnection.cc
  5838. * src/HttpDownloadCommand.cc
  5839. * src/HttpRequest.cc
  5840. * src/HttpRequestCommand.cc
  5841. * src/HttpResponseCommand.cc
  5842. * src/Request.cc
  5843. * src/Request.h
  5844. * src/RequestGroup.cc
  5845. * test/HttpRequestTest.cc
  5846. * test/HttpResponseTest.cc
  5847. * test/RequestTest.cc
  5848. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. Added missing setUserHeaders call
  5850. * src/HttpRequestCommand.cc
  5851. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5853. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5854. waste of time because it is more likey false.
  5855. * src/FileAllocationDispatcherCommand.cc (execute)
  5856. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Now HTTP status and version are a member variable of HttpHeader.
  5858. HTTP status is processed as a string, not integer.
  5859. * src/AbstractProxyResponseCommand.cc
  5860. * src/HttpConnection.cc
  5861. * src/HttpHeader.cc
  5862. * src/HttpHeader.h
  5863. * src/HttpHeaderProcessor.cc
  5864. * src/HttpHeaderProcessor.h
  5865. * src/HttpResponse.cc
  5866. * src/HttpResponse.h
  5867. * test/HttpHeaderProcessorTest.cc
  5868. * test/HttpResponseTest.cc
  5869. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Added --header option. You can specify any number of additional HTTP headers
  5871. like:
  5872. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5873. Unlike other commad-line option, you can use --header option multiple times.
  5874. * src/HelpItemFactory.cc
  5875. * src/HttpRequest.{cc, h}
  5876. * src/HttpRequestCommand.cc
  5877. * src/OptionHandlerFactory.cc
  5878. * src/OptionHandlerImpl.h
  5879. * src/option_processing.cc
  5880. * src/prefs.h
  5881. * src/usage_text.h
  5882. * test/HttpRequestTest.cc (testUserHeaders)
  5883. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Eliminates the time lag between sequential downloads and commands in
  5885. the same RequestGroup.
  5886. In old implementation, aria2 occasionally waits 1 seconds before
  5887. executing next command or RequestGroup.
  5888. This is really a waste of time, and new implementation eliminates
  5889. this unnecessary time lag.
  5890. * src/AbstractCommand.cc
  5891. * src/AutoSaveCommand.cc
  5892. * src/CheckIntegrityCommand.cc
  5893. * src/Command.{cc, h}
  5894. * src/DownloadEngine.{cc, h}
  5895. * src/DownloadEngineFactory.cc
  5896. * src/FileAllocationCommand.cc
  5897. * src/FileAllocationDispatcherCommand.cc
  5898. * src/FillRequestGroupCommand.cc
  5899. * src/FtpInitiateConnectionCommand.cc
  5900. * src/HaveEraseCommand.cc
  5901. * src/HttpInitiateConnectionCommand.cc
  5902. * src/HttpResponseCommand.cc
  5903. * src/RealtimeCommand.cc
  5904. * src/RequestGroup.cc
  5905. * src/RequestGroupMan.cc
  5906. * src/StreamFileAllocationEntry.cc
  5907. * src/TimeBasedCommand.{cc, h}
  5908. * src/TimedHaltCommand.cc
  5909. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5911. keyword explicit and SharedHandle's default constructor initializes
  5912. its internal obj to null, old implementation initializes it using
  5913. obj's default constructor.
  5914. To assign null, write SharedHandle<T> x(...); x.reset();
  5915. TODO: test/SharedHandleTest.cc needs more tests.
  5916. * src/SharedHandle.h
  5917. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Fixed type in man page.
  5919. * doc/aria2c.1.txt
  5920. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5922. * src/SimpleLogger.{cc, h}
  5923. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Implemented auto protocol detection.
  5925. Now you can do:
  5926. aria2c -Z http://host/file file1.torrent file2.metalink
  5927. (Note: -Z option is required for auto protcol detection.)
  5928. Then aria2c downloads 3 files simultaneously:
  5929. 1. http://host/file
  5930. 2. file1.torrent <-- read local torrent file
  5931. 3. file2.metalink <-- read local Metalink file.
  5932. Same thing goes with -i option. Assume your uris.txt contans:
  5933. http://host/file
  5934. file1.torrent
  5935. file2.metalink
  5936. Then you can do: aria2c -i uris.txt
  5937. (Note: -Z option is not needed if -i option is given.)
  5938. * src/main.cc
  5939. * src/ProtocolDetector.{cc, h}
  5940. * test/ProtocolDetectorTest.cc
  5941. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5943. installed
  5944. * src/ARC4Encryptor.h
  5945. * src/ARC4Decryptor.h
  5946. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Renamed argument from 'errno' to 'err', since errno is confused with
  5948. errno defined in errno.h.
  5949. * src/LibgcryptARC4Decryptor.h
  5950. * src/LibgcryptARC4Context.h
  5951. * src/LibgcryptDHKeyExchange.h
  5952. * src/LibgcryptARC4Encryptor.h
  5953. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. Rewritten choking algorithm.
  5955. * src/PeerChokeCommand.{cc, h}
  5956. * src/BtInterestedMessage.cc
  5957. * src/PeerSessionResource.{cc, h}
  5958. * src/DefaultPeerStorage.{cc, h}
  5959. * src/BtNotInterestedMessage.cc
  5960. * src/DefaultBtMessageDispatcher.{cc, h}
  5961. * src/BtMessageDispatcher.h
  5962. * src/Peer.{cc, h}
  5963. * src/BtLeecherStateChoke.{cc, h}
  5964. * src/BtSetup.cc
  5965. * src/BtSeederStateChoke.{cc, h}
  5966. * src/PeerStorage.h
  5967. * test/MockPeerStorage.h
  5968. * test/MockBtMessageDispatcher.h
  5969. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Fixed compilation error on x84-64 platform.
  5971. * src/AuthConfig.cc: Included ostream.
  5972. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Rewritten getBasename() and getDirname(), without standard library
  5974. basename(), dirname().
  5975. * src/File.cc
  5976. * test/FileTest.cc
  5977. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Added Simplified Chinese translation. Also updated the following
  5979. translations: Polish, Dutch, German. Great thanks to all translators.
  5980. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Suppress content-range error when 'Content-Range' response header
  5982. doesn't contains bytes-unit specifier 'bytes'
  5983. * src/HttpHeader.cc (getRange)
  5984. * test/HttpHeaderTest.cc
  5985. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Fixed compilation error with g++-4.3
  5987. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Added missing include files for MinGW
  5989. * test/HttpHeaderProcessorTest.cc
  5990. * test/DHTRoutingTableSerializerTest.cc
  5991. * test/DHTRoutingTableDeserializerTest.cc
  5992. * test/UriListParserTest.cc
  5993. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Now download line is printed nicely with no garbage at the end of
  5995. line. I use ioctl to get the columns of terminal.
  5996. If stdout is redirected to another device, instead of carriage return,
  5997. end of line '\n' character is used. This is feature request#1909659
  5998. * src/ConsoleStatCalc.cc (calculateStat)
  5999. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Included a2time.h
  6001. * src/DHTMessageDispatcher.h
  6002. * src/DHTMessageEntry.h
  6003. * src/DHTReplaceNodeTask.h
  6004. * src/DHTMessageTracker.h
  6005. * src/Util.h
  6006. * src/CookieBox.h
  6007. * src/SocketCore.h
  6008. * src/DefaultBtMessageDispatcher.h
  6009. * src/SocketCore.cc
  6010. * src/Util.cc
  6011. * src/DHTPingTask.h
  6012. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Fixed high memory footprint when DHT is enabled.
  6014. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6015. queued than it is processed and the queue is getting longer. As a
  6016. consequence, momory usage is increased.
  6017. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6018. replacement cache in DHTBucket which is described in Kademlia paper.
  6019. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6020. DHTReplaceNodeTask.
  6021. * src/DHTBucket.{h, cc}
  6022. (cacheNode): New function.
  6023. (getCachedNodes): New function.
  6024. (dropNode): Push back cached node to _nodes.
  6025. * test/DHTBucketTest.cc
  6026. (testCacheNode): New test
  6027. (testDropNode): New test
  6028. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6030. the unused 4KB memory when ssl is not used.
  6031. * src/SocketCore.cc
  6032. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6033. Added summary log for peer announce storage.
  6034. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6035. Removed cast
  6036. * src/DefaultPeerStorage.cc (addPeer)
  6037. Log exception message
  6038. * src/DHTMessageTracker.cc (handleTimeout)
  6039. Fixed casting
  6040. * test/HttpRequestTest.cc
  6041. * test/MetalinkProcessorTest.cc
  6042. * test/PieceTest.cc
  6043. * test/MetalinkEntryTest.cc
  6044. * test/SequenceTest.cc
  6045. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. * src/ParameterizedStringParser.cc (createLoop):
  6047. Removed unused variable sstep.
  6048. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6049. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. * src/Util.{h, cc}
  6051. (parseUInt): New function.
  6052. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6053. The actual range is uint32_t.
  6054. * test/UtilTest.cc
  6055. * src/ParameterizedStringParser.cc:
  6056. Use Util::parseUInt() for loop variables.
  6057. * test/ParameterizedStringParserTest.cc
  6058. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6059. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Rewritten the functions for binding port.
  6061. * src/DHTConnectionImpl.{h, cc}
  6062. * src/PeerListenCommand.{h, cc}
  6063. * src/DHTSetup.cc
  6064. * src/BtSetup.cc
  6065. * test/DHTConnectionImplTest.cc
  6066. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. type cleanup for allmost all remaining files.
  6068. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Type clarification
  6070. * src/PeerSessionResource.{h, cc}
  6071. * src/DefaultPieceStorage.{h, cc}
  6072. * src/Peer.{h, cc}
  6073. * test/PeerSessionResourceTest.cc
  6074. Use div function
  6075. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6076. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Type clarification
  6078. * src/DefaultPeerStorage.{h, cc}
  6079. * test/DefaultPeerStorageTest.cc
  6080. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Type clarification: size_t for length or size, uint64_t for file
  6082. length, off_t for file offset.
  6083. * src/DefaultBtProgressInfoFile.cc
  6084. * src/DefaultBtContext.{h, cc}
  6085. * src/DefaultBtInteractive.cc
  6086. * src/DownloadCommand.{h, cc}
  6087. * src/IteratableChunkChecksumValidator.{h, cc}
  6088. * src/SegmentMan.{h, cc}
  6089. * src/SingleFileDownloadContext.{h, cc}
  6090. * src/IteratableChecksumValidator.{h, cc}
  6091. * src/BtContext.h
  6092. * src/IteratableValidator.h
  6093. * src/DownloadContext.h
  6094. * test/SingleFileDownloadContextTest.cc
  6095. * test/DefaultBtContextTest.cc
  6096. * test/MockBtContext.h
  6097. * test/Metalink2RequestGroupTest.cc
  6098. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6099. Type clarification: size_t for length or size, uint64_t for file
  6100. length, off_t for file offset.
  6101. * src/PiecedSegment.cc
  6102. * src/GrowSegment.h
  6103. * src/DefaultBtRequestFactory.h
  6104. * src/DefaultBtProgressInfoFile.cc
  6105. * src/UnknownLengthPieceStorage.h
  6106. * src/DefaultPieceStorage.cc
  6107. * src/UnknownLengthPieceStorage.cc
  6108. * src/DefaultBtInteractive.cc
  6109. * src/GrowSegment.cc
  6110. * src/BitfieldMan.h
  6111. * src/DownloadCommand.cc
  6112. * src/BtRequestFactory.h
  6113. * src/PiecedSegment.h
  6114. * src/DefaultPieceStorage.h
  6115. * src/Piece.cc
  6116. * src/DefaultBtRequestFactory.cc
  6117. * src/PieceStorage.h
  6118. * src/Segment.h
  6119. * src/Piece.h
  6120. * src/BitfieldMan.cc
  6121. * src/Util.cc
  6122. * test/DefaultBtProgressInfoFileTest.cc
  6123. * test/DefaultPieceStorageTest.cc
  6124. * test/MockPieceStorage.h
  6125. * test/BtRequestMessageTest.cc
  6126. * test/DefaultBtMessageDispatcherTest.cc
  6127. * test/BitfieldManTest.cc
  6128. * test/GrowSegmentTest.cc
  6129. * test/PieceTest.cc
  6130. * test/SegmentTest.cc
  6131. * test/SegmentManTest.cc
  6132. * test/DefaultBtRequestFactoryTest.cc
  6133. * test/MockBtRequestFactory.h
  6134. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Fixed compilation error with --disable-nls
  6136. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6137. in gettext.h causes the problem.
  6138. * src/common.h
  6139. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. Removed subPiece related functions.
  6141. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6142. * src/DefaultPieceStorage.{h, cc}
  6143. * test/PieceTest.cc
  6144. * test/DefaultPieceStorageTest.cc
  6145. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Use unsigned char for data store.
  6147. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. Bump up version number to 0.13.0+1
  6149. * configure.ac
  6150. * Release 0.13.0+1
  6151. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Changed inactive connection timeout to 120.
  6153. To accept more mulually interested peers, disconnect peer when there
  6154. is no interest between us after certain time passed.
  6155. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6156. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6158. when compiled with async DNS support.
  6159. * src/DownloadEngine.cc
  6160. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6161. value '10' will be a little bit short when some DNS servers are
  6162. offline and several DNS servers are tried. It should be configured
  6163. by command-line option.
  6164. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Merged Ross's mingw patch.
  6166. * src/DHTRoutingTableDeserializer.cc
  6167. * src/DHTRoutingTableSerializer.cc
  6168. * src/Platform.{h, cc}
  6169. * src/timegm.h
  6170. * src/gettimeofday.h
  6171. * src/getaddrinfo.h
  6172. * src/SocketCore.h
  6173. * src/common.h
  6174. * src/inet_aton.h
  6175. * src/DownloadEngine.h
  6176. * src/gai_strerror.h
  6177. * src/a2netcompat.h
  6178. * configure.ac
  6179. * configure
  6180. * aclocal.m4
  6181. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Included missing iostream.
  6183. * test/AllTest.cc
  6184. * test/BtDependencyTest.cc
  6185. * test/BtExtendedMessageTest.cc
  6186. * test/DHTConnectionImplTest.cc
  6187. * test/DHTMessageFactoryImplTest.cc
  6188. * test/DHTMessageTrackerEntryTest.cc
  6189. * test/DHTNodeTest.cc
  6190. * test/DHTRoutingTableSerializerTest.cc
  6191. * test/DefaultBtAnnounceTest.cc
  6192. * test/DefaultBtContextTest.cc
  6193. * test/DefaultBtMessageFactoryTest.cc
  6194. * test/DefaultExtensionMessageFactoryTest.cc
  6195. * test/HandshakeExtensionMessageTest.cc
  6196. * test/HttpResponseTest.cc
  6197. * test/MetalinkProcessorTest.cc
  6198. * test/MultiFileAllocationIteratorTest.cc
  6199. * test/SocketCoreTest.cc
  6200. * test/UTPexExtensionMessageTest.cc
  6201. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Reorganized includes.
  6203. * src/NameResolver.cc
  6204. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Fixed compilation error without ares/c-ares
  6206. * src/NameResolver.h:
  6207. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6208. Added a test for large file.
  6209. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6210. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Fixed the bug that file size is ignored if size > INT32_MAX
  6212. * src/SizeMetalinkParserState.cc (endElement):
  6213. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6214. Bump up version number to 0.13.0
  6215. * configure.ac
  6216. * Release 0.13.0
  6217. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Updated Makfefile.am to make 'make dist' work.
  6219. Now packaged filename is aria2c-VERSION.tar.bz2.
  6220. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6221. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6222. Large file support is now configured by configure script.
  6223. * configure.ac
  6224. Removed unsused source files
  6225. * src/
  6226. * test/
  6227. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6228. Peer.h and BtContext.h respectively.
  6229. * src/Peer.h
  6230. * src/BtContext.h
  6231. Updated translations.
  6232. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6233. translations. Great thanks to all translators!;)
  6234. * po/*.{po, gmo}
  6235. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6237. statically declared sha1 MessageDigestContext.
  6238. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6239. initialization of short-lived MessageDigestContext.
  6240. * src/MessageDigestHelper.{h, cc}
  6241. * src/main.cc
  6242. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6243. the initialization of MessageDigestContext every time in validating
  6244. chunk checksum.
  6245. * src/DownloadCommand.{h, cc}
  6246. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Add a file descriptor which connected to fast peer(latency<1500) to
  6248. select(). This change reduced CPU load.
  6249. * src/PeerInteractionCommand.cc
  6250. * src/DefaultBtInteractive.{h, cc}
  6251. * src/BtInteractive.h
  6252. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Fixed the previous insufficient fix for possible busy loop.
  6254. * src/MSEHandshake.cc (identifyHandshakeType)
  6255. Removed unused functions.
  6256. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6257. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6258. Fixed possible busy loop if first 20 bytes are not received for a few
  6259. minutes.
  6260. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6261. * src/ReceiverMSEHandshakeCommand.cc
  6262. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Fixed compilation error
  6264. * src/ExpatMetalinkProcessor.cc
  6265. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6267. * src/DHTBucket.cc
  6268. Removed unnecessary cast.
  6269. * src/HandshakeExtensionMessage.cc
  6270. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6271. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6272. is missing.
  6273. * src/OptionHandlerFactory.cc
  6274. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. Fixed the bug that HAVE message is not sent for a piece they are
  6276. downloaded fom http/ftp server before any BitTorrent handshake is done
  6277. with peers.
  6278. * src/DefaultBtInteractive.cc
  6279. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6280. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6281. * src/Makefile.am
  6282. * src/Makefile.in
  6283. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6284. Updated README. Added html version of README and man page.
  6285. * README
  6286. * README.html
  6287. * readme2html: Shell script to generate README.html from README using
  6288. asciidoc.
  6289. * doc/aria2c.1.html
  6290. * doc/makeman: Added the line to generate aria2c.1.html
  6291. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Fixed offset calculation.
  6293. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6294. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Rewritten itos and uitos using template. llitos and ullitos are
  6296. replaced with itos and uitos respectively.
  6297. * src/Util.{h, cc}
  6298. * test/UtilTest.cc
  6299. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6301. of the number of bytes required for storing public key and shared
  6302. secret.
  6303. * src/LibgcryptDHKeyExchange.h
  6304. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6305. * src/MSEHandshake.cc
  6306. * test/DHKeyExchangeTest.cc
  6307. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Removed since they are not used.
  6309. * src/Xml2MetalinkProcessor.{h, cc}
  6310. * src/Socket.cc
  6311. * src/SegmentSplitter.{h, cc}
  6312. * test/Xml2MetalinkProcessorTest.cc
  6313. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Fixed the bug that prevents aria2 from stopping other than by pressing
  6315. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6316. option. aria2 doesn't stop even after --seed-time is satisfied and
  6317. continues to output blank lines in the console.
  6318. * src/ReceiverMSEHandshakeCommand.cc
  6319. * src/PeerReceiveHandshakeCommand.cc
  6320. * src/PeerListenCommand.cc
  6321. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Bump up version number to 0.13.0rc
  6323. * configure.ac
  6324. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Updated man page and some usage text.
  6326. * doc/aria2c.1.txt
  6327. * src/usage_text.h
  6328. * po/*.{po, gmo}
  6329. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Updated translations. Added Finnish and Hebrew translations.
  6331. Great thanks to all translators!
  6332. * po/*.{po, gmo}
  6333. * po/LINGUAS
  6334. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Log more detailed information about each message.
  6336. * src/DHTQueryMessage.{h, cc}
  6337. * src/DHTGetPeersMessage.{h, cc}
  6338. * src/DHTFindNodeReplyMessage.{h, cc}
  6339. * src/DHTGetPeersReplyMessage.{h, cc}
  6340. * src/DHTAnnouncePeerMessage.{h, cc}
  6341. * src/DHTResponseMessage.{h, cc}
  6342. * src/DHTFindNodeMessage.{h, cc}
  6343. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Use constants defined in prefs.h
  6345. * src/option_processing.cc
  6346. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6348. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Make room for future enchancements for IPv6 addresses.
  6350. Bump up version number of dht.dat file format to 2.
  6351. Not compatible with previous version.
  6352. * src/DHTRoutingTableSerializer.cc
  6353. * src/DHTRoutingTableDeserializer.cc
  6354. * test/DHTRoutingTableSerializerTest.cc
  6355. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Added handling for the return values from
  6357. PeerMessageUtil::createcompact().
  6358. * src/DefaultBtContext.cc (computeFastSet):
  6359. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Fixed abort when peer's ip address is IPv4-mapped address.
  6361. * src/DefaultBtContext.cc (computeFastSet)
  6362. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6363. cannot handle IPv4-mapped addresses.
  6364. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6365. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Proper return value handling for OpenSSL functions.
  6367. * src/LibsslDHKeyExchange.h
  6368. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6369. Random bytes generation using libgcrypt and OpenSSL.
  6370. * src/DHTUtil.{h, cc}
  6371. * test/DHTUtilTest.cc
  6372. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6374. received.
  6375. * src/DHTMessageReceiver.cc (receiveMessage)
  6376. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Fixed the bug that a return code is always 0. BUG#1897704
  6378. If error occurred during the download or there exist unfinished
  6379. downloads, aria2 returns with code 1.
  6380. * src/RequestGroupMan.{h, cc}
  6381. * src/MultiUrlRequestInfo.{h, cc}
  6382. * src/main.cc
  6383. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. IPv6 support for SocketCore class.
  6385. TODO: In SocketCore::establishConnection(), this is insufficient to
  6386. determin the failure of connect() here because the socket is
  6387. non-blocking state. The next addresses should be tried after select().
  6388. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6389. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6390. instead which address family independent.
  6391. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6392. information in a compact peer format which is for IPv4 only.
  6393. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6394. this is a spec of BitTorrent protocol.
  6395. * src/SocketCore.{h, cc}
  6396. * src/PeerMessageUtil.cc
  6397. * test/SocketCoreTest.cc
  6398. * test/PeerMessageUtilTest.cc
  6399. * test/DHTConnectionImplTest.cc
  6400. Handle IPv4-mapped addresses.
  6401. * src/DHTNode.cc: Now identity is determined by node id.
  6402. * src/DHTMessageTrackerEntry.cc
  6403. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6404. should handle it.
  6405. * src/DHTRoutingTableDeserializer.cc
  6406. * src/DHTMessageFactoryImpl.cc
  6407. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Change the unit of --stop option from a minute to a second.
  6409. * src/usage_text.h
  6410. * src/DownloadEngineFactory.cc
  6411. * src/OptionHandlerFactory.cc
  6412. * src/message.h
  6413. * src/TimedHaltCommand.cc
  6414. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Make listening socket non-block mode.
  6416. * src/FtpConnection.cc
  6417. * src/FtpNegotiationCommand.{h, cc}
  6418. * src/PeerListenCommand.cc
  6419. Fixed the bug that cause slow ftp negotiation.
  6420. * src/FtpNegotiationCommand.{h, cc}
  6421. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Added basic tag to --enable-dht, --dht-listen-port option.
  6423. * src/HelpItemFactory.cc (createHelpItems)
  6424. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Updated text.
  6426. * src/usage_text.h
  6427. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6429. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Determin _threadtholdSpeed in each constructor for
  6431. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6432. * src/ActivePeerConnectionCommand.{h, cc}
  6433. * src/PeerReceiveHandshakeCommand.{h, cc}
  6434. * src/BtSetup.cc
  6435. * src/BtConstants.h
  6436. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Added --bt-min-crypto-level and --bt-require-crypto options.
  6438. * src/OptionHandlerFactory.cc
  6439. * src/MSEHandshake.cc
  6440. * src/HelpItemFactory.cc
  6441. * src/option_processing.cc
  6442. * src/ReceiverMSEHandshakeCommand.cc
  6443. * src/prefs.h
  6444. * src/DefaultBtAnnounce.cc
  6445. * src/InitiatorMSEHandshakeCommand.cc
  6446. * src/usage_text.h
  6447. * test/MSEHandshakeTest.cc
  6448. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Bump version number to 0.13.0b
  6450. * configure.ac
  6451. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Updated doc.
  6453. * src/MessageDigestHelper.h:
  6454. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Use raw message digest as a token instead of its hexadecimal
  6456. representation.
  6457. * src/DHTTokenTracker.cc (generateToken)
  6458. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Added Message Stream Encryption(MSE) support.
  6460. Currently, aria2 accepts incoming connections with Obfuscation Header
  6461. and legacy BitTorrent Header and establishes connections with
  6462. Obfuscation Header first and if failed then retry with legacy
  6463. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6464. choose ARC4. The new option to change the default behavior is planned.
  6465. For tracker extension, "supportcrypto=1" is added statically.
  6466. * src/PeerInitiateConnectionCommand.{h, cc}
  6467. * src/PeerConnection.{h, cc}
  6468. * src/HandleRegistry.h
  6469. * src/SocketCore.h
  6470. * src/PeerReceiveHandshakeCommand.{h, cc}
  6471. * src/BtRegistry.{h, cc}
  6472. * src/PeerListenCommand.cc
  6473. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6474. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6475. * src/MSEHandshake.{h, cc}
  6476. * src/ARC4Encryptor.h
  6477. * src/ARC4Decryptor.h
  6478. * src/LibgcryptARC4Encryptor.h
  6479. * src/LibgcryptARC4Decryptor.h
  6480. * src/LibgcryptARC4Context.h
  6481. * src/LibsslARC4Encryptor.h
  6482. * src/LibsslARC4Decryptor.h
  6483. * src/LibsslARC4Context.h
  6484. * src/DHKeyExchange.h
  6485. * src/LibgcryptDHKeyExchange.h
  6486. * src/LibsslDHKeyExchange.h
  6487. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6488. * test/DefaultBtAnnounceTest.cc
  6489. * test/ARC4Test.cc
  6490. * test/DHKeyExchangeTest.cc
  6491. Removed prepareForRetry() because it is not used.
  6492. * src/PeerAbstractCommand.{h, cc}
  6493. * src/PeerInteractionCommand.{h, cc}
  6494. * src/PeerInitiateConnectionCommand.{h, cc}
  6495. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Added the ability to load nodes from torrent file. These nodes are
  6497. added to the routing table when downloading that torrent.
  6498. * src/BtContext.h
  6499. * src/DefaultBtContext.{h, cc}
  6500. * src/DHTSetup.cc
  6501. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6502. hostname and port pair, and resolves all of them.
  6503. * src/NameResolver.{h, cc}: Added reset().
  6504. * src/RequestGroup.cc
  6505. * test/DefaultBtContextTest.cc
  6506. * test/MockBtContext.h
  6507. Removed assert() from DefaultBtContext and throw exception instead.
  6508. * src/DefaultBtContext.cc
  6509. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Fixed segmentation fault bug when exiting if dht is disabled.
  6511. * src/RequestGroup.cc
  6512. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Fixed typo in log message and define the message in message.h
  6514. * src/TimedHaltCommand.cc
  6515. * src/message.h
  6516. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Included RecoverableException.h to fix compilation error.
  6518. * test/DHTMessageFactoryImplTest.cc
  6519. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6521. * test/DHTPingMessageTest.cc
  6522. * test/DHTGetPeersMessageTest.cc
  6523. * test/DHTFindNodeMessageTest.cc
  6524. * test/DHTAnnouncePeerMessageTest.cc
  6525. * test/MockDHTMessage.h
  6526. * test/MockDHTMessageFactory.h
  6527. * test/MockDHTMessageDispatcher.h: New class.
  6528. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6530. virtual.
  6531. * src/DHTMessageDispatcher.h
  6532. * src/DHTMessageDispatcherImpl.{h, cc}
  6533. * src/DHTSetup.cc
  6534. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Adding handling of DHT error message. Just log error message and
  6536. throw exception.
  6537. * src/DHTMessageFactoryImpl.cc
  6538. * test/DHTMessageFactoryImplTest.cc
  6539. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Added handling of dynamic cast failure.
  6541. * src/DHTNodeLookupTask.cc
  6542. * src/DHTPeerLookupTask.cc
  6543. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6544. Added the ability to stop aria2 itself when given time has passed
  6545. from start. Use --stop option to specify time in minutes.
  6546. When 0 is given, this feature is disabled.
  6547. * src/OptionHandlerFactory.cc
  6548. * src/TimeBasedCommand.h: Make _interval protected scope.
  6549. * src/HelpItemFactory.cc
  6550. * src/option_processing.cc
  6551. * src/prefs.h
  6552. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6553. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6554. Without this modification, the result list shows "ERR" when aria2 is
  6555. stopped by --stop option. It should be "INPR".
  6556. * src/DownloadEngine.{h, cc}
  6557. * src/DownloadEngineFactory.cc
  6558. * src/usage_text.h
  6559. * src/TimedHaltCommand.{h, cc}: New class.
  6560. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Bootstrap through node added by port message.
  6562. Currently bootstrap is executed if the number of buckets in routing
  6563. table is 1.
  6564. * src/BtPortMessage.{h, cc}
  6565. * src/DefaultBtMessageFactory.{h, cc}
  6566. * src/PeerInteractionCommand.cc
  6567. * test/BtPortMessageTest.cc
  6568. * test/MockDHTTask.h
  6569. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Extract the Peer class's member variables, which are only needed after
  6571. PeerInteractionCommand, into PeerSessionResource class.
  6572. This class is instantiated in PeerInteractionCommand class's ctor and
  6573. released in its dtor.
  6574. This will make Peer class lightweight and uses less memory for peers
  6575. which are not connected and wait in the queue.
  6576. * src/PeerChokeCommand.cc
  6577. * src/PeerSessionResource.{h, cc}
  6578. * src/PeerInteractionCommand.cc
  6579. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6580. * src/DefaultBtInteractive.cc
  6581. * src/BtPieceMessage.cc
  6582. * src/BtInterestedMessage.cc
  6583. * src/BtUnchokeMessage.cc
  6584. * src/DefaultPeerStorage.{h, cc}
  6585. * src/PeerInitiateConnectionCommand.cc
  6586. * src/ActivePeerConnectionCommand.cc
  6587. * src/BtNotInterestedMessage.cc
  6588. * src/DefaultBtMessageDispatcher.cc
  6589. * src/BtChokeMessage.cc
  6590. * src/BtRequestMessage.cc
  6591. * src/Peer.{h, cc}
  6592. * src/BtRegistry.h
  6593. * src/TrackerWatcherCommand.cc
  6594. * src/PeerReceiveHandshakeCommand.cc
  6595. * test/BtExtendedMessageTest.cc
  6596. * test/BtAllowedFastMessageTest.cc
  6597. * test/BtCancelMessageTest.cc
  6598. * test/DefaultPieceStorageTest.cc
  6599. * test/BtBitfieldMessageTest.cc
  6600. * test/BtHaveMessageTest.cc
  6601. * test/BtNotInterestedMessageTest.cc
  6602. * test/BtRequestMessageTest.cc
  6603. * test/PeerSessionResourceTest.cc
  6604. * test/DefaultBtMessageDispatcherTest.cc
  6605. * test/PeerTest.cc
  6606. * test/BtInterestedMessageTest.cc
  6607. * test/BtRejectMessageTest.cc
  6608. * test/BtChokeMessageTest.cc
  6609. * test/DefaultPeerStorageTest.cc
  6610. * test/BtHaveNoneMessageTest.cc
  6611. * test/BtHaveAllMessageTest.cc
  6612. * test/DefaultExtensionMessageFactoryTest.cc
  6613. * test/BtUnchokeMessageTest.cc
  6614. * test/DefaultBtMessageFactoryTest.cc
  6615. * test/HandshakeExtensionMessageTest.cc
  6616. * test/UTPexExtensionMessageTest.cc
  6617. * test/DefaultBtRequestFactoryTest.cc
  6618. * test/BtPieceMessageTest.cc
  6619. Removed typedef PeerStats.
  6620. * src/PeerStat.h
  6621. * src/SegmentMan.cc
  6622. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Added std namespace to copy, remove_copy, back_inserter,
  6624. front_inserter.
  6625. * src/RequestGroupMan.cc
  6626. * src/DefaultPieceStorage.cc
  6627. * src/StreamFileAllocationEntry.cc
  6628. * src/BtFileAllocationEntry.cc
  6629. * src/RequestGroup.cc
  6630. * src/MetalinkEntry.cc
  6631. * src/DelegatingPeerListProcessor.cc
  6632. * src/DefaultBtRequestFactory.cc
  6633. * src/DefaultBtMessageDispatcher.cc
  6634. * src/version_usage.cc: Included <algorithm>
  6635. * src/main.cc
  6636. * src/MetalinkParserController.cc
  6637. * src/DefaultBtContext.cc
  6638. * src/DownloadEngineFactory.cc
  6639. * src/a2algo.h
  6640. Removed.
  6641. * test/StreamUriListParserTest.cc
  6642. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6644. ActivePeerConnectionCommand when it is given and
  6645. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6646. * src/ActivePeerConnectionCommand.{h, cc}
  6647. * src/BtSetup.cc
  6648. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Only add socket to DownloadEngine's select routine when peer or
  6650. localhost is unchoked and interested. This lowers CPU usage a
  6651. little bit.
  6652. * src/PeerInteractionCommand.cc
  6653. * src/PeerAbstractCommand.{h, cc}
  6654. * src/BtInteractive.h
  6655. * src/DefaultBtInteractive.{h, cc}
  6656. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Revert previous change because get_peers message is needed for
  6658. announce_peer anyway.
  6659. * src/DHTGetPeersCommand.cc
  6660. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Request peers thought DHT only when download hasn't finished.
  6662. * src/DHTGetPeersCommand.cc
  6663. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6665. * src/DHTBucketRefreshTask.{h, cc}
  6666. * src/DHTSetup.cc
  6667. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6669. standard classes.
  6670. Included string.h where mem* function are used.
  6671. Added namespace aria2.
  6672. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Create directory before saving DHT routing table.
  6674. Now ios::failure is now handled properly.
  6675. * src/DHTAutoSaveCommand.cc
  6676. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Removed unnecessary cerr.
  6678. * src/DownloadEngine.cc
  6679. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. Catch exception inside DHTMessageReceiver::receiveMessage().
  6681. Log unknown message.
  6682. * src/DHTMessageReceiver.{h, cc}
  6683. * src/DHTMessageFactory.h
  6684. * src/DHTMessageFactoryImpl.{h, cc}
  6685. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6686. * src/DHTInteractionCommand.cc
  6687. * src/DHTUnknownMessage.{h, cc}
  6688. * test/DHTUnknownMessageTest.cc
  6689. * test/MockDHTMessageFactory.h
  6690. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. Commented out ip address comparison because a host can have multiple
  6692. ip addresses and it is hard to predict the hostname is resolved into
  6693. which one.
  6694. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6695. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. * po/Makefile.in: Removed since this is generated by configure.
  6697. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Fixed compiler warning about redefinition of SIZE_MAX.
  6699. Use common.h instead of config.h directly here.
  6700. * src/Platform.{h, cc}
  6701. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6702. here.
  6703. * common.h
  6704. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6705. Updated gettext related files.
  6706. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6707. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6708. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Added DHT functionality, compatible with mainline.
  6710. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6711. You may need to specify entry point to DHT network using
  6712. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6713. Use --dht-listen-port to specify port number. Make sure that your
  6714. firewall configuration can pass through UDP traffic to the port.
  6715. The routing table is saved in $HOME/.aria2/dht.dat.
  6716. * src/DHT*
  6717. * src/BNode.{h, cc}
  6718. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6719. particular torrent.
  6720. * src/Data.cc: Rewritten ctor.
  6721. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6722. --dht-entry-point.
  6723. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6724. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6725. ends, remove BtContext from DHTPeerAnnounceStorage.
  6726. * src/BtPortMessage.{h, cc}: Rewritten.
  6727. * src/message.h
  6728. * src/OptionHandlerImpl.cc
  6729. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6730. --dht-entry-point.
  6731. * src/Dictionary.{h, cc} (remove): New function.
  6732. * src/prefs.h
  6733. * src/DefaultBtMessageFactory.h
  6734. * src/BtHandshakeMessage.cc
  6735. * src/ActivePeerConnectionCommand.cc
  6736. * src/SocketCore.{h, cc}: Added datagram socket support.
  6737. * src/DefaultBtMessageFactory.cc
  6738. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6739. Create DHT commands.
  6740. * src/BtMessageFactory.h
  6741. * src/PeerMessageUtil.{h, cc}
  6742. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Fixed the bug that log file is not written when configuration file doesn't exist.
  6744. This is caused by using Logger class before LogFactory is not configured.
  6745. BUG #1875079
  6746. * src/option_processing.cc
  6747. Warning message "configuration doesn't exist" is only printed when --conf is
  6748. given.
  6749. * src/option_processing.cc
  6750. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6752. ShaVisitor is now deprecated and slated to be removed.
  6753. * src/DefaultBtContext.cc
  6754. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. Externalize message to message.h
  6756. * src/Platform.cc
  6757. * src/message.h
  6758. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Set default domain and default path to cookie.
  6760. * src/HttpResponse.cc
  6761. * src/CookieBox.{h, cc}
  6762. * src/CookieParser.{h, cc}
  6763. * test/CookieParserTest.cc
  6764. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. Added --no-conf and --conf-path command-line option.
  6766. --no-conf option disables loading aria2.conf file.
  6767. --conf-path option changes the configuration file path. The default
  6768. file path is $HOME/.aria2/aria2.conf
  6769. Added a warning message when the configuration file is not found.
  6770. * src/HelpItemFactory.cc
  6771. * src/option_processing.cc
  6772. * src/prefs.h
  6773. * src/usage_text.h
  6774. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Added the message to inform users that other help categories are
  6776. available in -h option.
  6777. * src/version_usage.cc
  6778. * src/TagContainer.{h, cc}
  6779. * test/TagContainerTest.cc
  6780. * src/TaggedItem.{h, cc}
  6781. * test/TaggedItemTest.cc
  6782. * src/HelpItem.h
  6783. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6785. from PiecedSegment's ctor.
  6786. Previously Piece::getAllMissingBlockIndexes() is called from
  6787. PiecedSegment() but it is rather expensive since only first element is
  6788. used.
  6789. * src/PiecedSegment.cc
  6790. * src/Piece.{h, cc}
  6791. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6793. each time these functions are called.
  6794. * src/BitfieldMan.{h, cc}
  6795. * test/BitfieldManTest.cc
  6796. * src/array_fun.h
  6797. * test/array_funTest.cc
  6798. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6799. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6800. filtered. Removed unnecessary cast to int32_t.
  6801. * src/BitfieldMan.{h, cc}
  6802. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6804. payload length(4bytes) are received. This happens because lenbufLength
  6805. is not updated in this particular case and successive call of
  6806. receiveMessage() overwrites payload length with bytes recieved which
  6807. are payload body.
  6808. * src/PeerConnection.{h, cc}
  6809. * src/message.h
  6810. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6812. peer if there are peers that have same ipaddr and port.
  6813. I've experiened segmentation fault and "pure virtual function was
  6814. called" error.
  6815. * src/Peer.h
  6816. * test/PeerTest.cc
  6817. * src/DefaultPeerStorage.cc
  6818. * test/DefaultPeerStorageTest.cc
  6819. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. Removed a call to isPowerOf() because it is no longer necessary here
  6821. and a request block is not always power of 2.
  6822. BUG#1866924
  6823. * src/PeerMessageUtil.cc (checkLength)
  6824. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Fixed the bug that always first found Segment is removed from
  6826. usedSegmentEntries. Removed unused functions.
  6827. * src/SegmentMan.{h, cc}
  6828. * test/SegmentManTest.cc
  6829. Fixed the bug that ServerHost is not removed.
  6830. * src/RequestGroup.cc
  6831. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Fixed the bug that SegmentMan::completeSegment() is not called
  6833. even if Segment is complete when --lowest-speed-limit is enabled.
  6834. BUG#1864525
  6835. * src/DownloadCommand.{h, cc}
  6836. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Fixed: hash algorithm 'sha1' is always used.
  6838. * src/DownloadCommand.cc (validatePieceHash)
  6839. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Added --enable-peer-exchange command-line option.
  6841. * src/OptionHandlerFactory.cc
  6842. * src/HelpItemFactory.cc
  6843. * src/option_processing.cc
  6844. * src/usage_text.h
  6845. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6846. Move extension from BtRuntime to ExtensionMessageFactory, because
  6847. extension can be specified per peer, not per torrent.
  6848. * src/DefaultBtInteractive.cc
  6849. * src/BtRuntime.h
  6850. * src/ExtendedMessagingAware.h
  6851. * src/ExtensionMessageFactory.h
  6852. * src/DefaultExtensionMessageFactory.cc
  6853. * test/DefaultExtensionMessageFactoryTest.cc
  6854. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Added categorized option help. Specify category using --help option.
  6856. Also added the ability to search options in forward match.
  6857. * src/HelpItem.{h, cc}
  6858. * test/HelpItemTest.cc
  6859. * src/HelpItemFactory.{h, cc}
  6860. * src/TagContainer.{h, cc}
  6861. * test/TagContainerTest.cc
  6862. * src/option_processing.cc
  6863. * src/prefs.h
  6864. * src/TaggedItem.{h, cc}
  6865. * test/TaggedItemTest.cc
  6866. * src/version_usage.cc
  6867. * src/help_tags.h
  6868. * src/usage_text.h
  6869. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Fixed segmentation fault when bad torrent metainfo is parsed.
  6871. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6872. and then throw exception or skip it.
  6873. * src/DefaultBtContext.{h, cc}
  6874. * test/DefaultBtContextTest.cc
  6875. * src/AnnounceList.cc
  6876. * src/CompactPeerListProcessor.cc
  6877. * src/message.h
  6878. * src/DefaultBtAnnounce.{h, cc}
  6879. * test/DefaultBtAnnounceTest.cc
  6880. * src/BencodeVisitor.cc
  6881. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. Added missing "B"(=Byte). So now the message looks like this:
  6883. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6884. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6885. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Show the seed ratio after torrent downloads.
  6887. For example, after torrent download completed and --seed-time and
  6888. --seed-ratio conditions are fulfilled, following message is printed
  6889. right after "Download complete: .....":
  6890. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6891. * src/RequestGroupMan.cc
  6892. * src/RequestGroup.{h, cc}
  6893. * src/message.h
  6894. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Remove a defunct control file. A defunct control file means that while
  6896. it exists, but the corresponding download file is missing.
  6897. After its removal, a download restarts from the beginning.
  6898. * src/RequestGroup.cc
  6899. * src/message.h
  6900. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Allocate bitfield in Peer when it is really used. More specifically,
  6902. bitfield in Peer is allocated after the connection is established and
  6903. deallocated when the connection is dropped.
  6904. Since 2 parameters(piece length and total length) was removed from the
  6905. constructor of Peer class, many test classes were modified accordingly.
  6906. See svn log for more detailed information.
  6907. * src/PeerInteractionCommand.cc
  6908. * src/CompactPeerListProcessor.cc
  6909. * src/Peer.cc
  6910. * src/DefaultPeerListProcessor.cc
  6911. * src/PeerListenCommand.cc
  6912. * src/PeerReceiveHandshakeCommand.cc
  6913. Fixed memory leak
  6914. * src/Piece.cc
  6915. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6917. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6918. command-line options.
  6919. * src/option_processing.cc
  6920. * src/ActivePeerConnectionCommand.cc
  6921. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Send have message to peer if it already has the piece.
  6923. * src/BtHaveMessage.{h, cc}
  6924. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6926. port.
  6927. * src/DefaultPeerStorage.{h, cc}
  6928. * test/DefaultPeerStorageTest.cc
  6929. * src/HandshakeExtensionMessage.cc
  6930. * test/HandshakeExtensionMessageTest.cc
  6931. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6932. * src/PeerStorage.h
  6933. * test/MockPeerStorage.h
  6934. * src/PeerListenCommand.cc
  6935. * src/PeerReceiveHandshakeCommand.cc
  6936. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Added --metalink-enable-unique-protocol option.
  6938. * src/Metalink2RequestGroup.cc
  6939. * src/option_processing.cc
  6940. * src/prefs.h
  6941. * src/version_usage.cc
  6942. * doc/aria2c.1.txt
  6943. * doc/aria2c.1
  6944. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Allow a peer in incomingPeer to be added peers.
  6946. * src/DefaultPeerStorage.cc
  6947. * test/DefaultPeerStorageTest.cc
  6948. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6950. I could reproduce this bug in following procedure:
  6951. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6952. 2. Restart aria2.
  6953. 3. You see the download stopped around 99%.
  6954. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6955. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6956. If timeout is reached, then _nextCommand is unused and it may contains
  6957. segments and they won't be canceled. Actually, timeout is not needed
  6958. here because if the server dropped connection, then retry is made.
  6959. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. Added uTorrent compatible Peer Exchange.
  6961. * src/BencodeVisitor.{h, cc}
  6962. * test/BencodeVisitorTest.cc
  6963. * src/BtConstants.h
  6964. * src/BtContext.h: Added 'private' flag.
  6965. * src/BtExtendedMessage.{h, cc}
  6966. * test/BtExtendedMessageTest.cc
  6967. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6968. reserved field.
  6969. * test/BtHandshakeMessageTest.cc
  6970. * src/BtMessageFactory.h
  6971. * src/BtRegistry.h
  6972. * src/BtRuntime.h: This class holds default extension message IDs for
  6973. aria2. By default, aria2 uses ID 8 for ut_pex.
  6974. * src/DefaultBtContext.cc
  6975. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6976. When it is true, aria2 enables ut_pex. This value is set by
  6977. PeerInteractionCommand.
  6978. * src/DefaultBtMessageFactory.{h, cc}
  6979. * test/DefaultBtMessageFactoryTest.cc
  6980. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6981. handling to DefaultBtInteractive class.
  6982. * src/DefaultExtensionMessageFactory.{h, cc}
  6983. * test/DefaultExtensionMessageFactoryTest.cc
  6984. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6985. the container(peers and incomingPeers. The equality is determined by
  6986. Peer::id).
  6987. * test/DefaultPeerStorageTest.cc
  6988. * src/ExtensionMessage.h
  6989. * test/MockExtensionMessage.h
  6990. * src/ExtensionMessageFactory.h
  6991. * test/MockExtensionMessageFactory.h
  6992. * src/HandshakeExtensionMessage.{h, cc}
  6993. * test/HandshakeExtensionMessageTest.cc
  6994. * src/MetaEntry.h
  6995. * src/Peer.{h, cc}
  6996. * src/PeerInteractionCommand.cc
  6997. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6998. addIncomingPeer.
  6999. * src/PeerMessageUtil.{h, cc}
  7000. * src/PeerObject.h
  7001. * src/UTPexExtensionMessage.{h, cc}
  7002. * test/UTPexExtensionMessageTest.cc
  7003. * src/message.h
  7004. * src/prefs.h
  7005. Fixed the bug that returns incomplete data when it contains null
  7006. character. A convenient constructor was also added.
  7007. * src/Data.{h, cc}
  7008. Rewritten.
  7009. * src/CompactPeerListProcessor.cc
  7010. Fixed typos.
  7011. * src/message.h
  7012. * src/MetaFileUtil.cc
  7013. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. Added "Status Legend" label to the explanation text of 'stat' in
  7015. download result and moved it to the last. BUG#1848214
  7016. * src/RequestGroupMan.cc
  7017. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7019. * src/Makefie.am
  7020. * test/Makefile.am
  7021. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Fixed the bug that prevents aria2 from loading cookie file when expire
  7023. value is greater than 2^31-1. BUG#1851066
  7024. * src/CookieBoxFactory.cc
  7025. * test/CookieBoxFactoryTest.cc
  7026. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Fixed possible memory leak when an exception is thrown.
  7028. * src/XML2SAXMetalinkProcessor.cc
  7029. Added Expat support. If both libxml2 and Expat are installed, then
  7030. libxml2 is used by default.
  7031. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7032. ExpatMetalinkProcessor according to the configuration.
  7033. * src/ExpatMetalinkProcessor.{h, cc}
  7034. * src/main.cc: Removed libxml2 specific header and init/free function.
  7035. * src/MetalinkProcessorFactory.{h, cc}
  7036. * src/MetalinkHelper.cc
  7037. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7038. * src/MetalinkProcessor.h
  7039. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7040. MetalinkProcessorTest is used instead.
  7041. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7042. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7043. MetalinkProcessorFactory::newInstance().
  7044. * m4/libexpat.m4
  7045. * configure.ac: Added configuration options for libexpat.
  7046. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7047. Disabled -s option in metalink download.
  7048. * src/Metalink2RequestGroup.cc
  7049. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. If several protocols are available for a mirror in metalink file,
  7051. aria2 now use one of them. --metalink-preferred-protocol option was
  7052. added to specify the preference of protocol.
  7053. * src/AbstractCommand.cc
  7054. * src/OptionHandlerFactory.cc
  7055. * src/ServerHost.{h, cc}
  7056. * src/Metalink2RequestGroup.cc
  7057. * src/RequestGroup.{h, cc}
  7058. * test/RequestGroupTest.cc
  7059. * src/option_processing.cc
  7060. * src/prefs.h
  7061. * src/HttpResponseCommand.cc
  7062. * src/MetalinkResource.{h, cc}
  7063. * src/FtpNegotiationCommand.cc
  7064. * src/MetalinkEntry.{h, cc}
  7065. * src/MetalinkEntryTest.cc
  7066. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Code cleanup and added debug log.
  7068. * src/PeerConnection.cc
  7069. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Compiler error fix: applied the patch by Tiziano Mueller
  7071. * src/RequestGroup.cc
  7072. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7074. in stopped and completed event.
  7075. * src/AnnounceList.{h, cc}
  7076. * test/AnnounceListTest.cc
  7077. * src/DefaultBtAnnounce.cc
  7078. * test/DefaultBtAnnounceTest.cc
  7079. Sorted URLs.
  7080. * test/Metalink2RequestGroupTest.cc
  7081. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Removed unnecessary string copy. Updated doc and corrected indentation.
  7083. * src/Base64.cc
  7084. Fixed compilation warnings
  7085. * test/DataTest.cc
  7086. * test/HttpRequestTest.cc
  7087. * test/MetaFileUtilTest.cc
  7088. * test/RequestTest.cc
  7089. * Release 0.12.0
  7090. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Updated translations
  7092. * po/{de,fr,ja,nl,ru}.po
  7093. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7094. translations. Many thanks to translators.
  7095. * po/{ca,es,it,pt_BR,sv}.po
  7096. * po/LINGUAS
  7097. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Added a notice about URL
  7099. * src/version_usage.cc
  7100. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7101. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7102. aria2 repeatedly sends stopped request when tracker returns error code.
  7103. * src/AnnounceList.cc
  7104. * test/AnnounceListTest.cc
  7105. * src/AnnounceTier.h
  7106. Added a message when ctrl-c is hit.
  7107. Now second ctrl-c is also handled in signal handler.
  7108. * src/RequestGroupMan.{h, cc}
  7109. * src/RequestGroup.{h, cc}
  7110. * src/MultiUrlRequestInfo.cc
  7111. * src/DownloadEngine.cc
  7112. * src/TrackerWatcherCommand.cc
  7113. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Code cleanup
  7115. * src/Base64.cc (encode)
  7116. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Changed Direct/IO enable/disable procesure in file allocation routine.
  7118. * src/SingleFileAllocationIterator.cc
  7119. (SingleFileAllocationIterator):
  7120. Disable directIO if offset is not multiple of 512.
  7121. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7122. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7123. Enable created SingleFileAllocationIterator's directIO.
  7124. * src/FileAllocationEntry.cc
  7125. (FileAllocationEntry): Enable directIO here.
  7126. (~FileAllocationEntry): Disable directIO here.
  7127. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7129. * src/Peer.{h, cc}
  7130. * src/DefaultPieceStorage.cc
  7131. * test/DefaultPieceStorageTest.cc
  7132. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Rewritten direct I/O support routine
  7134. * src/SingleFileAllocationIterator.cc
  7135. * src/MultiDiskAdaptor.{h, cc}
  7136. * src/ByteArrayDiskWriter.h
  7137. * src/AbstractSingleDiskAdaptor.h
  7138. * src/AbstractDiskWriter.cc
  7139. * src/DefaultPieceStorage.cc
  7140. * src/DiskWriter.h
  7141. * src/BinaryStream.h
  7142. * src/IteratableChunkChecksumValidator.cc
  7143. * src/IteratableChecksumValidator.cc
  7144. * src/CheckIntegrityEntry.cc
  7145. * src/FileAllocationEntry.cc
  7146. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Fixed typo
  7148. * src/version_usage.cc
  7149. Updated doc
  7150. * doc/aria2c.1.txt
  7151. * doc/aria2c.1
  7152. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Fixed compile error without message digest support.
  7154. * src/FileMetalinkParserState.cc
  7155. * src/MetalinkParserController.{h, cc}
  7156. * test/XML2SAXMetalinkProcessorTest.cc
  7157. * test/MetalinkParserControllerTest.cc
  7158. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Enable direct I/O support in checksum checking.
  7160. * src/IteratableChunkChecksumValidator.{h, cc}
  7161. * test/IteratableChunkChecksumValidatorTest.cc
  7162. * src/CheckIntegrityEntry.cc
  7163. * src/PieceHashCheckIntegrityEntry.cc
  7164. * src/IteratableChecksumValidator.{h, cc}
  7165. * src/BtCheckIntegrityEntry.cc: Added doc.
  7166. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Added --allow-piece-length-change option.
  7168. * src/DefaultBtProgressInfoFile.cc
  7169. * test/DefaultBtProgressInfoFileTest.cc
  7170. * src/OptionHandlerFactory.cc
  7171. * src/option_processing.cc
  7172. * src/prefs.h
  7173. * src/version_usage.cc
  7174. * doc/aria2c.1.txt
  7175. * doc/aria2c.1
  7176. Fixed: duplicated result entry appears when exception is thrown in
  7177. RequestGroup::createInitiateConnectionCommand().
  7178. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7179. Add RequestGroup to _requestGroup after RequetGroup::
  7180. createInitiateConnectionCommand() succeeds.
  7181. Externalized message
  7182. * src/XML2SAXMetalinkProcessor.cc
  7183. * src/message.h
  7184. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. Forced download abort when received negative response from http/ftp
  7186. server.
  7187. * src/HttpResponseCommand.cc
  7188. * src/FtpNegotiationCommand.cc
  7189. * src/HttpResponse.cc
  7190. * src/FtpConnection.cc
  7191. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7193. the predecessor, Xml2MetalinkParser class.
  7194. I tested them against 94KB metalink file with 1234 chunk checksums.
  7195. The new one parsed it in 22msec, while it took 6000msec with old one.
  7196. * src/XML2SAXMetalinkProcessor.{h, cc}
  7197. * test/XML2SAXMetalinkProcessorTest.cc
  7198. * src/MetalinkParserController.{h, cc}
  7199. * test/MetalinkParserControllerTest.cc
  7200. * src/MetalinkParserState.h: Also added 16 subclasses.
  7201. * src/main.cc
  7202. * src/Metalink2RequestGroup.cc
  7203. * src/MetalinkHelper.cc
  7204. * src/MetalinkEntry.cc
  7205. * src/ChunkChecksum.h
  7206. Rewritten Base64 class for better performance.
  7207. * src/Base64.{h, cc}
  7208. * test/Base64Test.cc
  7209. * src/HttpRequest.cc
  7210. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Fixed the bug#1841757: aria2 will connect to server to only get
  7212. file size.
  7213. * src/StreamFileAllocationEntry.cc
  7214. * src/option_processing.cc
  7215. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7216. downloads.
  7217. * src/FtpNegotiationCommand.cc
  7218. Suppressed wrong message when finding PreDownloadHandler
  7219. * src/RequestGroup.cc
  7220. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. Updated usage
  7222. * src/version_usage.cc
  7223. Updated man page
  7224. * doc/aria2c.1.txt
  7225. * doc/aria2c.1
  7226. Updated po files
  7227. * po/aria2c.pot
  7228. * po/*.po
  7229. * po/*.gmo
  7230. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Eliminated g++-4.2 warning
  7232. * src/DownloadHandlerConstants.{h, cc}
  7233. * src/Util.cc
  7234. * test/MetaFileUtilTest.cc
  7235. * test/PStringBuildVisitorTest.cc
  7236. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7237. * src/RequestGroup.cc
  7238. * src/BtCheckIntegrityEntry.cc
  7239. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Fixed a2io.h
  7241. * src/a2io.h
  7242. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Added direct I/O support. The current implementation uses O_DIRECT,
  7244. which is not posix standard and is tested on linux 2.6.21.
  7245. Currently only file allocation uses direct I/O.
  7246. * src/SingleFileAllocationIterator.{h, cc}
  7247. * test/SingleFileAllocationIteratorTest.cc
  7248. * src/MultiFileAllocationIterator.{h, cc}
  7249. * test/MultiFileAllocationIteratorTest.cc
  7250. * src/BinaryStream.h
  7251. * src/DiskWriter.h
  7252. * src/AbstractDiskWriter.{h, cc}
  7253. * src/ByteArrayDiskWriter.h
  7254. * src/DiskAdaptor.h
  7255. * src/AbstractSingleDiskAdaptor.{h, cc}
  7256. * src/MultiDiskAdaptor.{h, cc}
  7257. * src/FileAllocationEntry.cc
  7258. * src/Util.{h, cc}
  7259. * src/OptionHandlerFactory.cc
  7260. * src/prefs.h
  7261. * src/version_usage.cc
  7262. * src/option_processing.cc
  7263. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7264. handleException.
  7265. * src/MultiFileAllocationIterator.cc
  7266. Added EINTR handling
  7267. * src/SocketCore.cc
  7268. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Updated usage
  7270. * src/version_usage.cc
  7271. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Applied Ross's patch for MinGW port.
  7273. * src/DownloadEngine.h
  7274. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7275. Set Content-Type to SingleFileDownloadContext when http response is
  7276. received.
  7277. * src/HttpResponseCommand.cc
  7278. * src/HttpResponse.{h, cc}
  7279. * test/HttpResponseTest.cc
  7280. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Rewritten to add content-type support.
  7282. * src/DownloadHandler.{h, cc}
  7283. * src/BtPostDownloadHandler.{h, cc}
  7284. * test/BtPostDownloadHandlerTest.cc
  7285. * src/MetalinkPostDownloadHandler.{h, cc}
  7286. * test/MetalinkPostDownloadHandlerTest.cc
  7287. * src/PostDownloadHandler.{h, cc}
  7288. * src/DownloadHandlerConstants.{h, cc}
  7289. * src/RequestGroup.cc
  7290. * src/HttpResponseCommand.cc
  7291. * src/FtpNegotiationCommand.cc
  7292. * src/SingleFileDownloadContext.{h, cc}
  7293. * src/RequestGroup.h
  7294. * src/RequestGroupCriteria.h
  7295. * src/ContentTypeRequestGroupCriteria.h
  7296. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7297. If it is give, metalink/torrent file is not written to the disk, but
  7298. just is kept in memory. Parsing is occurred on memory.
  7299. * src/MetalinkHelper.{h, cc}
  7300. * src/MetalinkProcessor.h
  7301. * src/Xml2MetalinkProcessor.{h, cc}
  7302. * test/Xml2MetalinkProcessorTest.cc
  7303. * src/DownloadHandlerFactory.{h, cc}
  7304. * test/DownloadHandlerFactoryTest.cc
  7305. * src/PreDownloadHandler.{h, cc}
  7306. * src/OptionHandlerFactory.cc
  7307. * src/DefaultBtContext.{h, cc}
  7308. * test/DefaultBtContextTest.cc
  7309. * src/version_usage.cc
  7310. * src/Metalink2RequestGroup.{h, cc}
  7311. * src/RequestGroup.{h, cc}
  7312. * src/a2functional.h
  7313. * test/a2functionalTest.cc
  7314. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7315. * src/OptionHandlerImpl.h
  7316. * src/prefs.h
  7317. * src/Util.{h, cc}
  7318. * test/UtilTest.cc
  7319. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7320. memory usage.
  7321. * src/RequestGroupMan.{h, cc}
  7322. * src/DownloadEngine.cc
  7323. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7324. WeakHandle to SharedHandle because WeakHandle could be null.
  7325. * src/RequestGroup.{h, cc}
  7326. * src/DownloadEngineFactory.cc
  7327. * src/DownloadResult.h
  7328. Set totalLength after download finished
  7329. * src/UnknownLengthPieceStorage.{h, cc}
  7330. Keep torrent file specified in metalink in memory.
  7331. * src/Metalink2RequestGroup.cc
  7332. * src/BtDependency.cc
  7333. * src/TrueRequestGroupCriteria.h
  7334. Fixed the bug: seekg is used where seekp should be used.
  7335. * src/ByteArrayDiskWriter.cc
  7336. * test/ByteArraydiskWriterTest.cc
  7337. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. Fixed syntax error
  7339. * test/SequenceTest.cc
  7340. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7342. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7343. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7344. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7345. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Added the check to see whether ares_host_callback accepts timeouts
  7347. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7348. * src/NameResolver.{h, cc}
  7349. * m4/libcares.m4
  7350. * configure.ac: Set C++ for language choice.
  7351. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Fixed: compilation fails without c-ares/ares
  7353. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7354. Generate http/ftp commands only when download is incomplete.
  7355. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7356. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Corrected typo. Examples are removed since they are available in man
  7358. page.
  7359. * src/version_usage.cc
  7360. Updated man page.
  7361. * doc/aria2c.1
  7362. * doc/aria2c.1.txt
  7363. * doc/makeman: Commented out sed command.
  7364. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Throw DlAbortEx when a remote file is not found.
  7366. * src/HttpResponse.cc
  7367. * src/FtpNegotiationCommand.cc
  7368. * src/message.h
  7369. Overwrite an existing file if --allow-overwrite=true is given.
  7370. * src/RequestGroup.cc
  7371. Removed unused functions
  7372. * src/AbstractCommand.h
  7373. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. Removed 'extern' from 'extern typedef ...' in src/*.h
  7375. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Updated usage
  7377. * src/version_usage.cc
  7378. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Trim announce URL
  7380. * src/DefaultBtContext.cc
  7381. * test/ShaVisitorTest.cc
  7382. Trim argument s. Give trimed s to exception constructor.
  7383. * src/Util.cc (parseInt)(parseLLInt)
  7384. * test/UtilTest.cc
  7385. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Set precision back to 1.
  7387. * src/ConsoleStatCalc.cc (calculateStat)
  7388. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Replaced strtol with Util::parseInt
  7390. * src/ChunkedEncoding.cc
  7391. * src/HttpConnection.cc
  7392. * src/CookieBoxFactory.cc
  7393. * src/ParameterizedStringParser.cc
  7394. * src/Util.cc
  7395. * test/UtilTest.cc
  7396. * test/OptionHandlerTest.cc
  7397. * src/Request.cc
  7398. Throw exception when empty string is given. The message for exception
  7399. changed.
  7400. * src/Util.cc (parseInt)(parseLLInt)
  7401. * src/message.h
  7402. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7404. set to 1.
  7405. * src/ConsoleStatCalc.cc (calculateStat)
  7406. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Preallocate non-requested file which is adjacent forward to requested
  7408. file('requested' files means the files given in --select-file option)
  7409. if they share a same piece.
  7410. This fixes long pause in the file system which doesn't support sparse
  7411. files like FAT32 while downloading.
  7412. * src/MultiFileAllocationIterator.{h, cc}
  7413. * test/MultiFileAllocationIteratorTest.cc
  7414. * src/FileEntry.{h, cc}
  7415. Removed unused _option.
  7416. * src/MultiDiskAdaptor.h
  7417. * test/MultiDiskAdaptorTest.cc
  7418. * src/DefaultPieceStorage.cc
  7419. Set the default value of --seed-ratio to 1.0.
  7420. If 0.0 is given, then seeding continues regardless of share ratio.
  7421. * src/version_usage.cc
  7422. * src/option_processing.cc
  7423. * src/BtSetup.cc
  7424. * doc/aria2c.1.txt
  7425. * doc/aria2c.1
  7426. Fixed: Selective download is not working in BitTorrent
  7427. * src/RequestGroup.cc
  7428. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7429. * src/PieceStorage.h
  7430. * test/MockPieceStorage.h
  7431. * src/UnknownLengthPieceStorage.h
  7432. * src/DefaultPieceStorage.{h, cc}
  7433. * src/Metalink2RequestGroup.cc
  7434. * src/RequestGroup.cc
  7435. * src/Sequence.h
  7436. * test/SequenceTest.cc
  7437. * src/IntSequence.h
  7438. * src/message.h
  7439. * src/Util.{h, cc}
  7440. * test/UtilTest.cc
  7441. Added new function 'parse' to catch exception thrown by subclass's
  7442. parseArg
  7443. * src/OptionHandler.h
  7444. * src/OptionParser.cc
  7445. * src/NameMatchOptionHandler.h
  7446. * src/OptionHandlerImpl.h
  7447. * test/OptionHandlerTest.cc
  7448. Added IntegerRangeOptionHandler. Used for --listen-port and
  7449. --select-file. Now --listen-port accepts range of port.
  7450. * src/OptionHandlerFactory.cc
  7451. * src/version_usage.cc
  7452. * src/OptionHandlerImpl.h
  7453. * src/option_processing.cc
  7454. * src/BtSetup.cc
  7455. * src/PeerListenCommand.{h, cc}
  7456. * doc/aria2c.1.txt
  7457. * doc/aria2c.1
  7458. Implemented operator< for Exception class to provide easy way to print
  7459. exception stack trace.
  7460. * src/Exception.{h, cc}
  7461. * src/main.cc
  7462. * src/option_processing.cc
  7463. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. * src/version_usage.cc
  7465. (showVersion): Reworked.
  7466. (showUsage): Added examples.
  7467. Removed Hint for total length and file name.
  7468. * src/Metalink2RequestGroup.cc
  7469. * src/RequestGroup.{h, cc}
  7470. * src/HttpResponseCommand.cc
  7471. * src/FtpNegotiationCommand.cc
  7472. Now --follow-torrent and --follow-metalink option work properly.
  7473. * src/RequestGroup.cc
  7474. Updated man page
  7475. * doc/aria2c.1.txt
  7476. * doc/aria2c.1
  7477. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Removed.
  7479. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7480. Use Segment::operator==()
  7481. * src/HttpConnection.cc
  7482. * src/Segment.h
  7483. Updated usage
  7484. * src/version_usage.cc
  7485. Added EINTR treatment.
  7486. * src/SocketCore.cc
  7487. * src/AbstractDiskWriter.cc
  7488. Rewritten.
  7489. * src/Util.cc (rangedFileCopy)
  7490. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. Fixed typo.
  7492. * src/version_usage.cc
  7493. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Implemented. Now -c option works fine.
  7495. * src/DefaultPieceStorage.cc (markPiecesDone)
  7496. * test/DefaultPieceStorageTest.cc
  7497. Removed.
  7498. * src/SegmentMan.{h, cc}
  7499. (markAllPiecesDone)
  7500. (markPieceDone)
  7501. Synchronized po files with
  7502. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7503. * src/fr.po
  7504. * src/ru.po
  7505. * src/de.po
  7506. * src/ja.po
  7507. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Added ifdef and some modifications to compile without BitTorrent,
  7509. Metalink, MessageDigest
  7510. support.
  7511. * src/PieceHashCheckIntegrityEntry.cc
  7512. * src/MetalinkEntry.h
  7513. * src/version_usage.cc
  7514. * src/main.cc
  7515. * src/DownloadEngine.{h, cc}
  7516. * src/Metalink2RequestGroup.cc
  7517. * src/Peer.cc
  7518. * src/RequestGroup.cc
  7519. * src/MetalinkHelper.cc
  7520. * test/DefaultPieceStorageTest.cc
  7521. * test/MetalinkPostDownloadHandlerTest.cc
  7522. * test/Metalink2RequestGroupTest.cc
  7523. Hide TOTAL SPD when all downloads complete.
  7524. * src/ConsoleStatCalc.cc
  7525. Log target system information.
  7526. * src/main.cc
  7527. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Now --metalink-location accepts a comma-deliminated list of locations.
  7529. * src/MetalinkEntry.{h, cc}
  7530. * test/MetalinkEntryTest.cc
  7531. * src/version_usage.cc
  7532. * src/Metalink2RequestGroup.cc
  7533. * src/Xml2MetalinkProcessor.cc
  7534. * test/Xml2MetalinkProcessorTest.cc
  7535. * doc/aria2c.1.txt
  7536. * doc/aria2c.1
  7537. * src/Util.cc (toUpper)(toLower): Rewritten.
  7538. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Added the ability to detect duplicate download entry which is about to
  7540. download the same file other RequestGroup is downloading.
  7541. * src/RequestGroup.cc
  7542. * src/HttpResponseCommand.cc
  7543. * src/FtpNegotiationCommand.cc
  7544. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. Recalculates download progress when loading a control file,
  7546. if the piece length of DownloadContext is different from the one saved
  7547. in the control file. Currently in-flight pieces are ignored.
  7548. * src/DefaultBtProgressInfoFile.cc
  7549. * test/DefaultBtProgressInfoFileTest.cc
  7550. * src/Util.{h, cc}
  7551. * test/UtilTest.cc
  7552. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Do not rotate tiers in announce-list.
  7554. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7555. AnnounceList::allTiersFailed() used instead to detect whether all
  7556. tiers are tried and failed.
  7557. * test/DefaultBtAnnounceTest.cc
  7558. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7559. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7560. * test/AnnounceListTest.cc
  7561. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7562. clause. Catch RecoverableException instead of DlRetryEx instead.
  7563. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7564. Implemented checksum validation feature(1 checksum for each file)
  7565. The validation takes place after the download.
  7566. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7567. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7568. * src/CheckIntegrityCommand.cc: Changed log message.
  7569. * src/Metalink2RequestGroup.cc: Set checksum to
  7570. SingleFileDownloadContext.
  7571. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7572. PieceHashCheckIntegrity class.
  7573. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7574. PieceHashCheckIntegrity class.
  7575. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7576. * src/IteratableValidator.h: New class.
  7577. * src/message.h
  7578. * src/CheckIntegrityEntry.{h, cc}
  7579. * src/IteratableChunkChecksumValidator.{h, cc}
  7580. * src/SingleFileDownloadContext.h
  7581. * src/DownloadCommand.cc
  7582. --allow-overwrite=true is no longer needed to check file integrity
  7583. before download in BitTorrent download.
  7584. * src/RequestGroup.cc (getInitialCommand)
  7585. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7586. throws exception.
  7587. * src/RequestGroupMan.cc (getInitialCommands)
  7588. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. urlencode the given url inside Request::parseUrl(...)
  7590. * src/Request.{h, cc}
  7591. * src/Util.{h, cc}
  7592. * test/RequestTest.cc
  7593. Removed #!metalink3! notation support because it is deleted from
  7594. the metalink specification.
  7595. * src/Request.{h, cc}
  7596. * test/RequestTest.cc
  7597. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Don't connect server before checking file integrity at startup, if
  7599. filesize and output file path are known.
  7600. * src/AbstractCommand.cc
  7601. * src/StreamFileAllocationEntry.cc
  7602. * src/Metalink2RequestGroup.cc
  7603. * src/RequestGroup.{h, cc}
  7604. * src/HttpResponseCommand.cc
  7605. * src/FtpNegotiationCommand.cc
  7606. Added DownloadFailureException. If it is thrown, RequestGroup should
  7607. halt.
  7608. * src/AbstractCommand.cc
  7609. * src/DownloadFailureException.h
  7610. * src/RequestGroup.cc
  7611. Catch RecoverableException, instead of DlAbortEx.
  7612. * src/RequestGroupMan.cc
  7613. * src/FillRequestGroupCommand.cc
  7614. * src/MetaFileUtil.cc
  7615. * src/IteratableChunkChecksumValidator.cc
  7616. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7617. getGID())
  7618. * src/CheckIntegrityCommand.cc
  7619. * src/message.h
  7620. Print gid instead of idx.
  7621. * src/RequestGroupMan.cc
  7622. Removed exception throwers declaration.
  7623. * src/DirectDiskAdaptor.{h, cc}
  7624. * src/SocketCore.{h, cc}
  7625. * src/MultiDiskAdaptor.{h, cc}
  7626. * src/HttpConnection.{h, cc}
  7627. * src/HttpResponse.{h, cc}
  7628. * src/DiskAdaptor.{h, cc}
  7629. * src/CopyDiskAdaptor.{h, cc}
  7630. * src/MultiDiskAdaptor.{h, cc}
  7631. * src/HttpHeaderProcessor.{h, cc}
  7632. * src/AbstractSingleDiskAdaptor.{h, cc}
  7633. * src/Util.{h, cc}
  7634. * test/UtilTest.cc
  7635. * src/DefaultDiskWriter.{h, cc}
  7636. * src/FtpConnection.{h, cc}
  7637. * src/AbstractDiskWriter.{h, cc}
  7638. Removed duplicate code.
  7639. * src/StreamCheckIntegrityEntry.cc
  7640. Removed unnecessary include.
  7641. * src/DiskWriter.h
  7642. Included Exception.h
  7643. * src/option_processing.cc
  7644. Included 2 files and added doc
  7645. * src/TrackerWatcherCommand.cc
  7646. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7647. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Changed CheckIntegrityEntry interface so that it can define
  7649. the action when all the chunk checksums are valid.
  7650. * src/CheckIntegrityEntry.h
  7651. * src/StreamCheckIntegrityEntry.{h, cc}
  7652. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7653. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7654. to exit rather than doing seeding. So, it would be good to toggle this
  7655. behavior.
  7656. * src/CheckIntegrityCommand.cc
  7657. * src/AbstractCommand.cc
  7658. * src/RequestGroup.cc
  7659. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Reflect the download length of in-flight pieces.
  7661. It makes the download length readout more precise.
  7662. * src/DefaultPieceStorage.{h, cc}
  7663. * test/DefaultPieceStorageTest.cc
  7664. * src/a2functional.h
  7665. * test/a2functionalTest.cc
  7666. Lower CPU load when --max-download-limit is used.
  7667. There is up and down in speed indicator when enabling
  7668. http-pipelining but a download goes well. I think the problem is that
  7669. because http-pipelining is enabled, DownloadCommand is created for
  7670. each segment and in its constructor, PeerStat::downloadStart() is
  7671. called. In PeerStat::downloadStart(), speed calculation object is
  7672. reseted, which makes download speed zero.
  7673. * src/DownloadCommand.cc
  7674. Rewritten using accumulate.
  7675. * src/RequestGroupMan.cc (calculateStat)
  7676. Code clearnup.
  7677. * src/FtpNegotiationCommand.cc
  7678. * src/HttpResponseCommand.cc
  7679. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7680. Fixed: Can not resume: aria2 reports download already finished.
  7681. * src/AbstractCommand.{h, cc}
  7682. * src/HttpResponseCommand.cc
  7683. * src/FtpNegotiateCommand.cc
  7684. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Now a file is stored in the directory specified in .metalnk file
  7686. (file[@name]).
  7687. * src/Metalink2RequestGroup.cc
  7688. Create the directory structure when opening the file if it doesn't
  7689. exist.
  7690. * src/AbstractDiskWriter.cc
  7691. * src/Util.{h, cc}
  7692. * src/File.h
  7693. * test/UtilTest.cc
  7694. Removed file name comparison
  7695. * src/Metalink2RequestGroup.cc
  7696. * src/HttpResponseCommand.cc
  7697. Rewritten using Util::mkdirs()
  7698. * src/FileEntry.cc (setupDir)
  7699. * test/FileEntryTest.cc
  7700. Updated doc
  7701. * src/SingleFileDownloadContext.h
  7702. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Now SleepCommand dispatches nextCommand when halt is requested.
  7704. It avoids a possible long wait after hitting CTRL-C.
  7705. * src/SleepCommand.{h, cc}
  7706. * src/RequestGroupAware.{h, cc}
  7707. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7709. to open listen port, then remove the port number from the tracker
  7710. request.
  7711. * src/DefaultBtAnnounce.cc
  7712. * test/DefaultBtAnnounceTest.cc
  7713. * test/MockPieceStorage.h
  7714. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7715. them more testable.
  7716. * src/DefaultBtAnnounce.{h, cc}
  7717. * src/DefaultBtContext.{h, cc}
  7718. * src/Util.{h, cc}
  7719. * test/DefaultBtAnnounceTest.cc
  7720. * test/DefaultBtContextTest.cc
  7721. * test/UtilTest.cc
  7722. Added 'B' to upload bytes readout.
  7723. * src/ConsoleStatCalc.cc
  7724. Now the listen port for BitTorrent download is opened when it is
  7725. needed.
  7726. * src/DownloadEngineFactory.cc
  7727. * src/BtSetup.{h, cc}
  7728. * src/PeerListenCommand.{h, cc}
  7729. Now an exception thrown while parsing tracker response is now logged.
  7730. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7731. called, which means no retry is made in this case, assuming a tracker
  7732. has a problem.
  7733. * src/TrackerWatcherCommand.cc
  7734. Fixed: downloading a file whose length is unkown fails.
  7735. * src/DownloadCommand.cc
  7736. Simplified prepareForNextSegment()
  7737. * src/DownloadCommand.cc
  7738. Updated
  7739. * po/POTFILES.in
  7740. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Re-implemented a file listing for Metalink, which was dropped while
  7742. http/ftp/torrent integration was being implemented.
  7743. * src/MetalinkHelper.{h, cc}: New class.
  7744. * test/MetalinkHelperTest.cc
  7745. * src/main.cc
  7746. * src/Metalink2RequestGroup.cc
  7747. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Added the ability to display the detailed torrent file information.
  7749. Now -S option gives not only a file listing, but also total download
  7750. length, info hash, announce URI, piece length, the number of pieces,
  7751. and mode(single or multi-torrent).
  7752. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7753. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7754. KiB)
  7755. * test/UtilTest.cc
  7756. * src/main.cc
  7757. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Added ftp://USER:PASSWD@Servername automatic parsing.
  7759. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7760. _password. Recognize username and password in URI.
  7761. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7762. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7763. * src/RequestFactory.{h, cc}: Removed.
  7764. * src/AuthConfigFactory.{h, cc}: New class.
  7765. * src/FtpConnection.cc: Use AuthConfigFactory.
  7766. * src/HttpRequest.cc: Use AuthConfigFactory.
  7767. * test/HttpRequestTest.cc: Updated.
  7768. * test/RequestTest.cc: Updated.
  7769. * test/AuthConfigFactoryTest.cc: New class.
  7770. * test/RequestFactoryTest.cc: Removed.
  7771. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Use RequestGroup::allDownloadFinished() to decide whether the control
  7773. file should be removed or saved.
  7774. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7775. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7776. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Use File::renameTo()
  7778. * src/DefaultBtProgressInfoFile.cc
  7779. Added --no-file-allocation-limit command-line option.
  7780. * src/version_usage.cc
  7781. * src/option_processing.cc
  7782. * src/OptionHandlerFactory.cc
  7783. * src/RequestGroup.{h, cc}
  7784. * src/BtCheckIntegrityEntry.cc
  7785. * src/StreamCheckIntegrityEntry.cc
  7786. * src/prefs.h
  7787. * doc/aria2c.1.txt
  7788. * doc/aria2c.1
  7789. Now prealloc is the default value for --file-allocation option.
  7790. * src/version_usage.cc
  7791. * src/option_processing.cc
  7792. * doc/aria2c.1.txt
  7793. * doc/aria2c.1
  7794. Don't URL-encode user-agent.
  7795. * src/HttpRequest.cc
  7796. Updated translations
  7797. * po/LINGUAS: Added nl for Dutch translation.
  7798. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7799. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7800. * po/POTFILES.in: Updated.
  7801. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Added the ability to recognize url-list in a torrent file.
  7803. The retrieved URLs are attached to the corresponding FileEntry.
  7804. * src/DefaultBtContext.{h, cc}
  7805. * src/FileEntry.{h, cc}
  7806. * test/DefaultBtContextTest.cc
  7807. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7809. after the download finishes.
  7810. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7812. the data smaller than block length.
  7813. A block length can be specified by constructor's argument.
  7814. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7815. Get a missing piece in the range of given FileEntry. This function is
  7816. not used in the program yet.
  7817. * src/Util.h: Added some macros.
  7818. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Added HTTP/1.1 keep alive and pipelining support.
  7820. See --enable-http-keep-alive and --enable-http-pipelining option.
  7821. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7822. Segment.
  7823. * src/HttpDownloadCommand.{h, cc}
  7824. * src/OptionHandlerFactory.cc
  7825. * src/HttpConnection.{h, cc}
  7826. * src/version_usage.cc
  7827. * src/HttpInitiateConnectionCommand.cc
  7828. * src/FtpInitiateConnectionCommand.cc
  7829. * src/Segment.h
  7830. * src/HttpRequestCommand.{h, cc}
  7831. * src/option_processing.cc
  7832. * src/prefs.h
  7833. * src/HttpResponseCommand.cc
  7834. * src/SegmentMan.{h, cc}
  7835. * src/FtpNegotiateCommand.cc
  7836. * src/HttpProxyResponseCommand.cc
  7837. * src/Request.cc
  7838. * src/HttpRequest.cc
  7839. * src/DownloadCommand.cc
  7840. * test/HttpRequestTest.cc
  7841. * test/RequestTest.cc
  7842. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7843. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7844. finished.
  7845. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7846. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7847. catching it inside the method.
  7848. When no file entry is found in a metalink without querying user
  7849. preferences, throw the exception with the error message that suggests
  7850. metalink file is probably broken.
  7851. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7852. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7854. processed.
  7855. * src/RequestGroupMan.cc (removeStoppedGroup)
  7856. Added debug message.
  7857. * src/BtPostDownloadHandler.cc
  7858. * src/MetalinkPostDownloadHandler.cc
  7859. * src/PostDownloadHandler.{h, cc}
  7860. * src/RequestGroup.cc
  7861. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7863. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7865. stops and there are any unfinished or in-progress downloads.
  7866. Added the legend of "stat".
  7867. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Throw exception when chunck checksum verification fails.
  7869. * src/DownloadCommand.cc (validatePieceHash): New function.
  7870. * src/PiecedSegment.{h, cc} (clear): New function.
  7871. * src/GrowSegment.{h, cc} (clear): New function.
  7872. * src/Segment.h (clear): New function.
  7873. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7874. * test/SegmentTest.cc
  7875. * test/GrowSegmentTest.cc
  7876. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Do not send referer when redirected.
  7878. * src/Request.cc (redirectUrl)
  7879. * test/RequestTest.cc
  7880. * test/HttpRequestTest.cc
  7881. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Implemented BitTorrent/http/ftp integrated download.
  7883. I've rewritten lots of files and now some headers have forward
  7884. class declarations to reduce compile time.
  7885. The implementation is extremely alpha stage, I recommend to use this
  7886. for testing purpose only.
  7887. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7888. Fixed the compilation error on 64bit platform.
  7889. * test/HttpHeaderProcessorTest.cc
  7890. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Merged Ross's patch that fixes compilation problem in MinGW
  7892. * test/DefaultBtProgressInfoFileTest.cc
  7893. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Updated fr.po by sebone
  7895. * po/fr.po
  7896. Updated man page.
  7897. * doc/aria2c.1.txt
  7898. * Release 0.11.3
  7899. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7901. failure in Metalink.
  7902. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Automatically save *.aria2 control file of http/ftp download in every
  7904. 60 seconds.
  7905. * src/AutoSaveCommand.{h, cc}: New class.
  7906. * src/TimeBasedCommand.{h, cc}: New class.
  7907. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7908. Disable parameterized URI support by default. Added -P option to
  7909. enable the feature.
  7910. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7911. * src/OptionHandlerFactory.cc
  7912. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7913. Updated Japanese translation.
  7914. * po/ja.po
  7915. Updated man page.
  7916. * doc/aria2c.1.txt
  7917. * Release 0.11.3-rc
  7918. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7920. it is successful, then renamed to *.aria2.
  7921. This prevents *.aria2 file from being truncated or corrupted when
  7922. file system becomes out of space.
  7923. * src/DefaultBtProgressInfoFile.cc (save)
  7924. * src/SegmentMan.cc (save)
  7925. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7926. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Reduced the fragmentation of bitfield in http/ftp download.
  7928. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7929. * test/BitfieldManTest.cc
  7930. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Added the ability to disable segmented download in .metalink.
  7932. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7933. 'url' tag.
  7934. * src/MetalinkEntry.{h, cc}
  7935. * src/RequestResource.{h, cc}
  7936. * src/MetalinkRequestInfo.cc
  7937. * src/Xml2MetalinkProcessor.cc
  7938. * test/Xml2MetalinkProcessorTest.cc
  7939. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Added parameterized URI support.
  7941. * src/main.cc: -Z option added.
  7942. * src/OptionHandlerFactory.cc
  7943. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7944. * src/PStringDatum.h: New class.
  7945. * src/PStringSegment.{h,cc}: New class.
  7946. * src/PStringNumLoop.h: New class.
  7947. * src/PStringSelect.h: New class.
  7948. * src/NumberDecorator.h: New class.
  7949. * src/FixedWidthNumberDecorator.h: New class.
  7950. * src/AlphaNumberDecorator.h: New class.
  7951. * src/PStringVisitor.h: New class.
  7952. * src/PStringBuildVisitor.{h,cc}: New class.
  7953. * src/ParameterizedStringParser.{h,cc}: New class.
  7954. * src/Util.{h,cc}
  7955. (isNumber): New function.
  7956. (isLowercase): New function.
  7957. (isUppercase): New function.
  7958. (alphaToNum): New function.
  7959. * test/ParameterizedStringParserTest.cc: New class.
  7960. * test/AlphaNumberDecoratorTest.cc: New class.
  7961. * test/PStringBuildVisitorTest.cc: New class.
  7962. * test/UtilTest.cc
  7963. (testIsNumber): New function.
  7964. (testIsLowercase): New function.
  7965. (testIsUppercase): New function.
  7966. (testAlphaToNum): New function.
  7967. Added '\n' after the error message
  7968. * src/RequestInfo.h (printDownloadAbortMessage)
  7969. Added auto file renaming feature in http(s)/ftp download.
  7970. * src/main.cc: Added --auto-file-renaming command-line option.
  7971. * src/OptionHandlerFactory.cc
  7972. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7973. * src/RequestGroup.{h, cc}
  7974. (shouldCancelDownloadForSafety): Rewritten
  7975. (tryAutoFileRenaming): New function.
  7976. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7977. * src/HttpResponseCommand.cc
  7978. (executeInternal): Removed the call to RequestGroupMan::
  7979. isSameFileBeingDownloaded()
  7980. * src/FtpNegotiateCommand.cc
  7981. (recvSize): Removed the call to RequestGroupMan::
  7982. isSameFileBeingDownloaded()
  7983. * test/RequestGroupTest.cc: New class.
  7984. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7986. IO.
  7987. * src/DefaultBtProgressInfoFile.cc
  7988. * src/MetaFileUtil.cc
  7989. * src/SimpleLogger.cc
  7990. * src/SegmentMan.cc
  7991. * src/Util.cc
  7992. * src/Platform.cc
  7993. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7995. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7997. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7998. Fixed the bug that prevents file allocation is not done when
  7999. dowloading multi-torrent file.
  8000. * src/AbstractDiskWriter.cc (openFile)
  8001. Increase the maximum number of -j option from 15 to 45.
  8002. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8003. Added fr.po, thanks to Charles Landemaine.
  8004. * po/fr.po
  8005. * po/LINGUAS
  8006. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8007. gcc 3.4.4 support:
  8008. * src/DefaultBtContext.cc: int32_t -> int
  8009. * src/main.cc: int -> int32_t, int32_t -> int
  8010. * src/messageDigest.h: uint32_t -> unsigned int
  8011. * src/NameResolver.h: int32_t -> int
  8012. * src/PeerConnection.cc: int -> int32_t
  8013. * src/SpeedCalc.cc: int32_t -> int
  8014. * src/TrackerUpdateCommand.h: int -> int32_t
  8015. * src/Util.cc: int32_t -> int
  8016. * src/Util.h: int32_t -> int
  8017. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8018. * test/AnnounceListTest.cc: int -> int32_t
  8019. * test/ChunkedEncodingTest.cc: int -> int32_t
  8020. * test/DataTest.cc: int -> int32_t
  8021. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8022. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8023. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8024. * test/FeatureConfigTest.cc: int -> int32_t
  8025. * test/MetalinkEntryTest.cc: int -> int32_t
  8026. * test/MockBtRequestFactory.h: int -> int32_t
  8027. * test/MockPieceStorage.h: int -> int32_t
  8028. * test/OptionTest.cc: int -> int32_t
  8029. * test/RequestTest.cc: int -> int32_t
  8030. * test/SegmentManTest.cc: int -> int32_t
  8031. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8032. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8033. Move sleep functions to Util class:
  8034. * src/Util.cc
  8035. (sleep): New function.
  8036. (usleep): New function.
  8037. * src/DownloadCommand.cc: sleep -> Util::sleep
  8038. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8039. MinGW build enhancements. The following files are added:
  8040. * src/timegm.{c,h}
  8041. Changes to support the above new files:
  8042. * configure.ac
  8043. * src/Makefile.am
  8044. * src/a2time.h
  8045. * src/Util.cc:
  8046. * src/strptime.c: Added support for %Z option.
  8047. Fixed MinGW non-blocking bug.
  8048. * src/SocketCore.cc
  8049. * src/HttpRequestCommand.cc
  8050. Miscellenous build fixes/enhancements.
  8051. * configure.ac: Added summary report.
  8052. * src/Platform.h: Tweaked #include's.
  8053. * src/a2netcompat.h: Tweaked #include's.
  8054. * src/strptime.h: Tweaked #include's.
  8055. * src/gai_strerror.c: Tweaked #include's.
  8056. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8057. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8058. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8059. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Increased the initial connection size in BitTorrent download to 40.
  8061. * src/BtRuntime.h
  8062. Added the usage message of --peer-id-prefix option.
  8063. * src/main.cc
  8064. * Release 0.11.2
  8065. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. MessageDigestHelper is introduced in order to simplify the use
  8067. of message digest. Removed repeated code.
  8068. The message digest algorithm is now specified by string, like "sha1",
  8069. "md5".
  8070. * src/messageDigest.{h, cc}
  8071. * src/MessageDigestHelper.{h, cc}: New class.
  8072. * src/DefaultPieceStorage.cc
  8073. * src/DefaultBtContext.{h, cc}
  8074. (computeFastSet): New function.
  8075. (setInfoHash): Added for unit testing.
  8076. (setNumPieces): Added for unit testing.
  8077. * src/DefaultBtInteractive.cc
  8078. * src/BtPieceMessage.cc
  8079. * src/Peer.cc
  8080. * src/Checksum.h
  8081. * src/message.h
  8082. * src/IteratableChecksumValidator.h
  8083. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8084. inside it.
  8085. * src/SegmentMan.{h, cc}
  8086. (checkIntegrity): Removed.
  8087. * src/IteratableChunkChecksumValidator.{h, cc}
  8088. * src/Util.h
  8089. (sha1Sum): Removed.
  8090. (simpleMessageDigest): Removed.
  8091. (fileChecksum): Removed.
  8092. (computeFastSet): Removed.
  8093. * src/ShaVisitor.cc
  8094. * src/ChunkChecksum.h
  8095. * src/DownloadCommand.cc
  8096. Removed messageDigest virtual functions.
  8097. * src/MultiDiskAdaptor.{h, cc}
  8098. * src/DiskAdaptor.h
  8099. * src/ByteArrayDiskWriter.h
  8100. * src/DiskWriter.h
  8101. * src/DiskAdaptorWriter.h
  8102. * src/AbstractSingleDiskAdaptor.{h, cc}
  8103. * src/AbstractDiskWriter.{h, cc}
  8104. Fixed comilation error when message digest is disabled.
  8105. * src/MetalinkEntry.{h, cc}
  8106. * src/MetalinkRequestInfo.cc
  8107. Removed srandom and random.
  8108. * src/SimpleRandomizer.h
  8109. Added size() virtual function to DiskAdaptor
  8110. * src/MultiDiskAdaptor.h
  8111. Fixed the bug that causes that files are not opened correctly in
  8112. multi-file torrent.
  8113. * src/TorrentRequestInfo.cc
  8114. * src/MultiDiskAdaptor.cc
  8115. Added SHA256 support
  8116. * src/messageDigest.cc
  8117. * src/Xml2MetalinkProcessor.cc
  8118. Show supported message digest algorithms
  8119. * src/main.cc
  8120. Updated contact info.
  8121. * src/main.cc
  8122. Applied Ross's patch
  8123. * src/a2netcompat.h
  8124. * src/main.cc
  8125. Fixed the bug that prevents a remote metalink from not being processed
  8126. even if '-o foo.metalink' is specified.
  8127. * src/MetalinkRequestInfo.cc
  8128. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Merged Dan's patch:
  8130. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8131. Use va_copy to avoid core dump on amd64:
  8132. * src/SimpleLogger.cc
  8133. Updated contact info.
  8134. * src/main.cc
  8135. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8136. digest is not available.
  8137. * src/MetalinkEntry.h
  8138. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Make a2netcompat.h include a2io.h to fix compilation error:
  8140. * src/a2netcompat.h
  8141. * src/SocketCore.cc: Removed include of a2io.h
  8142. * src/Util.cc: Removed include of a2io.h
  8143. Gather time related functions to a2time.h:
  8144. * src/a2time.h: New file.
  8145. * src/DefaultPeerStorage.cc
  8146. * src/SimpleLogger.cc
  8147. * src/Util.{h, cc}
  8148. * src/SimpleRandomizer.h
  8149. * src/TimeA2.{h,cc}
  8150. * src/DownloadCommand.cc
  8151. * src/main.cc
  8152. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8153. a2netcompat.h:
  8154. * src/NameResolver.cc
  8155. Fixed compilation error without openssl:
  8156. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8157. Added default block to suppress compiler warnings:
  8158. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8159. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8160. MinGW build enhancements. The following files are added:
  8161. * src/gai_strerror.{c,h}
  8162. * src/gettimeofday.{c,h}
  8163. Changes to support the above new files:
  8164. * configure.ac
  8165. * src/Makefile.am
  8166. * src/a2netcompat.h
  8167. * src/TimeA2.cc
  8168. * src/DefaultPeerStorage.cc
  8169. * src/NameResolver.cc: removed mingw_strerror() function.
  8170. * src/SocketCore.cc: removed mingw_strerror() function.
  8171. Miscellaneous MinGW build fixes.
  8172. * src/a2io.h: Use _lseeki64() instead of lseek()
  8173. * src/common.h
  8174. * src/DefaultFileAllocator.cc
  8175. * src/GlowFileAllocator.cc
  8176. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8177. * src/NameResolver.cc
  8178. (callback): Changed int32_t to int.
  8179. (resolve): Changed int32_t to int.
  8180. * src/Platform.cc
  8181. * src/Platform.h
  8182. * test/MultiDiskWriterTest.cc
  8183. * test/PeerMessageUtilTest.cc
  8184. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8185. Other enhancements and fixes.
  8186. * src/HttpRequestCommand.cc
  8187. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8188. * src/SocketCore.cc:
  8189. (error): New function to abstract errno/WSAGetLastError().
  8190. (errorMsg): New function to abstract errno/WSAGetLastError().
  8191. (initiateSecureConnection): Added more detailed error reporting.
  8192. * src/SocketCore.h: Added private variable blocking, to allow
  8193. proper handling of OpenSSL psuedo-errors.
  8194. * src/message.h
  8195. (EX_SSL_INIT_FAILURE)
  8196. (EX_SSL_IO_ERROR)
  8197. (EX_SSL_PROTOCOL_ERROR)
  8198. (EX_SSL_UNKNOWN_ERROR)
  8199. (EX_SSL_CONNECT_ERROR)
  8200. (EX_SOCKET_BLOCKING)
  8201. (EX_SOCKET_NONBLOCKING)
  8202. (EX_SOCKET_UNKNOWN_ERROR)
  8203. * src/Util.cc
  8204. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8205. reserved name.
  8206. (httpGMT): Fixed typo.
  8207. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Merged Ross's win32 patch(manually)
  8209. In the course of merging, following files are added.
  8210. * src/strptime.{h,c}
  8211. * src/libgen.{h,c}
  8212. * src/inet_aton.{h,c}
  8213. * src/Platform.{h,cc}
  8214. * src/localtime_r.{h,c}
  8215. * src/getaddrinfo.{h,c}
  8216. I've gethered network related things, and put them to following file:
  8217. * src/a2netcompat.h
  8218. Also io related things are put to following file:
  8219. * src/a2io.h
  8220. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8221. * src/message.h
  8222. (MSG_ALLOCATION_COMPLETED)
  8223. (EX_TOO_LARGE_FILE)
  8224. (EX_SIZE_MISMATCH)
  8225. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8226. (EX_INVALID_CHUNK_CHECKSUM)
  8227. (EX_INVALID_RANGE_HEADER)
  8228. * src/FileAllocationCommand.cc
  8229. * src/HttpResponse.cc
  8230. * src/RequestGroup.cc
  8231. * src/MultiDiskAdaptor.cc
  8232. * src/OptionHandlerImpl.h
  8233. * src/HttpResponseCommand.cc
  8234. * src/FtpNegotiateCommand.cc
  8235. * src/IteratableChecksumValidator.cc
  8236. * src/SegmentMan.cc
  8237. * src/ChunkChecksumValidator.cc
  8238. Added Randomizer::getRandomNumber(long int)
  8239. * src/Randomizer.h (getRandomNumber)
  8240. * src/SimpleRandomizer.h (getRandomNumber)
  8241. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8242. * src/Util.cc (randomAlpha): Use this new function.
  8243. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Converted int's to in32_t. long long int's are also converted to
  8245. int64_t
  8246. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Fixed the bug that prevents cookies from being sent to the server
  8248. if the domain of cookie is FQDN and starts with ".".
  8249. * src/Cookie.cc (match)
  8250. To add the ability to change peer id.
  8251. * src/DefaultBtContext.h
  8252. (_peerIdPrefix): New variable
  8253. (setPeerIdPrefix): New function.
  8254. * src/torrentRequestInfo.cc
  8255. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8256. DefaultBtContext.
  8257. * src/main.cc (main): Added peer-id-prefix command-line option.
  8258. The usage message is not added yet.
  8259. * src/DefaultBtContext.cc
  8260. (generatePeerId): Use _peerIdPrefix.
  8261. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8262. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Fixed the bug that prevents filename in content-disposition from
  8264. being retrieved when filename is not quoted.
  8265. * src/Util.cc (getContentDispositionFilename)
  8266. Fixed the bug that causes infinate loop and memory leak when file open
  8267. operation failed.
  8268. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8269. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Fixed the bug that causes segfault when all URIs specified are
  8271. unsupported.
  8272. * src/RequestGroupMan.cc (getInitialCommands)
  8273. Check if RequestGroup::createNextCommand() returns empty list of
  8274. commands.
  8275. * src/RequestGroup.cc (createNextCommand)
  8276. Change log level from info to error so that users can notice that
  8277. an error occurred.
  8278. Fixed the bug that causes segfault when a zero-sized file is
  8279. downloaded.
  8280. * src/BitfieldMan.cc (isAllBitSet)
  8281. Return true if bitfieldLength is 0.
  8282. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. * src/main.cc
  8284. (showUsage): Added 3 usage examples for metalink download.
  8285. Replace MetalinkChunkChecksum with ChunkChecksum.
  8286. * src/MetalinkChunkChecksum.h: Removed.
  8287. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8288. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8289. * src/Xml2MetalinkProcessor.cc
  8290. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8291. * src/MetalinkRequestInfo.cc (execute)
  8292. * Release 0.11.1
  8293. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Reads URIs from stdin when "-i -" is specified.
  8295. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8296. * src/UriListParser.h, src/UriListParser.cc: New class.
  8297. * src/StreamUriListParser.h: New class.
  8298. * src/FileUriListParser.h: New class.
  8299. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8300. instead of UriFileListParser.
  8301. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Made console readout more readable.
  8303. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8304. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8305. Fix the bug that causes -s option not to work.
  8306. * src/main.cc (main)
  8307. * src/a2algo.h: New file.
  8308. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Create directory structure specified in metalink file.
  8310. * src/RequestGroup.h, src/RequestGroup.cc
  8311. (initAndOpenFile): Create a directory to store files if it does not
  8312. exist.
  8313. (getDir): New function.
  8314. Added ETA and download speed for an individual file to readout.
  8315. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8316. * src/RequestGroup.h
  8317. (calculateDownloadSpeed): New function.
  8318. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Made -S option work with metalink file and provided selective download
  8320. to metalink.
  8321. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8322. (filename): Removed.
  8323. (file): New variable.
  8324. (size): Removed.
  8325. (operator=): Updated.
  8326. (getPath): New function.
  8327. (getLength): New function.
  8328. (toFileEntry): New function.
  8329. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8330. (execute): Use toStream.
  8331. (showFileEntry): Removed.
  8332. * src/MetalinkRequestInfo.h
  8333. (targetFiles): New variable.
  8334. (setTargetFiles): New variable.
  8335. * src/MetalinkRequestInfo.cc
  8336. (execute): Added the ability to print file information included in
  8337. a metalink file.
  8338. Added selective download mode to metalink.
  8339. * src/main.cc
  8340. (showUsage): Updated to denote that -S and --select-file options are
  8341. applicable to metalink.
  8342. * src/FileEntry.h
  8343. (operator=): New function.
  8344. (getBasename): New function.
  8345. (getDirname): New function.
  8346. * src/Util.h, src/Util.cc
  8347. (toStream): New function.
  8348. * src/Xml2MetalinkProcessor.cc: Updated.
  8349. Made aria2 work with metalink with directory structure.
  8350. * src/File.h, src/File.cc
  8351. (getBasename): New function.
  8352. (getDirname): New function.
  8353. * src/RequestGroup.h, src/RequestGroup.cc
  8354. (_topDir): New variable.
  8355. (setTopDir): New function.
  8356. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8357. Rewrote HTTP header parsing with stringstream.
  8358. * src/HttpConnection.h, src/HttpConnection.cc
  8359. (HttpRequestEntry): New class.
  8360. (headerBuf): Removed.
  8361. (headerBufLength): Removed.
  8362. (outstandingHttpRequests): Now its element type is
  8363. HttpRequestEntryHandle.
  8364. (findEndOfHeader): Removed.
  8365. (receiveResponse): Rewritten.
  8366. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8367. Updated doc for -j option to notice that it should be used with -i
  8368. option.
  8369. * src/main.cc (showUsage)
  8370. Removed unused classes.
  8371. * src/RequestInfo.h
  8372. (FileInfo): Removed.
  8373. (checksum): Removed.
  8374. (fileInfo): Removed.
  8375. (setChecksum): Removed.
  8376. (getChecksum): Removed.
  8377. (getFileInfo): Removed.
  8378. Use ISO units.
  8379. * src/ConsoleDownloadEngine.cc
  8380. * src/TorrentConsoleDownloadEngine.cc
  8381. * src/Util.cc (abbrevSize)
  8382. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Added the default listening ports to the help message.
  8384. * src/main.cc (showUsage)
  8385. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Reduce the number of calls to gettimeofday to lower CPU load.
  8387. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8388. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8389. * src/Peer.h (calculateUploadSpeed): New function.
  8390. (calculateDownloadSpeed): New function.
  8391. * src/DefaultPeerStorage.cc
  8392. (CalculateStat): Added _now variable.
  8393. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8394. and Peer::calculateUploadSpeed(const struct timeval&)
  8395. Drop connection if no request or piece message is exchanged in
  8396. a certain interval.
  8397. * src/DefaultBtInteractive.h
  8398. (btRuntime): New variable.
  8399. (inactiveCheckPoint): New variable.
  8400. (checkActiveInteraction): New function.
  8401. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8402. request or piece message is received.
  8403. (checkActiveInteraction): New function.
  8404. (doInteractionProcessing): Call checkActiveInteraction.
  8405. Fixed the bug that causes remote Metalink and Torrent files are not
  8406. processed.
  8407. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8408. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Changed format of log file.
  8410. * src/SimpleLogger.cc
  8411. * Release 0.11.0
  8412. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. * src/AbstractCommand.cc
  8414. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8415. MSG_MAX_TRY from error to info.
  8416. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8417. * src/message.h
  8418. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8419. (MSG_DOWNLOAD_ABORTED): Added %s.
  8420. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8421. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8422. * src/PeerAbstractCommand.cc
  8423. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8424. * src/Request.h
  8425. (cookieBox): Made ShardHandle.
  8426. * src/RequestGroup.h, src/RequestGroup.cc
  8427. (createNextCommandWithAdj): New function.
  8428. * src/FileAllocationCommand.cc
  8429. (executeInternal): Use createNextCommandWithAdj().
  8430. * src/CheckIntegrityCommand.cc
  8431. (executeInternal): Use createNextCommandWithAdj().
  8432. Added --load-cookies command-option.
  8433. * src/OptionHandlerFactory.cc
  8434. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8435. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8436. Now aria2 can handle cookie's expiration date.
  8437. * src/Cookie.h (expires): Changed its type to time_t.
  8438. * src/main.cc: Added --load-cookies command-line option.
  8439. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8440. * src/Util.h, src/Util.cc (httpGMT): New function.
  8441. * src/Request.cc (Request): Initialize cookieBox using
  8442. CookieBoxFactory.
  8443. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8444. * src/CookieParser.h, src/CookieParser.cc: New class.
  8445. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8446. * src/HttpResponseCommand.cc
  8447. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8448. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8449. download.
  8450. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Added -j command-line option.
  8452. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8453. * src/main.cc
  8454. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8455. Rewritten using stringstream.
  8456. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8457. Rewritten using stringstream.
  8458. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Make download size shown in MB, KB.
  8460. * src/ConsoleDownloadEngine.h (sendStatistics)
  8461. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8462. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Accept incoming connections if download rate is low.
  8464. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8465. (_lowestSpeedLimit): New variable.
  8466. (setLowestSpeedLimit): New function.
  8467. (execute): Accept incoming connections if download rate is low.
  8468. MAX_PEERS is ignored in this case.
  8469. Disable PREF_OUT in multiple concurrent download:
  8470. * src/RequestGroup.h, src/RequestGroup.cc
  8471. (setUserDefinedFilename): New function.
  8472. * src/DownloadEngineFactory.cc
  8473. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8474. concurrent download.
  8475. * src/DefaultSegmentManFactory.cc
  8476. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8477. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8479. Added its overloaded method.
  8480. * src/RequestGroup.h
  8481. (_numConcurrentCommand): New variable.
  8482. (setNumConcurrentCommand): New function.
  8483. * src/RequestGroup.cc
  8484. Abort download if same file is being downloaded concurrently.
  8485. * src/RequestGroup.h, src/RequestGroupMan.cc
  8486. (isSameFileBeingDownloaded): New function.
  8487. * src/HttpResponseCommand.cc (executeInternal)
  8488. * src/FtpNegotiateCommand.cc (recvSize)
  8489. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8490. * main.cc: Added help message for -i option.
  8491. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8493. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8494. * src/MetalinkEntry.h
  8495. (checksum): Changed to ChecksumHandle
  8496. * src/MetalinkRequestInfo.cc
  8497. (checksum): Changed to ChecksumHandle
  8498. * src/File.cc
  8499. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8500. * src/common.h
  8501. (DIR_OPEN_MODE): New definition
  8502. * src/RequestGroup.cc
  8503. (prepareForNextAction): Added an argument.
  8504. * src/message.h
  8505. (MSG_GOOD_CHECKSUM): New definition
  8506. (MSG_BAD_CHECKSUM): New definition
  8507. * src/HttpResponseCommand.cc
  8508. (handleDefaultEncoding): Continue download sequence in new
  8509. non-segmented download.
  8510. * src/FileAllocationEntry.h
  8511. (_nextDownloadCommand): New variable.
  8512. * src/DownloadCommand.cc
  8513. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8514. available.
  8515. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8516. * src/IteratableChecksumValidator.h,
  8517. src/IteratableChecksumValidator.cc: New class.
  8518. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8519. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. Change file mode to 666:
  8521. * src/common.h (OPEN_MODE): New definition.
  8522. * src/File.cc
  8523. * src/Util.cc
  8524. * src/Directry.cc
  8525. * src/AbstractDiskWriter.cc
  8526. Change the level of log message "download aborted" to debug:
  8527. * src/PeerAbstractCommand.cc (execute)
  8528. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8529. * src/TrackerWatcherCommand.cc
  8530. (createCommand): Sleep some seconds after request failed.
  8531. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8532. then abort tracker request.
  8533. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. * Added the simultaneous download feature.
  8535. * src/main.cc: Print "Exception caught: " when exception is caught.
  8536. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8537. * src/ActivePeerConnectionCommand.cc
  8538. * src/PeerInteractionCommand.cc
  8539. * src/BtRuntime.h
  8540. (cuidCounter): Removed.
  8541. (getNewCuid): Removed.
  8542. * src/DownloadEngineFactory.cc
  8543. * src/PeerListenCommand.cc
  8544. * src/TrackerUpdateCommand.cc
  8545. * src/PeerInitiateConnectionCommand.cc
  8546. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. * src/PeerAbstractCommand.cc
  8548. (onAbort): Call PeerStorage::returnPeer()
  8549. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8550. (incomingPeers): New variable.
  8551. (addIncomingPeer): New function.
  8552. (returnPeer): New function.
  8553. (onErasingPeer): New function.
  8554. (addPeer): push_back -> push_front
  8555. (getActivePeers): Rewritten.
  8556. (calculateStat): Rewritten.
  8557. * src/PeerStorage.h
  8558. (TransferStat::copy): New function.
  8559. (TransferStat::TransferStat): New function.
  8560. (TransferStat::operator=): New function.
  8561. (addIncomingPeer): New function.
  8562. (returnPeer): New function.
  8563. * src/PeerListenCommand.cc
  8564. (execute): Use PeerStorage::addIncomingPeer() instead of
  8565. Peer::addPeer().
  8566. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8567. Connect to a peer actively when download speed is lower than specified
  8568. speed in torrent download:
  8569. * src/ActivePeerConnectionCommand.h: New class.
  8570. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8572. * src/main.cc: Fixed the bug that prevents download if .netrc
  8573. doesn't exist.
  8574. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. To cache resolved hostname:
  8576. * src/AbstractCommand.h, src/AbstractCommand.cc
  8577. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8578. Added dns cache.
  8579. * src/FtpInitiateConnectionCommand.cc
  8580. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8581. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8582. NameResolver working without ares.
  8583. * src/TorrentRequestInfo.cc
  8584. (execute): Don't cache dns in torrent download.
  8585. * src/HttpInitiateConnectionCommand.cc
  8586. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8587. * src/DNSCache.h: New class.
  8588. * src/UrlRequestInfo.cc
  8589. (execute): Use dns cache.
  8590. In http request, suppress port number in http request header if port
  8591. is 80 or 443:
  8592. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8593. request header if port is 80 or 443.
  8594. (createProxyRequest): Allways send port number.
  8595. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. To add the command-line option which disables netrc support:
  8597. * src/OptionHandlerFactory.cc
  8598. (createOptionHandlers): Added PREF_NO_NETRC.
  8599. * src/main.cc: Added -n option.
  8600. * src/prefs.h (PREF_NO_NETRC): New definition.
  8601. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8602. V_TRUE.
  8603. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8604. is V_FALSE. This may get configurable in the future release.
  8605. To clear peer's error status by time basis:
  8606. * src/PeerAbstractCommand.cc
  8607. (onAbort): Call Peer::startBadCondition().
  8608. * src/Peer.h, src/Peer.cc
  8609. (error): Removed.
  8610. (_badConditionStartTime): New variable.
  8611. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8612. (startBadCondition): New function.
  8613. (isGood): New function.
  8614. * src/DefaultPeerStorage.cc
  8615. (addPeer): Use Peer::isGood().
  8616. (FindFinePeer): Use Peer::isGood().
  8617. Always include port number in http request header:
  8618. * src/HttpRequest.cc (getHostText): Always include port number in
  8619. http request header.
  8620. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8621. To the ability to read options from a config file:
  8622. * src/main.cc: Command-line parameter validation is delegated to
  8623. OptionHandler class.
  8624. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8625. * src/Option.h, src/Option.cc (clear): New function.
  8626. * src/OptionParser.h, src/OptionParser.cc: New class.
  8627. * src/OptionHandler.h: New class.
  8628. * src/NameMatchOptionHandler.h: New class.
  8629. * src/OptionHandlerImpl.h: New classes.
  8630. * src/prefs.h: '_' -> '-'
  8631. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8632. (FTP_PASV): New definition.
  8633. * src/Util.h, src/Util.cc (getRealSize): New function.
  8634. To disable netrc support if .netrc file does not have correct
  8635. permissions:
  8636. * src/File.h, src/File.cc (mode): New function.
  8637. To prevent confidential information to be logged:
  8638. * src/HttpConnection.h, src/HttpConnection.cc
  8639. (eraseConfidentialInfo): New function.
  8640. (sendRequest): Call eraseConfidentialInfo().
  8641. (sendProxyRequest): Call eraseConfidentialInfo().
  8642. * src/main.cc: Validate permissions of .netrc file.
  8643. To add --user-agent command-line option:
  8644. * src/main.cc: Added new command line option: --user-agent
  8645. * src/prefs.h (PREF_USER_AGENT): New definition.
  8646. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8647. parameter to HttpRequest object.
  8648. * src/AbstractProxyRequestCommand.cc
  8649. (executeInternal): Set user-agent option parameter to HttpRequest
  8650. object.
  8651. Marged the patches from Dan Fandrich.
  8652. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Use filename and size from Metalink file instead of sending HEAD
  8654. request:
  8655. * src/UrlRequestInfo.h
  8656. (_filename): New variable.
  8657. (_totalLength): New variable.
  8658. (setTotalLength): New variable.
  8659. (setFilename): New variable.
  8660. * src/MetalinkRequestInfo.cc
  8661. (execute): Set filename and size to UrlRequestInfo
  8662. * src/UrlRequestInfo.cc
  8663. (execute): Use filename and size from Metalink instead of seding
  8664. HEAD request to servers.
  8665. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. To add the ability to resume downloading a partially downloaded file
  8667. which is downloaded from the beginning:
  8668. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8669. takes this role.
  8670. * src/main.cc: Added -c option.
  8671. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8672. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8673. * src/prefs.h (PREF_CONTINUE): New definition.
  8674. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8675. * src/DefaultDiskWriter.cc
  8676. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8677. * src/AbstractDiskWriter.h
  8678. (glowFileAllocator): New variable.
  8679. * src/AbstractDiskWriter.cc
  8680. (openExistingFile): Now preallocate file space from the end of the
  8681. existing file if totalLength argument is specified and grater than 0.
  8682. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8683. to download exists in local, continue the download of the file.
  8684. --allow-overwrite=true is assumed in this context.
  8685. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8686. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8687. Throw exception if --check-integrity=true is specified but chunk
  8688. checksums are not provided:
  8689. * src/UrlRequestInfo.cc
  8690. Do not print URLs to stdout:
  8691. * src/UrlRequestInfo.cc
  8692. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. * src/Request.h: Use AuthResolver to get authentication information.
  8694. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8695. set to RequestFactory object.
  8696. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8697. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8698. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8699. create Request object.
  8700. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8701. To integrate Netrc into exsiting classes:
  8702. * src/Request.h
  8703. (_userDefinedAuthConfig): New variable.
  8704. (findNetrcAuthenticator): New function.
  8705. (segment): Removed.
  8706. (setUserDefinedAuthConfig): New function.
  8707. (resolveHttpAuthConfigItem): New function.
  8708. (resolveFtpAuthConfigItem): New function.
  8709. (resolveHttpProxyAuthConfigItem): New function.
  8710. * src/HttpRequest.h
  8711. (authConfig): Removed.
  8712. (proxyAuthConfig): Removed.
  8713. (setAuthConfig): Removed.
  8714. (setProxyAuthConfig): Removed.
  8715. * src/UrlRequest.h
  8716. (getHeadResult): Added a parameter: authConfigHandle
  8717. * src/common.h
  8718. (SingletonHolder.h): New include.
  8719. * src/main.cc
  8720. (Netrc.h): New include.
  8721. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8722. Added initial value of PREF_NETRC_PATH.
  8723. Added the initialization of netrc.
  8724. * src/AuthConfig.h: New class.
  8725. * src/prefs.h
  8726. (PREF_NETRC_PATH): New definition.
  8727. * src/HttpAuthConfig.h: Removed.
  8728. * src/Netrc.cc
  8729. (getRequiredNextToken): New function.
  8730. (skipMacdef): New function.
  8731. (parse): Rewritten.
  8732. * src/Netrc.h
  8733. (getRequiredNextToken): New function.
  8734. (skipMacdef): New function.
  8735. * src/Util.h, src/Util.cc
  8736. (getHomeDir): New function.
  8737. * src/TrackerWatcherComand.cc
  8738. (createRequestCommand): Use AuthConfig.
  8739. * src/FtpConnection.cc
  8740. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8741. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8742. * src/Request.cc
  8743. (findNetrcAuthenticator): New function.
  8744. (resolveHttpAuthConfigItem): New function.
  8745. (resolveFtpAuthConfigItem): New function.
  8746. (resolveHttpProxyAuthConfigItem): New function.
  8747. * src/UrlRequestInfo.cc: Use AuthConfig.
  8748. * src/HttpRequest.cc
  8749. (createRequest): Use authConfig.
  8750. (getProxyAuthString): Use authConfig.
  8751. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8752. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8753. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. To reduce overhead to find commands whose socket is either
  8755. readable or writable in the download engine loop:
  8756. * src/Command.h, src/Command.cc
  8757. (STATUS): New enum.
  8758. (status): New variable.
  8759. (statusMatch): New function.
  8760. (setStatusActive): New function.
  8761. (setStatusInactive): New function.
  8762. * src/DownloadEngine.h, src/DownloadEngine.cc
  8763. (executeCommand): New function.
  8764. (run): Simplified.
  8765. (waitData): Call Command::setStatusActive() when command's socket is
  8766. readable or writable.
  8767. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. To handle Segment as SegmentHandle:
  8769. * src/AbstractCommand.cc (execute): Rewritten.
  8770. * src/SegmentMan.h: Segment -> SegmentHandle
  8771. Introducded HttpResponse class, HttpRequest class to improve code
  8772. extensiveness and make it clear:
  8773. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8774. HttpResponse class.
  8775. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8776. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8777. * src/HttpConnection.cc: Contruction of http request were moved to
  8778. HttpRequest class.
  8779. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8780. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8781. * src/HttpAuthConfig.h: New class.
  8782. * src/Range.h: New class.
  8783. To make FtpTunnel{Request, Response}Command and
  8784. HttpProxy{Request, Response}Command derived from
  8785. AbstractProxy{Request, Response}Command:
  8786. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8787. Derived from AbstractProxyRequestCommand class.
  8788. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8789. Derived from AbstractProxyResponseCommand class.
  8790. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8791. Derived from AbstractProxyRequestCommand class.
  8792. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8793. Derived from AbstractProxyResponseCommand class.
  8794. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8795. : New class.
  8796. * src/AbstractProxyResponseCommand.h,
  8797. src/AbstractProxyResponseCommand.cc: New class.
  8798. To add netrc support:
  8799. * src/Netrc.h, src/Netrc.cc: New class.
  8800. * src/Util.h, src/Util.cc (split): New function.
  8801. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8802. "Content-Range" header instead of "Range" header.
  8803. * src/HttpHeader.h
  8804. (getStatus): Removed.
  8805. (setStatus): Removed.
  8806. * src/Segment.h
  8807. (getPositionToWrite): New function.
  8808. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. * src/HttpHeader.h
  8810. (Range.h): New include.
  8811. (status): New variable.
  8812. (HttpHeader): Initialized status with 0.
  8813. (getStatus): New function.
  8814. (setStatus): New function.
  8815. (getRange): New function.
  8816. (HttpHeaderHandle): New function.
  8817. * src/HttpHeader.cc
  8818. (getRange): New function.
  8819. * src/Request.h
  8820. (RequestWeakHandle): New definition.
  8821. * src/HttpConnection.h
  8822. (HttpConnectionHandle): New type definition.
  8823. * src/HttpConnection.cc
  8824. (receiveResponse): Set HTTP status to headers.
  8825. * src/main.cc
  8826. (showUsage): Fixed typo.
  8827. * src/Segment.h
  8828. (SegmentHandle): New type definition.
  8829. * src/BitfieldMan.h
  8830. (getMissingUnusedLength): New function.
  8831. * src/BitfieldMan.cc
  8832. (getMissingUnusedLength): New function.
  8833. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. To fix static initialization order problem:
  8835. * src/BitfieldManFactory.h
  8836. (defaultRandomizer): Removed.
  8837. (factory): New variable.
  8838. (getNewFactory): Removed.
  8839. (getFactoryInstance): New function.
  8840. (setDefaultRandomizer): Rewritten.
  8841. (getDefaultRandomizer): Rewritten.
  8842. * src/BitfieldManFactory.cc
  8843. (defaultRandomizer): Removed.
  8844. (factory): Initialized to 0.
  8845. (BitfieldManFactory): Initialized randomizer to 0.
  8846. * src/DefaultPieceStorage.cc
  8847. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8848. * src/Peer.cc
  8849. (Peer): getNewFactory() -> getFactoryInstance()
  8850. * src/SegmentMan.cc
  8851. (initBitfield): getNewFactory() -> getFactoryInstance()
  8852. * src/Piece.cc
  8853. (Piece): getNewFactory() -> getFactoryInstance()
  8854. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. To fix the bug that causes crash on Max OS X:
  8856. * src/SimpleRandomizer.h
  8857. (getInstance): Create new instance if the static variable is null.
  8858. * src/SimpleRandomizer.cc
  8859. (randomizer): Initialized to 0.
  8860. * src/BitfieldManFactory.h
  8861. (getNewFactory): Removed the call to setRandomizer().
  8862. To fix the miscalculation of the range of checksum:
  8863. * src/BitfieldMan.h
  8864. (isBitSetOffsetRange): New function.
  8865. * src/BitfieldMan.cc
  8866. (isBitSetOffsetRange): New function.
  8867. * src/SegmentMan.cc
  8868. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8869. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8870. * Release 0.10.1
  8871. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. To lower CPU usage in BitTorrent download when --max-upload-limit
  8873. command-line option specified:
  8874. * src/DefaultBtMessageDispatcher.cc
  8875. (sendMessages): Calculate uploading speed only when current message
  8876. is uploading data and is not sent yet.
  8877. * src/DefaultPeerStorage.h
  8878. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8879. * src/HttpResponseCommand.cc
  8880. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8881. This fixes compile error in Soralis 10.
  8882. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. To fix segfault in Metalink download:
  8884. * src/UrlRequestInfo.h
  8885. (filename): Removed.
  8886. (totalLength): Removed.
  8887. (setTotalLength): Removed.
  8888. (setFilename): Removed.
  8889. * src/MetalinkRequestInfo.cc
  8890. (execute): Do not set filename and totalLength to reqInfo.
  8891. Set chunk checksum to reqInfo if it is not null.
  8892. * src/HttpResponseCommand.cc
  8893. (executeInternal): Fixed filename in log.
  8894. (handleDefaultEncoding): Removed the call to initBitfield() and
  8895. markAllPiecesDone().
  8896. (handleOtherEncoding): Added HEAD method handling.
  8897. * src/FtpNegotiateCommand.cc
  8898. (executeInternal): Added SEQ_HEAD_OK handling.
  8899. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8900. return false.
  8901. * src/FtpNegotiateCommand.h
  8902. (SEQ_HEAD_OK): New definition.
  8903. * src/SegmentMan.cc
  8904. (initBitfield): Delete bitfield.
  8905. (isChunkChecksumValidationReady): Fixed the condition.
  8906. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8907. works fine.
  8908. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. * src/Xml2MetalinkProcessor.h
  8910. (xpathExists): New function.
  8911. * src/Xml2MetalinkProcessor.cc
  8912. (xpathExists): New function.
  8913. Not to send HEAD request if filename and size are available in Metalink
  8914. file:
  8915. * src/UrlRequestInfo.h
  8916. (filename): New variable.
  8917. (totalLength): New variable.
  8918. (setTotalLength): New function.
  8919. (setFilename): New function.
  8920. * src/MetalinkRequestInfo.cc
  8921. (execute): Set filename and size to UrlRequestInfo.
  8922. * src/MetalinkEntry.cc
  8923. (MetalinkEntry): Initialize size with 0.
  8924. * src/UrlRequestInfo.cc
  8925. (execute): Set filename and size to SegmentMan.
  8926. Not to download rest of the files after selected files are downloaded
  8927. in BitTorrent:
  8928. * src/PieceStorage.h
  8929. (allDownloadFinished): New function.
  8930. * src/DefaultBtAnnounce.cc
  8931. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8932. downloadFinished.
  8933. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8934. * src/DefaultPieceStorage.cc
  8935. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8936. Commented out the call to finishSelectiveDownloadingMode().
  8937. (downloadFinished): Call isFilteredAllBitSet() instead of
  8938. isAllBitSet().
  8939. (allDownloadFinished): New function.
  8940. * src/DefaultBtInteractive.cc
  8941. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8942. downloadFinished().
  8943. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8944. * src/TorrentDownloadEngine.cc
  8945. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8946. * src/BitfieldMan.h
  8947. (isFilteredAllBitSet): New function.
  8948. * src/ShareRatioSeedCriteria.h
  8949. (PieceStorage.h): New include.
  8950. (pieceStorage): New variable.
  8951. (evaluate):
  8952. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8953. * src/BitfieldMan.cc
  8954. (isFilteredAllBitSet): New function.
  8955. (isAllBitSet): Filter is not took into account.
  8956. Rename --force-truncate as --allow-overwrite:
  8957. * src/TorrentRequestInfo.cc
  8958. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8959. * src/main.cc
  8960. (showUsage): --force-truncate -> --allow-overwrite
  8961. * src/message.h
  8962. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8963. * src/prefs.h
  8964. (PREF_FORCE_TRUNCATE): Removed.
  8965. (PREF_ALLOW_OVERWRITE): New definition.
  8966. * src/SegmentMan.cc
  8967. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8968. * src/MetalinkRequestInfo.cc
  8969. (execute): Queueing message are now logged in info level.
  8970. * src/common.h
  8971. (LONG_LONG_MAX): Removed.
  8972. (LONG_LONG_MIN): Removed.
  8973. * src/HttpResponseCommand.cc
  8974. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8975. * src/FtpNegotiateCommand.cc
  8976. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8977. * src/main.cc
  8978. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8979. command-line option.
  8980. (main): Added --check-integriy and --realtime-chunk-checksum
  8981. command-line option.
  8982. --force-truncate -> --allow-overwrite
  8983. Set initial value of --check-integrity option to false.
  8984. Don't show usage when error occurs while persing command-line options.
  8985. Removed deprecated --upload-limit option.
  8986. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8988. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8989. * src/BtAllowedFastMessage.cc:
  8990. * src/BtBitfieldMessage.cc
  8991. * src/BtCancelMessage.cc
  8992. * src/BtChokeMessage.cc
  8993. * src/BtHaveAllMessage.cc
  8994. * src/BtHaveMessage.cc
  8995. * src/BtHaveNoneMessage.cc
  8996. * src/BtInterestedMessage.cc
  8997. * src/BtNotInterestedMessage.cc
  8998. * src/BtPieceMessage.cc
  8999. * src/BtPortMessage.cc
  9000. * src/BtRejectMessage.cc
  9001. * src/BtRequestMessage.cc
  9002. * src/BtSuggestPieceMessage.cc
  9003. * src/BtUnchokeMessage.cc
  9004. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9005. files are affected.
  9006. * src/ChunkChecksumValidator.cc
  9007. * src/SegmentMan.cc
  9008. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. To add chunk checksum validation:
  9010. * src/MetalinkEntry.h
  9011. (MetalinkChunkChecksum.h): New include.
  9012. (chunkChecksum): New variable.
  9013. * src/Request.h
  9014. (method): New variable.
  9015. (setMethod): New function.
  9016. (getMethod): New function.
  9017. (METHOD_GET): New static constant.
  9018. (METHOD_HEAD): New static constant.
  9019. * src/Xml2MetalinkProcessor.h
  9020. (getPieceHash): New function.
  9021. * src/PieceStorage.h
  9022. (markAllPiecesDone): New function.
  9023. (checkIntegrity): New function.
  9024. * src/FileAllocator.h
  9025. (NullFileAllocationMonitor.h): New include.
  9026. (FileAllocator): Initialize fileAllocationMonitor with new
  9027. NullFileAllocationMonitor().
  9028. * src/MultiDiskAdaptor.h
  9029. (messageDigest.h): Remove include.
  9030. (ctx): Removed.
  9031. (hashUpdate): Added ctx.
  9032. (MultiDiskAdaptor): Removed ctx.
  9033. (sha1Sum): Renamed as messageDigest.
  9034. (messageDigest): New function.
  9035. * src/UrlRequestInfo.h
  9036. (HeadResult): New class.
  9037. (digestAlgo): New variable.
  9038. (chunkChecksumLength): New variable.
  9039. (chunkChecksums): New variable.
  9040. (getHeadResult): New function.
  9041. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9042. (setDigestAlgo): New function.
  9043. (setChunkChecksumLength): New function.
  9044. (setChunkChecksums): New function.
  9045. * src/DefaultPieceStorage.cc
  9046. (DiskAdaptorWriter.h): New include.
  9047. (ChunkChecksumValidator.h): New include.
  9048. (markAllPiecesDone): New function.
  9049. (checkIntegrity): New function.
  9050. * src/DefaultBtContext.h
  9051. (getPieceHashes): New function.
  9052. * src/TorrentRequestInfo.cc
  9053. (execute): Try to validate chunk checksum if file already exists and
  9054. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9055. * src/messageDigest.h
  9056. (~MessageDigestContext): Added digestFree().
  9057. * src/MetalinkRequestInfo.cc
  9058. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9059. * src/DiskAdaptor.h
  9060. (messageDigest.h): New include.
  9061. (sha1Sum): Renamed as messageDigest.
  9062. (messageDigest): New function.
  9063. * src/DownloadCommand.h
  9064. (PeerStat.h): New include.
  9065. (maxDownloadSpeedLimit): New variable.
  9066. (startupIdleTime): New variable.
  9067. (lowestDownloadSpeedLimit): New variable.
  9068. (peerStat): New variable.
  9069. (setMaxDownloadSpeedLimit): New function.
  9070. (setStartupIdleTime): New function.
  9071. (setLowestDownloadSPeedLimit): New function.
  9072. * src/BtContext.h
  9073. (getPieceHashes): New function.
  9074. * src/main.cc
  9075. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9076. option to true for testing purpose.
  9077. * src/BtPieceMessage.cc
  9078. (checkPieceHash): Use messageDigest
  9079. * src/DownloadEngine.cc
  9080. (SetDescriptor): Removed.
  9081. (AccumulateActiveCommand): Removed.
  9082. (waitData): Rewritten.
  9083. (updateFdSet): Rewritten.
  9084. * src/MultiDiskAdaptor.cc
  9085. (hashUpdate): Added ctx.
  9086. (sha1Sum): Renamed as messageDigest.
  9087. (messageDigest): New function.
  9088. * src/BitfieldMan.h
  9089. (isBitRangeSet): New function.
  9090. (unsetBitRange): New function.
  9091. * src/ByteArrayDiskWriter.h
  9092. (sha1Sum): Renamed as messageDigest.
  9093. (messageDigest): New function.
  9094. * src/ConsoleDownloadEngine.cc
  9095. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9096. * src/DiskWriter.h
  9097. (messageDigest.h): New include.
  9098. (sha1Sum): Renamed as messageDigest.
  9099. (messageDigest): New function.
  9100. * src/ChunkChecksumValidator.h: New class.
  9101. * src/DiskAdaptorWriter.h: New class.
  9102. * src/prefs.h
  9103. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9104. (PREF_CHECK_INTEGRITY): New definition.
  9105. * src/HttpResponseCommand.cc
  9106. (handleDefaultEncoding): Added method "HEAD" handling.
  9107. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9108. (handleOtherEncoding):
  9109. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9110. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9111. startupIdleTime, lowestDownloadSpeedLimit to command.
  9112. * src/SegmentMan.h
  9113. (getSegmentEntryByIndex): New function.
  9114. (getSegmentEntryByCuid): New function.
  9115. (getSegmentEntryIteratorByCuid): New function.
  9116. (diskWriter): DiskWriter -> DiskWriterHandle
  9117. (pieceHashes): New variable.
  9118. (chunkHashLength): New variable.
  9119. (digestAlgo): New variable.
  9120. (FindPeerStat): Removed.
  9121. (getPeerStat): Rewritten.
  9122. (markAllPiecesDone): New function.
  9123. (checkIntegrity): New function.
  9124. (tryChunkChecksumValidation): New function.
  9125. (isChunkChecksumValidationReady): New function.
  9126. * src/BitfieldMan.cc
  9127. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9128. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9129. blocks to 0.
  9130. (isBitRangeSet): New function.
  9131. (unsetBitRange): New function.
  9132. * src/FtpNegotiateCommand.cc
  9133. (executeInternal): Set maxDownloadSpeedLimit,
  9134. startupIdleTime, lowestDownloadSpeedLimit to command.
  9135. (recvSize): Added method "HEAD" handling.
  9136. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9137. * src/AbstractSingleDiskAdaptor.cc
  9138. (sha1Sum): Renamed as messageDigest.
  9139. (messageDigest): New function.
  9140. * src/AbstractSingleDiskAdaptor.h
  9141. (sha1Sum): Renamed as messageDigest.
  9142. (messageDigest): New function.
  9143. * src/Util.h
  9144. (indexRange): New function.
  9145. * src/MetalinkEntry.cc
  9146. (MetalinkEntry): Initialized chunkChecksum to 0.
  9147. * src/ShaVisitor.cc
  9148. (~ShaVisitor): Removed the call to ctx.digestFree().
  9149. * src/SegmentMan.cc
  9150. (ChunkChecksumValidator.h): New include.
  9151. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9152. to DIGEST_ALGO_SHA1.
  9153. (~SegmentMan): Removed diskWriter.
  9154. (FindSegmentEntryByIndex): Removed.
  9155. (FindSegmentEntryByCuid): Removed.
  9156. (checkoutSegment): Rewritten.
  9157. (findSlowerSegmentEntry): Rewritten.
  9158. (getSegment): Rewritten.
  9159. (updateSegment): Rewritten.
  9160. (completeSegment): Rewritten.
  9161. (markAllPiecesDone): New function.
  9162. (checkIntegrity): New function.
  9163. (isChunkChecksumValidationReady): New function.
  9164. (tryChunkChecksumValidation): New function.
  9165. * src/Xml2MetalinkProcessor.cc
  9166. (getEntry): Get size and set it to entry.
  9167. Get chunk checksum and set it to entry.
  9168. (getPieceHash): New function.
  9169. * src/Util.cc
  9170. (sha1Sum): Removed ctx.digestFree()
  9171. (fileChecksum): Removed ctx.digestFree()
  9172. (indexRange): New function.
  9173. * src/Request.cc
  9174. (METHOD_GET): New variable.
  9175. (METHOD_HEAD): New variable.
  9176. (Request): Added method.
  9177. * src/UrlRequestInfo.cc
  9178. (FatalException.h): New include.
  9179. (message.h): New include.
  9180. (operator<<): Added operator<< for class HeadResult.
  9181. (getHeadResult): New function.
  9182. (execute): Get filename and size in separate download engine.
  9183. * src/ChunkChecksumValidator.cc: New class.
  9184. * src/DownloadCommand.cc:
  9185. (DownloadCommand): Added peerStat.
  9186. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9187. the value from Option.
  9188. The buffer size is now 16KB.
  9189. Use peerStat member instead of getting it from SegmentMan.
  9190. Use startupIdleTime member instead of gettingit from Option.
  9191. Added chunk checksum validation.
  9192. * src/AbstractDiskWriter.cc
  9193. (AbstractDiskWriter): Removed ctx.
  9194. (~AbstractDiskWriter): Removed ctx.digestFree()
  9195. (writeDataInternal): Returns the return value of write.
  9196. (readDataInternal): Returns the return value of read.
  9197. (sha1Sum): Renamed as messageDigest
  9198. (messageDigest): New function.
  9199. * src/AbstractDiwkWriter.h
  9200. (messageDigest.h): Removed include.
  9201. (ctx): Removed.
  9202. (sha1Sum): Renamed as messageDigest
  9203. (messageDigest): New function.
  9204. * src/DefaultPieceStorage.h
  9205. (markAllPiecesDone): New function.
  9206. (checkIntegrity): New function.
  9207. * src/NullFileAllocationMonitor.h: New class.
  9208. * src/MetalinkChunkChecksum.h: New class.
  9209. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. To decrease CPU usage in bittorrent download, calculation results in
  9211. BitfieldMan were cached and realtime fetching PeerObject was removed
  9212. with WeakHandle introduced. Option values are set to the objects
  9213. by setter before download begins.
  9214. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9215. * src/DefaultBtRequestFactory.h
  9216. (dispatcher): BtMessageDispatcherHandle ->
  9217. BtMessageDispatcherWeakHandle.
  9218. (messageFactory): New variable.
  9219. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9220. BtMessageDispatcherWeakHandle.
  9221. (setBtMessageFactory): New function.
  9222. * src/DefaultBtMessageDispatcher.cc:
  9223. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9224. from Option.
  9225. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9226. feating the value from Option.
  9227. Use messageFactory member.
  9228. * src/PeerInteractionCommand.cc
  9229. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9230. Add reverse dependencies to factory object.
  9231. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9232. dispatcher.
  9233. Set messageFactory to receiver.
  9234. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9235. btInteractive.
  9236. Set receiver to peerObject.
  9237. Set maxDownloadSpeedLimit to this.
  9238. (executeInternal): Use maxDownloadSpeedLimit member.
  9239. * src/BtChokeMessage.cc
  9240. (doReceivedAction): Use dispatcher, requestFactory member.
  9241. (onSendComplete): Use dispatcher member.
  9242. * src/PeerInteractionCommand.h
  9243. (maxDownloadSpeedLimit): New variable.
  9244. * src/DefaultBtMessageReceiver.h
  9245. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9246. (dispatcher):
  9247. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9248. (messageFactory): New variable.
  9249. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9250. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9251. (setDispatcher):
  9252. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9253. (setBtMessageFactory): New function.
  9254. * src/DefaultBtInteractive.cc
  9255. (initiateHandshake): Use messageFactory member.
  9256. (addBitfieldMessageToQueue): Use messageFactory member.
  9257. (addAllowedFastMessageToQueue): Use messageFactory member.
  9258. (decideChoking): Use messageFactory member.
  9259. (checkHave): Use messageFactory member.
  9260. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9261. (receiveMessages): Use maxDownloadSpeedLimit member.
  9262. (decideInterest): Use messageFactory member.
  9263. * src/BtRequestMessage.cc
  9264. (doReceivedAction): Use messageFactory, dispatcher member.
  9265. (onQueued): Use dispatcher member.
  9266. * src/BtPieceMessage.cc
  9267. (doReceivedAction): Use dispatcher member.
  9268. (send): Use peerConnection member.
  9269. (onWrongPiece): Use requestFactory member.
  9270. (handleChokingEvent): Use messageFactory, dispatcher member.
  9271. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9272. * src/BtMessageDispatcher.h
  9273. (BtMessageDispatcherWeakHandle): New type definition.
  9274. * src/SimpleBtMessage.cc
  9275. (send): Use peerConnection member.
  9276. * src/BtRejectMessage.cc
  9277. (doReceivedAction): Use dispatcher member.
  9278. * src/DefaultBtMessageDispatcher.h
  9279. (Option.h): Removed include.
  9280. (messageFactory): New variable.
  9281. (option): Removed.
  9282. (maxUploadSpeedLimit): New variable.
  9283. (requestTimeout): New variable.
  9284. (DefaultBtMessageDispatcher): Removed option.
  9285. Added maxUploadSpeedLimit, requestTimeout.
  9286. (setOption): Removed.
  9287. (getOption): Removed.
  9288. (setMaxUploadSpeedLimit): New function.
  9289. (setRequestTimeout): New function.
  9290. (setBtMessageFactory): New function.
  9291. * src/DefaultBtInteractive.h
  9292. (btMessageReceiver):
  9293. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9294. (dispatcher):
  9295. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9296. (btRequestFactory):
  9297. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9298. (peerConnection):
  9299. PeerConnectionHandle -> PeerConnectionWeakHandle
  9300. (messageFactory): New variable.
  9301. (option): Removed.
  9302. (keepAliveInterval): New variable.
  9303. (maxDownloadSpeedLimit): New variable.
  9304. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9305. (setBtMessageReceiver):
  9306. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9307. (setDispatcher):
  9308. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9309. (setBtRequestFactory):
  9310. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9311. (setPeerConnection):
  9312. PeerConnectionHandle -> PeerConnectionWeakHandle
  9313. (setOption): Removed.
  9314. (setKeepAliveInterval): New function.
  9315. (setMaxDownloadSpeedLimit): New function.
  9316. (setBtMessageFactory): New function.
  9317. * src/BitfieldMan.h
  9318. (cachedNumMissingBlock): New variable.
  9319. (cachedNumFilteredBlock): New variable.
  9320. (cachedCompletedLength): New variable.
  9321. (cachedFilteredComletedLength): New variable.
  9322. (cachedFilteredTotalLength): New variable.
  9323. (countMissingBlockNow): New function.
  9324. (countFilteredBlockNow): New function.
  9325. (getFilteredTotalLengthNow): New function.
  9326. (getCompletedLengthNow): New function.
  9327. (getFilteredCompletedLengthNow): New function.
  9328. (updateCache): New function.
  9329. * src/AbstractBtMessage.h
  9330. (BtMessageDispatcher.h): New include.
  9331. (PeerConnection.h): New include.
  9332. (BtRequestFactory.h): New include
  9333. (BtMessageFactory.h): New include.
  9334. (dispatcher): New variable.
  9335. (messageFactory): New variable.
  9336. (peerConnection: New variable.
  9337. (setBtMessageDispatcher): New function.
  9338. (setPeerConnection): New function.
  9339. (setBtMessageFactory): New function.
  9340. (setBtRequestFactory): New function.
  9341. * src/DefaultBtMessageFactory.cc
  9342. (setCommonProperty): Set dispatcher, requestFactory, this,
  9343. peerConnection to msg.
  9344. * src/BtRegistry.h
  9345. (BT_MESSAGE_RECEIVER): New macro.
  9346. * src/PeerConnection.h
  9347. (PeerConnectionWeakHandle): New type definition.
  9348. * src/BtMessageFactory.h
  9349. (BtMessageFactoryWeakHandle): New type definition.
  9350. * src/BitfieldMan.cc
  9351. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9352. cachedCompletedLength, cachedFilteredComletedLength,
  9353. cachedFilteredTotalLength.
  9354. Call updateCache().
  9355. (countMissingBlock): Return cachedNumMissingBlock.
  9356. (countMissingBlockNow): New function.
  9357. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9358. (countFilteredBlockNow): New function.
  9359. (setBit): Call updateCache().
  9360. (unsetBit): Call updateCache().
  9361. (setBitfield): Call updateCache().
  9362. (clearAllBit): Call updateCache().
  9363. (setAllBit): Use setBitInternal instead of setBit.
  9364. Call updateCache().
  9365. (addFilter): Call updateCache().
  9366. (enableFilter): Call updateCache().
  9367. (disableFilter): Call updateCache().
  9368. (clearFilter): Call updateCache().
  9369. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9370. (getFilteredTotalLengthNow): New function.
  9371. (getCompletedLength): Return cachedCompletedLength.
  9372. (getCompletedLengthNow): New function.
  9373. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9374. (getFilteredCompletedLengthNow): New function.
  9375. (updateCache): New function.
  9376. * src/BtMessageReceiver.h
  9377. (BtMessageReceiverWeakHandle): New type definition.
  9378. * src/DefaultBtMessageReceiver.cc
  9379. (receiveHandshake): Use messageFactory member.
  9380. (sendHandshake): Use messageFactory member.
  9381. (receiveMessage): Use messageFactory member.
  9382. * src/DefaultBtMessageFactory.h
  9383. (dispatcher): New variable.
  9384. (requestFactory): New variable.
  9385. (peerConnection): New variablle.
  9386. (setBtMessageDispatcher): New function.
  9387. (setBtRequestFactory): New function.
  9388. (setPeerConnection): New function.
  9389. * src/SharedHandle.h
  9390. (RefCount): New class.
  9391. (WeakHandle): New class.
  9392. * src/PeerObject.h
  9393. (BtMessageReceiver.h): New include.
  9394. (PeerObject): Added btMessageReceiver.
  9395. (btMessageReceiver): New variable.
  9396. * src/Util.cc
  9397. (countBit): Simplified.
  9398. * src/BtCancelMessage.cc
  9399. (doReceivedAction): Use dispatcher member.
  9400. * src/BtRequestFactory.h
  9401. (BtRequestFactoryWeakHandle): New type definition.
  9402. * src/PeerStorage.h
  9403. (downloadSpeed): int -> uint32_t
  9404. (uploadSpeed): int -> uint32_t
  9405. (sessionDownloadLength): long long int -> uint64_t
  9406. (sessionUploadLength): long long int -> uint64_t
  9407. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. To add RecoverableException, FatalException:
  9409. * src/AbstractCommand.cc
  9410. (onAbort): Exception -> RecoverableException
  9411. * src/PeerAbstractCommand.h
  9412. (RecoverableException.h): New include.
  9413. (onAbort): Exception -> RecoverableException.
  9414. * src/PeerInteractionCommand.cc
  9415. (onAbort): Exception -> RecoverableException.
  9416. * src/PeerAbstractCommand.cc
  9417. (execute): Exception -> RecoverableException.
  9418. (onAbort): Exception -> RecoverableException.
  9419. * src/TorrentRequestInfo.cc
  9420. (execute): Exception -> RecoverableException.
  9421. * src/MetalinkRequestInfo.cc
  9422. (execute): Exception -> RecoverableException.
  9423. * src/MetaFileUtil.cc: RecoverableException.
  9424. * src/AbstractCommand.h
  9425. (onAbort): Exception -> RecoverableException.
  9426. * src/DlRetryEx.h: Exception -> RecoverableException.
  9427. * src/DlAbortEx.h: Exception -> RecoverableException.
  9428. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9429. * src/Util.cc: Exception -> RecoverableException.
  9430. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9431. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9432. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9433. To make ID static const int
  9434. * src/BtInterestedMessage.h
  9435. (ID_t): Removed.
  9436. (ID): New variable.
  9437. (getId): Made non-const.
  9438. * src/BtPieceMessage.h
  9439. (ID_t): Removed.
  9440. (ID): New variable.
  9441. (getId): Made non-const.
  9442. * src/BtChokeMessage.h
  9443. (ID_t): Removed.
  9444. (ID): New variable.
  9445. (getId): Made non-const.
  9446. * src/BtHaveAllMessage.h
  9447. (ID_t): Removed.
  9448. (ID): New variable.
  9449. (getId): Made non-const.
  9450. * src/BtKeepAliveMessage.h
  9451. (ID_t): Removed.
  9452. (ID): New variable.
  9453. (getId): Made non-const.
  9454. * src/BtHandshakeMessage.h
  9455. (ID): New variable.
  9456. (getId): Made non-const.
  9457. * src/BtSuggestPieceMessage.h
  9458. (ID_t): Removed.
  9459. (ID): New variable.
  9460. (getId): Made non-const.
  9461. * src/BtPortMessage.h
  9462. (ID_t): Removed.
  9463. (ID): New variable.
  9464. (getId): Made non-const.
  9465. * src/AbstractBtMessage.h
  9466. (id): Removed.
  9467. (AbstractBtMessage): Removed id.
  9468. (getId): Removed.
  9469. * src/BtHaveMessage.h
  9470. (ID_t): Removed.
  9471. (ID): New variable.
  9472. (getId): Made non-const.
  9473. * src/BtAllowedFastMessage.h
  9474. (ID_t): Removed.
  9475. (ID): New variable.
  9476. (getId): Made non-const.
  9477. * src/BtCancelMessage.h
  9478. (ID_t): Removed.
  9479. (ID): New variable.
  9480. (getId): Made non-const.
  9481. * src/BtNotInterestedMessage.h
  9482. (ID_t): Removed.
  9483. (ID): New variable.
  9484. (getId): Made non-const.
  9485. * src/BtChokeMessage.h
  9486. (ID_t): Removed.
  9487. (ID): New variable.
  9488. (getId): Made non-const.
  9489. * src/BtRejectMessage.h
  9490. (ID_t): Removed.
  9491. (ID): New variable.
  9492. (getId): Made non-const.
  9493. * src/BtBitfieldMessage.h
  9494. (ID_t): Removed.
  9495. (ID): New variable.
  9496. (getId): Made non-const.
  9497. * src/BtUnchokeMessage.h
  9498. (ID_t): Removed.
  9499. (ID): New variable.
  9500. (getId): Made non-const.
  9501. * src/BtRequestMessage.h
  9502. (ID_t): Removed.
  9503. (ID): New variable.
  9504. (getId): Made non-const.
  9505. * src/BtHaveMessage.h
  9506. (ID_t): Removed.
  9507. (ID): New variable.
  9508. (getId): Made non-const.
  9509. To add --force-truncate command-line option and a check whether
  9510. the file already exists:
  9511. * src/DirectDiskAdaptor.h
  9512. (getFilePath): Made virtual public.
  9513. * src/MultiDiskAdaptor.h
  9514. (File.h): New include.
  9515. (DiskWriterEntry::fileEntry): Made private.
  9516. (DiskWriterEntry::fileExists): New function.
  9517. (DiskWriterEntry::getFileEntry): New function.
  9518. (fileExists): New function.
  9519. (getFilePath): New function.
  9520. * src/TorrentRequestInfo.cc
  9521. (FatalException.h): New include.
  9522. (message.h): New include.
  9523. (RecoverableException.h): New include.
  9524. (execute): Added a check whether file is already exists or not.
  9525. * src/DiskAdaptor.h
  9526. (fileExists): New function.
  9527. (getFilePath): New function.
  9528. * src/main.cc
  9529. (showUsage): Added an explanation of --force-truncate command-line
  9530. option.
  9531. (main): Added --force-truncate command-line option.
  9532. * src/Exception.h
  9533. (setMsg): buf[256] -> buf[1024]
  9534. * src/CopyDiskWriter.h
  9535. (getFilePath): Made public virtual.
  9536. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9537. (fileExists): New function.
  9538. * src/DownloadEngineFactory.cc
  9539. (newTorrentConsoleEngine): Don't open file here.
  9540. * src/message.h
  9541. (EX_FILE_ALREADY_EXISTS): New definition.
  9542. * src/prefs.h
  9543. (PREF_FOECE_TRUNCATE): New definition.
  9544. * src/HttpResponseCommand.cc
  9545. (handleDefaultEncoding): Added a check whether the file already exists.
  9546. * src/SegmentMan.h
  9547. (fileExists): New function.
  9548. (shouldCancelDownloadForSafety): New function.
  9549. * src/FtpNegotiateCommand.cc
  9550. (recvSize): Added a check whether the file already exists.
  9551. * src/AbstractSingleDiskAdaptor.cc
  9552. (File.h): New include.
  9553. (fileExists): New function.
  9554. * src/AbstractSingleDiskAdaptor.h
  9555. (getFilePath): Removed.
  9556. (fileExists): New function.
  9557. * src/SegmentMan.cc
  9558. (fileExists): New function.
  9559. (shouldCancelDownloadForSafety): New function.
  9560. To fix regression bug in torrent downloading:
  9561. * src/DefaultBtRequestFactory.cc
  9562. (doChokedAction): New function.
  9563. * src/DefaultBtRequestFactory.h
  9564. (doChokedAction): New function.
  9565. * src/DefaultBtMessageDispatcher.cc
  9566. (doChokedAction): Do not delete request if its target is in allowed
  9567. fast set.
  9568. * src/DefaultBtInteractive.cc
  9569. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9570. (sendKeepAlive): Send keep alive message even if the outgoing message
  9571. queue is not empty.
  9572. (decideInterest): Simplified the code.
  9573. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9574. it is already called when BtChokeMessage is received from a peer.
  9575. * src/BtRequestFactory.h
  9576. (doChokedAction): New function.
  9577. To clean up code:
  9578. * src/PeerInteractionCommand.h
  9579. (executeInternal): Added virtual keyword explicitly.
  9580. (prepareForRetry): Added virtual keyword explicitly.
  9581. (prepareForNextPeer): Added virtual keyword explicitly.
  9582. (onAbort): Added virtual keyword explicitly.
  9583. * src/RequestSlot.cc
  9584. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9585. * src/BtPieceMessage.cc
  9586. (doReceivedAction): Added a debug log of piece's bitfield.
  9587. * src/Piece.h
  9588. (getBitfieldLength): New function.
  9589. * src/ByteArrayDiskWriter.cc
  9590. (clear): Added buf = 0 to avoid double free corruption.
  9591. * src/FileAllocator.cc
  9592. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9593. Added cp.reset().
  9594. * src/BitfieldMan.h
  9595. (operator=): Rewritten.
  9596. * src/BitfieldMan.cc
  9597. (BitfieldMan): Initialized bitfield, useBitfield.
  9598. * src/PeerConnection.cc
  9599. (receiveMessage): Added a call to socket->readable() after getting
  9600. message length to avoid possible EOF.
  9601. * src/Util.cc
  9602. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9603. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. To add an ability to pre-allocate file space:
  9605. * src/DirectDiskAdaptor.h: Rewritten.
  9606. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9607. * src/MultiDiskAdaptor.h: Rewritten.
  9608. * src/DefaultPieceStorage.cc
  9609. (MultiDiskWriter.h): Removed include.
  9610. (PreAllocationDiskWriter.h): Removed include.
  9611. (FileAllocationMonitor.h): New include.
  9612. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9613. (initStorage): Rewritten.
  9614. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9615. * src/FileAllocator.h: New class.
  9616. * src/FileAllocator.cc: New class.
  9617. * src/FileAllocationMonitor.h: New class.
  9618. * src/FileAllocationMonitor.cc: New class.
  9619. * src/ConsoleFileAllocationMonitor.h: New class.
  9620. * src/ConsoleFileAllocationMonitor.cc: New class.
  9621. * src/AbstractSingleDiskAdaptor.h: New class.
  9622. * src/AbstractSingleDiskAdaptor.cc: New class.
  9623. * src/DiskAdaptor.h
  9624. (Directory.h): Removed include.
  9625. (DiskWriter.h): Removed include.
  9626. (FileEntry.h): Removed include.
  9627. (diskWriter): Removed.
  9628. (DiskAdaptor): Removed diskWriter.
  9629. (openFile): Made pure virtual.
  9630. (closeFile): Made pure virtual.
  9631. (openExistingFile): Made pure virtual.
  9632. (initAndOpenFile): Made pure virtual.
  9633. (writeData): Made pure virtual.
  9634. (readData): Made pure virtual.
  9635. (sha1Sum): Made pure virtual.
  9636. (getStoreDir): Returns const reference of storeDir.
  9637. (DiskAdaptorHandle): New type definition.
  9638. * src/main.cc
  9639. (ConsoleFileAllocationMonitor.h): New include.
  9640. (showUsage): Added default value description of -s option.
  9641. Added the description of --file-allocation option.
  9642. (main): Set default value of --file-allocation option to 'none'.
  9643. Added --file-allocation command-line option.
  9644. Setup FileAllocationMonitorFactory.
  9645. * src/FtpInitiateConnectionCommand.cc
  9646. (executeInternal): Removed diskWriter related processing, which was
  9647. moved to FtpNegotiationCommand.cc.
  9648. * src/DirectDiskAdaptor.cc
  9649. (getFilePath): Made non-const.
  9650. * src/CopyDiskAdaptor.h
  9651. (DiskAdaptor.h): Removed include.
  9652. (DiskWriter.h): Removed include.
  9653. (AbstractSingleDiskAdaptor.h): New include.
  9654. (getFilePath): Made non-const. Added virtual keyword.
  9655. (CopyDiskAdaptor): Removed diskWriter.
  9656. (getTempFile): Returns const reference.
  9657. (CopyDiskAdaptorHandle): New type definition.
  9658. * src/ByteArrayDiskWriter.cc
  9659. (clear): Simplified.
  9660. (initAndOpenFile): Rewritten.
  9661. (openFile): Call initAndOpenFile()
  9662. * src/MultiDiskAdaptor.cc: Rewritten.
  9663. * src/DownloadEngineFactory.cc
  9664. (FileAllocator.h): New include.
  9665. (FileAllocationMonitor.h): New include.
  9666. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9667. create DefaultDiskWriter with file allocator.
  9668. * src/DiskWriter.h
  9669. (initAndOpenFile): Added totalLength argument.
  9670. (openFile): Added totalLength argument.
  9671. * src/prefs.h
  9672. (PREF_FILE_ALLOCATION): New definition.
  9673. (V_PREALLOC): New definition.
  9674. (V_NONE): New definition.
  9675. * src/HttpResponseCommand.cc
  9676. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9677. size.
  9678. * src/FtpNegotiateCommand.cc
  9679. (Util.h): New include.
  9680. (recvSize): Open file here.
  9681. * src/Util.h
  9682. (ullitos): New function.
  9683. * src/CopyDiskWriter.h
  9684. (getFilePath): Made non-const.
  9685. * src/DefaultDiskWriter.h
  9686. (Option.h): New include.
  9687. (totalLength): Removed.
  9688. (DefaultDiskWriter): Removed totalLength.
  9689. (initAndOpenFile): Added totalLength argument.
  9690. (DefaultDiskWriterHandle): New type definition.
  9691. (createNewDiskWriter): New function.
  9692. * src/Util.cc
  9693. (ullitos): New function.
  9694. * src/DefaultDiskWriter.cc
  9695. (message.h): New include.
  9696. (FileAllocator.h): New include.
  9697. (prefs.h): New include.
  9698. (Util.h): New include.
  9699. (DefaultDiskWriter): Removed totalLength.
  9700. (initAndOpenFile): Added file allocation.
  9701. (createNewDiskWriter): New function. Just for temporary solution.
  9702. It will be rewritten later.
  9703. * src/DiskAdaptor.cc
  9704. (DiskAdaptor): Removed diskWriter.
  9705. * src/AbstractDiskWriter.cc
  9706. (LogFactory.h): New include.
  9707. (AbstractDiskWriter): Added fileAllocator, logger.
  9708. (openFile): Added totalLength argument.
  9709. * src/AbstractDiskWriter.h
  9710. (FileAllocator.h): New include.
  9711. (Logger.h): New include.
  9712. (fileAllocator): New variable.
  9713. (logger): New variable.
  9714. (openFile): Added totalLength argument. Added virtual keyword
  9715. explicitly.
  9716. (openExistingFile): Added totalLength argument. Added virtual keyword
  9717. explicitly.
  9718. (closeFile): Added virtual keyword explicitly.
  9719. (sha1Sum): Added virtual keyword explicitly.
  9720. (writeData): Added virtual keyword explicitly.
  9721. (readData): Added virtual keyword explicitly.
  9722. (setFileAllocator): New function.
  9723. * src/DefaultPieceStorage.h
  9724. (FileAllocator.h): New include.
  9725. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9726. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9727. * src/FileProgressMonitor.h: New class.
  9728. To compile aria2 on PC-BSD:
  9729. * src/DefaultBtContext.cc
  9730. (libgen.h): New include.
  9731. To fix memory leak:
  9732. * src/Exception.h
  9733. (~Exception): Delete cause. Fixed memory leak.
  9734. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Rewritten a portion of bittorrent implementation:
  9736. * src/BtMessageValidator.h: New class.
  9737. * src/BtBitfieldMessageValidator.h: New class.
  9738. * src/BtHandshakeMessageValidator.h: New class.
  9739. * src/BtRequestMessageValidator.h: New class.
  9740. * src/BtSuggestPieceMessageValidator.h: New class.
  9741. * src/BtAllowedFastMessageValidator.h: New class.
  9742. * src/BtRejectMessageValidator.h: New class.
  9743. * src/BtCancelMessageValidator.h: New class.
  9744. * src/BtPieceMessageValidator.h: New class.
  9745. * src/BtHaveMessageValidator.h: New class.
  9746. * src/BtEventListener.h: New class.
  9747. * src/AbstractBtEventListener.h: New class.
  9748. * src/BtEvent.h: New class.
  9749. * src/BtChokingEvent.h: New class.
  9750. * src/BtChokedEvent.h: New class.
  9751. * src/BtCancelSendingPieceEvent.h: New class.
  9752. * src/BtAbortOutstandingRequestEvent.h: New class.
  9753. * src/Randomizer.h: New class.
  9754. * src/SimpleRandomizer.h: New class.
  9755. * src/BtMessage.h: New class.
  9756. * src/AbstractBtMessage.h: New class.
  9757. * src/SimpleBtMessage.h: New class.
  9758. * src/BtHaveMessage.h: New class.
  9759. * src/BtInterestedMessage.h: New class.
  9760. * src/BtAllowedFastMessage.h: New class.
  9761. * src/BtUnchokeMessage.h: New class.
  9762. * src/BtCancelMessage.h: New class.
  9763. * src/BtNotInterestedMessage.h: New class.
  9764. * src/BtChokeMessage.h: New class.
  9765. * src/BtHaveNoneMessage.h: New class.
  9766. * src/BtHandshakeMessage.h: New class.
  9767. * src/BtSuggestPieceMessage.h: New class.
  9768. * src/BtHaveMessage.h: New class.
  9769. * src/BtPieceMessage.h: New class.
  9770. * src/BtHaveAllMessage.h: New class.
  9771. * src/BtKeepAliveMessage.h: New class.
  9772. * src/BtPortMessage.h: New class.
  9773. * src/BtRejectMessage.h: New class.
  9774. * src/BtBitfieldMessage.h: New class.
  9775. * src/BtRequestMessage.h: New class.
  9776. * src/DefaultBtRequestFactory.h: New class.
  9777. * src/DefaultBtMessageReceiver.h: New class.
  9778. * src/BtInteractive.h: New class.
  9779. * src/BtMessageDispatcher.h: New class.
  9780. * src/DefaultBtMessageDispatcher.h: New class.
  9781. * src/DefaultBtInteractive.h: New class.
  9782. * src/BitfieldManFactory.h: New class.
  9783. * src/HandleRegistry.h: New class.
  9784. * src/BtMessageFactory.h: New class.
  9785. * src/BtMessageReceiver.h: New class.
  9786. * src/DefaultBtMessageFactory.h: New class.
  9787. * src/PeerObject.h: New class.
  9788. * src/BtRequestFactory.h: New class.
  9789. * src/SuggestPieceMessage.h: Removed.
  9790. * src/PortMessage.h: Removed.
  9791. * src/SuggestPieceMessage.h: Removed.
  9792. * src/KeepAliveMessage.h: Removed.
  9793. * src/HandshakeMessage.h: Removed.
  9794. * src/PeerInteraction.h: Removed.
  9795. * src/UnchokeMessage.h: Removed.
  9796. * src/PieceMessage.h: Removed.
  9797. * src/RequestMessage.h: Removed.
  9798. * src/InterestedMessage.h: Removed.
  9799. * src/HaveMessage.h: Removed.
  9800. * src/CancelMessage.h: Removed.
  9801. * src/RejectMessage.h: Removed.
  9802. * src/AllowedFastMessage.h: Removed.
  9803. * src/HaveNoneMessage.h: Removed.
  9804. * src/SimplePeerMessage.h: Removed.
  9805. * src/HaveAllMessage.h: Removed.
  9806. * src/BitfieldMessage.h: Removed.
  9807. * src/PeerMessageFactory.h: Removed.
  9808. * src/NotInterestedMessage.h: Removed.
  9809. * src/ChokeMessage.h: Removed.
  9810. * src/PeerMessage.h: Removed.
  9811. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. To know root cause of exception:
  9813. * src/Exception.h
  9814. (cause): New variable.
  9815. (Exception): Added a parameter.
  9816. (getMsg): Return const reference to msg.
  9817. (getCause): New function.
  9818. * src/DlRetryEx.h
  9819. (DlRetryEx): Added a parameter 'cause'.
  9820. Added an overloaded constructor.
  9821. (DlAbortEx): Added a parameter 'cause'.
  9822. Added an overloaded constructor.
  9823. * src/SimpleLogger.cc
  9824. (writeLog): Log nested exception messages recursively.
  9825. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. * src/DefaultBtProgressInfoFile.cc
  9827. (load): Fixed memory leak when the infohash doesn't match.
  9828. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. * src/DefaultPeerStorage.cc
  9830. (calculateStat): Simplified the code by combining 2 loops into 1.
  9831. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9833. for BitTorrent download:
  9834. * src/PeerAbstractCommand.cc
  9835. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9836. * src/main.cc:
  9837. (timeoutSpecified): Removed.
  9838. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9839. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9840. * src/TorrentRequestInfo.cc
  9841. (timeoutSpecified): Removed.
  9842. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9843. timeout value.
  9844. * src/prefs.h
  9845. (PREF_BT_TIMEOUT): New definition.
  9846. Delete unused variables:
  9847. * src/TorrentRequestInfo.cc
  9848. (requestInfo): Removed.
  9849. Move setSignalHander to Util::setGlobalSignalHandler:
  9850. * src/TorrentRequestInfo.cc:
  9851. setSignalHander -> Util::setGlobalSignalHandler
  9852. * src/main.cc
  9853. (setSignalHander): Removed.
  9854. (main): setSignalHander -> Util::setGlobalSignalHandler
  9855. * src/Util.h
  9856. (setGlobalSignalHandler): New function.
  9857. * src/Util.cc
  9858. (setGlobalSignalHandler): New function.
  9859. * src/UrlRequestInfo.cc:
  9860. setSignalHander -> Util::setGlobalSignalHandler
  9861. Reset peer status in order to exit gracefully:
  9862. * src/PeerAbstractCommand.cc
  9863. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9864. To fix the bug that causes the number of bytes uploaded is not saved
  9865. to .aria2 file:
  9866. * src/DefaultPeerStorage.h
  9867. (removedPeerSessionDownloadLength): New variable.
  9868. (removedPeerSessionUploadLength): New variable.
  9869. * src/DefaultPeerStorage.cc
  9870. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9871. removedPeerSessionUploadLength(0).
  9872. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9873. through all peers, and then add removedPeerSessionDownloadLength(
  9874. removedPeerSessionUploadLength) to it.
  9875. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9876. (to) the peer to removedPeerSessionDownloadLength
  9877. (removedPeerSessionUploadLength).
  9878. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9879. To add Metalink location option:
  9880. * src/MetalinkRequestInfo.cc
  9881. (execute): Call MetalinkEntry::setLocationPreference()
  9882. * src/main.cc
  9883. (showUsage): Added the help message for --metalink-location option.
  9884. (main): Added --metalink-location option.
  9885. * src/prefs.h
  9886. (PREF_METALINK_LOCATION): New definition.
  9887. * src/MetalinkEntry.cc
  9888. (AddLocationPreference): New function object.
  9889. (setLocationPreference): New function.
  9890. * src/Xml2MetalinkProcessor.cc
  9891. (getResource): Set location attribute to MetalinkResource
  9892. To show URLs to download
  9893. * src/UrlRequestInfo.h
  9894. (printUrls): New function.
  9895. To add multiple <file> Metalink support:
  9896. * src/MetalinkEntry.h
  9897. (MetalinkResources): Removed.
  9898. (setLocationPreference): New function.
  9899. (MetalinkEntryHandle): New type definition.
  9900. (MetalinkEntries): New type definition.
  9901. * src/Xml2MetalinkProcessor.h
  9902. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9903. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9904. (parseFile): Metalinker* -> MetalinkerHandle
  9905. * src/UrlRequestInfo.h
  9906. (execute): RequestInfo* -> RequestInfos
  9907. * src/MetalinkRequestInfo.cc
  9908. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9909. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9910. (execute): RequestInfo* -> RequestInfos
  9911. Added multiple <file> support. Print filename when it is queued.
  9912. * src/MetalinkRequestInfo.h
  9913. (execute): RequestInfo* -> RequestInfos
  9914. (getDownloadEngine): Removed.
  9915. * src/RequestInfo.h
  9916. (RequestInfoHandle): New type definition.
  9917. (RequestInfos): New type definition.
  9918. (execute): RequestInfo* -> RequestInfos
  9919. (getDownloadEngine): Removed.
  9920. * src/MetalinkResource.h
  9921. (MetalinkResourceHandle): New type definition.
  9922. (MetalinkResources): New type definition.
  9923. * src/MetalinkEntry.cc
  9924. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9925. because the element is now of type MetalinkResourceHandle.
  9926. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9927. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9928. (dropUnsupportedResource): Removed the deletion of the elements of
  9929. resources because the element is now of type MetalinkResourceHandle.
  9930. * src/Xml2MetalinkProcessor.cc
  9931. (parseFile): Metalinker* -> MetalinkerHandle
  9932. MetalinkEntry* -> MetalinkEntryHandle
  9933. Removed try-catch block.
  9934. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9935. MetalinkResource* -> MetalinkResourceHandle
  9936. Removed try-catch block.
  9937. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9938. Free result by using xmlXPathFreeObject()
  9939. * src/Metalinker.cc
  9940. (~Metalinker): Removed the deletion of entries.
  9941. MetalinkEntry* -> MetalinkEntryHandle
  9942. (queryEntry): Add multiple <file> Metalink support.
  9943. * src/Metalinker.h
  9944. (MetalinkEntries): Removed.
  9945. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9946. * src/MetalinkProcessor.h
  9947. (parseFile): Metalinker* -> MetalinkerHandle
  9948. Bug fixes:
  9949. * src/PeerChokeCommand.cc
  9950. (execute): cat01->cat02
  9951. * src/DefaultPieceStorage.cc
  9952. (DefaultPieceStorage): Added diskAdaptor(0)
  9953. * src/TrackerWatcherComand.cc:
  9954. (execute): Use btAnnounce->noMoreAnnounce()
  9955. to determin whether the function returns true or not.
  9956. * src/TrackerUpdateCommand.cc:
  9957. (execute): Use btAnnounce->noMoreAnnounce()
  9958. to determin whether the function returns true or not.
  9959. * src/FtpConnection.cc
  9960. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9961. This is the fix of the busy loop bug.
  9962. * src/DownloadCommand.cc
  9963. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9964. cached PeerStat.
  9965. The value of "name" entry in torrent file is now set by
  9966. *DiskAdaptor::setTopDir(...) methods.
  9967. * src/MultiDiskAdaptor.h
  9968. (topDir): New variable.
  9969. (setTopDir): New function.
  9970. (getTopDir): New function.
  9971. * src/MultiDiskAdaptor.cc
  9972. (getFilePath): Concat storDir, "/" and topDir.
  9973. (mkdir): Use getFilePath() to get the directory path for output.
  9974. * src/DefaultPieceStorage.cc
  9975. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9976. CopyDiskAdaptor.
  9977. * src/CopyDiskAdaptor.h
  9978. (topDir): New variable.
  9979. (setTopDir): New function.
  9980. (getTopDir): New function.
  9981. * src/CopyDiskAdaptor.cc
  9982. (fixFilename): Updated.
  9983. Misc
  9984. * src/UrlRequestInfo.h
  9985. (e): Removed.
  9986. (UrlRequestInfo): Removed e.
  9987. (getDownloadEngine): Removed.
  9988. * src/UrlRequestInfo.cc
  9989. (handler): Rewritten.
  9990. (printUrls): New function.
  9991. (execute): Call printUrls().
  9992. * src/HandshakeMessage.cc
  9993. (check): peerinteraction->getBtContext() -> btContext
  9994. * src/PeerInteraction.h
  9995. (getBtContext): Removed.
  9996. * src/TorrentRequestInfo.h
  9997. (execute): RequestInfo* -> RequestInfos
  9998. (getDownloadEngine): Removed.
  9999. * src/TorrentRequestInfo.cc
  10000. (haltRequested): Removed.
  10001. (btHaltRequested): New variable.
  10002. (torrentHandler): haltRequested -> btHaltRequested
  10003. (execute): RequestInfo* -> RequestInfos
  10004. * src/TorrentConsoleDownloadEngine.cc
  10005. (afterEachIteration): haltRequested -> btHaltRequested.
  10006. * src/ConsoleDownloadEngine.h
  10007. (initStatistics): Added virtual.
  10008. (calculateStatistics): Added virtual.
  10009. (onEndOfRun): Added virtual.
  10010. (afterEachIteration): Added virtual.
  10011. * src/ConsoleDownloadEngine.cc
  10012. (haltRequested): New variable.
  10013. (afterEachIteration): New function.
  10014. * src/main.cc
  10015. (requestInfo): Removed.
  10016. * src/SegmentMan.cc
  10017. (findSlowerSegmentEntry): Refactored.
  10018. * Release 0.9.0
  10019. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10021. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10022. * src/TorrentMan.h: Removed.
  10023. * src/TorrentMan.cc: Removed.
  10024. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10025. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10026. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10027. * src/PeerAbstractCommand.cc: Use btRuntime.
  10028. * src/BtContextAwareCommand.h: New class.
  10029. * src/FileEntry.h: Added accessor methods for following variables.
  10030. (path): Made private.
  10031. (length): Made private.
  10032. (offset): Made private.
  10033. (extracted): Made private.
  10034. (requested): Made private.
  10035. (FileEntries): New definition.
  10036. (FileEntryHandle): New definition.
  10037. * src/FileEntry.cc: New file.
  10038. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10039. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10040. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10041. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10042. * src/PieceStorage.h: New file.
  10043. * src/PeerInteractionCommand.h: Use btContext.
  10044. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10045. btRuntime.
  10046. * src/DefaultBtProgressInfoFile.h: New file.
  10047. * src/DefaultBtProgressInfoFile.cc: New file.
  10048. * src/File.cc
  10049. (Util.h): New include.
  10050. (mkdirs): New function.
  10051. * src/MultiDiskAdaptor.h
  10052. (mkdir): New function.
  10053. * src/PeerListProcessor.h
  10054. (Peers): Removed.
  10055. * src/PeerInteraction.h
  10056. (torrentMan): Removed.
  10057. (btContext): New variable.
  10058. (peerStorage): New variable.
  10059. (pieceStorage): New variable.
  10060. (btAnnounce): New variable.
  10061. (getTorrentMan): Removed.
  10062. (getBtContext): New function.
  10063. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10064. btAnnounce.
  10065. * src/HandshakeMessage.h
  10066. (TorrentMan.h): Removed.
  10067. * src/HandshakeMessage.cc: Use btContext.
  10068. * src/DefaultBtAnnounce.cc: New file.
  10069. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10070. * src/DefaultPieceStorage.cc: New file.
  10071. * src/DefaultBtContext.h: New file.
  10072. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10073. Use the accessor methods of FileEntry.
  10074. * src/CookieBox.cc: Updated to use Util::slice().
  10075. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10076. * src/common.h (SharedHandle.h): New include.
  10077. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10078. pieceStorage.
  10079. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10080. * src/DiskAdaptor.h
  10081. (topDir): Removed.
  10082. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10083. (setTopDir): Removed.
  10084. (getTopDir): Removed.
  10085. * src/BtContext.h: New file.
  10086. * src/DefaultPeerStorage.h: New file.
  10087. * src/PieceMessage.h (TorrentMan.h): Removed.
  10088. * src/RequestMessage.h (TorrentMan.h): Removed.
  10089. * src/TorrentDownloadEngine.h
  10090. (uploadLength): New variable.
  10091. (btContext): New variable.
  10092. (btRuntime): New variable.
  10093. (pieceStorage): New variable.
  10094. (peerStorage): New variable.
  10095. (btAnnounce): New variable.
  10096. (btProgressInfoFile): New variable.
  10097. (torrentMan): Removed.
  10098. (setBtContext): New function.
  10099. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10100. peerStorage, btAnnounce, btProgressInfoFile.
  10101. * src/Piece.h
  10102. (toString): New function.
  10103. (Pieces): New type definition.
  10104. * src/Peer.h
  10105. (active): New variable.
  10106. (Peer): Added active.
  10107. (activate): Set active to true.
  10108. (deactivate): Set active to false.
  10109. (isActive): New function.
  10110. (Peers): New type definition.
  10111. * src/DirectDiskAdaptor.cc
  10112. (getFilePath): Use the accessor methods of FileEntry.
  10113. * src/TorrentConsoleDownloadEngine.h
  10114. (afterEachIteration): New function.
  10115. * src/TorrentConsoleDownloadEngine.cc
  10116. (haltRequested): New variable.
  10117. (sendStatistics): Use pieceStorage, btRuntime.
  10118. (afterEachIteration): New function.
  10119. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10120. * src/Directry.h
  10121. (Directory): New function.
  10122. (DirectoryHandle): New type definition.
  10123. * src/BtProgressInfoFile.h: New file.
  10124. * src/RequestMessage.cc: Use pieceStorage.
  10125. * src/BtRuntime.h: New file.
  10126. * src/DefaultBtContext.cc: New file.
  10127. * src/BitfieldMan.h
  10128. (getCompletedLength): New function(private).
  10129. (getCompletedLength): New function.
  10130. (getFilteredCompletedLength): New function.
  10131. * src/BitfieldMan.h
  10132. (getCompletedLength): New function(private).
  10133. (getCompletedLength): New function.
  10134. (getFilteredCompletedLength): New function.
  10135. * src/MultiDiskAdaptor.cc
  10136. (mkdir): New function.
  10137. (openFile): Call mkdir().
  10138. (initAndOpenFile): Call mkdir().
  10139. * src/CancelMessage.h
  10140. (TorrentMan.h): Removed.
  10141. * src/RejectMessage.h
  10142. (TorrentMan.h): Removed.
  10143. * src/DownloadEngineFactory.cc
  10144. (DefaultPieceStorage.h): New include.
  10145. (DefaultPeerStorage.h): New include.
  10146. (DefaultBtAnnounce.h): New include.
  10147. (DefaultBtProgressInfoFile.h): New include.
  10148. (newTorrentConsoleEngine): Rewritten.
  10149. * src/ShareRatioSeedCriteria.h
  10150. (torrentMan): Removed.
  10151. (btContext): New variable.
  10152. (peerStorage): New variable.
  10153. (btRuntime): New variable.
  10154. (evaluate): Use btContext, btRuntime, peerStorage.
  10155. * src/AnnounceTier.h: New file.
  10156. * src/BtAnnounce.h: New file.
  10157. * src/BtRegistry.h: New file.
  10158. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10159. * src/PeerConnection.h (TorrentMan.h): Removed.
  10160. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10161. * src/Util.h
  10162. (slice): Added an argument.
  10163. * src/Util.cc
  10164. (slice): Added an argument to control whether trim is made or not.
  10165. * src/PeerStorage.h: New file.
  10166. * src/BtRegistry.cc: New file.
  10167. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10168. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10169. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10170. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10171. * src/TorrentRequestInfo.h
  10172. (e): Removed.
  10173. (showFileEntry): Added an argument.
  10174. (getDownloadEngine): Return 0.
  10175. * src/DefaultBtAnnounce.h: New file.
  10176. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10177. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10178. * src/PeerMessageFactory.h
  10179. (btContext): New variable.
  10180. (pieceStorage): New variable.
  10181. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10182. btAnnounce.
  10183. * src/DiskAdaptor.cc
  10184. (DiskAdaptor): Removed topDir.
  10185. (~DiskAdaptor): Removed topDir.
  10186. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10187. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10188. * src/File.h (mkdirs): New function.
  10189. * src/DefaultPeerStorage): New file.
  10190. * src/DownloadEngineFactory.h
  10191. (newTorrentConsoleEngine): Use btContext.
  10192. * src/BtContextAwareCommand.cc: New file.
  10193. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10194. * src/PeerMessage.h
  10195. (btContext): New variable.
  10196. (peerStorage): New variable.
  10197. (pieceStorage): New variable.
  10198. (setBtContext): New function.
  10199. * src/Directry.cc
  10200. (Directory): New function.
  10201. (createDir): Do nothing if name.size() == 0.
  10202. * src/AnnounceList.h
  10203. (AnnounceTier): Removed.
  10204. (AnnounceTiers): Removed.
  10205. * src/DefaultPieceStorage.h: New file.
  10206. * src/Piece.cc (toString): New function.
  10207. To fix typo:
  10208. * src/main.cc (showVersion): Fixed typo.
  10209. To fix compile warning:
  10210. * src/DelegatingPeerListProcessor.cc
  10211. (canHandle): Added "return false".
  10212. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10213. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10214. make the process of announce request testable.
  10215. * src/TrackerWatcherCommand.h
  10216. (TimeA2.h): Removed.
  10217. (interval): Removed.
  10218. (checkPoint): Removed.
  10219. (createRequestCommand): Added an argument 'url'.
  10220. (TrackerWatherCommand): Removed interval.
  10221. (createCommand): New function.
  10222. * src/DownloadEngineFactory.cc
  10223. (newTorrentConsoleEngine): Updated according to the changes in
  10224. TrackerWatherCommand.
  10225. * src/TorrentMan.cc
  10226. (DelegatingPeerListProcessor.h): New includes.
  10227. (TorrentMan): Added the initialization of announceInterval.
  10228. (isStoppedAnnounceReady): New function.
  10229. (isCompletedAnnounceReady): New function.
  10230. (isDefaultAnnounceReady): New function.
  10231. (isAnnounceReady): New function.
  10232. (getAnnounceUrl): New function.
  10233. (announceStart): New function.
  10234. (announceFailure): New function.
  10235. (announceSuccess): New function.
  10236. (isAllAnnounceFailed): New function.
  10237. (resetAnnounce): New function.
  10238. (processAnnounceResponse): New function.
  10239. (needMorePeerConnection): New function.
  10240. (noMoreAnnounce): New function.
  10241. * src/TrackerUpdateCommand.h
  10242. (getTrackerResponse): int->size_t
  10243. * src/TorrentMan.h
  10244. (isStoppedAnnounceReady): New function.
  10245. (isCompletedAnnounceReady): New function.
  10246. (isDefaultAnnounceReady): New function.
  10247. (announceInterval): New variable.
  10248. (isAnnounceReady): New function.
  10249. (getAnnounceUrl): New function.
  10250. (announceStart): New function.
  10251. (announceFailure): New function.
  10252. (announceSuccess): New function.
  10253. (isAllAnnounceFailed): New function.
  10254. (resetAnnounce): New function.
  10255. (processAnnounceResponse): New function.
  10256. (needMorePeerConnection): New function.
  10257. (noMoreAnnounce): New function.
  10258. * src/TrackerWatcherCommand.cc
  10259. (TrackerWatherCommand): Removed interval and checkPoint.
  10260. (execute): Rewritten.
  10261. (createCommand): New function.
  10262. (createRequestCommand): Rewritten.
  10263. * src/TrackerUpdateCommand.cc
  10264. (MetaFileUtil.h): Removed.
  10265. (DelegatingPeerListProcessor.h): Removed.
  10266. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10267. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Request -> RequestHandle:
  10269. * src/HttpResponseCommand.h: Request->RequestHandle
  10270. * src/AbstractCommand.cc: Request->RequestHandle
  10271. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10272. * src/HttpRequestCommand.cc: Request->RequestHandle
  10273. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10274. * src/AbstractCommand.h: Request->RequestHandle
  10275. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10276. * src/HttpResponseCommand.cc: Request->RequestHandle
  10277. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10278. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10279. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10280. * src/HttpConnection.h: Request->RequestHandle
  10281. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10282. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10283. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10284. * src/DownloadCommand.h: Request->RequestHandle
  10285. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10286. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10287. * src/HttpRequestCommand.h: Request->RequestHandle
  10288. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10289. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10290. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10291. * src/HttpDownloadCommand.h: Request->RequestHandle
  10292. * src/FtpConnection.cc: Request->RequestHandle
  10293. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10294. * src/UrlRequestInfo.cc: Request->RequestHandle
  10295. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10296. * src/HttpConnection.h: Request->RequestHandle
  10297. * src/DownloadCommand.cc: Request->RequestHandle
  10298. * src/FtpConnection.h: Request->RequestHandle
  10299. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10300. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10301. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10302. * src/Request.h
  10303. (SharedHandle.h): New include.
  10304. (RequestHandle): New type definition.
  10305. (Requests): Redefined.
  10306. To add MULTITRACKER support:
  10307. * src/TrackerWatcherCommand.h
  10308. (createRequestCommand): New function.
  10309. * src/DownloadEngineFactory.cc
  10310. (newTorrentConsoleEngine): Removed req.
  10311. * src/prefs.h
  10312. (PREF_TRACKER_MAX_TRIES): New definition.
  10313. * src/TorrentMan.cc
  10314. (TorrentMan): Removed req. Added trackerNumTry.
  10315. (~TorrentMan): Removed req.
  10316. (setupInternal1): Added announceList.
  10317. * src/TorrentRequestInfo.cc
  10318. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10319. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10320. * src/main.cc
  10321. (main): Added PREF_TRACKER_MAX_TRIES.
  10322. * src/TorrentMan.h
  10323. (Request.h): Removed.
  10324. (AnnounceList.h): New include.
  10325. (trackerNumTry): New variable.
  10326. (req): Removed.
  10327. (announceList): New variable.
  10328. * src/TrackerWatcherCommand.cc
  10329. (execute): Rewritten.
  10330. (createRequestCommand): New function.
  10331. * src/TrackerUpdateCommand.cc
  10332. (execute): Updated with the use of AnnounceList.
  10333. * src/AnnounceList.cc: New class.
  10334. * src/AnnounceList.h: New class.
  10335. To fix typo:
  10336. * src/prefs.h
  10337. (PREF_MAX_TRIES): max_try->max_tries
  10338. To not to decode "+" as space in URL decode:
  10339. * src/Util.cc
  10340. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10341. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. To add timeout to async name resolution:
  10343. * src/AbstractCommand.h
  10344. (nameResolveFinished): New function. This is not elegant way. It needs
  10345. to be more refined.
  10346. (nameResolverCheck): New variable.
  10347. * src/AbstractCommand.cc
  10348. (AbstractCommand): Added nameResolverCheck.
  10349. (execute): Added the check whether the name resolution has finished.
  10350. (setNameResolverCheck): Set nameResolverCheck to true.
  10351. (disableNameResolverCheck): Set nameResolverCheck to false.
  10352. (nameResolverFinished): New function.
  10353. * src/FtpInitiateConnectionCommand.h
  10354. (nameResolverFinished): New function.
  10355. * src/FtpInitiateConnectionCommand.cc
  10356. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10357. * src/HttpInitiateConnectionCommand.h
  10358. (nameResolverFinished): New function.
  10359. * src/HttpInitiateConnectionCommand.cc
  10360. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10361. * src/prefs.h
  10362. (PREF_DNS_TIMEOUT): New definition.
  10363. * src/main.cc
  10364. (main): Added PREF_DNS_TIMEOUT.
  10365. To add the support for a non-compact response from a tracker:
  10366. * src/PeerListProcessor.h: New class.
  10367. * src/DefaultPeerListProcessor.h: New class.
  10368. * src/DefaultPeerListProcessor.cc: New class.
  10369. * src/CompactPeerListProcessor.h: New class.
  10370. * src/CompactPeerListProcessor.cc: New class.
  10371. * src/DelegatingPeerListProcessor.h: New class.
  10372. * src/DelegatingPeerListProcessor.cc: New class.
  10373. * src/TorrentMan.cc
  10374. (addPeer): New function(overload).
  10375. (addPeer): Delete unused peers only when new peer is added.
  10376. * src/TorrentMan.h
  10377. (PeerListProcessor.h): Included.
  10378. (Peers): Removed.
  10379. (addPeer): New function(overload).
  10380. * src/TrackerUpdateCommand.cc
  10381. (netinet/in.h): Removed.
  10382. (DelegatingPeerListProcessor.h): Included.
  10383. (execute): Updated to use DelegatingPeerListProcessor.
  10384. To fix the memory leak in TorrentMan::peers:
  10385. * src/PeerAbstractCommand.cc
  10386. (onAbort): Added peer->resetStatus().
  10387. * src/Peer.h
  10388. (resetStatus): Made public.
  10389. To improve the precision of the speed calculation:
  10390. * src/SpeedCalc.h
  10391. (nextInterval): New variable.
  10392. * src/SpeedCalc.cc
  10393. (reset): Added nextInterval.
  10394. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10395. (changeSw): Set nextInterval to 15 seconds relative to the current
  10396. instant time.
  10397. * src/main.cc
  10398. (showVersion): Updated.
  10399. (showUsage): Updated.
  10400. * Release 0.8.1
  10401. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. * src/main.cc
  10403. (showUsage): Commented out --min-segment-size option.
  10404. (main): Commented out --min-segment-size option.
  10405. * Release 0.8.0
  10406. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. * src/*.{h,cc}:
  10408. Added an exception to the license which allows linking with OpenSSL.
  10409. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. * src/AbstractCommand.cc
  10411. (execute): Check whether the download has finished before checking
  10412. socket status.
  10413. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10414. Do not exit even if no segment is available.
  10415. * src/prefs.h
  10416. (PREF_STARTUP_IDLE_TIME): New definition.
  10417. * src/PeerInteractionCommand.cc
  10418. (executeInternal): Removed max speed limit. Because it performs bad.
  10419. (receiveMessages): Added max speed limit. This was better than above,
  10420. but still a little bit to be desired. Sometimes the download speed
  10421. became much faster than I specified.
  10422. * src/SpeedCalc.h
  10423. (start): New variable.
  10424. (accumulatedLength): New variable.
  10425. (getAvgSpeed): New function.
  10426. * src/SpeedCalc.cc
  10427. (reset): Added start, accumulatedLength.
  10428. (update): Added calculation of an average speed.
  10429. (getAvgSpeed): New function.
  10430. * src/DownloadCommand.h
  10431. (sw): Removed.
  10432. * src/main.cc
  10433. (main): Added PREF_STARTUP_IDLE_TIME.
  10434. * src/PeerStat.h
  10435. (STATUS): Added REQUEST_IDLE.
  10436. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10437. (getAvgDownloadSpeed): New function
  10438. (requestIdle): New function.
  10439. * src/SegmentMan.h
  10440. (SegmentEntryHandle): New type definition.
  10441. (SegmentEntries): Now holds SegmentEntryHandle.
  10442. (findSlowerSegmentEntry): New funtion.
  10443. * src/SegmentMan.cc
  10444. (save): Updated according to the changes in SegmentEntries.
  10445. (read): Updated according to the changes in SegmentEntries.
  10446. (FindSegmentEntryByIndex): Updated according to the changes in
  10447. SegmentEntries.
  10448. (FindSegmentEntryByCuid): Updated according to the changes in
  10449. SegmentEntries.
  10450. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10451. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10452. Renamed uitr as itr.
  10453. (findSlowerSegmentEntry): New function.
  10454. (getSegment): Updated according to the changes in SegmentEntries.
  10455. Added the feature that cancels the segment with slow server and fast
  10456. one takes it over.
  10457. (cancelSegment): Updated according to the changes in SegmentEntries.
  10458. (getDownloadLength): Updated according to the changes in
  10459. SegmentEntries.
  10460. (init): Assigned 0 to bitfield after deleting it.
  10461. * src/DownloadCommand.cc
  10462. (STARTUP_IDLE_TIME): Removed.
  10463. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10464. * src/PeerChokeCommand.cc
  10465. (optUnchokingPeer): Updated according to the changes in Peer.
  10466. (ResetDelta): Removed.
  10467. (UploadFaster): Updated according to the changes in Peer.
  10468. (DownloadFaster): Updated according to the changes in Peer.
  10469. (execute): I clarify the meaning of "upload" and "download" here.
  10470. "upload" means the transfer from localhost to remote host.
  10471. "download" means the transfer from remote host to localhost.
  10472. Based on this rule, I swapped orderByUploadRate and
  10473. orderByDownloadRate.
  10474. * src/PeerInteractionCommand.cc
  10475. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10476. (executeInternal): Removed the argument of
  10477. peerInteraction->sendMessages().
  10478. (receiveMessages): Rewritten download speed limit.
  10479. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10480. * src/HttpResponseCommand.cc
  10481. (handleDefaultEncoding): If file size is unknown in torrent request,
  10482. do not call segmentMan->initBitfield() here.
  10483. Disabled persistent connection feature in torrent request.
  10484. * src/UrlRequestInfo.h
  10485. (UrlRequestInfo): Removed const qualifier from option.
  10486. * src/TorrentMan.h
  10487. (TransferStat): New class.
  10488. (deltaDownloadLength): Removed.
  10489. (deltaUploadLength): Removed.
  10490. (addDeltaDownloadLength): Removed.
  10491. (getDeltaDownloadLength): Removed.
  10492. (resetDeltaDownloadLength): Removed.
  10493. (addDeltaUploadLength): Removed.
  10494. (getDeltaUploadLength): Removed.
  10495. (resetDeltaUploadLength): Removed.
  10496. (addActivePeer): Added peer->activate().
  10497. (deleteActivePeer): Added peer->deactivate().
  10498. (calculateStat): New function.
  10499. * src/TorrentMan.cc
  10500. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10501. (calculateStat): New function.
  10502. * src/PeerInteraction.h
  10503. (uploadLimit): Removed.
  10504. (option): New variable.
  10505. (setUploadLimit): Removed.
  10506. (getUploadSpeed): Removed.
  10507. (sendMessages): Removed the argument "currentUploadSpeed".
  10508. * src/PeerInteraction.cc
  10509. (prefs.h): Included.
  10510. (PeerInteraction): Removed uploadLimit. Added option.
  10511. (sendMessages): Rewritten upload speed limit.
  10512. (sendHandshake): Removed the argument from sendMessages().
  10513. (sendBitfield): Removed the argument from sendMessages().
  10514. * src/PeerAbstractCommand.cc
  10515. (execute): Commented out the portion of upload limit.
  10516. (onAbort): Removed peer->resetStatus().
  10517. * src/TorrentRequestInfo.cc
  10518. (timeoutSpecified): Declared extern.
  10519. (execute): Set timeout to 180 if timeout is not specified by.
  10520. command-line.
  10521. * src/PieceMessage.cc
  10522. (receivedAction): Added peer->updateDownloadLength().
  10523. Removed peer->addPeerUpload().
  10524. Removed torrentMan->addDeltaDownloadLength().
  10525. (send): Added peer->updateUploadLength().
  10526. Removed peer->addPeerDownload().
  10527. Removed torrentMan->addDeltaUploadLength().
  10528. * src/main.cc
  10529. (timeoutSpecified): New variable.
  10530. (main): Set timeoutSpecified to false.
  10531. If the command-line option "--upload-limit" is specified, then
  10532. timeoutSpecified is set to true. This option will remain in the next
  10533. release, but be deprecated in the future release.
  10534. * src/TorrentRequestInfo.h
  10535. (TorrentRequestInfo): Removed const qualifier from op.
  10536. * src/PeerStat.h
  10537. (uploadSpeed): New variable.
  10538. (PeerStat): Added default value to cuid.
  10539. (calculateUploadSpeed): New function.
  10540. (updateUploadLength): New function.
  10541. (getMaxUploadSpeed): New function.
  10542. (getAvgUploadSpeed): New function.
  10543. (reset): Added uploadSpeed. Set status to IDLE.
  10544. * src/TorrentDownloadEngine.h
  10545. (cp): Declared as Time.
  10546. (sessionDownloadLengthArray): Removed.
  10547. (sessionUploadLengthArray): Removed.
  10548. (currentCp): Removed.
  10549. (lastCalcStat): New variable
  10550. (lastElapsed): Removed.
  10551. (sessionDownloadLength): Removed.
  10552. (calculateStat): New function.
  10553. * src/TorrentDownloadEngine.cc
  10554. (initStatistics): Removed lastElapsed, cp[],
  10555. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10556. currentCp, sessionDownloadLength.
  10557. Added cp.reset() and lastCalcStat.reset().
  10558. (calculateSpeed): Changed the name of the argument.
  10559. (calculateStatistics): Rewritten.
  10560. (calculateStat): New function.
  10561. * src/Peer.h
  10562. (PeerStat.h): Included.
  10563. (peerUpload): Removed.
  10564. (peerDownload): Removed.
  10565. (peerStat): New variable.
  10566. (sessionUploadLength): New variable.
  10567. (sessionDownloadLength): New variable.
  10568. (deltaUpload): Removed.
  10569. (deltaDownload): Removed.
  10570. (resetStatus): Made private.
  10571. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10572. Removed peerUpload, peerDownload.
  10573. (updateUploadLength): New function.
  10574. (addDeltaUpload): Removed.
  10575. (updateDownloadLength): New function.
  10576. (resetDeltaUpload): Removed.
  10577. (getDeltaUpload): Removed.
  10578. (addDeltaDownload): Removed.
  10579. (calculateUploadSpeed): New function.
  10580. (resetDeltaDownload): Removed.
  10581. (getDeltaDownload): Removed.
  10582. (calculateDownloadSpeed): New function.
  10583. (getSessionUploadLength): New function.
  10584. (getSessionDownloadLength): New function.
  10585. (activate): New function.
  10586. (deactivate): New function.
  10587. (addPeerUpload): Removed.
  10588. (setPeerUpload): Removed.
  10589. (getPeerUpload): Removed.
  10590. (addPeerDownload): Removed.
  10591. (setPeerDownload): Removed.
  10592. (getPeerDownload): Removed.
  10593. * src/Peer.cc
  10594. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10595. * src/MetalinkRequestInfo.h
  10596. (MetalinkRequestInfo): Removed const qualifier from op.
  10597. * src/RequestInfo.h
  10598. (op): Removed const qualifier.
  10599. (RequestInfo): Removed const qualifier from op.
  10600. * src/prefs.h
  10601. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10602. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10603. * src/PeerInteractionCommand.cc
  10604. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10605. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10606. * src/PeerInteraction.cc
  10607. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10608. * src/main.cc
  10609. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10610. Added the description of "--max-download-limit" option.
  10611. Removed the description of "--upload-limit" option.
  10612. Added the description of "--max-upload-limit" option.
  10613. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10614. Added "--max-download-limit" option and "--max-upload-limit" option.
  10615. Added the warning message if "--upload-limit" option is used.
  10616. * src/DownloadCommand.cc
  10617. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10618. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10619. To rewrite segment download mechanism for HTTP/FTP download.
  10620. Use BitfieldMan to manage segment download.
  10621. * src/HttpResponseCommand.h
  10622. (executeInternal): Pass the reference of segment.
  10623. * src/AbstractCommand.cc
  10624. (prepareForRetry): Call segmentMan->cancelSegment here.
  10625. (onAbort): Call segmentMan->cancelSegment here.
  10626. * src/HttpDownloadCommand.cc
  10627. (prepareForNextSegment): New function.
  10628. * src/DownloadEngineFactory.cc
  10629. (newConsoleEngine): Removed splitter.
  10630. (newTorrentConsoleEngine): Removed splitter.
  10631. * src/Request.h
  10632. (segment): Renamed from seg.
  10633. * src/FtpInitiateConnectionCommand.h
  10634. (executeInternal): Pass the reference of segment.
  10635. * src/AbstractCommand.h
  10636. (executeInternal): Pass the reference of segment.
  10637. * src/pref.h
  10638. (PREF_SEGMENT_SIZE): New definition.
  10639. * src/HttpProxyRequestCommand.h
  10640. (executeInternal): Pass the reference of segment.
  10641. * src/HttpResponseCommand.cc
  10642. (checkResponse): Allowed status 206 when a request range starts 0.
  10643. (handleDefaultEncoding): Rewritten the code related to Segment.
  10644. (handleOtherEncoding): Rewritten the code related to Segment.
  10645. * src/SegmentMan.h
  10646. (SegmentEntry): New class.
  10647. (SegmentEntries): New type definition.
  10648. (bitfield): New variable.
  10649. (usedSegmentEntries): New variable.
  10650. (onNullBitfield): New function.
  10651. (checkoutSegment): New function.
  10652. (segments): Removed.
  10653. (splitter): Removed.
  10654. (unregisterId): Removed.
  10655. (getSegment): New function(overload)
  10656. (getDownloadedSize): Removed.
  10657. (cancelSegment): New function.
  10658. (completeSegment): New function.
  10659. (initBitfield): New function.
  10660. (hasSegment): New function.
  10661. (getDownloadLength): New function.
  10662. * src/BitfieldMan.h
  10663. (getStartIndex): New function.
  10664. (getEndIndex): New function.
  10665. (getMissingUnusedIndex): New function(overload).
  10666. (getSparseMissingUnusedIndex): New function.
  10667. * src/BitfieldMan.cc
  10668. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10669. (getMissingUnusedIndex): New function(overload).
  10670. (Range): New class.
  10671. (getStartIndex): New function.
  10672. (getEndIndex): New function.
  10673. (getSparseMissingUnusedIndex): New function.
  10674. (isBitSetInternal): Return false if the given index is less than 0.
  10675. * src/HttpInitiateConnectionCommand.h
  10676. (executeInternal): Pass the reference of segment.
  10677. * src/FtpNegotiateCommand.h
  10678. (executeInternal): Pass the reference of segment.
  10679. * src/FtpNegotiateCommand.cc
  10680. (recvSize): Initialize bitfield here.
  10681. * src/FtpTunnelResponseCommand.h
  10682. (executeInternal): Pass the reference of segment.
  10683. * src/HttpConnection.cc
  10684. (createRequest): Rewritten range header processing.
  10685. * src/DownloadCommand.h
  10686. (executeInternal): Pass the reference of segment.
  10687. (prepareForRetry): Removed.
  10688. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10689. function.
  10690. * src/main.cc
  10691. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10692. * src/SegmentMan.cc
  10693. (SegmentMan): Added bitfield. Removed splitter.
  10694. (~SegmentMan): Added bitfield. Removed splitter.
  10695. (unregisterId): Removed.
  10696. (getSegment): Rewritten.
  10697. (updateSegment): Rewritten.
  10698. (save): Rewritten.
  10699. (read): Rewritten.
  10700. (finished): Rewritten.
  10701. (getDownloadedSize): Removed.
  10702. (initBitfield): New function.
  10703. (FindSegmentEntryByIndex): New function object.
  10704. (FindSegmentEntryByCuid): New function object.
  10705. (checkoutSegment): New function.
  10706. (onNullBitfield): New function.
  10707. (getSegment): New function(overload).
  10708. (CancelSegment): New function object.
  10709. (cancelSegment): New function.
  10710. (completeSegment): New function.
  10711. (hasSegment): New function.
  10712. (getDownloadLength): New function.
  10713. * src/FtpInitiateConnectionCommand.cc
  10714. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10715. * src/Segment.h: Rewritten.
  10716. * src/Segment.cc (operator<<): New function.
  10717. * src/HttpDownloadCommand.h
  10718. (prepareForNextSegment): New function.
  10719. * src/Request.cc
  10720. (resetUrl): Made segment null.
  10721. * src/DownloadEngine.cc
  10722. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10723. * src/HttpProxyRequestCommand.h
  10724. (executeInternal): Pass the reference of segment.
  10725. * src/DownloadCommand.cc
  10726. (executeInternal): Rewritten the code related to Segment.
  10727. (prepareForRetry): Removed.
  10728. (prepareForNextSegment): Rewritten.
  10729. * src/FtpTunnelResponseCommand.h
  10730. (executeInternal): Pass the reference of segment.
  10731. To add HTTP 1.1 persistent connection support(experimental)
  10732. * src/HttpRequestCommand.cc
  10733. (executeInternal): Disable keep alive if it is disabled by
  10734. configuration.
  10735. * src/Request.h
  10736. (keepAlive): New variable.
  10737. (isKeepAlive): New function.
  10738. (setKeepAlive): New function.
  10739. * src/pref.h
  10740. (PREF_HTTP_KEEP_ALIVE): New definition.
  10741. * src/HttpResponseCommand.cc
  10742. (executeInternal): Check the remote server supports keep alive.
  10743. * src/HttpConnection.cc
  10744. (createRequest): Send "Connection: close" only if keep alive is
  10745. disabled.
  10746. * src/main.cc
  10747. (main):
  10748. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10749. To add max download speed limit:
  10750. * src/pref.h
  10751. (PREF_MAX_SPEED_LIMIT): New definition.
  10752. * src/PeerInteractionCommand.cc
  10753. (executeInternal): Added max download speed limit. Not tested yet.
  10754. * src/SegmentMan.h
  10755. (PeerStats): New type definition.
  10756. (peerStats): New variable.
  10757. (registerPeerStat): New function.
  10758. (FindPeerStat): New function object.
  10759. (getPeerStat): New function.
  10760. (calculateDownloadSpeed): New function.
  10761. * src/SpeedCalc.h: New class.
  10762. * src/SpeedCalc.cc: New class.
  10763. * src/main.cc
  10764. (main):
  10765. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10766. download speed is not restricted).
  10767. * src/PeerStat.h: New class.
  10768. * src/SegmentMan.cc
  10769. (registerPeerStat): New function.
  10770. (calculateDownloadSpeed): New function.
  10771. * src/DownloadCommand.cc
  10772. (STARTUP_IDLE_TIME): New definition.
  10773. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10774. downloadStart.
  10775. (~DownloadCommand): Call peerStat->downloadStop.
  10776. (executeInternal): Added download speed limitter. Rewritten lowest
  10777. speed limitter.
  10778. * src/HttpConnection.cc
  10779. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10780. * src/AbstractCommand.cc
  10781. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10782. Added hostname to the error message.
  10783. * src/ConsoleDownloadEngine.cc
  10784. (calculateStatistics): Initialize psize with dlSize.
  10785. * src/PieceMessage.cc
  10786. (receivedAction): Do not call peerInteraction->abortPiece here.
  10787. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10788. * src/BitfieldMan.h
  10789. (clearAllUseBit): New function.
  10790. (setAllUseBit): New function.
  10791. * src/BitfieldMan.cc
  10792. (clearAllBit): Do not clear useBitfield here.
  10793. (clearAllUseBit): New function.
  10794. (setAllUseBit): New function.
  10795. * src/Piece.cc
  10796. (clearAllBlock): Call bitfield->clearAllUseBit().
  10797. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. To make filename URL-decoded:
  10799. * src/HttpResponseCommand.h: Updated doc.
  10800. * src/HttpResponseCommand.cc
  10801. (determinFilename): Made filename URL-decoded.
  10802. * src/FtpInitiateConnectionCommand.cc
  10803. (executeInternal): Made filename URL-decoded.
  10804. * src/Util.h (urldecode): New function.
  10805. * src/Util.cc (urldecode): New function.
  10806. To fix a bug that caused assertion failure in ares_strerror:
  10807. * src/NameResolver.cc (callback): Fixed the bug.
  10808. * Release 0.7.3
  10809. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10810. To add --seed-time and --seed-ratio command-line option:
  10811. * src/Option.h (getAsDouble): New function.
  10812. * src/Option.cc (getAsDouble): New function.
  10813. * src/SeedCheckCommand.h: New class.
  10814. * src/SeedCheckCommand.cc: New class.
  10815. * src/DownloadEngineFactory.cc
  10816. (SeedCheckCommand.h): Included.
  10817. (UnionSeedCriteria.h): Included.
  10818. (TimeSeedCriteria.h): Included.
  10819. (ShareRatioSeedCriteria.h): Included.
  10820. (newTorrentConsoleEngine): Added the processing of seed option.
  10821. * src/SeedCriteria.h: New class.
  10822. * src/ShareRatioSeedCriteria.h: New class.
  10823. * src/TimeSeedCriteria.h: New class.
  10824. * src/UnionSeedCriteria.h: New class.
  10825. * src/prefs.h
  10826. (PREF_SEED_TIME): New definition.
  10827. (PREF_SEED_RATIO): New definition.
  10828. * src/main.cc
  10829. (showUsage): Added --seed-time and --seed-ratio option.
  10830. (main): Added --seed-time and --seed-ratio option.
  10831. Made default log file name "/dev/null".
  10832. * src/SharedHandle.h
  10833. (SharedHandle): Copy constructor. Made it assignable from the
  10834. SharedHandle of the subclasses.
  10835. (operator=): Made it assignable from the SharedHandle of the
  10836. subclasses.
  10837. (getRefCount): New function.
  10838. To add notice log level and the switch to write log to stdout. This
  10839. switch is configurable per log level.
  10840. * src/Logger.h
  10841. (notice): New function.
  10842. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10843. constant.
  10844. * src/LogFactory.cc
  10845. (getInstance): The use of NullLogger was removed. A log message with
  10846. notice log level was made written to stdout along with log file.
  10847. * src/NullLogger.h
  10848. (notice): New function.
  10849. * src/SimpleLogger.h
  10850. (writeHeader): Added the 'file' argument.
  10851. (writeLog): Added the 'file' argument.
  10852. (writeFile): New function.
  10853. (stdoutField): New variable.
  10854. (SimpleLogger): Removed the default constructor.
  10855. (SimpleLogger): Made the default value of logfile 0.
  10856. (debug): Added 'virtual' keyword.
  10857. (info): Added 'virtual' keyword.
  10858. (warn): Added 'virtual' keyword.
  10859. (error): Added 'virtual' keyword.
  10860. (notice): New function.
  10861. (setStdout): New function.
  10862. * src/SimpleLogger.cc
  10863. (WRITE_LOG): Replaced writeLog with writeFile.
  10864. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10865. (SimpleLogger): Removed the default constructor.
  10866. (setStdout): New function.
  10867. (writeLog): Added the handling of NOTICE log level.
  10868. (writeFile): New function.
  10869. (notice): New function.
  10870. * src/TorrentMan.h: Updated doc.
  10871. * src/BitfieldMan.h: Updated doc.
  10872. * src/TrackerWatcherCommand.cc
  10873. (execute): Return true if error occurred in the request to the tracker
  10874. and halt is requested.
  10875. * src/TrackerUpdateCommand.cc
  10876. (execute): Return true if error occurred in the request to the tracker
  10877. and halt is requested.
  10878. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10879. DownloadEngine:
  10880. * src/TorrentConsoleDownloadEngine.h
  10881. (onSelectiveDownloadingCompletes): Removed.
  10882. * src/TorrentConsoleDownloadEngine.cc
  10883. (onSelectiveDownloadingCompletes): Removed.
  10884. * src/TorrentDownloadEngine.h
  10885. (onEndOfRun): Added 'virtual' keyword.
  10886. (afterEachIteration): Removed.
  10887. (onSelectiveDownloadingCompletes): Removed.
  10888. * src/TorrentDownloadEngine.cc
  10889. (onEndOfRun): Removed filenameFixed.
  10890. (afterEachIteration): Removed.
  10891. * src/TorrentMan.cc
  10892. (completePiece): Call onDownloadComplete here.
  10893. (onDownloadComplete): Added 2 log messages.
  10894. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10896. * src/NameResolver.h: Added the prototype declaration of callback().
  10897. To support c-ares library:
  10898. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10899. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10900. * src/FtpInitiateConnectionCommand.h:
  10901. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10902. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10903. * src/HttpInitiateConnectionCommand.h:
  10904. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10905. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10906. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10907. #1542285 by tizianomueller)
  10908. * src/HttpInitiateConnectionCommand.cc:
  10909. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10910. * src/FtpInitiateConnectionCommand.cc:
  10911. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10912. * src/DownloadEngine.h:
  10913. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10914. * src/DownloadEngine.cc:
  10915. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10916. To fix the bug that causes compilation failure with metalink-support
  10917. disabled(bug#1543587):
  10918. * src/main.cc: Fixed with the patch by tizianomueller.
  10919. * Release 0.7.2
  10920. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10921. * src/main.cc
  10922. (main): Added a message to inform users that aria2 is starting to
  10923. verify checksum.
  10924. * src/RequestInfo.cc
  10925. (printDownloadAbortMessage): Added a message to inform users that
  10926. transfer can be resumed.
  10927. * src/FeatureConfig.cc
  10928. (FEATURE_ASYNC_DNS): New definition.
  10929. (FeatureConfig): Added aysnc DNS entry.
  10930. To replace CommandUuid with Command* in SocketEntry and
  10931. NameResolverEntry:
  10932. * src/DownloadEngine.h
  10933. (CommandUuids): Removed.
  10934. (SocketEntry::commandUuid): Removed.
  10935. (SocketEntry::command): New variable.
  10936. (SocketEntry::SocketEntry): Updated.
  10937. (SocketEntry::operator==): Updated.
  10938. (NameResolverEntry::commandUuid): Removed.
  10939. (NameResolverEntry::command): New variable.
  10940. (NameResolverEntry::NameResolverEntry): Updated.
  10941. (NameResolverEntry::operator==): Updated.
  10942. (waitData): Changed the argument type.
  10943. (addSocketForReadCheck): Changed the argument type.
  10944. (deleteSocketForReadCheck): Changed the argument type.
  10945. (addSocketForWriteCheck): Changed the argument type.
  10946. (deleteSocketForWriteCheck): Changed the argument type.
  10947. (addNameResolverCheck): Changed the argument type.
  10948. (deleteNameResolverCheck): Changed the argument type.
  10949. * src/DownloadEngine.cc
  10950. (FindCommand): Removed.
  10951. (run): Removed activeUuid. Added activeCommands instead.
  10952. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10953. (AccumulateActiveCommand): New function object.
  10954. (waitData): Use AccumulateActiveCommand.
  10955. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10956. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10957. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10958. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10959. (addNameResolverCheck): Use Command instead of CommandUuid.
  10960. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10961. * src/AbstractCommand.cc
  10962. (disableReadCheckSocket): Updated according to the changes in
  10963. DownloadEngine.
  10964. (setReadCheckSocket): Updated according to the changes in
  10965. DownloadEngine.
  10966. (disableWriteCheckSocket): Updated according to the changes in
  10967. DownloadEngine.
  10968. (setWriteCheckSocket): Updated according to the changes in
  10969. DownloadEngine.
  10970. (setNameResolverCheck): Updated according to the changes in
  10971. DownloadEngine.
  10972. (disableNameResolverCheck): Updated according to the changes in
  10973. DownloadEngine.
  10974. * src/AbstractCommand.cc
  10975. (disableReadCheckSocket): Updated according to the changes in
  10976. DownloadEngine.
  10977. (setReadCheckSocket): Updated according to the changes in
  10978. DownloadEngine.
  10979. (disableWriteCheckSocket): Updated according to the changes in
  10980. DownloadEngine.
  10981. (setWriteCheckSocket): Updated according to the changes in
  10982. DownloadEngine.
  10983. * release 0.7.1
  10984. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. To handle the case where some BitTorrent tracker requires all letters
  10986. except for [A-Za-z0-9] is URL encoded.
  10987. * src/Util.h
  10988. (torrentUrlencode): New function.
  10989. * src/Util.cc
  10990. (ctype.h): Included.
  10991. (torrentUrlencode): New function.
  10992. * src/TrackerWatcherCommand.cc
  10993. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10994. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. To add asynchronous DNS support(libares):
  10996. * src/AbstractCommand.h
  10997. (setNameResolverCheck): New function.
  10998. (disableNameResolverCheck): New function
  10999. (resolveHostname): New function.
  11000. * src/AbstractCommand.cc
  11001. (setNameResolverCheck): New function.
  11002. (disableNameResolverCheck): New function
  11003. (resolveHostname): New function.
  11004. * src/FtpInitiateConnectionCommand.h
  11005. (nameResolver): New function.
  11006. * src/FtpInitiateConnectionCommand.cc
  11007. (Util.h): Included.
  11008. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11009. disableWriteCheckSocket.
  11010. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11011. (executeInternal): Added async DNS support.
  11012. * src/HttpInitiateConnectionCommand.h
  11013. (nameResolver): New function.
  11014. * src/HttpInitiateConnectionCommand.cc
  11015. (DlRetryEx.h): Included.
  11016. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11017. disableWriteCheckSocket.
  11018. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11019. (executeInternal): Added async DNS support.
  11020. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11021. by extern "C" declaration.
  11022. * src/NameResolver.cc: New class.
  11023. * src/Util.h:
  11024. (isNumberAndDotsNotation): New function
  11025. * src/Util.cc
  11026. (isNumberAndDotsNotation): New function.
  11027. * src/DownloadEngine.h
  11028. (NameResolver.h): Included.
  11029. (NameResolverEntry): New class.
  11030. (NameResolverEntries): New type definition.
  11031. (addNameResolverCheck): New function.
  11032. (deleteNameResolverCheck): New function.
  11033. * src/DownloadEngine.cc
  11034. (run): Initialize cp with 0.
  11035. (SetDescriptor::operator()): Added for NameResolverEntry.
  11036. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11037. (waitData): Check nameResolver entries.
  11038. (updateFdSet): Update fds in nameResolver entries.
  11039. (addNameResolverCheck): New function.
  11040. (deleteNameResolverCheck): new function.
  11041. * src/PeerInteractionCommand.cc
  11042. (executeInternal): Fixed wrong socket handling.
  11043. * src/main.cc
  11044. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11045. * src/Util.cc
  11046. (fileChecksum): Removed the call to ctx.digestReset().
  11047. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. * po/ru.po: Azamat sent me Russian translation.
  11049. * src/FtpNegotiateCommand.cc
  11050. (recvGreeting): Call disableWriteCheckSocket just after
  11051. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11052. (recvRetr): Recognized status code 125 as a acceptable response code.
  11053. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11054. case-insesitive filesystem(BUG#1531057).
  11055. * src/Time.h: Renamed as TimeA2.h.
  11056. * src/Time.cc: Renamed as TimeA2.cc.
  11057. * src/TimeA2.h: New class.
  11058. * src/TimeA2.cc: New class.
  11059. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11060. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11061. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11062. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11063. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11064. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11065. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11066. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11067. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11068. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11069. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11070. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11071. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11072. * release 0.7.0
  11073. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. * src/PeerChokeCommand.h
  11075. (PeerChokeCommand): Rearranged the arguments.
  11076. * src/PeerChokeCommand.cc
  11077. (PeerChokeCommand): Rearranged the arguments.
  11078. * src/MetalinkEntry.h
  11079. (Checksum.h): Included.
  11080. (md5): Removed.
  11081. (sha1): Removed.
  11082. (checksum): New variable.
  11083. (operator=): Updated.
  11084. (check): Removed.
  11085. * src/prefs.h
  11086. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11087. (PREF_FOLLOW_TORRENT): New definition.
  11088. (PREF_SELECT_FILE): New definition.
  11089. (PREF_FOLLOW_METALINK): New definition.
  11090. * src/MetalinkResource.h
  11091. (TYPE_HTTPS): Added to enum TYPE.
  11092. * src/TorrentMan.cc
  11093. (~TorrentMan): Rewritten.
  11094. * src/MultiDiskWriter.cc
  11095. (MultiDiskAdaptor): Updated according to the changes in
  11096. MessageDigestContext.
  11097. (~MultiDiskAdaptor): Updated according to the changes in
  11098. MessageDigestContext.
  11099. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11100. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11101. * src/Util.h
  11102. (fileChecksum): Updated according to the changes in
  11103. MessageDigestContext.
  11104. * src/Util.cc
  11105. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11106. (fileChecksum): Updated according to the changes in
  11107. MessageDigestContext.
  11108. * src/messageDigest.h: Rewritten.
  11109. * src/MetalinkEntry.cc
  11110. (check): Removed.
  11111. (Supported): Updated.
  11112. (dropUnsupportedResource): Fixed a memory leak.
  11113. * src/ShaVisitor.cc
  11114. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11115. (~ShaVisitor): Updated according to the changes in
  11116. MessageDigestContext.
  11117. (visit): Updated according to the changes in MessageDigestContext.
  11118. * src/main.cc
  11119. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11120. command-line option added.
  11121. * src/DownloadEngine.h
  11122. (SocketEntry): New class.
  11123. (SocketEntries): New definition.
  11124. (PairFind): Removed.
  11125. (SockCmdMap): Removed.
  11126. * src/DownloadEngine.cc
  11127. (DownloadEngine): Rewritten.
  11128. (~DownloadEngine): Rewritten.
  11129. (run): Renamed activeCommandUuids as activeUuids.
  11130. (SetDescriptor): Rewritten.
  11131. (AccumulateActiveCommandUuid): Removed.
  11132. (AccumulateActiveUuid): New function object.
  11133. (waitData): Rewritten.
  11134. (updateFdSet): Rewritten.
  11135. (addSocket): Rewritten.
  11136. (deleteSocket): Rewritten.
  11137. (addSocketForReadCheck): Rewritten.
  11138. (deleteSocketForReadCheck): Rewritten.
  11139. (addSocketForWriteCheck): Rewritten.
  11140. (deleteSocketForWriteCheck): Rewritten.
  11141. * src/Xml2MetalinkProcessor.cc
  11142. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11143. * src/DownloadCommand.cc
  11144. (executeInternal): Added the check routine for lowest speed limit.
  11145. * src/AbstractDiskWriter.cc
  11146. (AbstractDiskWriter): Updated according to the changes in
  11147. MessageDigestContext.
  11148. (~AbstractDiskWriter): Updated according to the changes in
  11149. MessageDigestContext.
  11150. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11151. * src/RequestInfo.h: New class.
  11152. * src/UrlRequestInfo.h: New class.
  11153. * src/UrlRequestInfo.cc: New class.
  11154. * src/TorrentRequestInfo.h: New class.
  11155. * src/TorrentRequestInfo.cc: New class.
  11156. * src/MetalinkRequestInfo.h: New class.
  11157. * src/MetalinkRequestInfo.cc: New class.
  11158. * src/Checksum.h: New class.
  11159. * src/DownloadEngineFactory.h: New class.
  11160. * src/DownloadEngineFactory.cc: New class.
  11161. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. * src/Option.h
  11163. (getAsBool): New function.
  11164. * src/Option.cc
  11165. (prefs.h): Included.
  11166. (defined): 0-length value is now recognized as undefined.
  11167. (getAsInt): Rewritten.
  11168. (getAsLLInt): Rewritten.
  11169. (getAsBool): New function.
  11170. * src/FeatureConfig.h: Rewritten.
  11171. * src/FeatureConfig.cc: Rewritten.
  11172. * src/prefs.h
  11173. (PREF_STDOUT_LOG): New definition.
  11174. (PREF_LOG): New definition.
  11175. (PREF_DIR): New definition.
  11176. (PREF_OUT): New definition.
  11177. (PREF_SPLIT): New definition.
  11178. (PREF_DAEMON): New definition.
  11179. (PREF_REFERER): New definition.
  11180. (PREF_TORRENT_FILE): New definition.
  11181. (PREF_LISTEN_PORT): New definition.
  11182. (PREF_METALINK_FILE): New definition.
  11183. (PREF_METALINK_VERSION): New definition.
  11184. (PREF_METALINK_LANGUAGE): New definition.
  11185. (PREF_METALINK_OS): New definition.
  11186. (PREF_METALINK_SERVERS): New definition.
  11187. * src/main.cc
  11188. (main): Following command-line parameters are now put into Option
  11189. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11190. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11191. metalinkLanguage, metalinkOs, metalinkServers
  11192. To fix the bug that aria2 can not handle http response header properly.
  11193. * src/HttpHeader.cc
  11194. (put): Made name lowercased.
  11195. (defined): Made name lowercased.
  11196. (getFirst): Made name lowercased.
  11197. (get): Made name lowercased.
  11198. (getFirstAsInt): Rewritten.
  11199. (getFirstAsLLInt): Rewritten.
  11200. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11201. * src/TorrentMan.h:
  11202. (advertisePiece): Updated doc.
  11203. (getAdvertisedPieceIndexes): Updated doc.
  11204. (removeAdvertisedPiece); New function.
  11205. * src/TorrentMan.cc
  11206. (FindElapsedHave): New function object.
  11207. (removeAdvertisedPiece): New function.
  11208. * src/HaveEraseCommand.h: New class.
  11209. * src/HaveEraseCommand.cc: New class.
  11210. * src/FeatureConfig.h: New class.
  11211. * src/FeatureConfig.cc: New class.
  11212. * src/Request.h
  11213. (defaultPorts): Removed.
  11214. * src/Request.cc
  11215. (FeatureConfig.h): Included.
  11216. (Request): Removed the statements related to defaultPorts.
  11217. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11218. A default port number is now retrieved from FeatureConfig.
  11219. * src/main.cc
  11220. (HaveEraseCommand.h): Included.
  11221. (showVersion): Added the output of feature list.
  11222. (main): Added HaveEraseCommand to command queue in BitTorrent
  11223. downloading.
  11224. * src/PeerInteractionCommand.h
  11225. (chokeCheckPoint): Commented out.
  11226. (periodicExecPoint): New variable.
  11227. * src/PeerInteractionCommand.cc
  11228. (executeInternal): Following methods are now called in at least every
  11229. 0.5 seconds to reduce CPU usage:
  11230. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11231. checkHave(), sendKeepAlive().
  11232. (checkLongTimePeerChoking): Commented out.
  11233. * src/BitfieldMan.h
  11234. (getNthBitIndex): Changed the method signature.
  11235. (getMissingIndexRandomly): Changed the method signature.
  11236. * src/BitfieldMan.cc
  11237. (getNthBitIndex): Rewritten
  11238. (getMissingIndexRandomly): Rewritten.
  11239. (hasMissingPiece): Rewritten.
  11240. (getMissingIndex): Refactored.
  11241. (getMissingUnusedIndex); Refactored.
  11242. (getMissingIndex): Refactored.
  11243. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11244. * src/PeerMessage.h
  11245. (Piece.h): Included.
  11246. (SharedHandle.h): Included.
  11247. (invalidate): New variable.
  11248. (uploading): New variable.
  11249. (isInvalidate): New function.
  11250. (isUploading): New function.
  11251. (onPush): New function.
  11252. (onChoked): New function.
  11253. (onCanceled): New function.
  11254. (onAbortPiece): New function.
  11255. (PeerMessageHandle): New type definition.
  11256. * src/PeerMessage.cc
  11257. (PeerMessage): Added the initialization for invalidate and uploading.
  11258. * src/CancelMessage.h
  11259. (CancelMessage): Rewritten.
  11260. * src/RejectMessage.h
  11261. (RejectMessage): Rewritten.
  11262. * src/Metalinker.h
  11263. (operator=): Defined.
  11264. * src/MetaEntry.h
  11265. (operator=): Defined.
  11266. * src/MetalinkResource.h
  11267. (operator=): Defined.
  11268. * src/AllowedFastMessage.h
  11269. (AllowedFastMessage): Rewritten.
  11270. * src/HandshakeMessage.h
  11271. (HandshakeMessage): New function(overload).
  11272. * src/HandshakeMessage.cc
  11273. (HandshakeMessage): Rewritten.
  11274. (init): New function.
  11275. * src/HaveMessage.h
  11276. (HaveMessage): Rewritten.
  11277. * src/Time.h
  11278. (operator=): Defined the function body here.
  11279. * src/Time.cc
  11280. (operator=): Removed.
  11281. * src/SocketCore.h
  11282. (operator==): Defined here.
  11283. (operator!=): Defined here.
  11284. (operator<): Defined here.
  11285. * src/SocketCore.cc
  11286. (operator==): Removed.
  11287. (operator<): Removed.
  11288. * src/BitfieldMan.h
  11289. (operator=): Defined the function body here.
  11290. * src/BitfieldMan.cc
  11291. (operator=): Removed.
  11292. * src/TorrentMan.h
  11293. (deleteErrorPeer): Removed.
  11294. (deleteUnusedPeer); New function.
  11295. * src/TorrentMan.cc
  11296. (addPeer): Call deleteUnusedPeer.
  11297. (deleteErrorPeer): Removed.
  11298. (deleteUnusedPeer): New function.
  11299. * src/PeerAbstractCommand.h
  11300. (setNoCheck): New function.
  11301. (noCheck): New variable.
  11302. * src/PeerAbstractCommand.cc
  11303. (PeerAbstractCommand): Added the initialization of noCheck.
  11304. (execute): Added a check for noCheck.
  11305. (setNoCheck): New function.
  11306. * src/Util.h
  11307. (stdio.h): Included.
  11308. * src/Util.cc
  11309. (unistd.h): Included.
  11310. * src/DefaultDiskWriter.cc
  11311. (unistd.h): Included.
  11312. * src/Peer.h
  11313. (operator==): Defined the function body here.
  11314. (operator!=): Defined the function body here.
  11315. * src/Peer.cc
  11316. (operator==): Removed.
  11317. (operator!=): Removed.
  11318. * src/Piece.h
  11319. (Piece): Defined the function body here(copy constructor).
  11320. (operator=): Defined the function body here.
  11321. (operator==): Defined the function body here.
  11322. * src/Piece.cc
  11323. (Piece): Removed(copy constructor).
  11324. (operator=): Removed.
  11325. (operator==): Removed.
  11326. * src/PeerMessageUtil.h
  11327. (ChokeMessage.h): Removed.
  11328. (UnchokeMessage.h): Removed.
  11329. (InterestedMessage.h): Removed.
  11330. (NotInterestedMessage.h): Removed.
  11331. (HaveMessage.h): Removed.
  11332. (BitfieldMessage.h): Removed.
  11333. (RequestMessage.h): Removed.
  11334. (CancelMessage.h): Removed.
  11335. (PieceMessage.h): Removed.
  11336. (HandshakeMessage.h): Removed.
  11337. (KeepAliveMessage.h): Removed.
  11338. (PortMessage.h): Removed.
  11339. (HaveAllMessage.h): Removed.
  11340. (HaveNoneMessage.h): Removed.
  11341. (PeerConnection.h): Removed.
  11342. (HandshakeMessage.h): Included.
  11343. * src/BitfieldMessage.h
  11344. (init): New function.
  11345. (BitfieldMessage): Rewritten.
  11346. (BitfieldMessage): New function(overload).
  11347. * src/RequestSlot.h
  11348. (operator=): Defined the function body here.
  11349. (operator==): Defined the function body here.
  11350. * src/RequestSlot.cc
  11351. (operator=): Removed.
  11352. (operator==): Removed.
  11353. To remove the dependency on the PeerMessage subclass from
  11354. PeerInteraction:
  11355. * src/PeerMessageFactory.h: New class.
  11356. * src/PeerMessageFactory.cc: New class.
  11357. * src/SimplePeerMessage.cc
  11358. (send): If invalidate is true then do nothing.
  11359. * src/PeerInteractionCommand.cc
  11360. (HandshakeMessage.h): Included.
  11361. (KeepAliveMessage.h): Included.
  11362. (ChokeMessage.h): Included.
  11363. (UnchokeMessage.h): Included.
  11364. (HaveMessage.h): Included.
  11365. (executeInternal): Call setNoCheck().
  11366. Removed setWriteCheckSocket(socket).
  11367. * src/PeerInteraction.h
  11368. (ChokeMessage.h): Removed.
  11369. (UnchokeMessage.h): Removed.
  11370. (InterestedMessage.h): Removed.
  11371. (NotInterestedMessage.h): Removed.
  11372. (HaveMessage.h): Removed.
  11373. (BitfieldMessage.h): Removed.
  11374. (RequestMessage.h): Removed.
  11375. (CancelMessage.h): Removed.
  11376. (PieceMessage.h): Removed.
  11377. (HandshakeMessage.h): Removed.
  11378. (KeepAliveMessage.h): Removed.
  11379. (PortMessage.h): Removed.
  11380. (HaveAllMessage.h): Removed.
  11381. (HaveNoneMessage.h): Removed.
  11382. (RejectMessage.h): Removed.
  11383. (AllowedFastMessage.h): Removed.
  11384. (SuggestPieceMessage.h): Removed.
  11385. (PeerMessageFactory.h): Included.
  11386. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11387. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11388. (PeerMessageFactory): New variable.
  11389. (createPeerMessage): Removed.
  11390. (createHandshakeMessage): Removed.
  11391. (setPeerMessageCommonProperty): Removed.
  11392. (addRequestSlot): New function.
  11393. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11394. (getPeerMessageFactory): New function.
  11395. (createRequestMessage): Removed.
  11396. (createCancelMessage): Removed.
  11397. (createPieceMessage): Removed.
  11398. (createHaveMessage): Removed.
  11399. (createChokeMessage): Removed.
  11400. (createUnchokeMessage): Removed.
  11401. (createInterestedMessage): Removed.
  11402. (createNotInterestedMessage): Removed.
  11403. (createBitfieldMessage): Removed.
  11404. (createKeepAliveMessage): Removed.
  11405. (createHaveAllMessage): Removed.
  11406. (createHaveNoneMessage): Removed.
  11407. (createRejectMessage): Removed.
  11408. (createAllowedFastMessage): Removed.
  11409. * src/PeerInteraction.cc
  11410. (PeerInteraction): Allocate PeerMessageFactory here.
  11411. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11412. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11413. PieceMessage::ID.
  11414. (addMessage): Simplified by using PeerMessage::onPush().
  11415. (addRequestSlot): New function.
  11416. (rejectAllPieceMessageInQueue): Simplified by using
  11417. PeerMessage::onChoked().
  11418. (rejectPieceMessageInQueue): Simplified by using
  11419. PeerMessage::onCanceled().
  11420. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11421. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11422. (createHandshakeMessage): Removed.
  11423. (createPeerMessage): Removed.
  11424. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11425. (setPeerMessageCommonProperty): Removed.
  11426. (createRequestMessage): Removed.
  11427. (createCancelMessage): Removed.
  11428. (createPieceMessage): Removed.
  11429. (createHaveMessage): Removed.
  11430. (createChokeMessage): Removed.
  11431. (createUnchokeMessage): Removed.
  11432. (createInterestedMessage): Removed.
  11433. (createNotInterestedMessage): Removed.
  11434. (createBitfieldMessage): Removed.
  11435. (createKeepAliveMessage): Removed.
  11436. (createHaveAllMessage): Removed.
  11437. (createHaveNoneMessage): Removed.
  11438. (createRejectMessage): Removed.
  11439. (createAllowedFastMessage): Removed.
  11440. * src/PieceMessage.h
  11441. (createRejectMessage): New function.
  11442. (PieceMessage): Rewritten.
  11443. (onChoked): New function.
  11444. (onCanceled): New function.
  11445. * src/PieceMessage.cc
  11446. (send): If invalidate is true then do nothing, just return.
  11447. (createRejectMessage): New function.
  11448. (onChoked): New function.
  11449. (onCanceled): New function.
  11450. * src/RequestMessage.h
  11451. (RequestMessage): Rewritten.
  11452. (onPush): New function.
  11453. (onAbortPiece): New function.
  11454. * src/RequestMessage.cc
  11455. (onPush): New function.
  11456. (onAbortPiece): New function.
  11457. Update fd_set when a socket is added or deleted in order to improve
  11458. performance:
  11459. * src/DownloadEngine.h
  11460. (rfdset): New variable.
  11461. (wfdset): New variable.
  11462. (updateFdSet): New function.
  11463. * src/DownloadEngine.cc
  11464. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11465. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11466. (waitData): Copy rfdset and wfdset.
  11467. (updateFdSet): New function.
  11468. (addSocket): Call updateFdSet.
  11469. (deleteSocket): Call updateFdSet.
  11470. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11471. To add the support for Metalink3.0 backward compatible links:
  11472. * src/Request.h
  11473. (SAFE_CHARS): Added '#'.
  11474. (METALINK_MARK): New definition.
  11475. * src/Request.cc
  11476. (parseUrl): Added the support for Metalink3.0 backward compatible
  11477. links.
  11478. etc
  11479. * src/PeerInteraction.cc
  11480. (MsgPushBack): Removed.
  11481. (sendMessages): Use STL copy and back_inserter.
  11482. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11483. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11484. * src/TorrentMan.h
  11485. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11486. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. * src/SharedHandle.h: New class.
  11488. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11489. * src/HttpResponseCommand.h
  11490. (HttpResponseCommand): Wrapped Socket.
  11491. * src/SocketCore.h
  11492. (operator==): New function.
  11493. (operator!=): New function.
  11494. (operator<): New function.
  11495. (getSockfd): New function.
  11496. (isOpen): New function.
  11497. (writeData): New function.
  11498. * src/SocketCore.cc
  11499. (operator==): New function.
  11500. (operator!=): New function.
  11501. (operator<): New function.
  11502. * src/AbstractCommand.h
  11503. (socket): Changed its type to SocketHandle.
  11504. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11505. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11506. (disableReadCheckSocket): New function.
  11507. (disableWriteCheckSocket): New function.
  11508. (readCheckTarget): Changed its type to SocketHandle.
  11509. (writeCheckTarget): Changed its type to SocketHandle.
  11510. (AbstractCommand): Replaced Socket with SocketHandle.
  11511. * src/AbstractCommand.cc
  11512. (AbstractCommand): Replaced Socket with SocketHandle.
  11513. (~AbstractCommand): Removed the deallocation for Socket object.
  11514. (disableReadCheckSocket): New function.
  11515. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11516. (disableWriteCheckSocket): New function.
  11517. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11518. * src/HttpDownloadCommand.cc
  11519. (DownloadCommand): Replaced Socket with SocketHandle.
  11520. * src/PeerAbstractCommand.h
  11521. (socket): Changed its type to SocketHandle.
  11522. (peer): Changed its type to PeerHandle.
  11523. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11524. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11525. (disableReadCheckSocket): New function.
  11526. (disableWriteCheckSocket): New function.
  11527. (readCheckTarget): Changed its type to SocketHandle.
  11528. (writeCheckTarget): Changed its type to SocketHandle.
  11529. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11530. Replaced Peer with PeerHandle.
  11531. * src/HttpRequestCommand.cc
  11532. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11533. Use disableReadCheckSocket.
  11534. * src/PeerInitiateConnectionCommand.h
  11535. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11536. * src/PeerChokeCommand.cc
  11537. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11538. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11539. (execute): Use PeerHandle.
  11540. * src/PeerConnection.h
  11541. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11542. (socket): Changed its type to SocketHandle.
  11543. (PeerConnection): Replaced Socket with SocketHandle.
  11544. * src/PeerConnection.cc
  11545. (PeerConnection): Replaced Socket with SocketHandle.
  11546. * src/PeerInteractionCommand.h
  11547. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11548. Replaced Peer with PeerHandle.
  11549. * src/PeerInteractionCommand.cc
  11550. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11551. Replaced Peer with PeerHandle.
  11552. (executeInternal): Use disableWriteCheckSocket.
  11553. Use HandshakeMessageHandle.
  11554. (receiveMessages): Use PeerMessageHandle.
  11555. (prepareForNextPeer): Use PeerHandle.
  11556. * src/HttpProxyRequestCommand.h
  11557. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11558. * src/HttpResponseCommand.cc
  11559. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11560. * src/TorrentMan.cc
  11561. (nullPeer): Added external reference.
  11562. (~TorrentMan): Removed the deallocation of the elements of peers.
  11563. (addPeer): Rewritten.
  11564. (isPeerAvailable): Use nullPeer.
  11565. (deleteOldpeers): Replaced with deleteErrorPeer.
  11566. (deleteErrorPeer): New function.
  11567. (getPeer): Use PeerHandle and nullPeer.
  11568. (hasMissingPiece): Replaced Peer with PeerHandle.
  11569. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11570. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11571. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11572. (getMissingPiece): Replaced Peer with PeerHandle.
  11573. * src/FtpNegotiateCommand.cc
  11574. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11575. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11576. (recvGreeting): Use disableWriteCheckSocket.
  11577. (recvPasv): Removed the allocation of Socket.
  11578. Use disableReadCheckSocket.
  11579. (sendRestPasv): Use disableWriteCheckSocket.
  11580. (recvRetr): Changed assertion.
  11581. * src/PeerInteraction.h
  11582. (SharedHandle.h): Included SharedHandle.h.
  11583. (PeerMessageHandle): New type definition.
  11584. (HandshakeMessageHandle): New type definition.
  11585. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11586. (peer): Changed its type to PeerHandle.
  11587. (createHandshakeMessage): Replaced HandshakeMessage with
  11588. HandshakeMessageHandle.
  11589. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11590. (PeerInteraction): Replaced Peer with PeerHandle.
  11591. Replaced Socket with SocketHandle.
  11592. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11593. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11594. (receiveHandshake): Replaced HandshakeMessage with
  11595. HandshakeMessageHandle.
  11596. * src/PeerInteraction.cc
  11597. (PeerInteraction): Replaced Peer with PeerHandle.
  11598. Replaced Socket with SocketHandle.
  11599. (~PeerInteraction): Removed the deallocation of the elements of
  11600. messageQueue.
  11601. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11602. (isSendingMessageInProgress): Replaced PeerMessage with
  11603. PeerMessageHandle.
  11604. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11605. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11606. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11607. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11608. (abortPiece): Use PeerMessageHandle.
  11609. (receiveHandshake): Replaced HandshakeMessage with
  11610. HandshakeMessageHandle. Removed try-catch block.
  11611. (createHandshakeMessage): Replaced HandshakeMessage with
  11612. HandshakeMessageHandle.
  11613. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11614. Removed try-catch block.
  11615. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11616. * src/HttpProxyResponseCommand.cc
  11617. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11618. * src/FtpTunnelResponseCommand.h
  11619. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11620. * src/HttpConnection.cc
  11621. (HttpConnection): Replaced Socket with SocketHandle.
  11622. * src/PeerAbstractCommand.cc
  11623. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11624. (~PeerAbstractCommand): Removed the deallocation of socket.
  11625. Use disableReadCheckSocket, disableWriteCheckSocket.
  11626. (disableReadCheckSocket): New function.
  11627. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11628. (disableWriteCheckSocket): New function.
  11629. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11630. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11631. * src/FtpTunnelRequestCommand.cc
  11632. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11633. (~FtpTunnelRequestCommand): Corrected indentation.
  11634. * src/DownloadCommand.h
  11635. (DownloadCommand): Replaced Socket with SocketHandle.
  11636. * src/PeerListenCommand.cc
  11637. (PeerListenCommand): Removed the initialization of socket.
  11638. (~PeerListenCommand): Removed the deallocation of socket.
  11639. (bindPort): Use SocketHandle.
  11640. (execute): Use SocketHandle and PeerHandle.
  11641. * src/FtpDowndloadCommand.cc
  11642. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11643. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11644. * src/main.cc
  11645. (main): Corrected indentation.
  11646. * src/HttpInitiateConnectionCommand.cc
  11647. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11648. (executeInternal): Removed the allocation of socket.
  11649. * src/HttpRequestCommand.h
  11650. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11651. * src/FtpNegotiationCommand.h
  11652. (dataSocket): Changed its type to SocketHandle.
  11653. (serverSocket): Changed its type to SocketHandle.
  11654. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11655. * src/TorrentMan.h
  11656. (MAX_PEER_UPDATE): Removed.
  11657. (MAX_PEERS): New definition.
  11658. (Peers): The element is now of type PeerHandle.
  11659. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11660. (getPeer): Replaced Peer with PeerHandle.
  11661. (deleteOldErrorPeers): Removed.
  11662. (deleteErrorPeer): New function.
  11663. (hasMissingPiece): Replaced Peer with PeerHandle.
  11664. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11665. (getMissingPiece): Replaced Peer with PeerHandle.
  11666. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11667. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11668. (addActivePeer): Replaced Peer with PeerHandle.
  11669. (deleteActivePeer): Replaced Peer with PeerHandle.
  11670. Added a check for the return value of find.
  11671. * src/FtpTunnelResponseCommand.cc
  11672. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11673. * src/FtpInitiateConnectionCommand.cc
  11674. (executeInternal): Removed the allocation of socket.
  11675. * src/DownloadEngine.h
  11676. (Sockets): An element is now of type SocketHandle.
  11677. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11678. (CommandUuids): New type definition.
  11679. (rsockets): Changed its type to SockCmdMap.
  11680. (wsockets): Changed its type to SockCmdMap.
  11681. (addSocket): Rewritten.
  11682. (deleteSocket): Rewritten.
  11683. (addSocketForReadCheck): Rewritten.
  11684. (deleteSocketForReadCheck): Rewritten.
  11685. (addSocketForWriteCheck): Rewritten.
  11686. (deleteSocketForWriteCheck): Rewritten.
  11687. (PairFind): New template class.
  11688. * src/HttpDownloadCommand.h
  11689. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11690. * src/FtpConnection.cc
  11691. (FtpConnection): Replaced Socket with SocketHandle.
  11692. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11693. block.
  11694. * src/InitiateConnectionCommandFactory.cc
  11695. (DlAbortEx.h): Included DlAbortEx.h.
  11696. (createInitiateConnectionCommand): Throw exception if the protocol of
  11697. requested URI is not supported.
  11698. * src/Peer.cc
  11699. (nullPeer): Changed its type to PeerHandle.
  11700. (operator==): New function.
  11701. (operator!=): New function.
  11702. * src/Peer.h
  11703. (SharedHandle.h): Included SharedHandle.h.
  11704. (operator==): New function.
  11705. (operator!=): New function.
  11706. (Peer): Added the default constructor.
  11707. Use resetStatus() to initialize member variables.
  11708. (nullPeer): Removed.
  11709. * src/TrackerUpdateCommand.cc
  11710. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11711. with MIN_PEERS.
  11712. * src/PeerListenCommand.h
  11713. (socket): Changed its type to SocketHandle.
  11714. * src/Command.h
  11715. (CommandUuid): New type definition.
  11716. (uuid): New variable.
  11717. (uuidGen): New variable.
  11718. (Command): Added the initialization of uuid.
  11719. (getUuid): New function.
  11720. * src/Socket.h
  11721. (Socket): Removed.
  11722. (SocketHandle): New type definition.
  11723. * src/DownloadEngine.h
  11724. (FindCommand): New function object.
  11725. (run): The portion of socket check was rewritten.
  11726. (SetDescriptor): New function object.
  11727. (AccumulateActiveCommandUuid): New function object.
  11728. (waitData): Rewritten.
  11729. (addSocket): Rewritten.
  11730. (deleteSocket): Rewritten.
  11731. (addSocketForReadCheck): Rewritten.
  11732. (addSocketForWriteCheck): Rewritten.
  11733. (deleteSocketForReadCheck): Rewritten.
  11734. (deleteSocketForWriteCheck): Rewritten.
  11735. * src/HttpProxyResponseCommand.h
  11736. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11737. * src/HttpConnection.h
  11738. (socket): Changed its type to SocketHandle.
  11739. (HttpConnection): Replaced Socket with SocketHandle.
  11740. * src/PeerInitiateConnectionCommand.cc
  11741. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11742. (executeInternal): Removed the allocation of socket.
  11743. (prepareForNextPeer): Use PeerHandle.
  11744. * src/PeerMessage.h
  11745. (peer): Changed its type to PeerHandle.
  11746. (getPeer): Replaced Peer with PeerHandle.
  11747. (setPeer): Replaced Peer with PeerHandle.
  11748. * src/DownloadCommand.cc
  11749. (DownloadCommand): Replaced Socket with SocketHandle.
  11750. * src/FtpConnection.h
  11751. (socket): Changed its type to SocketHandle.
  11752. (FtpConnection): Replaced Socket with SocketHandle.
  11753. (sendPort); Replaced Socket with SocketHandle.
  11754. * src/FtpDowndloadCommand.h
  11755. (ctrlSocket): Changed its type to SocketHandle.
  11756. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11757. * src/HttpProxyRequestCommand.cc
  11758. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11759. * src/FtpTunnelRequestCommand.h
  11760. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11761. etc
  11762. * src/PeerChokeCommand.h
  11763. (setAllPeerChoked): Removed.
  11764. (setAllPeerResetDelta): Removed.
  11765. * src/PeerChokeCommand.cc
  11766. (setAllPeerChoked): Removed.
  11767. (ChokePeer): New function object.
  11768. (setAllPeerResetDelta): Removed.
  11769. (ResetDelta): New function object.
  11770. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11771. (execute): Show download speed when the local node is a seeder.
  11772. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11773. using STL.
  11774. * src/TrackerWatcherCommand.h
  11775. (MIN_PEERS): Removed.
  11776. * src/TorrentMan.cc
  11777. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11778. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. To fix the bug that .aria2 file is not saved if downloading is stopped
  11780. by the errors:it results that aria2 can not resume downloading:
  11781. * src/main.cc
  11782. (normalDownload): Added the call to save().
  11783. (main): Added the deletion of the elements in 'reserved'.
  11784. To fix log:
  11785. * src/PeerInteraction.cc
  11786. (receiveHandshake): Fixed log.
  11787. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11788. To improve download performance in BitTorrent:
  11789. * src/TorrentMan.cc
  11790. (getPeer): Check the number of connections. Return nullPeer if
  11791. it is greater than MAX_PEER_UPDATE.
  11792. This code was originally here, but was removed in 0.5.1.
  11793. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11794. To improve the conditional compilation:
  11795. * src/MultiDiskWriter.h:
  11796. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11797. * src/MultiDiskWriter.cc:
  11798. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11799. * src/Util.h:
  11800. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11801. Added ENABLE_BITTORRENT around computeFastSet().
  11802. * src/Util.cc:
  11803. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11804. Added ENABLE_BITTORRENT around computeFastSet().
  11805. * src/messageDigest.h:
  11806. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11807. * src/ShaVisitor.h:
  11808. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11809. * src/ShaVisitor.cc:
  11810. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11811. * src/main.cc:
  11812. Added ENABLE_BITTORRENT around includes and blocks related to
  11813. BitTorrent.
  11814. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11815. digest support is not available.
  11816. * src/AbstractDiskWriter.h:
  11817. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11818. * src/AbstractDiskWriter.cc:
  11819. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11820. * src/MetalinkEntry.cc
  11821. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11822. support is not available.
  11823. To add command-line options for Metalink:
  11824. * src/main.cc:
  11825. Added metalink-version, metalink-language, metalink-os,
  11826. follow-metalink.
  11827. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11828. * src/main.cc: Use these definition.
  11829. * Release 0.6.0
  11830. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11831. To add Metalink support(http/ftp only):
  11832. * src/AbstractCommand.h
  11833. (tryReserved): New function.
  11834. * src/AbstractCommand.cc
  11835. (execute): Call tryReserved().
  11836. (tryReserved): New function.
  11837. * src/Request.h
  11838. (Requests): New type definition.
  11839. * src/SegmentMan.h
  11840. (reserved): New variable.
  11841. * src/Util.h
  11842. (fileChecksum): New function.
  11843. (toUpper): New function.
  11844. (toLower): New function.
  11845. * src/Util.cc
  11846. (messageDigest.h): Included.
  11847. (trim): Trim \r\n\t.
  11848. (fileChecksum): New function.
  11849. (toUpper): New function.
  11850. (toLower): New function.
  11851. * src/main.cc
  11852. (normalDownload): New function.
  11853. (main): Added 2 command-line options: metalink-file,
  11854. metalink-connection. Their usage has not been written yet.
  11855. * src/MetalinkProcessor.h: New class.
  11856. * src/Xml2MetalinkProcessor.h: New class.
  11857. * src/Xml2MetalinkProcessor.cc: New class.
  11858. * src/MetalinkEntry.h: New class.
  11859. * src/MetalinkEntry.cc: New class.
  11860. * src/MetalinkResource.h: New class.
  11861. * src/MetalinkResource.cc: New class.
  11862. To add md5 message digest checking:
  11863. * src/messageDigest.h: Rewritten.
  11864. * src/MultiDiskWriter.cc: Updated according to the changes in
  11865. messageDigest.h.
  11866. * src/ShaVisitor.cc: Updated according to the changes in
  11867. messageDigest.h.
  11868. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11869. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11870. messageDigest.h.
  11871. To fix a bug that causes segfault when the payload length in peer
  11872. message is less than 0:
  11873. * src/PeerConnection.cc:
  11874. (receiveMessage): Fixed the bug.
  11875. * src/PeerMessageUtil.cc
  11876. (checkLength): Throw an exception if length is less than or equals to
  11877. 0.
  11878. To add new interfaces to Base64 encoding/decoding:
  11879. * src/Base64.h
  11880. (part_encode): Changed the method signature.
  11881. (encode): New function(overload).
  11882. (decode): New function(overload).
  11883. * src/Base64.cc
  11884. (part_encode): Rewritten.
  11885. (encode): Rewritten.
  11886. (encode): New function(overload).
  11887. To prevent a peer to download same piece if there is an error in
  11888. checksum:
  11889. * src/PieceMessage.cc
  11890. (receivedAction): Call peerInteraction->abortPiece().
  11891. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. To fix the bug that causes same have message is sent many times to
  11893. a single peer.
  11894. * src/Time.cc
  11895. (isNewer): Use Util::difftv().
  11896. * src/Util.cc
  11897. (difftv): Added a cast to (long long int).
  11898. * src/TorrentMan.cc
  11899. (advertisePiece): Use push_front.
  11900. (getAdvertisedPieceIndexes): A performance improvement was made.
  11901. To fix the bug that sends tracker requests without a sleep interval
  11902. when the number of connections is less than 15.
  11903. * src/TrackerWatcherCommand.cc
  11904. (execute): Now the number of connections is not a factor to decide
  11905. whether or not a tracker request should be sent or not.
  11906. * src/Time.h
  11907. (setTimeInSec): New function.
  11908. * src/Time.cc
  11909. (setTimeInSec): New function.
  11910. etc.
  11911. * src/ChokeMessage.cc
  11912. (receivedAction): Removed peer->snubbing = false
  11913. * src/PeerConnection.h
  11914. (receiveHandshake): Updated doc.
  11915. * src/TorrentMan.h
  11916. (getAdvertisedPieceIndexes): Updated the method signature.
  11917. * src/TorrentMan.cc
  11918. (getAdvertisedPieceIndexes): Updated the method signature.
  11919. * src/Time.h
  11920. (getTimeInMicros): Added a cast to (long long int).
  11921. (getTimeInMillis): Added a cast to (long long int).
  11922. * Release 0.5.2
  11923. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11924. To make a listening socket non-block:
  11925. * src/SocketCore.h
  11926. (setNonBlockingMode): New function.
  11927. * src/SocketCore.cc
  11928. (setNonBlockingMode): New function.
  11929. (beginListen): Added a call to setNonBlockingMode().
  11930. (acceptConnection): Call setNonBlockingMode().
  11931. (setBlockingMode): Updated.
  11932. To handle tracker's NAT-checking:
  11933. * src/PeerConnection.cc
  11934. (receiveHandshake): 'msg' param is filled with received data and
  11935. its length is assigned to 'length' param, even if all handshake
  11936. message is not yet received.
  11937. * src/PeerInteractionCommand.cc
  11938. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11939. a new peer connects to localhost.
  11940. A call to peerInteraction->sendHandshake() was removed because
  11941. it is called from peerInteraction->receiveHandshake(true).
  11942. * src/PeerInteraction.h
  11943. (quickReplied): New variable.
  11944. (receiveHandshake): Added an argument.
  11945. * src/PeerInteraction.cc
  11946. (PeerInteraction): Added the initialization of quickReplied.
  11947. (receiveHandshake): Send handshake message as soon as the info hash
  11948. in a handshake message from a peer is correct.
  11949. To change the random part of peer id and key parameter:
  11950. * src/TorrentMan.h
  11951. (key): New variable.
  11952. * src/TorrentMan.cc
  11953. (setupInternal1): Use Util::randomAlpha() to generate random part
  11954. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11955. key is also generated by Util::randomAlpha() and it is now 8 character
  11956. long.
  11957. * src/Util.h
  11958. (randomAlpha): New function.
  11959. * src/Util.cc
  11960. (randomAlpha): New function.
  11961. * src/TrackerWatcherCommand.cc
  11962. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11963. Added no_peer_id=1.
  11964. Set snubbing flag to false when a choke message is received from a
  11965. snubbed peer.
  11966. * src/ChokeMessage.cc
  11967. (receivedAction): Set snubbing flag to false.
  11968. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11969. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11970. * src/SimpleLogger.h (writeHeader): New function.
  11971. * src/SimpleLogger.cc (writeHeader): New function.
  11972. (writeLog): Fixed the bug that causes segfaults if exception message
  11973. contains an unescaped "%" character.
  11974. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11975. when a tracker request fails.
  11976. * src/Request.cc (parseUrl): Query string is now handled properly.
  11977. * Release 0.5.1
  11978. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11979. To add Time class which represents a specific instant in time and
  11980. its precision is microseconds. Time checking procedures were rewritten
  11981. using this object.
  11982. * src/Time.h: New class.
  11983. * src/Time.cc: New class.
  11984. * src/AbstractCommand.h
  11985. (updateCheckPoint): Removed.
  11986. (isTimeoutDetected): Removed.
  11987. (checkPoint): Changed the type to Time.
  11988. (timeout): New variable.
  11989. (setTimeout): New function.
  11990. * src/AbstractCommand.cc
  11991. (AbstractCommand): Removed the initialization of checkPoint.
  11992. Added the initialization of timeout.
  11993. (updateCheckPoint): Removed.
  11994. (isTimeoutDetected): Removed.
  11995. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11996. * src/PeerChokeCommand.h
  11997. (checkPoint): Changed the type to Time.
  11998. * src/PeerChokeCommand.cc
  11999. (PeerChokeCommand): Removed the initialization of checkPoint.
  12000. (execute): Rewritten using Time object.
  12001. * src/TrackerWatcherCommand.h
  12002. (checkPoint): Changed the type to Time.
  12003. * src/TrackerWatcherCommand.cc
  12004. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12005. (execute): Rewritten.
  12006. * src/ConsoleDownloadEngine.h
  12007. (cp): Changed the type to Time.
  12008. (startup): Changed the type to Time.
  12009. * src/ConsoleDownloadEngine.cc
  12010. (initStatistics): Use cp.reset(), startup.reset().
  12011. (calculateStatistics): Rewritten using Time object.
  12012. * src/PeerAbstractCommand.h
  12013. (updateCheckPoint): Removed.
  12014. (isTimeoutDetected): Removed.
  12015. (checkPoint): Changed the type to Time.
  12016. * src/PeerAbstractCommand.cc
  12017. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12018. (updateCheckPoint): Removed.
  12019. (isTimeoutDetected): Removed.
  12020. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12021. * src/PeerInteractionCommand.cc
  12022. (PeerInteractionCommand): Removed the initializations of struct
  12023. timeval variables.
  12024. * src/PeerInteractionCommand.h
  12025. (keepAliveCheckPoint): Changed the type to Time.
  12026. (chokeCheckPoint): Changed the type to Time.
  12027. (freqCheckPoint): Changed the type to Time.
  12028. (haveCheckTime): Changed the type to Time.
  12029. * src/PeerInteractionCommand.cc
  12030. (executeInternal): Rewritten using Time object.
  12031. (detectMessageFlooding): Rewritten using Time object.
  12032. (checkLongTimePeerChoking): Rewritten using Time object.
  12033. (sendKeepAlive): Rewritten using Time object.
  12034. (checkHave): Rewritten using Time object.
  12035. * src/SleepCommand.h
  12036. (checkPoint): Changed the type to Time.
  12037. * src/SleepCommand.cc
  12038. (SleepCommand): Removed the initialization of checkPoint.
  12039. (execute): Rewritten using Time object.
  12040. * src/TorrentAutoSaveCommand.h
  12041. (checkPoint): Changed the type to Time.
  12042. * src/TorrentAutoSaveCommand.cc
  12043. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12044. (execute): Rewritten.
  12045. * src/DownloadCommand.h
  12046. (sw): Changed the type to Time.
  12047. * src/DownloadCommand.cc
  12048. (DownloadCommand): Removed the initialization of sw.
  12049. (executeInternal): Rewritten.
  12050. * src/RequestSlot.h
  12051. (dispatchedTime): Changed the type to Time.
  12052. * src/RequestSlot.cc
  12053. (RequestSlot): Removed the call to setDispatchedTime().
  12054. (setDispatchedTime): Rewirtten.
  12055. (isTimeout): Rewritten.
  12056. (getLatencyInMillis): Rewritten.
  12057. * src/TorrentDownloadEngine.h
  12058. (cp): Changed the type to Time[2].
  12059. (startup): Changed the type to Time.
  12060. * src/TorrentDownloadEngine.cc
  12061. (initStatistics): Rewritten.
  12062. (calculateStatistics): Rewritten.
  12063. * src/DownloadEngine.cc
  12064. (run): Rewritten.
  12065. To detect all attempts to connect to the tracker are failed:
  12066. * src/AbstractCommand.cc
  12067. (execute): Increment e->segmentMan->errors if a command aborted.
  12068. * src/SegmentMan.h
  12069. (errors): New variable.
  12070. * src/SegmentMan.cc
  12071. (SegmentMan): Added the initialization of errors.
  12072. (init): Added the initialization of errors.
  12073. * src/TrackerWatcherCommand.cc
  12074. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12075. request was failed.
  12076. To handle snubbed peers:
  12077. * src/PeerChokeCommand.cc
  12078. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12079. (execute): Snubbed peers don't get unchoked.
  12080. * src/PeerInteraction.h
  12081. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12082. * src/PeerInteraction.cc
  12083. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12084. back the requested 16k block in 60 seconds.
  12085. * src/PieceMessage.cc
  12086. (receivedAction): A peer's snubbed state is cleard if it sends
  12087. the requested 16k block in 60 seconds.
  12088. * src/Peer.h
  12089. (snubbing): New variable.
  12090. * src/Peer.cc
  12091. (resetStatus): Added snubbed = false.
  12092. To fix the bug that causes have message is not sent:
  12093. * src/PeerInteractionCommand.cc
  12094. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12095. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12096. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12097. * src/TorrentMan.h
  12098. (HaveEntry): New class.
  12099. (advertisePiece): Rewritten.
  12100. (getAdvertisedPieceIndexes): Rewritten.
  12101. (Haves): Changed the type.
  12102. (getAdvertisedPieceIndexes): Added an argument.
  12103. Others:
  12104. * src/TorrentMan.h
  12105. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12106. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12107. * src/TorrentMan.cc
  12108. (getPeer): Don't check the number of connections here.
  12109. (setupInternal1): Changed peerId.
  12110. * src/PeerInteractionCommand.h
  12111. (KEEP_ALIVE_INTERVAL): New definition.
  12112. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12113. * src/main.cc
  12114. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12115. * src/DownloadEngine.h: Removed unnecessary header includes.
  12116. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12117. To fix the bug that causes segfaults if a tracker returns a zero-length
  12118. list as "peers":
  12119. * src/TrackerUpdateCommand.cc
  12120. (execute): Added a check to see wether the type of peers is Data*.
  12121. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12122. * Release 0.5.0
  12123. To fix compile issue with gcc3:
  12124. * src/CancelMessage.h
  12125. (ID): Renamed as ID_t
  12126. (ID_t): New enum.
  12127. * src/RejectMessage.h
  12128. (ID): Renamed as ID_t
  12129. (ID_t): New enum.
  12130. * src/SuggestPieceMessage.h
  12131. (ID): Renamed as ID_t
  12132. (ID_t): New enum.
  12133. * src/AllowedFastMessage.h
  12134. (ID): Renamed as ID_t
  12135. (ID_t): New enum.
  12136. * src/PortMessage.h
  12137. (ID): Renamed as ID_t
  12138. (ID_t): New enum.
  12139. * src/HaveNoneMessage.h
  12140. (ID): Renamed as ID_t
  12141. (ID_t): New enum.
  12142. * src/KeepAliveMessage.h
  12143. (ID): Renamed as ID_t
  12144. (ID_t): New enum.
  12145. * src/HaveAllMessage.h
  12146. (ID): Renamed as ID_t
  12147. (ID_t): New enum.
  12148. * src/UnchokeMessage.h
  12149. (ID): Renamed as ID_t
  12150. (ID_t): New enum.
  12151. * src/BitfieldMessage.h
  12152. (ID): Renamed as ID_t
  12153. (ID_t): New enum.
  12154. * src/PieceMessage.h
  12155. (ID): Renamed as ID_t
  12156. (ID_t): New enum.
  12157. * src/RequestMessage.h
  12158. (ID): Renamed as ID_t
  12159. (ID_t): New enum.
  12160. * src/NotInterestedMessage.h
  12161. (ID): Renamed as ID_t
  12162. (ID_t): New enum.
  12163. * src/ChokeMessage.h
  12164. (ID): Renamed as ID_t
  12165. (ID_t): New enum.
  12166. * src/InterestedMessage.h
  12167. (ID): Renamed as ID_t
  12168. (ID_t): New enum.
  12169. * src/HaveMessage.h
  12170. (ID): Renamed as ID_t
  12171. (ID_t): New enum.
  12172. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. * src/PeerAbstractCommand.h
  12174. (beforeSocketCheck): Removed.
  12175. * src/PeerAbstractCommand.cc
  12176. Modified in order to call executeInternal() even if socket check
  12177. and upload limit check fail.
  12178. * src/PeerInteractionCommand.h
  12179. (keepAlive): Removed.
  12180. (sendKeepAlive): New function.
  12181. (checkHave): New function.
  12182. (beforeSocketCheck): Removed.
  12183. * src/PeerInteractionCommand.cc
  12184. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12185. calls to checkHave() and sendKeepAlive().
  12186. (keepAlive): Renamed to sendKeepAlive().
  12187. (sendKeepAlive): New function.
  12188. (beforeSocketCheck): Removed.
  12189. (checkHave): New function.
  12190. * src/BitfieldMan.cc
  12191. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12192. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12193. 0.
  12194. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12195. * src/TorrentMan.h
  12196. (UsedPieces): Removed.
  12197. (Pieces): New type definition.
  12198. * src/Piece.h: Updated doc.
  12199. * src/Peer.h
  12200. (totalLength): Removed.
  12201. * src/Peer.cc
  12202. (updateLatency): Fixed the latency calculation.
  12203. * src/TorrentMan.cc
  12204. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12205. than or equal to MAX_PEER_LIST_SIZE.
  12206. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12207. then return false.
  12208. (deleteOldErrorPeers): Rewritten.
  12209. (deleteUsedPiece): Fixed the miss use of STL remove.
  12210. * src/PeerInteraction.h
  12211. (Pieces): Removed.
  12212. (deleteTimeoutRequestSlot): Removed.
  12213. (deleteCompletedRequestSlot): Removed.
  12214. (checkRequestSlot): New function.
  12215. * src/PeerInteraction.cc
  12216. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12217. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12218. (checkRequestSlot): New function.
  12219. * src/DownloadEngine.cc
  12220. (run): Clear activeSockets before calling waitData().
  12221. (waitData): Removed a call to activeSockets.clear().
  12222. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12223. To attempt to handle EINTR:
  12224. * src/SocketCore.cc
  12225. (isReadable): Added EINTR handling.
  12226. (isWritable): Added EINTR handling.
  12227. To improve the performance:
  12228. * src/AbstractCommand.cc
  12229. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12230. * src/PeerInteractionCommand.h
  12231. (receiveMessage): Renamed as receiveMessages().
  12232. (receiveMessages): New function.
  12233. * src/PeerInteractionCommand.cc
  12234. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12235. () function. detectMessageFlooding() is moved here.
  12236. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12237. (). The flooding detection for have message is comment out.
  12238. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12239. Util::difftv().
  12240. (receiveMessage): Renamed as receiveMessages().
  12241. (receiveMessages): New function.
  12242. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12243. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12244. * src/SleepCommand.cc
  12245. (execute): Use Util::difftvsec() instead of Util::difftv().
  12246. * src/BitfieldMan.h
  12247. (getNthBitIndex): New function.
  12248. (hasMissingPiece): New function.
  12249. (getAllMissingIndexes): New function.
  12250. * src/BitfieldMan.cc
  12251. (countSetBit): Rewritten.
  12252. (getNthBitIndex): New function.
  12253. (getMissingIndexRandomly): Rewritten.
  12254. (hasMissingPiece): New function.
  12255. (getAllMissingIndexes): New function.
  12256. * src/TorrentMan.cc
  12257. (hasMissingPiece): New function.
  12258. (deleteUsedPiece): Rewritten using STL.
  12259. * src/PeerInteraction.cc
  12260. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12261. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12262. (addRequests): Updated the number of pending requests.
  12263. * src/PeerAbstractCommand.cc
  12264. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12265. (execute): Returns true if TorrentMan::isHalt() is true.
  12266. Corrected the condition of upload limit checking.
  12267. * src/Util.h
  12268. (countBit): New function.
  12269. * src/Util.cc
  12270. (nbits): New variable.
  12271. (countBit): New function.
  12272. * src/DownloadEngine.h
  12273. (SockCmdMap): New type definition.
  12274. (waitData): Added an argument.
  12275. (addSocket): Added an argument.
  12276. (addSocketForReadCheck): Added an argument.
  12277. (addSocketForWriteCheck): Added an argument.
  12278. * src/DownloadEngine.cc
  12279. (run): Executes only commands whose sockets are ready to read or write.
  12280. All commands are executed in every 1 second.
  12281. (waitData): Calls select() again if it returned
  12282. EINTR.
  12283. (addSocket): Saves socket and command object pair to the map.
  12284. (deleteSocket): Deletes socket and command object pair from the map.
  12285. (addSocketForReadCheck): Added an argument.
  12286. (addSocketForWriteCheck): Added an argument.
  12287. * src/DownloadCommand.cc
  12288. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12289. To send "event=stopped" to the tracker when the application finishes:
  12290. * src/PeerChokeCommand.h
  12291. (checkPoint): New variable.
  12292. * src/PeerChokeCommand.cc
  12293. (PeerChokeCommand): Added the initialization of checkPoint.
  12294. (execute): The interval check is now done by checkPoint, not
  12295. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12296. * src/TorrentMan.h
  12297. (halt): New function.
  12298. (hasMissingPiece): New function.
  12299. (isHalt): New function.
  12300. (setHalt): New function.
  12301. * src/TorrentMan.cc
  12302. (TorrentMan): Added the initialization of halt.
  12303. * src/TorrentAutoSaveCommand.h
  12304. (checkPoint): New variable.
  12305. * src/PeerListenCommand.cc
  12306. (execute): Returns true if TorrentMan::isHalt() is true.
  12307. * src/main.cc
  12308. (setSignalHander): Added flags argument.
  12309. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12310. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12311. Removed printDownloadAbortMessage() after torrent downloading loop.
  12312. * src/TorrentAutoSaveCommand.cc
  12313. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12314. (execute): Returns true if TorrentMan::isHalt() is true.
  12315. The interval check is now done by checkPoint, not SleepCommand.
  12316. * src/TrackerWatcherCommand.cc
  12317. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12318. event=stopped.
  12319. * src/TrackerUpdateCommand.cc
  12320. (prepareForRetry): Do not use SleepCommand here.
  12321. (execute): Returns true if TorrentMan::isHalt() is true.
  12322. Others:
  12323. * src/TorrentMan.cc
  12324. (getMissingPieceIndex): Updated log message.
  12325. * src/PeerInteraction.cc
  12326. (createPeerMessag): Updated log message.
  12327. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12328. To add the ability to download several pieces in mix in a command and
  12329. increase the number of request slots according to request-cancel
  12330. latency:
  12331. * src/PeerInteractionCommand.cc
  12332. (executeInternal): The number of messages to be received at a time
  12333. is increased from 10 to 50.
  12334. * src/LogFactory
  12335. (getInstance): Added NullLogger.
  12336. * src/NullLogger.h: New class.
  12337. * src/BitfieldMan.h
  12338. (getMissingIndex): New function.
  12339. * src/BitfieldMan.cc
  12340. (getMissingIndex): New function.
  12341. * src/TorrentMan.h
  12342. (checkOutPiece): New function.
  12343. (getMissingPieceIndex): New function.
  12344. (getMissingFastPieceIndex): New function.
  12345. (getMissingFastPiece): New function.
  12346. * src/TorrentMan.cc
  12347. (updatePiece): Rewritten using STL.
  12348. (syncPiece): Rewritten using STL.
  12349. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12350. checkOutPiece().
  12351. (getMissingPieceIndex): New function.
  12352. (getMissingFastPieceIndex): New function.
  12353. (getMissingFastPiece): New function.
  12354. (checkOutPiece): New function.
  12355. * src/PeerInteraction.h
  12356. (Pieces): New type definition.
  12357. (piece): Removed.
  12358. (pieces): New variable.
  12359. (getNewPieceAndSendInterest): Added the "piece" argument.
  12360. (abortPiece): Added the "piece" argument.
  12361. (abortAllPieces): New function.
  12362. (isInRequestSlot): New function.
  12363. (hasDownloadPiece): Added the "index" argument.
  12364. (setDownloadPiece): Removed.
  12365. (getDownloadPiece): Added the "index" argument.
  12366. (updatePiece): New function.
  12367. (createRequestMessage): Added the "index" argument.
  12368. * src/PeerInteraction.cc
  12369. (onChoked): Rewritten.
  12370. (abortPiece): Rewirtten.
  12371. (abortAllPieces): New function.
  12372. (deleteTimeoutRequestSlot): Rewritten.
  12373. Clarified code a little bit.
  12374. (deleteCompletedRequestSlot): Rewritten.
  12375. (isInRequestSlot): New function.
  12376. (syncPiece): Rewritten.
  12377. (updatePiece): New function.
  12378. (getNewPieceAndSendInterest): Rewritten.
  12379. (addRequests): Rewritten.
  12380. (getDownloadPiece): Rewritten.
  12381. (hasDownloadPiece): Rewritten.
  12382. (createRequestMessage): Added the "index" argument.
  12383. * src/common.h
  12384. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12385. (DIV_FLOOR): New definition.
  12386. * src/PieceMessage.cc
  12387. (receivedAction): Update request-piece latency here.
  12388. * src/RequestSlot.h
  12389. (getLatencyInMillis): New function.
  12390. * src/RequestSlot.cc
  12391. (isTimeout): Rewritten using getLatencyInMillis.
  12392. (getLatencyInMillis): New function.
  12393. * src/Piece.h
  12394. (operator==): New function.
  12395. (getMissingBlockIndex): New function.
  12396. * src/Piece.cc
  12397. (operator==): New function.
  12398. (getMissingBlockIndex): New function.
  12399. * src/Peer.h
  12400. (DEFAULT_LATENCY): New definition.
  12401. (latency): New variable.
  12402. (updateLatency): New function.
  12403. (getLatency): New function.
  12404. * src/Peer.cc
  12405. (resetStatus): Reset latecy.
  12406. (updateLatency): New function.
  12407. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12408. * src/SocketCore.cc
  12409. (isReadable): Added secure to the condition.
  12410. * src/HttpConnection.cc
  12411. (receiveResponse): Fixed a bug that causes no response header
  12412. exception.
  12413. * src/Peer.h
  12414. (getFastSet): Fixed the return value type.
  12415. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12416. To remove a wait from download loop:
  12417. * src/DownloadEngine.cc
  12418. (run): Comment out shortSleep.
  12419. To rewrite the message handling:
  12420. * src/SimplePeerMessage.h: New class.
  12421. * src/SimplePeerMessage.cc: New class.
  12422. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12423. (msg): New variable.
  12424. (create): New function.
  12425. (send): Removed.
  12426. (getMessage): New function.
  12427. (getMessageLength): New function.
  12428. * src/CancelMessage.cc
  12429. (create): New function.
  12430. (receivedAction): Replaced deleteRequestMessageInQueue with
  12431. rejectPieceMessageInQueue.
  12432. (send): Removed.
  12433. (getMessage): New function.
  12434. (getMessageLength): New function.
  12435. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12436. (msg): New variable.
  12437. (msgLength): New variable.
  12438. (~BitfieldMessage): Deleted msg.
  12439. (send): Removed.
  12440. (getMessage): New function.
  12441. (getMessageLength): New function.
  12442. * src/BitfieldMessage.cc
  12443. (create): New function.
  12444. (send): Removed.
  12445. (getMessage): New function.
  12446. (getMessageLength): New function.
  12447. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12448. (msg): New variable.
  12449. (sendPredicate): New function.
  12450. (onSendComplete): New function.
  12451. (send): Removed.
  12452. (getMessage): New function.
  12453. (getMessageLength): New function.
  12454. (create): New function.
  12455. * src/ChokeMessage.cc
  12456. (create): New function.
  12457. (send): Removed.
  12458. (sendPredicate): New function.
  12459. (getMessage): New function.
  12460. (getMessageLength): New function.
  12461. (onSendComplete): New function.
  12462. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12463. (msg): New variable.
  12464. (send): Removed.
  12465. (getMessage): New function.
  12466. (getMessageLength): New function.
  12467. * src/KeepAliveMessage.cc
  12468. (send): Removed.
  12469. (getMessage): New function.
  12470. (getMessageLength): New function.
  12471. * src/PortMessage.h
  12472. (create): New function.
  12473. (receivedAction): Updated log message.
  12474. * src/PortMessage.cc: New file.
  12475. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12476. (msg): New variable.
  12477. (sendPredicate): New function.
  12478. (onSendComplete): New function.
  12479. (create): New function.
  12480. (send): Removed.
  12481. (getMessage): New function.
  12482. (getMessageLength): New function.
  12483. * src/UnchokeMessage.cc
  12484. (create): New function.
  12485. (send): Removed.
  12486. (sendPredicate): New function.
  12487. (getMessage): New function.
  12488. (getMessageLength): New function.
  12489. (onSendComplete): New function.
  12490. * src/PieceMessage.h
  12491. (leftPieceDataLength): Removed.
  12492. (leftDataLength): New variable.
  12493. (headerSend): New variable.
  12494. (pendingCount): New variable.
  12495. (msgHeader): New variable.
  12496. (sendPieceData): New function.
  12497. (incrementPendingCount): New function.
  12498. (isPendingCountMax): New function.
  12499. (create): New function.
  12500. (getMessageHeader): New function.
  12501. (getMessageHeaderLength): New function.
  12502. * src/PieceMessage.cc
  12503. (create): New function.
  12504. (getMessageHeader): New function.
  12505. (getMessageHeaderLength): New function.
  12506. (send): Rewritten.
  12507. (sendPieceData): New function.
  12508. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12509. (msg): New variable.
  12510. (create): New function.
  12511. (getMessage): New function.
  12512. (getMessageLength): New function.
  12513. * src/HaveMessage.cc
  12514. (create): New function.
  12515. (send): Removed.
  12516. (sendPieceData): New function.
  12517. (getMessage): New function.
  12518. (getMessageLength): New function.
  12519. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12520. (msg): New variable.
  12521. (create): New function.
  12522. (send): Removed.
  12523. (getMessage): New function.
  12524. (getMessageLength): New function.
  12525. * src/RequestMessage.cc
  12526. (create): New function.
  12527. (receivedAction): Added the handling of fast extension.
  12528. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12529. (send): Removed.
  12530. (getMessage): New function.
  12531. (getMessageLength): New function.
  12532. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12533. (msg): New variable.
  12534. (sendPredicate): New function.
  12535. (onSendComplete): New function.
  12536. (create): New function.
  12537. (getMessage): New function.
  12538. (getMessageLength): New function.
  12539. * src/InterestedMessage.cc
  12540. (create): New function.
  12541. (send): Removed.
  12542. (sendPieceData): New function.
  12543. (getMessage): New function.
  12544. (getMessageLength): New function.
  12545. (onSendComplete): New function.
  12546. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12547. (msg): New variable.
  12548. (sendPieceData): New function.
  12549. (onSendComplete): New function.
  12550. (create): New function.
  12551. (send): Removed.
  12552. (getMessage): New function.
  12553. (getMessageLength): New function.
  12554. * src/NotInterestedMessage.cc
  12555. (create): New function.
  12556. (send): Removed.
  12557. (sendPredicate): New function.
  12558. (getMessage): New function.
  12559. (getMessageLength): New function.
  12560. (onSendComplete): New function.
  12561. * src/AllowedFastMessage.h: New class.
  12562. * src/AllowedFastMessage.cc: New class.
  12563. * src/RejectMessage.h: New class.
  12564. * src/RejectMessage.cc: New class.
  12565. * src/SuggestPieceMessage.h: New class.
  12566. * src/SuggestPieceMessage.cc: New class.
  12567. * src/HaveAllMessage.h: New class.
  12568. * src/HaveAllMessage.cc: New class.
  12569. * src/HaveNoneMessage.h: New class.
  12570. * src/HaveNoneMessage.cc: New class.
  12571. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12572. (msg): New variable.
  12573. (reserved): New variable.
  12574. (create): New function.
  12575. (getId): New function.
  12576. (receivedAction): New function.
  12577. (getMessage): New function.
  12578. (getMessageLength): New function.
  12579. (isFastExtensionSupported): New function.
  12580. * src/HandshakeMessage.cc
  12581. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12582. (create): New function.
  12583. (getMessage): New function.
  12584. (getMessageLength): New function.
  12585. (toString): Added the output of reserved field.
  12586. (check): Added const qualifier.
  12587. (isFastExtensionSupported): New function.
  12588. * src/PeerMessageUtil.h
  12589. (createChokeMessage): Removed.
  12590. (createUnchokeMessage): Removed.
  12591. (createInterestedMessage): Removed.
  12592. (createNotInterestedMessage): Removed.
  12593. (createHaveMessage): Removed.
  12594. (createBitfieldMessage): Removed.
  12595. (createRequestMessage): Removed.
  12596. (createCancelMessage): Removed.
  12597. (createPieceMessage): Removed.
  12598. (createPortMessage): Removed.
  12599. (createChokeMessage): Removed.
  12600. (createUnchokeMessage): Removed.
  12601. (createInterestedMessage): Removed.
  12602. (createNotInterestedMessage): Removed.
  12603. (createHaveMessage): Removed.
  12604. (createBitfieldMessage): Removed.
  12605. (createRequestMessage): Removed.
  12606. (createCancelMessage): Removed.
  12607. (createPieceMessage): Removed.
  12608. (createKeepAliveMessage): Removed.
  12609. (createHandshakeMessage): Removed.
  12610. (setIntParam): New function.
  12611. (createPeerMessageString): New function.
  12612. * src/PeerMessageUtil.cc
  12613. (createChokeMessage): Removed.
  12614. (createUnchokeMessage): Removed.
  12615. (createInterestedMessage): Removed.
  12616. (createNotInterestedMessage): Removed.
  12617. (createHaveMessage): Removed.
  12618. (createBitfieldMessage): Removed.
  12619. (createRequestMessage): Removed.
  12620. (createCancelMessage): Removed.
  12621. (createPieceMessage): Removed.
  12622. (createPortMessage): Removed.
  12623. (createRequestMessage): Removed.
  12624. (createCancelMessage): Removed.
  12625. (createPieceMessage): Removed.
  12626. (createHaveMessage): Removed.
  12627. (createChokeMessage): Removed.
  12628. (createUnchokeMessage): Removed.
  12629. (createInterestedMessage): Removed.
  12630. (createNotInterestedMessage): Removed.
  12631. (createBitfieldMessage): Removed.
  12632. (createKeepAliveMessage): Removed.
  12633. (createHandshakeMessage): Removed.
  12634. (setIntParam): New function.
  12635. (createPeerMessageString): New function.
  12636. * src/PeerConnection.h
  12637. (peer): Removed.
  12638. (torrentMan): Removed.
  12639. (createNLengthMessage): Removed.
  12640. (setIntParam): Removed.
  12641. (writeOutgoingMessageLog): Removed all overloaded functions.
  12642. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12643. (sendMessage): New function.
  12644. (sendHandshake): Removed.
  12645. (sendKeepAlive): Removed.
  12646. (sendChoke): Removed.
  12647. (sendUnchoke): Removed.
  12648. (sendInterested): Removed.
  12649. (sendNotInterested): Removed.
  12650. (sendHave): Removed.
  12651. (sendBitfield): Removed.
  12652. (sendRequest): Removed.
  12653. (sendPiece): Removed.
  12654. (sendPieceHeader): Removed.
  12655. (sendPieceData): Removed.
  12656. (sendCancel): Removed.
  12657. (getPeer): Removed.
  12658. * src/PeerConnection.cc
  12659. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12660. (sendHandshake): Removed.
  12661. (sendKeepAlive): Removed.
  12662. (createNLengthMessage): Removed.
  12663. (setIntParam): Removed.
  12664. (writeOutgoingMessageLog): Removed all overloaded functions.
  12665. (sendChoke): Removed.
  12666. (sendUnchoke): Removed.
  12667. (sendInterested): Removed.
  12668. (sendNotInterested): Removed.
  12669. (sendHave): Removed.
  12670. (sendBitfield): Removed.
  12671. (sendRequest): Removed.
  12672. (sendPiece): Removed.
  12673. (sendPieceHeader): Removed.
  12674. (sendPieceData): Removed.
  12675. (sendMessage): New function.
  12676. (sendCancel): Removed.
  12677. * src/PeerInteractionCommand.cc
  12678. (PeerInteractionCommand): Call setUploadLimit.
  12679. (executeInternal): Call setUploadLimit.
  12680. Added the handling of "inProgress" state of handshake message.
  12681. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12682. sendNow().
  12683. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12684. sendNow().
  12685. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12686. * src/TorrentMan.h
  12687. (PEER_ID_LENGTH): New definition.
  12688. (hasAllPieces): New function.
  12689. * src/TorrentMan.cc
  12690. (getMissingPiece): Added the handling of fast extension.
  12691. (cancelPiece): Call updatePiece().
  12692. (hasAllPieces): New function.
  12693. * src/PeerInteraction.h
  12694. (fastSet): New variable.
  12695. (getNewPieceAndSendInterest): Changed the return type to void.
  12696. (send): Renamed as sendMessages.
  12697. (deleteAllRequestSlot): Removed.
  12698. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12699. (cancelAllRequest): Removed all overloaded functions.
  12700. (deleteAllRequestSlot): Removed.
  12701. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12702. (rejectPieceMessageInQueue): New function.
  12703. (rejectAllPieceMessageInQueue): New function.
  12704. (onChoked): New function.
  12705. (isSendingMessageInProgress): New function.
  12706. (getCorrespondingRequestSlot): Changed its arguments.
  12707. (isInFastSet): New function.
  12708. (addFastSetIndex): New function.
  12709. (addRequests): New function.
  12710. (sendNow): Removed.
  12711. (trySendNow): Removed.
  12712. (sendBitfield): New function.
  12713. (sendAllowdFast): New function.
  12714. (createHaveAllMessage): New function.
  12715. (createHaveNoneMessage): New function.
  12716. (createRejectMessage): New function.
  12717. (createAllowedFastMessage): New function.
  12718. * src/PeerInteraction.cc
  12719. (send): Renamed as sendMessages.
  12720. (sendMessages): New function.
  12721. (MsgPushBack): New class.
  12722. (isSendingMessageInProgress): New function.
  12723. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12724. (rejectAllPieceMessageInQueue): New function.
  12725. Added the handling of fast extension.
  12726. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12727. (rejectPieceMessageInQueue): New function.
  12728. Added the handling of fast extension.
  12729. (deleteRequestSlot): Replaced for loop with std::find.
  12730. (onChoked): New function.
  12731. (deleteAllRequestSlot): Removed.
  12732. (abortPiece): Rewirtten.
  12733. (deleteTimeoutRequestSlot): Updated log messages.
  12734. (getCorrespondingRequestSlot): Changed its arguments.
  12735. (cancelAllRequest): Removed all overloaded functions.
  12736. (receiveHandshake): Added the check to see whether an incoming peer
  12737. supports fast extension.
  12738. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12739. PeerMessageUtil.
  12740. (createPeerMessage): Use create() of each message class instead of
  12741. PeerMessageUtil.
  12742. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12743. AllowedFastMessage were added.
  12744. (getNewPieceAndSendInterest): Changed its return value type to void.
  12745. Added the handling of fast extension.
  12746. (addRequests): New function.
  12747. (sendNow): Removed.
  12748. (sendHandshake): Rewritten.
  12749. (trySendNow): Removed.
  12750. (sendBitfield): New function.
  12751. (sendAllowdFast): New function.
  12752. (isInFastSet): New function.
  12753. (addFastSetIndex): New function.
  12754. (createRequestMessage): Use RequestMessage::create instead of
  12755. PeerMessageUtil.
  12756. (createCancelMessage): Use CancelMessage::create instead of
  12757. PeerMessageUtil.
  12758. (createPieceMessage): Use PieceMessage::create instead of
  12759. PeerMessageUtil.
  12760. (createHaveMessage): Use HaveMessage::create instead of
  12761. PeerMessageUtil.
  12762. (createChokeMessage): Use ChokeMessage::create instead of
  12763. PeerMessageUtil.
  12764. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12765. PeerMessageUtil.
  12766. (createInterestedMessage): Use InterestedMessage::create instead of
  12767. PeerMessageUtil.
  12768. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12769. of PeerMessageUtil.
  12770. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12771. PeerMessageUtil.
  12772. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12773. PeerMessageUtil.
  12774. (createHaveAllMessage): New function.
  12775. (createHaveNoneMessage): New function.
  12776. (createRejectMessage): New function.
  12777. (createAllowedFastMessage: New function.
  12778. * src/Util.h
  12779. (sha1Sum): New function.
  12780. (computeFastSet): New function.
  12781. * src/Util.cc
  12782. (sha1Sum): New function.
  12783. (computeFastSet): New function.
  12784. * src/Peer.h
  12785. (fastExtensionEnabled): New variable.
  12786. (fastSet): New variable.
  12787. (setAllBitfield): New function.
  12788. (setFastExtensionEnabled): New function.
  12789. (isFastExtensionEnabled): New function.
  12790. (addFastSetIndex): New function.
  12791. (getFastSet): New function.
  12792. (isInFastSet): New function.
  12793. (countFastSet): New function.
  12794. * src/Peer.cc
  12795. (isInFastSet): New function.
  12796. (addFastSetIndex): New function.
  12797. (setAllBitfield): New function.
  12798. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12799. sockets.
  12800. * src/PeerAbstractCommand.cc
  12801. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12802. and uploadLimit.
  12803. (execute): Changed the procedure of checking sockets. The upload speed
  12804. checking were added.
  12805. (setUploadLimit): New function.
  12806. (setUploadLimitCheck): New function.
  12807. * src/PeerAbstractCommand.h
  12808. (setUploadLimit): New function.
  12809. (setUploadLimitCheck): New function.
  12810. (uploadLimit): New variable.
  12811. (uploadLimitCheck): New variable.
  12812. To contact a tracker regularly:
  12813. * src/TrackerWatcherCommand.h (interval): New variable.
  12814. (checkPoint): New variable.
  12815. (TrackerWatcherCommand): Added interval argument.
  12816. * src/TrackerWatcherCommand.cc
  12817. (TrackerWatcherCommand): Initialized checkPoint.
  12818. (execute): Now a tracker is contacted in every specified period.
  12819. If peer list is not needed, send request with numwant=0.
  12820. * src/TrackerUpdateCommand.cc
  12821. (execute): Updated log messages.
  12822. * src/DownloadEngine.cc
  12823. (~DownloadEngine): Removed two asserts.
  12824. (waitData): Uncommented wfds. May be a bug fix.
  12825. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12826. * src/PeerInteractionCommand.h
  12827. (checkInactiveConnection): Removed.
  12828. * src/PeerInteractionCommand.cc
  12829. (executeInternal): Removed following function calls:
  12830. detectMessageFlooding(), checkLongTimePeerChoking and
  12831. checkInactiveConnection().
  12832. (checkInactiveConnection): Removed.
  12833. (detectMessageFlooding): Removed function call to
  12834. checkInactiveConnection().
  12835. * src/PeerMessageUtil.h
  12836. (createChokeMessage): New function. Overload.
  12837. (createUnchokeMessage): New function. Overload.
  12838. (createInterestedMessage): New function. Overload.
  12839. (createNotInterestedMessage): New function. Overload.
  12840. (createHaveMessage): New function. Overload.
  12841. (createBitfieldMessage): New function. Overload.
  12842. (createRequestMessage): New function. Overload.
  12843. (createCancelMessage): New function. Overload.
  12844. (createPieceMessage): New function. Overload.
  12845. (createKeepAliveMessage): New function. Overload.
  12846. * src/PeerMessageUtil.cc
  12847. (createChokeMessage): New function. Overload.
  12848. (createUnchokeMessage): New function. Overload.
  12849. (createInterestedMessage): New function. Overload.
  12850. (createNotInterestedMessage): New function. Overload.
  12851. (createHaveMessage): New function. Overload.
  12852. (createBitfieldMessage): New function. Overload.
  12853. (createRequestMessage): New function. Overload.
  12854. (createCancelMessage): New function. Overload.
  12855. (createPieceMessage): New function. Overload.
  12856. (createKeepAliveMessage): New function. Overload.
  12857. * src/SendMessageQueue.cc
  12858. (createRequestMessage): Use PeerMessageUtil.
  12859. (createCancelMessage): Use PeerMessageUtil.
  12860. (createPieceMessage): Use PeerMessageUtil.
  12861. (createHaveMessage): Use PeerMessageUtil.
  12862. (createChokeMessage): Use PeerMessageUtil.
  12863. (createUnchokeMessage): Use PeerMessageUtil.
  12864. (createInterestedMessage): Use PeerMessageUtil.
  12865. (createNotInterestedMessage): Use PeerMessageUtil.
  12866. (createBitfieldMessage): Use PeerMessageUtil.
  12867. (createKeepAliveMessage): Use PeerMessageUtil.
  12868. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12869. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12870. * src/PeerInteraction.h: New class.
  12871. * src/PeerInteraction.cc: New class.
  12872. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12873. Each peer message has its own class.
  12874. * src/PendingMessages.h: Removed.
  12875. * src/PendingMessages.cc: Removed. The sending process was moved to
  12876. each message class.
  12877. * src/RequestSlotMan.h: Removed.
  12878. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12879. SendMessageQueue.
  12880. * src/RequestMessage.h: New class.
  12881. * src/RequestMessage.cc: New class.
  12882. * src/CancelMessage.h: New class.
  12883. * src/CancelMessage.cc: New class.
  12884. * src/BitfieldMessage.h: New class.
  12885. * src/BitfieldMessage.cc: New class.
  12886. * src/ChokeMessage.h: New class.
  12887. * src/ChokeMessage.cc: New class.
  12888. * src/KeepAliveMessage.h: New class.
  12889. * src/KeepAliveMessage.cc: New class.
  12890. * src/PortMessage.h: New class.
  12891. * src/UnchokeMessage.h: New class.
  12892. * src/UnchokeMessage.cc: New class.
  12893. * src/PieceMessage.h: New class.
  12894. * src/PieceMessage.cc: New class.
  12895. * src/HaveMessage.h: New class.
  12896. * src/HaveMessage.cc: New class.
  12897. * src/BitfieldMessage.h: New class.
  12898. * src/BitfieldMessage.cc: New class.
  12899. * src/NotInterestedMessage.h: New class.
  12900. * src/NotInterestedMessage.cc: New class.
  12901. * src/InterestedMessage.h: New class.
  12902. * src/InterestedMessage.cc: New class.
  12903. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12904. (getSendMessageQueue): New function.
  12905. (setSendMessageQueue): New function.
  12906. * src/HandshakeMessage.cc: New class.
  12907. * src/PeerConnection.h (receiveMessage): Changed return value and
  12908. arguments.
  12909. (receiveHandshake): Changed return value and arguments.
  12910. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12911. here.
  12912. (receiveHandshake): Do not create handshake class here.
  12913. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12914. (piece): Removed.
  12915. (syncPiece): Removed.
  12916. (sendInterest): Removed.
  12917. (sendMessages): Removed.
  12918. (createRequestPendingMessage): Removed.
  12919. (checkPieceHash): Removed.
  12920. (erasePieceOnDisk): Removed.
  12921. (getNewPieceAndSendInterest): Removed.
  12922. (onGotNewPice): Removed.
  12923. (onGotWrongPiece): Removed.
  12924. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12925. Removed peerConnection, piece.
  12926. (~PeerInteractionCommand): Removed peerConnection.
  12927. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12928. (syncPiece): Moved to SendMessageQueue.
  12929. (decideChoking): Removed PendingMessage.
  12930. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12931. The action after receiving peer message was moved to each message
  12932. class.
  12933. (onGotNewPice): Moved to SendMessageQueue.
  12934. (onGotWrongPiece): Moved to SendMessageQueue.
  12935. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12936. (sendInterest): Moved to SendMessageQueue.
  12937. (createRequestPendingMessage): Removed.
  12938. (sendMessages): Moved to SendMessageQueue.
  12939. (onAbort): Use SendMessageQueue::abortPiece()
  12940. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12941. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12942. (checkPieceHash): Moved to SendMessageQueue.
  12943. (erasePieceOnDisk): Moved to SendMessageQueue.
  12944. * src/PeerMessageUtil.h
  12945. (createBitfieldMessage): Removed.
  12946. (createHaveMessage): Changed return value and arguments.
  12947. (createBitfieldMessage): Changed return value and arguments.
  12948. (createRequestCancelMessage): Removed.
  12949. (createPieceMessage): Changed return value and arguments.
  12950. (getShortIntParam): New function.
  12951. (checkIndex): Changed arguments.
  12952. (checkBegin): Changed arguments.
  12953. (checkLength): Changed arguments.
  12954. (checkPieceOffset): Removed.
  12955. (checkRange): New function.
  12956. (checkBitfield): Changed arguments.
  12957. (createPeerMessage): Removed.
  12958. (checkIntegrity): Removed.
  12959. (createHandshakeMessage): Changed arguments.
  12960. (createChokeMessage): New function.
  12961. (createUnchokeMessage): New function.
  12962. (createInterestedMessage): New function.
  12963. (createNotInterestedMessage): New function.
  12964. (createRequestMessage): New function.
  12965. (createCancelMessage): New function.
  12966. (createPortMessage): New function.
  12967. * src/PeerMessageUtil.cc
  12968. (createBitfieldMessage): Removed.
  12969. (createHaveMessage): Changed return value and arguments.
  12970. (createBitfieldMessage): Changed return value and arguments.
  12971. (createRequestCancelMessage): Removed.
  12972. (createPieceMessage): Changed return value and arguments.
  12973. (getShortIntParam): New function.
  12974. (checkIndex): Changed arguments.
  12975. (checkBegin): Changed arguments.
  12976. (checkLength): Changed arguments.
  12977. (checkPieceOffset): Removed.
  12978. (checkRange): New function.
  12979. (checkBitfield): Changed arguments.
  12980. (createPeerMessage): Removed.
  12981. (checkIntegrity): Removed.
  12982. (createHandshakeMessage): Changed arguments.
  12983. (createChokeMessage): New function.
  12984. (createUnchokeMessage): New function.
  12985. (createInterestedMessage): New function.
  12986. (createNotInterestedMessage): New function.
  12987. (createRequestMessage): New function.
  12988. (createCancelMessage): New function.
  12989. (createPortMessage): New function.
  12990. * src/PeerMessage.h
  12991. (id): Removed.
  12992. (index): Removed.
  12993. (begin): Removed.
  12994. (length): Removed.
  12995. (bitfield): Removed.
  12996. (bitfieldLength): Removed.
  12997. (block): Removed.
  12998. (blockLength): Removed.
  12999. (inProgress): New variable.
  13000. (cuid): New variable.
  13001. (peer): New variable.
  13002. (sendMessageQueue): New variable.
  13003. (logger): New variable.
  13004. (setBitfield): Removed.
  13005. (getBitfield): Removed.
  13006. (setBlock): Removed.
  13007. (getBlock): Removed.
  13008. (getBitfieldLength): Removed.
  13009. (getBlockLength): Removed.
  13010. (isInProgress): New function.
  13011. (toString): Made pure virtual.
  13012. (check): New function.
  13013. (send): New function.
  13014. (receivedAction): New function.
  13015. (getId): Made pure virtual.
  13016. (setId): Removed.
  13017. (getIndex): Removed.
  13018. (setIndex): Removed.
  13019. (getBegin): Removed.
  13020. (setBegin): Removed.
  13021. (getLength): Removed.
  13022. (setLength): Removed.
  13023. (getCuid): New function.
  13024. (setCuid): New function.
  13025. (getPeer): New function.
  13026. (setPeer): New function.
  13027. (getSendMessageQueue): New function.
  13028. (setSendMessageQueue): New function.
  13029. (ID): Removed.
  13030. * src/PeerMessage.cc
  13031. (setBitfield): Removed.
  13032. (setBlock): Removed.
  13033. (toString): Removed.
  13034. * src/TorrentMan.h
  13035. (getPieceLength): New function.
  13036. (getPieceLength): New function.
  13037. * src/SendMessageQueue.h
  13038. (REQUEST_TIME_OUT): New definition.
  13039. (RequestSlots): New definition.
  13040. (MessageQueue): New definition.
  13041. (requestSlotMan): Removed.
  13042. (pendingMessages): Removed.
  13043. (requestSlots): New variable.
  13044. (messageQueue): New variable.
  13045. (torrentMan): New variable.
  13046. (peerConnection): New variable.
  13047. (peer): New variable.
  13048. (piece): New variable.
  13049. (getNewPieceAndSendInterest): New function.
  13050. (createPeerMessage): New function.
  13051. (createHandshakeMessage): New function.
  13052. (send): Made private.
  13053. (setPeerMessageCommonProperty): New function.
  13054. (deleteAllRequestSlot): New function.
  13055. (deleteRequestMessageInQueue): New function.
  13056. (cancelAllRequest): Made private.
  13057. (cancelAllRequest): Made private.
  13058. (countRequestSlot): Made private.
  13059. (addPendingMessage): Removed.
  13060. (deletePendingPieceMessage): Removed.
  13061. (deletePendingRequestMessage): Removed.
  13062. (addMessage): New function.
  13063. (deletePieceMessageInQueue): New function.
  13064. (deleteTimeoutRequestSlot): Changed argument.
  13065. (deleteCompletedRequestSlot): Changed argument.
  13066. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13067. (getCorrespondingRequestSlot): New function.
  13068. (countPendingMessage): Removed.
  13069. (countMessageInQueue): New function.
  13070. (getTorrentMan): New function.
  13071. (getPeerConnection): New function.
  13072. (hasDownloadPiece): New function.
  13073. (getDownloadPiece): New function.
  13074. (setDownloadPiece): New function.
  13075. (syncPiece): New function.
  13076. (sendMessages): New function.
  13077. (sendNow): New function.
  13078. (trySendNow): New function.
  13079. (abortPiece): New function.
  13080. (sendHandshake): New function.
  13081. (receiveMessage): New function.
  13082. (receiveHandshake): New function.
  13083. (createRequestMessage): New function.
  13084. (createCancelMessage): New function.
  13085. (createPieceMessage): New function.
  13086. (createHaveMessage): New function.
  13087. (createChokeMessage): New function.
  13088. (createUnchokeMessage): New function.
  13089. (createInterestedMessage): New function.
  13090. (createNotInterestedMessage): New function.
  13091. (createBitfieldMessage): New function.
  13092. (createKeepAliveMessage): New function.
  13093. * src/SendMessageQueue.cc
  13094. (SendMessageQueue): Removed requestSlotMan.
  13095. Instantiated peerConnection here.
  13096. (~SendMessageQueue): Removed requestSlotMan.
  13097. Added deletion of peerConnection and the contents of messageQueue.
  13098. (send): Updated according to the change of messageQueue.
  13099. (addPendingMessage): Renamed to addMessage.
  13100. (addMessage): New function.
  13101. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13102. (deletePieceMessageInQueue): New function.
  13103. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13104. (deleteRequestMessageInQueue): New function.
  13105. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13106. here.
  13107. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13108. (...) was moved here.
  13109. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13110. moved here.
  13111. (deleteCompletedRequestSlot):
  13112. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13113. (getCorrespondingRequestSlot):
  13114. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13115. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13116. (countPendingMessage): Renamed to countMessageInQueue.
  13117. (countMessageInQueue): New function.
  13118. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13119. (receiveHandshake): New function.
  13120. (createHandshakeMessage): New function.
  13121. (receiveMessage): New function.
  13122. (createPeerMessage): New function.
  13123. (syncPiece): New function.
  13124. (getNewPieceAndSendInterest): New function.
  13125. (sendMessages): New function.
  13126. (sendNow): New function.
  13127. (trySendNow): New function.
  13128. (sendHandshake): New function.
  13129. (abortPiece): New function.
  13130. (getDownloadPiece): New function.
  13131. (getPeerMessageCommonProperty): New function.
  13132. (createRequestMessage): New function.
  13133. (createCancelMessage): New function.
  13134. (createPieceMessage): New function.
  13135. (createHaveMessage): New function.
  13136. (createChokeMessage): New function.
  13137. (createUnchokeMessage): New function.
  13138. (createInterestedMessage): New function.
  13139. (createNotInterestedMessage): New function.
  13140. (createBitfieldMessage): New function.
  13141. (createKeepAliveMessage): New function.
  13142. To add simple Content-Disposition support:
  13143. * src/HttpResponseCommand.h (determinFilename): New function.
  13144. * src/HttpResponseCommand.cc (executeInternal):
  13145. Use determinFilename(headers) instead of req->getFile() when comparing
  13146. filename.
  13147. (determinFilename): New function.
  13148. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13149. req->getFile().
  13150. (handleOtherEncoding): Use determinFilename(headers) instead of
  13151. req->getFile().
  13152. * src/Util.h (getContentDispositionFilename): New function.
  13153. * src/Util.cc (getContentDispositionFilename): New function.
  13154. * src/LogFactory.h (release): New function.
  13155. * src/LogFactory.cc (release): New function.
  13156. To fix a bug that causes out-of-bound exception when HTTP status
  13157. line is wrong:
  13158. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13159. size.
  13160. * src/common.h (Deleter): New class.
  13161. * src/SegmentMan.cc
  13162. (~SegmentMan): Added deletion of splitter and diskWriter.
  13163. * src/DownloadEngine.h
  13164. (Commands): Use deque.
  13165. (clearQueue): New function.
  13166. * src/DownloadEngine.cc
  13167. (~DownloadEngine): Added deletion of segmentMan.
  13168. (cleanQueue): New function.
  13169. * src/TorrentDownloadEngine.h
  13170. (TorrentDownloadEngine): The implementation was moved to
  13171. TorrentDownloadEngine.cc.
  13172. (~TorrentDownloadEngine): The implementation was moved to
  13173. TorrentDownloadEngine.cc.
  13174. * src/TorrentDownloadEngine.cc
  13175. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13176. * src/main.cc
  13177. (clearRequest): Removed.
  13178. (handler): Added deletion of e.
  13179. (torrentHandler): Added deletion of te.
  13180. (main): Do not share splitter.
  13181. Use Deleter instead of clearRequest.
  13182. Deletion of classes were updated.
  13183. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13184. * src/main.cc (main): Fixed typo.
  13185. * src/message.h: Fixed typo.
  13186. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13187. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13188. To add --select-file command-line option:
  13189. * src/Util.cc
  13190. (unfoldRange): New function.
  13191. (getNum): New function.
  13192. (unfoldSubRange): New function
  13193. * src/main.cc
  13194. (showUsage): Added help message.
  13195. (main): Added --select-file command-line option. Updated the layout of
  13196. file listing.
  13197. * src/common.h
  13198. (Integers): New definition.
  13199. * src/SocketCore.cc
  13200. (writeData): Removed timeout argument.
  13201. (readData): Removed timeout argument.
  13202. (peekData): Removed timeout argument.
  13203. * src/Socket.cc
  13204. (writeData): Removed timeout argument.
  13205. (readData): Removed timeout argument.
  13206. (peekData): Removed timeout argument.
  13207. * Release 0.4.1
  13208. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13209. To deploy upload rate based choking algorithm:
  13210. * src/PeerInteractionCommand.cc
  13211. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13212. peer currently used.
  13213. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13214. download completes. Simplified.
  13215. (receiveMessage): Updated.
  13216. * src/TorrentMan.h
  13217. (activePeers): New variable.
  13218. (addActivePeer): New function.
  13219. (getActivePeers): New function.
  13220. (deleteActivePeer): New function.
  13221. * src/TorrentMan.cc
  13222. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13223. * src/PeerAbstractCommand.cc
  13224. (onAbort): Use peer->resetStatus().
  13225. * src/main.cc
  13226. (PeerChokeCommand.h): Included.
  13227. (main): Added the instance of ChokingCommand to the command queue.
  13228. * src/Peer.h
  13229. (amChoking): Renamed from amChocking
  13230. (chokingRequired): New variable.
  13231. (optUnchoking): New variable.
  13232. (deltaUpload): New variable.
  13233. (deltaDownload): New variable.
  13234. (addDeltaUpload): New function.
  13235. (resetDeltaUpload): New function.
  13236. (addDeltaDownload): New function.
  13237. (resetDeltaDownload): New function.
  13238. (addPeerUpload): Added a call to addDeltaUpload.
  13239. (addPeerDownload): Added a call to addDeltaDownload.
  13240. * src/Peer.cc
  13241. (shouldBeChoking): Renamed from shouldChoke.
  13242. (resetStatus): New function.
  13243. * src/PeerChokeCommand.h: New class.
  13244. * src/PeerChokeCommand.cc: New class.
  13245. To add lazy upload speed limiter:
  13246. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13247. statistics calculation to TorrentDownloadEngine.
  13248. * src/TorrentConsoleDownloadEngine.cc
  13249. (sendStatistics): Renamed from printStatistics.
  13250. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13251. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13252. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13253. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13254. calculation.
  13255. (sendStatistics): New function as pure virtual function.
  13256. (getUploadSpeed): New function.
  13257. * src/TorrentDownloadEngine.cc
  13258. (initStatistics): New function.
  13259. (calculateSpeed): New function.
  13260. (calculateStatistics): New function.
  13261. * src/SendMessageQueue.h
  13262. (uploadLength): New variable.
  13263. (send): Added an argument.
  13264. (setUploadLimit): New function.
  13265. (getUploadLimit): New function.
  13266. * src/SendMessageQueue.cc
  13267. (send): Added upload speed limiter.
  13268. * src/prefs.h
  13269. (PREF_UPLOAD_LIMIT): New definition.
  13270. * src/PeerInteractionCommand.cc
  13271. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13272. * src/main.cc
  13273. (main): Added --upload-limit option
  13274. For bug fixes:
  13275. * src/main.cc
  13276. (showUsage): Corrected --listen-port help
  13277. Other changes:
  13278. * src/TorrentMan.cc
  13279. (getPeer): Return nullPeer if connection is grather than
  13280. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13281. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13282. To add some useful information to the exception message:
  13283. * src/SocketCore.cc : Updated messages.
  13284. * src/SegmentMan.cc :
  13285. * src/TorrentMan.cc : Updated messages.
  13286. * src/MultiDiskWriter.cc : Updated messages.
  13287. * src/Util.cc : Updated messages.
  13288. * src/AbstractDiskWriter.cc : Updated messages.
  13289. * src/PreAllocationDiskWriter.cc : Updated messages.
  13290. * src/message.cc : Added new messages. Updated some messages.
  13291. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13292. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13293. Updated threshold from 30 to 15.
  13294. * src/AbstractDiskWriter.h (filename): New variable.
  13295. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13296. (createFile): Assigned filename.
  13297. * src/main.cc: Updated the help message for http-auth-scheme.
  13298. * Release 0.4.0
  13299. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13300. To add TrackerUpdateCommand with which replaces
  13301. CompactTrackerResponseProcessor:
  13302. * src/TrackerWatcherCommand.h (req): Removed.
  13303. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13304. if the number of peer connections are less than 30.
  13305. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13306. * src/SegmentMan.h (diskWriter): New function.
  13307. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13308. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13309. (main): Use TrackerUpdateCommand.
  13310. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13311. (req): New variable.
  13312. (setTrackerResponseProcessor): Removed.
  13313. (getTrackerResponseProcessor): Removed.
  13314. (processTrackerResponse): Removed.
  13315. * src/DownloadEngine.h (diskWriter): Removed.
  13316. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13317. to torrentMan->processTrackerResponse().
  13318. To add Util::expandBuffer:
  13319. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13320. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13321. * src/Util.h (expandBuffer): New function.
  13322. To fix the bug that causes segmentation fault when "-l ." is specified
  13323. in command-line option:
  13324. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13325. (openFile): New function.
  13326. (closeFile): New function.
  13327. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13328. (~SimpleLogger): Call closeFile();
  13329. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13330. * src/main.cc (main): Added a check to see logger is configured
  13331. properly.
  13332. To enable HTTP authentication without specifying "--http-auth-scheme"
  13333. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13334. * src/HttpConnection.cc (createRequest): Send Authorization header
  13335. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13336. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13337. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13338. * src/Peer.cc (shouldChoke): Updated algorithm.
  13339. * src/message.h (EX_AUTH_FAILED): New definition.
  13340. (EX_FILE_OPEN): New definition.
  13341. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13342. if status == 401.
  13343. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13344. if req->isTorrent == true.
  13345. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13346. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13347. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13348. (createFile): Updated message.
  13349. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13350. To add a readout of estimated remaining time to normal HTTP/FTP
  13351. downloads:
  13352. * src/ConsoleDownloadEngine.h (startup): New variable.
  13353. (startupLength): New variable.
  13354. (isStartupLengthSet): New variable.
  13355. (avgSpeed): New variable.
  13356. (eta): New variable.
  13357. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13358. estimated remaining time.
  13359. (initStatistics): Initialized newly added variables.
  13360. (calculateStatistics): Calculate average speed and estimated remaining
  13361. time.
  13362. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13363. * src/TrackerDownloadCommand.h: Removed.
  13364. * src/TrackerDownloadCommand.cc: Removed.
  13365. * src/TrackerInitCommand.h: Removed.
  13366. * src/TrackerInitCommand.cc: Removed.
  13367. * src/TrackerUpdateCommand.h: Removed.
  13368. * src/TrackerUpdateCommand.cc: Removed.
  13369. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13370. url written in TrackerInitCommand was moved here. Do not create
  13371. tracker request command if torrentMan->trackers != 0.
  13372. * src/CompactTrackerResponseProcessor.h: New class.
  13373. * src/CompactTrackerResponseProcessor.cc: New class.
  13374. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13375. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13376. Decoupled TorrentDownloadEngine from this.
  13377. * src/SegmentMan.h (init): New function.
  13378. * src/SegmentMan.cc (init): New function.
  13379. * src/TorrentMan.h (responseProcessor): New variable.
  13380. (trackers): New variable.
  13381. (setTrackerResponseProcessor): New function.
  13382. (getTrackerResponseProcessor): New function.
  13383. (processTrackerResponse): New function.
  13384. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13385. (processTrackerResponse): New function.
  13386. * src/main.cc (main): Use ByteArrayDiskWriter and
  13387. CompactTrackerResponseProcessor.
  13388. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13389. processTrackerResponse().
  13390. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13391. readout.
  13392. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13393. which indicates download has completed.
  13394. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13395. (closeFile): fd >= 0, not fd > 0
  13396. * src/main.cc (main): Added short cut for show-files.
  13397. Added short cut for torrent-file.
  13398. Added new command-line option listen-port.
  13399. Updated i18n messages.
  13400. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13401. To add LogFactory which creates singleton logger:
  13402. * src/LogFactory.h: New class.
  13403. * src/LogFactory.cc: New class.
  13404. * src/Command.h (logger): New variable.
  13405. (Constructor): Use LogFactory.
  13406. * src/AbstractCommand.cc: Use Command::logger
  13407. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13408. Use LogFactory.
  13409. * src/SegmentSplitter.h : Made logger protected.
  13410. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13411. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13412. * src/DownloadEngine.h : Made logger protected.
  13413. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13414. * src/PeerInteractionCommand.cc : Use Command::logger.
  13415. * src/HttpResponseCommand.cc : Use Command::logger.
  13416. * src/SegmentMan.h : Made logger private.
  13417. * src/TorrentMan.h : Made logger private.
  13418. * src/TorrentMan.cc : Use LogFactory.
  13419. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13420. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13421. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13422. Use LogFactory.
  13423. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13424. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13425. Use LogFactory.
  13426. * src/DownloadCommand.cc : Use Command::logger.
  13427. * src/PeerAbstractCommand.cc : Use Command::logger.
  13428. * src/PeerListenCommand.cc : Use Command::logger.
  13429. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13430. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13431. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13432. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13433. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13434. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13435. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13436. Use LogFactory.
  13437. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13438. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13439. Use LogFactory.
  13440. * src/main.cc (main): Use LogFactory.
  13441. * src/DiskAdaptor.h (logger): New variable.
  13442. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13443. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13444. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13445. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13446. parameter to a tracker request.
  13447. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13448. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13449. * src/main.cc (setSignalHander): New function.
  13450. (main): Added a handler for SIGTERM.
  13451. (handler): Updated message.
  13452. (torrentHandler): Updated message.
  13453. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13454. * src/TorrentConsoleDownloadEngine.cc
  13455. (onPartialDownloadingCompletes): Renamed as
  13456. onSelectiveDownloadingCompletes.
  13457. (onSelectiveDownloadingCompletes): Updated message.
  13458. To add DiskAdaptor which abstract DiskWriter family:
  13459. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13460. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13461. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13462. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13463. MultiDiskAdaptor.h.
  13464. (readFileEntry): Changed its arguments.
  13465. (setup): setupDiskWriter is merged into this function.
  13466. (setupDiskWriter): Removed.
  13467. (setFileFilter): New function.
  13468. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13469. made in readFileEntry.
  13470. (getFilePath): Removed.
  13471. (getTempFilePath): Removed.
  13472. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13473. (fixFilename): Removed.
  13474. (copySingleFile): Removed.
  13475. (splitMultiFile): Removed.
  13476. (deleteTempFile): Removed.
  13477. (setFileEntriesToDownload): Removed.
  13478. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13479. (isSelectiveDownloadingMode): New function.
  13480. (setAllMultiFileRequestedState): Removed.
  13481. (finishPartialDownloadingMode): Renamed as
  13482. finishSelectiveDownloadingMode.
  13483. (finishSelectiveDownloadingMode): New function.
  13484. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13485. (getSelectedTotalLength): New function.
  13486. (onDownloadComplete): Use diskAdaptor.
  13487. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13488. (Range): Removed.
  13489. (setMultiFileEntries): Renamed as setFileEntries.
  13490. (setFileEntries): New function.
  13491. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13492. (pieceLength): New variable.
  13493. * src/main.cc (printDownloadCompeleteMessage): New function.
  13494. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13495. (main): Renamed torrent-show-files to show-files.
  13496. Rewritten file contents listing.
  13497. * src/TorrentMan.h (FileEntry): Removed.
  13498. (multiFileTopDir): Removed.
  13499. (multiFileEntries): Removed.
  13500. (diskWriter): Removed.
  13501. (diskAdaptor): New variable.
  13502. * src/DefaultDiskWriter.h (totalLength): New variable.
  13503. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13504. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13505. diskWriter.
  13506. * src/TorrentConsoleDownloadEngine.h
  13507. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13508. (partialTotalLength): Renamed as selectedTotalLength.
  13509. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13510. openExistingFile, otherwise call initAndOpenFile.
  13511. (closeFile): fd > 0, not fd != 0.
  13512. * src/DirectDiskAdaptor.h: New class.
  13513. * src/DirectDiskAdaptor.cc: New class.
  13514. * src/MultiDiskAdaptor.h: New class.
  13515. * src/MultiDiskAdaptor.cc: New class.
  13516. * src/CopyDiskAdaptor.h: New class.
  13517. * src/CopyDiskAdaptor.cc: New class.
  13518. * src/DiskAdaptor.h: New class.
  13519. * src/DiskAdaptor.cc: New class.
  13520. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13521. (PREF_SHOW_FILES): New definition.
  13522. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13523. To add the ability to download multi torrent into respective files
  13524. directly:
  13525. * src/DiskWriter.h (openFile): New function.
  13526. (seek): Removed.
  13527. * src/MultiDiskWriter.h: New class.
  13528. * src/MultiDiskWriter.cc: New class.
  13529. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13530. protected.
  13531. (openFile): New function.
  13532. * src/AbstractDiskWriter.cc (openFile): New function.
  13533. * src/prefs.h (V_FALSE): New definition.
  13534. (PREF_DIRECT_FILE_MAPPING): New definition.
  13535. * src/TorrentMan.h (setupDiskWriter): New function.
  13536. (setAllMultiFileRequestedState): New function.
  13537. (onDownloadComplete): New function.
  13538. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13539. (setupDiskWriter): New function.
  13540. (getFilePath): Updated.
  13541. (getTempFilePath): Updated.
  13542. (getSegmentFilePath): Updated.
  13543. (fixFilename): Updated.
  13544. (deleteTempFile): Updated.
  13545. (setAllMultiFileRequestedState): New function.
  13546. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13547. (finishPartialDownloadingMode): Reset requested flags.
  13548. (onDownloadComplete): New function.
  13549. * src/main.cc: Added --direct-file-mapping option.
  13550. Use TorrentMan::setupDiskWriter().
  13551. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13552. onDownloadComplete().
  13553. To fix ETA bug:
  13554. * src/Util.h (difftvsec): New function.
  13555. * src/Util.cc (difftvsec): New function.
  13556. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13557. type of "elapsed" instead of long long int.
  13558. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13559. The updates of statistics takes place every 1 seconds.
  13560. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13561. (calculateSpeed): Changed its argument signature.
  13562. * src/PeerMessage.cc (toString): Fixed message.
  13563. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13564. To print ETA:
  13565. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13566. completion handling when dealing with
  13567. TorrentMan::isPartialDownloadingMode() == true.
  13568. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13569. New function.
  13570. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13571. (sessionDownloadLength): New variable.
  13572. (avgSpeed): New variable.
  13573. (eta): New variable.
  13574. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13575. new variables: eta, avgSpeed, startup.
  13576. (calculateSpeed): Calculate average speed and ETA.
  13577. (printStatistics): Added ETA.
  13578. * src/Util.h (secfmt): New function.
  13579. * src/Util.cc (secfmt): New function.
  13580. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13581. To detect "keep alive" flooding:
  13582. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13583. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13584. variable: keepAliveCount.
  13585. (detectMessageFlooding): Added "keep alive" flooding detection.
  13586. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13587. received.
  13588. To add the ability to download only specified files in multi-file
  13589. torrent:
  13590. * src/BitfieldMan.h (filterBitfield): New variable.
  13591. (filterEnabled): New variable.
  13592. (setFilterBit): New function.
  13593. (enableFilter): New function.
  13594. (disableFilter): New function.
  13595. (isFilterEnabled): New function.
  13596. (getFilteredTotalLength): New function.
  13597. (getCompletedLength): New function.
  13598. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13599. filterBitfield, filterEnabled.
  13600. (CopyConstructor): Added filterBitfield and filterEnabled.
  13601. (operator==): Added filterBitfield and filterEnabled.
  13602. (Destructor): Added filterBitfield.
  13603. (getMissingIndex): Use filterBitfield.
  13604. (getMissingUnusedIndex): Use filterBitfield.
  13605. (getFirstMissingUnusedIndex): Use filterBitfield.
  13606. (getFirstMissingUnusedIndex): Use filterBitfield.
  13607. (getAllMissingIndexes): Use filterBitfield.
  13608. (countMissingBlock): Use filterBitfield.
  13609. (countBlock): Use filterBitfield.
  13610. (setBitInternal): Added new argument on.
  13611. (setUseBit): Use setBitInternal.
  13612. (unsetUseBit): Use setBitInternal.
  13613. (setBit): Use setBitInternal.
  13614. (unsetBit): Use setBitInternal.
  13615. (isAllBitSet): Use filterBitfield.
  13616. (setFilterBit): New function.
  13617. (addFilter): New function.
  13618. (enableFilter): New function.
  13619. (disableFilter): New function.
  13620. (clearFilter): New function.
  13621. (isFilterEnabled): New function.
  13622. (getFilteredTotalLength): New function.
  13623. (getCompletedLength): New function.
  13624. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13625. Initalized newly added variables.
  13626. [FileEntry](offset): New variable.
  13627. [FileEntry](extracted): New variable.
  13628. [FileEntry](requested): New variable.
  13629. (readFileEntry): New function.
  13630. (option): New variable.
  13631. (splitMultiFile): Removed const qualifier.
  13632. (fixFilename): Removed const qualifier.
  13633. (readFileEntryFromMetaInfoFile): New function.
  13634. (finishPartialDownloadingMode): New function.
  13635. (isPartialDownloadingMode): New function.
  13636. (setFileEntriesToDownload): New function.
  13637. (getCompletedLength): New function.
  13638. (getPartialTotalLength): New function.
  13639. * src/TorrentMan.cc (readFileEntry): New function.
  13640. (setup): Use readFileEntry. If no-preallocation option is specified,
  13641. use DefaultDiskWriter.
  13642. (readFileEntryFromMetaInfoFile): New function.
  13643. (fixFilename): Removed const qualifier.
  13644. (splitMultiFile): Removed const qualifier.
  13645. (setFileEntriesToDownload): New function.
  13646. (isPartialDownloadingMode): New function.
  13647. (finishPartialDownloadingMode): New function.
  13648. (getCompletedLength): New function.
  13649. (getPartialTotalLength): New function.
  13650. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13651. New variable.
  13652. (partialTotalLength): New variable.
  13653. (downloadLength): New variable.
  13654. (totalLength): New variable.
  13655. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13656. Added log.
  13657. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13658. partialTotalLength, downloadLength, totalLength.
  13659. (calculate): Calculate downloadLength and totalLength.
  13660. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13661. * src/main.cc (addCommand): Changed argument signature.
  13662. (main): Added new variable: args. Added new option "torrent-show-files"
  13663. "no-preallocation". Usage is not updated yet.
  13664. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13665. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13666. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13667. Attempt to add the ability to listing file entries in a .torrent file.
  13668. This feature is not yet complete.
  13669. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13670. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13671. (getName): New function.
  13672. * src/TorrentMan.h (getMultiFileEntries): New function.
  13673. (getName): New function.
  13674. * src/main.cc (main): Use above 2 funtion.
  13675. * Release 0.3.2
  13676. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13677. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13678. (detectMessageFlooding): Updated threshold value.
  13679. (checkLongTimePeerChoking): Updated timeout value.
  13680. (getNewPieceAndSendInterest): Added debug log.
  13681. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13682. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13683. (getPeer): Updated.
  13684. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13685. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13686. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13687. is localhost.
  13688. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13689. * src/PendingMessage.cc (processMessage): Not to send piece message
  13690. if peer is not interested in the pieces localhost has.
  13691. * src/Peer.cc (shouldChoke): Updated.
  13692. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13693. * src/Util.cc (isPowerOf): New function.
  13694. * src/Util.h (isPowerOf): New function.
  13695. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13696. whether or not it is power of 2.
  13697. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13698. Added new class SendMessageQueue that includes PendingMessages and
  13699. RequestSlotMan.
  13700. * src/SendMessageQueue.h: New class.
  13701. * src/SendMessageQueue.cc: New class.
  13702. * src/PendingMessage.h: Added new member variable blockIndex and its
  13703. accessors.
  13704. (createRequestMessage): Updated.
  13705. * src/PendingMessage.cc (createRequestMessage): Updated.
  13706. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13707. SendMessageQueue.
  13708. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13709. (receiveMessage): Updated with SendMessageQueue.
  13710. (deletePendingPieceMessage): Removed.
  13711. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13712. (sendInterest): Updated with SendMessageQueue.
  13713. (createRequestPendingMessage): Updated with SendMessageQueue.
  13714. (sendMessages): Updated with SendMessageQueue.
  13715. (onAbort): Updated with SendMessageQueue.
  13716. (keepAlive): Updated with SendMessageQueue.
  13717. (beforeSocketCheck): Updated SendMessageQueue.
  13718. * src/PeerInteractionCommand (sendMessages): Shuffle
  13719. missingBLockIndexes before using it.
  13720. Added its own timeout for peer connection.
  13721. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13722. setter.
  13723. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13724. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13725. Added setTimeout() call.
  13726. (executeInternal): Added setTimeout() call.
  13727. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13728. Added timeout.
  13729. (isTimeoutDetected): Updated.
  13730. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13731. option.
  13732. Added *simple* message flooding checker.
  13733. * src/PeerInteractionCommand.cc (executeInternal):
  13734. Added detectMessageFlooding() call.
  13735. (detectMessageFlooding): New function.
  13736. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13737. (beforeSocketCheck): Added detectMessageFlooding() call.
  13738. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13739. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13740. Removed deletePendingPieceMessage(), getRequestSlot(),
  13741. deleteRequestSlot(), deleteAllRequestSlot().
  13742. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13743. Added checkLongTimePeerChoking() call.
  13744. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13745. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13746. if duplicate == false.
  13747. The parameter "uploaded" and "downloaded" in the tracker request are
  13748. the size since the client sent the "started" event to the tracker.
  13749. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13750. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13751. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13752. getSessionDownloadedSize(), getSessionUploadedSize().
  13753. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13754. getSessionUploadedSize() instead of getDownloadedSize(),
  13755. getUploadedSize().
  13756. * src/PendingMessage.cc (processMessage): Do not send request message
  13757. if the peer is choking the client.
  13758. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13759. less than interval.
  13760. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13761. * configure.in: Added gnutls support. Added several CPP macros.
  13762. * m4/openssl.m4: Added.
  13763. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13764. readData(), peekData(). Added gnutls support.
  13765. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13766. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13767. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13768. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13769. Instead, added a check for whether setup method has executed
  13770. successfully.
  13771. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13772. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13773. * src/Makefile.am: Updated.
  13774. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13775. using whether OpenSSL or gcrypt, depending on the result of configure
  13776. script.
  13777. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13778. messageDigest.h.
  13779. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13780. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13781. Fixed memory leak.
  13782. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13783. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13784. Removed instantiation of TrackerInitCommand. Instead,
  13785. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13786. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13787. ENABLE_SSL.
  13788. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13789. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13790. If a piece is already acquired by another command, delete the request
  13791. slots for the piece.
  13792. * src/TrackerUpdateCommand.cc (execute):
  13793. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13794. Added a check whether peer list is null.
  13795. Fixed the bug that causes sending completed event to the tracker
  13796. several times.
  13797. * src/TrackerInitCommand.cc (execute):
  13798. Fixed the bug that causes sending completed event to the tracker
  13799. several times.
  13800. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13801. by using messageDigest.h.
  13802. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13803. * PeerConnection.cc: Replaced log message "keep-alive" with
  13804. "keep alive".
  13805. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13806. localhost long time.
  13807. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13808. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13809. at most 100 failure entry from the list. If with duplicate = false,
  13810. MAX_PEER_LIST is not checked.
  13811. * PeerListenCommand.cc: Fixed the argument order of log message.
  13812. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13813. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13814. Added warn().
  13815. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13816. Implemented warn().
  13817. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13818. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13819. * Request.h: Added AFTER_COMPLETED event.
  13820. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13821. instead of downloaded size and progress(%) after download completes.
  13822. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13823. message to the peer if it is interested in what localhost has
  13824. downloaded.
  13825. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13826. destination instead of just renaming it.
  13827. * TorrentMan.cc: Added deleteTempFile().
  13828. * PeerAbstractCommand.cc: do not stop execution after download
  13829. completes. This makes localhost a seeder.
  13830. * Util.{h,cc}: Added fileCopy().
  13831. * PeerListenCommand.cc: do not stop execution after download completes.
  13832. This makes localhost a seeder.
  13833. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13834. Added TorrentMan::deleteTempFile() to torrentHandler.
  13835. Initialized the variable dir as ".".
  13836. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13837. Deleted renameSingleFile().
  13838. Added copySingleFile(), deleteTempFile().
  13839. * DownloadEngine.h: Added virtual function afterEachIteration().
  13840. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13841. in onEndOfRun() to afterEachIteration().
  13842. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13843. true.
  13844. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13845. In rangedFileCopy(), added try-catch block to properly close file
  13846. descriptors.
  13847. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13848. Added afterEachIteration(), isFilenameFixed().
  13849. * Peer.cc: Changed choking strategy.
  13850. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13851. * TrackerInitCommand.cc: Send completed event only once.
  13852. * DownloadEngine.cc: Added a call to afterEachIteration().
  13853. * TrackerUpdateCommand.cc: Do not stop execution after download
  13854. completes.
  13855. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13856. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13857. received from a tracker.
  13858. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13859. Decreased the number of failure peers to delete to 0(just comment out
  13860. the line).
  13861. * Release 0.3.1
  13862. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13863. * PeerInteractionCommand.cc: added a call to
  13864. TorrentMan::unadvertisePiece in Destructor.
  13865. * PeerInteractionCommand.cc: make have message sent immediately
  13866. if the size of pending message queue is zero.
  13867. * TorrentMan.cc: set the maximum size of peer list to 250.
  13868. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13869. to deque.
  13870. * Util.cc: fixed rangedFileCopy.
  13871. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13872. to Constructor. Also, moved digest cleanup to Destructor.
  13873. * MetaFileUtil.cc: fixed memory leak
  13874. * replaced std::vector with std::deque.
  13875. * AbstractCommand.cc: casted timeout value to long long int.
  13876. * ChunkedEncoding.cc: fixed memory leak.
  13877. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13878. * SleepCommand.cc: casted timeout value to long long int.
  13879. * Data.cc: fixed memory leak.
  13880. * Data.cc: fixed toLLInt().
  13881. * BitfieldMan.cc: fixed memory leak.
  13882. * TorrentMan.cc: initialized storeDir to ".".
  13883. * TorrentMan.cc: fixed memory leak.
  13884. * TorrentMan.cc: corrected file paths of splitted files.
  13885. * PeerAbstractCommand.cc: casted timeout to long long int.
  13886. * main.cc: added delete(req) and delete(te->diskWriter).
  13887. * RequestSlot.cc: casted timeout value to long long int.
  13888. * Request.cc: fixed memory leak.
  13889. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13890. have the piece.
  13891. * Peer.{h,cc}: added hasPiece(int index).
  13892. * main.cc: corrected addCommand.
  13893. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13894. * BitTorrent protocol support added.
  13895. * Release 0.3.0
  13896. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13897. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13898. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13899. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13900. decoding did not work properly.
  13901. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13902. * DownloadEngine.h: included sys/time.h
  13903. * DownloadEngine.cc: remove sys/time.h
  13904. * Makefile.am (SUBDIRS): Add intl.
  13905. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13906. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13907. * main.cc: correct help message for --http-auth-scheme.
  13908. * main.cc: changed e-mail address for bug reports.
  13909. * ja.po: added japanese translation.
  13910. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13911. * SimpleLogger.cc: flush log file instead of stdout.
  13912. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13913. * main.cc: Fixed command-line option: max-tries
  13914. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13915. does not equal to seg.sp.
  13916. * DownloadCommand.cc: If EOF is got from the server and the total size
  13917. of file is not zero, then throw DlRetryEx.
  13918. * main.cc: Set the minium value of min-segment-size to 1024.
  13919. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13920. fails because of a regression since 0.2.0 release.
  13921. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13922. * HttpConnection.cc:
  13923. * common.h: defined the user agent name as macro
  13924. * DownloadEngine.{h, cc}:
  13925. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13926. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13927. * main.cc: Download complete/abort message is now generated by main.
  13928. * Makefile.am (SUBDIRS): Add m4.
  13929. (ACLOCAL_AMFLAGS): New variable.
  13930. (EXTRA_DIST): New variable.
  13931. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13932. * gettext: added gettext functionality
  13933. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13934. * AbstractCommand.cc:
  13935. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13936. unregister its cuid from SegmentMan.
  13937. * DownloadEngine.cc: .aria2 file was written when a downloading
  13938. failed with errors.
  13939. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13940. Added "User-Agent" header to CONNECT proxy request.
  13941. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13942. properly.
  13943. * Logger.h:
  13944. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13945. * ChunkedEncoding.cc: Added #include directive for strings.h
  13946. * Release 0.2.1
  13947. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13948. * Util.{h,cc}: added startsWith().
  13949. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13950. Util::endsWith().
  13951. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13952. * common.h: added #include directive of limit.h.
  13953. * DownloadEngine.cc: added #include directive of sys/time.h and
  13954. algorithm.
  13955. * Exception.h: added #include directive of stdio.h.
  13956. * AbstractCommand.h: added #include directive of sys/time.h.
  13957. * DownloadCommand.h: added #include directive of sys/time.h.
  13958. * *.h: added #include directive of common.h to all base classes.
  13959. subclasses' one was removed.
  13960. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13961. does not define these macros.
  13962. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13963. * Release 0.2.0
  13964. * main.cc:
  13965. * HttpInitiateConnectionCommand.{h,cc}:
  13966. * prefs.h:
  13967. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13968. We can now use GET command in http proxy.
  13969. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13970. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13971. that splits slowest segment of SegmentMan::commands vector.
  13972. This is the default split algorithm of aria2.
  13973. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13974. that splits first segment of SegmentMan::commands vector.
  13975. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13976. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13977. * Segment.h:
  13978. * SegmentMan.cc: Added speed field to Segment.h
  13979. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13980. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13981. * message.h: Change file size related %d to %lld.
  13982. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13983. * FtpInitiateConnectionCommand.{h,cc}:
  13984. * FtpNegotiationCommand.{h,cc}:
  13985. * FtpDownloadCommand.{h,cc}:
  13986. * FtpConnection.{h,cc}: Added FTP support
  13987. * SimpleLogger.cc: Log message now includes time information.
  13988. * main.cc: The value of --http-auth-scheme option is chagned from
  13989. 'BASIC' to 'basic'
  13990. * main.cc: Added --timeout command-line option.
  13991. * main.cc: Added --min-segment-size command-line option.
  13992. * main.cc: Added --max-retries command-line option.
  13993. * prefs.h: option string constants are now defined in prefs.h
  13994. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13995. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13996. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13997. with version 0.1.0's one.
  13998. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13999. * configure.in: Added --enable-ssl option to configure script.
  14000. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14001. cannot permit absoluteURI as Request-URI.
  14002. * HttpConnection.cc: Added Referer support.
  14003. * main.cc: Added referer command-line option.
  14004. * main.cc: Added rety-wait command-line option.
  14005. * Exception.h: Fixed formating bug in Exception::setMsg()
  14006. * SocketCore.{h,cc}:
  14007. * Socket.{h, cc}:
  14008. * Request.cc:
  14009. * InitiateConnectionCommandFactory.cc:
  14010. * HttpRequestCommand.cc: Added HTTPS support.
  14011. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14012. for SocketCore.
  14013. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14014. size is wrong
  14015. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14016. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14017. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14018. * Release 0.1.0