ChangeLog 499 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681
  1. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented select-file option in Input File section.
  3. Documented --http-auth-challenge option.
  4. * doc/aria2c.1.txt
  5. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Now select-file can be specified in the uri list(-i list).
  7. * src/BtContext.cc
  8. * src/BtContext.h
  9. * src/RequestGroup.cc
  10. * src/Sequence.h
  11. * src/download_helper.cc
  12. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Made the upper value of --max-concurrent-downloads options unlimited.
  14. * src/OptionHandlerFactory.cc
  15. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Fixed the bug that disk writer is not created even if it shares
  17. same piece with the preceding file if the length of previous file
  18. is 0.
  19. * src/MultiDiskAdaptor.cc
  20. * test/MultiDiskAdaptorTest.cc
  21. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. In BitTorrent, Open files in read-only mode for hash check. After
  23. that, re-open file in read/write mode only when the download is
  24. not finished.
  25. * src/AbstractDiskWriter.cc
  26. * src/AbstractDiskWriter.h
  27. * src/AbstractSingleDiskAdaptor.cc
  28. * src/AbstractSingleDiskAdaptor.h
  29. * src/BtCheckIntegrityEntry.cc
  30. * src/DiskAdaptor.h
  31. * src/DiskWriter.h
  32. * src/MultiDiskAdaptor.cc
  33. * src/MultiDiskAdaptor.h
  34. * src/RequestGroup.cc
  35. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Added --http-auth-challenge option. If it is set to true(by
  37. default), aria2 sends HTTP authorization header only when it is
  38. requested by the server. If false is set, then authorization
  39. header is always sent to the server. This is useful for servers
  40. that don't respond 401 code when authentication is required.
  41. There is an exception: if username and password are embedded in
  42. URI, authorization header is always sent to the server regardless
  43. of this option.
  44. * src/AuthConfigFactory.cc
  45. * src/HttpSkipResponseCommand.cc
  46. * src/OptionHandlerFactory.cc
  47. * src/prefs.cc
  48. * src/prefs.h
  49. * src/usage_text.h
  50. * test/AuthConfigFactoryTest.cc
  51. * test/HttpRequestTest.cc
  52. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. * Release 1.2.0
  54. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Updated Spanish, Ukrainian, Russian and Japanese translations.
  56. Thanks to all translators.
  57. * po/es.po
  58. * po/ja.po
  59. * po/ru.po
  60. * po/uk.po
  61. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Call deleteSocketForReadCheck() before socket is closed.
  63. * src/HttpListenCommand.cc
  64. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Defined virtual destructor for BObject.
  66. * src/bencode.h
  67. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Rewritten BDE to make it efficient.
  69. * src/bencode.cc
  70. * src/bencode.h
  71. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Removed function throw list.
  73. * src/bencode.cc
  74. * src/bencode.h
  75. * test/BencodeTest.cc
  76. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Enclosed all URLs in double quotes in command-line examples.
  78. * doc/aria2c.1.txt
  79. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Updated reference/see also section.
  81. * README
  82. * doc/aria2c.1.txt
  83. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Reorganized man page based on man man-pages.
  85. * doc/aria2c.1.txt
  86. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  88. because same documents are available in man page. Added
  89. References section.
  90. * README
  91. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  93. PERFORMANCE PROFILE section.
  94. * doc/aria2c.1.txt
  95. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Rewritten the section for configuration file.
  97. * README
  98. * doc/aria2c.1.txt
  99. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Fixed the segmentation fault during execution of choking algorithm
  101. in leecher state because of broken compare operator
  102. implementation.
  103. * src/BtLeecherStateChoke.cc
  104. * src/BtLeecherStateChoke.h
  105. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Open file in binary mode.
  107. * src/CookieStorage.cc
  108. * src/DHTSetup.cc
  109. * src/DHTUtil.cc
  110. * src/Netrc.cc
  111. * src/NsCookieParser.cc
  112. * src/ProtocolDetector.cc
  113. * src/RequestGroupMan.cc
  114. * src/Signature.cc
  115. * src/bencode.cc
  116. * src/download_helper.cc
  117. * src/option_processing.cc
  118. * test/CookieParserTest.cc
  119. * test/DefaultBtProgressInfoFileTest.cc
  120. * test/FileTest.cc
  121. * test/GZipDecoderTest.cc
  122. * test/RequestGroupManTest.cc
  123. * test/SignatureTest.cc
  124. * test/SingleFileAllocationIteratorTest.cc
  125. * test/UriListParserTest.cc
  126. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Removed operator[] because it is ambiguous with built-in []
  128. operator.
  129. * src/array_fun.h
  130. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Fixed compile error
  132. * src/OptionParser.cc
  133. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Added missing call to arrayWrapperConst
  135. * test/array_funTest.cc
  136. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Use array_wrapper instead of array_ptr.
  138. * src/DHTRoutingTableDeserializer.cc
  139. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  141. * src/array_fun.h
  142. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Added array_wrapper template.
  144. * src/array_fun.h
  145. * test/array_funTest.cc
  146. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Use operator T* of array_ptr.
  148. * src/OptionParser.cc
  149. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Use localhost instead of 127.0.0.1
  151. * test/FtpConnectionTest.cc
  152. * test/MSEHandshakeTest.cc
  153. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Added operator T*
  155. * src/array_fun.h
  156. * test/array_funTest.cc
  157. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Use dynamically allocated char array to detect memory access
  159. violation.
  160. * src/DHTRoutingTableDeserializer.cc
  161. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  163. defined.
  164. * src/PeerMessageUtil.cc
  165. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  167. * configure.ac
  168. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Added a check to see struct sockaddr_in has sin_len member.
  170. * configure.ac
  171. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Fixed buffer overrun.
  173. * src/DHTRoutingTableDeserializer.cc
  174. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Added LL for long long int constant.
  176. * test/FtpConnectionTest.cc
  177. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Casted to unsigned int to suppress compiler warning on netbsd.
  179. * src/BtRuntime.h
  180. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Assign the value of tv.tv_sec to time_t timesec instead of giving
  182. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  183. type time_t.
  184. * src/SimpleLogger.cc
  185. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Added test for FtpConnection::receiveSizeResponse().
  187. * test/FtpConnectionTest.cc
  188. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Fix epoll error on the old kernel 2.6.8 or ealier.
  190. * src/EpollEventPoll.cc
  191. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Use Util::parseLLInt instead of sscanf for portability. The
  193. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  194. * src/FtpConnection.cc
  195. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  197. block. It should not filter anything.
  198. * src/BitfieldMan.cc
  199. * src/ConsoleStatCalc.cc
  200. * test/BitfieldManTest.cc
  201. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Fixed the bug that the boolean options that don't take arguments
  203. don't work.
  204. * src/OptionHandlerImpl.h
  205. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Fixed broken selected file BitTorrent download.
  207. * src/MultiDiskAdaptor.cc
  208. * test/MultiDiskAdaptorTest.cc
  209. * test/MultiFileAllocationIteratorTest.cc
  210. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Fixed #define guard for EpollEventPoll
  212. * src/EpollEventPoll.h
  213. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Wait 2 seconds. 1 second is sometimes not enough.
  215. * test/TimeSeedCriteriaTest.cc
  216. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Use localhost instead of 127.0.0.1.
  218. * test/DHTConnectionImplTest.cc
  219. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Suppressed compiler warning.
  221. * src/AdaptiveURISelector.cc
  222. * src/DefaultPieceStorage.cc
  223. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Defined virtual destructor.
  225. * src/MetalinkParserState.h
  226. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Give NULL for second argument of getaddrinfo instead of "0".
  228. * src/NameResolver.cc
  229. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  231. included strptime doesn't parse data for this format.
  232. * src/FtpConnection.cc
  233. * test/FtpConnectionTest.cc
  234. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Removed tests giving -1 for unsigned argument.
  236. * test/SingleFileDownloadContextTest.cc
  237. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Don't use sha256 in tests because it might not be supported by the
  239. SSL library.
  240. * test/MetalinkProcessorTest.cc
  241. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Removed tests giving -1 for unsigned argument.
  243. * test/AlphaNumberDecoratorTest
  244. * test/BitfieldManTest.cc
  245. * test/DefaultBtContextTest.cc
  246. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Fixed compile error without libcares when epoll is available.
  248. * src/EpollEventPoll.cc
  249. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Included fstream instead of iostream.
  251. * test/SignatureTest.cc
  252. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Removed #include <algorithm>
  254. * test/RequestGroupTest.cc
  255. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  257. using RequestGroup::extractURIResult().
  258. * src/AdaptiveURISelector.cc
  259. * src/RequestGroup.cc
  260. * src/RequestGroup.h
  261. * test/RequestGroupTest.cc
  262. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Added tests for array_ptr.
  264. * test/array_funTest.cc
  265. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Don't send ip parameter to a tracker if ip parameter is empty
  267. string.
  268. * src/DefaultBtAnnounce.cc
  269. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Adjusted line feed.
  271. * src/version_usage.cc
  272. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Print tags, possible values when OptionHandlerException is caught.
  274. * src/option_processing.cc
  275. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Changed the message for FatalException.
  277. * src/OptionParser.cc
  278. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Documented --bt-external-ip option in man page. Updated man pages
  280. for --proxy-method option.
  281. * doc/aria2c.1.txt
  282. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Use GET method for FTP via HTTP proxy.
  284. * src/FtpInitiateConnectionCommand.cc
  285. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Changed the default value of --proxy-method option from 'tunnel'
  287. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  288. option.
  289. * src/AbstractCommand.cc
  290. * src/AbstractCommand.h
  291. * src/FtpInitiateConnectionCommand.cc
  292. * src/HttpDownloadCommand.cc
  293. * src/HttpInitiateConnectionCommand.cc
  294. * src/HttpInitiateConnectionCommand.h
  295. * src/OptionHandlerFactory.cc
  296. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Initialized _logger
  298. * src/SelectEventPoll.cc
  299. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Defined a copy constructor for the same type.
  301. * src/SharedHandle.h
  302. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Added OptionParser::parseArg() which internally uses getopt_long
  304. to parse command-line options. All command-line options are now
  305. configured by OptionHandler. No manual editing of struct option*
  306. is required any more.
  307. * src/NameMatchOptionHandler.h
  308. * src/OptionHandler.h
  309. * src/OptionHandlerFactory.cc
  310. * src/OptionHandlerImpl.h
  311. * src/OptionParser.cc
  312. * src/OptionParser.h
  313. * src/array_fun.h
  314. * src/main.cc
  315. * src/option_processing.cc
  316. * test/OptionHandlerTest.cc
  317. * test/OptionParserTest.cc
  318. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Fixed configure error with --disable-epoll
  320. * configure.ac
  321. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Fixed compile error when HAVE_EPOLL is not defined.
  323. Fixed linker error on bigendian systems.
  324. * src/SocketCore.cc
  325. * src/SocketCore.h
  326. * test/DefaultBtProgressInfoFileTest.cc
  327. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Added --bt-external-ip option. You can specify the external IP
  329. address to report to a BitTorrent tracker. Although this function
  330. is named 'external', it can accept any kind of IP addresses.
  331. * src/DefaultBtAnnounce.cc
  332. * src/OptionHandlerFactory.cc
  333. * src/option_processing.cc
  334. * src/prefs.cc
  335. * src/prefs.h
  336. * src/usage_text.h
  337. * test/DefaultBtAnnounceTest.cc
  338. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Extracted the algorithm to find the longest incremental sequence
  340. as max_sequence template.
  341. * src/LongestSequencePieceSelector.cc
  342. * src/a2algo.h
  343. * test/Makefile.am
  344. * test/a2algoTest.cc
  345. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  347. * src/usage_text.h
  348. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Updated doc for --uri-selector, --http-server-listen-port and
  350. --enable-http-server option. Documented --event-poll option.
  351. * doc/aria2c.1.txt
  352. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Updated doc for --enable-http-server.
  354. * src/usage_text.h
  355. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Documented --http-server-listen-port and --enable-http-server in
  357. man page.
  358. * doc/aria2c.1.txt
  359. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  361. translations. Thanks to all translators.
  362. * po/es.po
  363. * po/id.po
  364. * po/it.po
  365. * po/ru.po
  366. * po/uk.po
  367. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Bump up version number to 1.2.0
  369. * configure.ac
  370. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. BtContext::getAnnounceTiers() now returns const reference.
  372. * src/BtContext.h
  373. * src/DefaultBtContext.cc
  374. * src/DefaultBtContext.h
  375. * test/MockBtContext.h
  376. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Change the number of retries for tracker request based on the
  378. number of available tracker in a torrent file.
  379. * src/TrackerWatcherCommand.cc
  380. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Added _maxTries property to RequestGroup and assign the option
  382. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  383. RequestGroup::getMaxTries() instead of
  384. Option::getAsInt(PREF_MAX_TRIES).
  385. * src/AbstractCommand.cc
  386. * src/RequestGroup.cc
  387. * src/RequestGroup.h
  388. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  390. Mandriva. I modified the patch: make RequestGroup have the
  391. timeout value and AdaptiveURISelector directly modifies that
  392. value.
  393. * src/AbstractCommand.cc
  394. * src/AdaptiveURISelector.cc
  395. * src/AdaptiveURISelector.h
  396. * src/FtpNegotiationCommand.cc
  397. * src/RequestGroup.cc
  398. * src/RequestGroup.h
  399. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Fixed compiler warning
  401. * test/IteratableChecksumValidatorTest.cc
  402. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  404. integrated downloads. This PieceSelector subclass finds the
  405. longest continuous sequence in the available missing pieces and
  406. selects the last index of such sequence. This makes HTTP/FTP
  407. connections less interrupted by the pieces obtained by BitTorrent
  408. peers.
  409. * src/DefaultPieceStorage.cc
  410. * src/DefaultPieceStorage.h
  411. * src/LongestSequencePieceSelector.cc
  412. * src/LongestSequencePieceSelector.h
  413. * src/Makefile.am
  414. * src/PieceSelector.h
  415. * src/RarestPieceSelector.h
  416. * src/RequestGroup.cc
  417. * test/BtDependencyTest.cc
  418. * test/DefaultPieceStorageTest.cc
  419. * test/IteratableChecksumValidatorTest.cc
  420. * test/LongestSequencePieceSelectorTest.cc
  421. * test/Makefile.am
  422. * test/SegmentManTest.cc
  423. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Fixed the bug that the average speed is wrong in
  425. http/ftp/BitTorrent integrated download. Only the download bytes
  426. in BitTorrent were considered.
  427. * src/RequestGroup.cc
  428. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Choose port for BitTorrent/DHT randomly from the specified range.
  430. * src/DHTConnectionImpl.cc
  431. * src/PeerListenCommand.cc
  432. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Send HTTP Authorization header only if it is requested by the
  434. server(response 401). There are some exceptions. The authorization
  435. header for proxy is always sent if it is available without request
  436. by the server. If username/password is specified in the URI, it
  437. is immediately sent to the server without request by the server.
  438. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  439. SharedHandle<AuthConfig>().
  440. NetrcAuthResolver::resolveAuthConfig() returns
  441. SharedHandle<AuthConfig>() if no AuthConfig is available.
  442. * src/AbstractAuthResolver.cc
  443. * src/AbstractProxyRequestCommand.cc
  444. * src/AuthConfigFactory.cc
  445. * src/AuthConfigFactory.h
  446. * src/HttpConnection.cc
  447. * src/HttpRequest.cc
  448. * src/HttpRequest.h
  449. * src/HttpResponse.cc
  450. * src/HttpResponseCommand.cc
  451. * src/HttpSkipResponseCommand.cc
  452. * test/AuthConfigFactoryTest.cc
  453. * test/HttpRequestTest.cc
  454. * test/HttpResponseTest.cc
  455. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Remove leading "--" from help keyword and a substring after "="
  457. from help keyword, so that one can query options by '-h--max-' or
  458. '-hmax-peers=10'.
  459. * src/option_processing.cc
  460. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Rewritten PStringVisitor and its implementation.
  462. * src/PStringBuildVisitor.cc
  463. * src/PStringBuildVisitor.h
  464. * src/PStringDatum.h
  465. * src/PStringNumLoop.h
  466. * src/PStringSegment.cc
  467. * src/PStringSegment.h
  468. * src/PStringSelect.h
  469. * src/PStringVisitor.h
  470. * src/download_helper.cc
  471. * test/PStringBuildVisitorTest.cc
  472. * test/ParameterizedStringParserTest.cc
  473. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Persist connection between the built-in HTTP server and a client
  475. if a client supports keep-alive. Fixed the bug that aria2 exits
  476. when the HTTP server receives EOF from a client.
  477. * src/HttpServer.cc
  478. * src/HttpServer.h
  479. * src/HttpServerCommand.cc
  480. * src/HttpServerCommand.h
  481. * src/HttpServerResponseCommand.cc
  482. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Added experimental built-in HTTP server. Currently, when a client
  484. accesses to the server, it responds with the current download
  485. progress. By default, it is disabled. To enable the server, give
  486. --enable-http-server option. To change the default port number
  487. for the server to listen to, use --http-server-listen-port option.
  488. The response HTML is very simple and refreshes it self each 1
  489. second. Because of this refresh, you see flicker in normal web
  490. browser such as Firefox. I recommend to use console-based browser
  491. such as elinks, w3m. To connect to the server, run 'elinks
  492. http://localhost:6800/' while running aria2. Please replace port
  493. number '6800'(which is default) with your preference.
  494. * src/DownloadEngineFactory.cc
  495. * src/HttpHeader.cc
  496. * src/HttpHeader.h
  497. * src/HttpHeaderProcessor.cc
  498. * src/HttpHeaderProcessor.h
  499. * src/HttpListenCommand.cc
  500. * src/HttpListenCommand.h
  501. * src/HttpServer.cc
  502. * src/HttpServer.h
  503. * src/HttpServerCommand.cc
  504. * src/HttpServerCommand.h
  505. * src/HttpServerResponseCommand.cc
  506. * src/HttpServerResponseCommand.h
  507. * src/Makefile.am
  508. * src/OptionHandlerFactory.cc
  509. * src/Util.cc
  510. * src/Util.h
  511. * src/help_tags.h
  512. * src/option_processing.cc
  513. * src/prefs.cc
  514. * src/prefs.h
  515. * src/usage_text.h
  516. * test/HttpHeaderProcessorTest.cc
  517. * test/UtilTest.cc
  518. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Removed.
  520. * src/CheckIntegrityMan.cc
  521. * src/FileAllocationMan.cc
  522. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Made (piece) hash check sequential for each RequestGroup because
  524. simultaneous hash check is slower than sequential execution.
  525. * src/CheckIntegrityCommand.cc
  526. * src/CheckIntegrityDispatcherCommand.cc
  527. * src/CheckIntegrityDispatcherCommand.h
  528. * src/CheckIntegrityMan.h
  529. * src/ConsoleStatCalc.cc
  530. * src/DownloadCommand.cc
  531. * src/DownloadEngine.cc
  532. * src/DownloadEngine.h
  533. * src/DownloadEngineFactory.cc
  534. * src/Makefile.am
  535. * src/Makefile.in
  536. * src/RequestGroup.cc
  537. * src/StatCalc.h
  538. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  540. SequentialDispatcherCommand.
  541. * src/FileAllocationDispatcherCommand.cc
  542. * src/SequentialDispatcherCommand.h
  543. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Rewritten FileAllocationDispatcherCommand using brand new
  545. SequentialDispatcherCommand.
  546. * src/DownloadEngineFactory.cc
  547. * src/FileAllocationCommand.cc
  548. * src/FileAllocationDispatcherCommand.cc
  549. * src/FileAllocationDispatcherCommand.h
  550. * src/Makefile.am
  551. * src/SequentialDispatcherCommand.h
  552. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Replaced FileAllocationMan with
  554. SequentialPicker<FileAllocationEntry>.
  555. * src/BtCheckIntegrityEntry.cc
  556. * src/ConsoleStatCalc.cc
  557. * src/DownloadEngine.cc
  558. * src/DownloadEngine.h
  559. * src/DownloadEngineFactory.cc
  560. * src/FileAllocationCommand.cc
  561. * src/FileAllocationDispatcherCommand.cc
  562. * src/FileAllocationMan.h
  563. * src/Makefile.am
  564. * src/SequentialPicker.h
  565. * src/StatCalc.h
  566. * src/StreamCheckIntegrityEntry.cc
  567. * test/Makefile.am
  568. * test/SequentialPickerTest.cc
  569. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Added doc for adaptive URI selector.
  571. * doc/aria2c.1.txt
  572. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Added doc for adaptive URI selector.
  574. * src/usage_text.h
  575. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Added doc for --bt-max-peers option.
  577. * doc/aria2c.1.txt
  578. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Added doc for --bt-hash-check-seed option.
  580. * doc/aria2c.1.txt
  581. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Documented exit codes.
  583. * doc/aria2c.1.txt
  584. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Added --bt-max-peers option to specify the maximum number of peers
  586. per torrent. 0 means unlimited number of peers.
  587. * src/ActivePeerConnectionCommand.cc
  588. * src/BtRuntime.h
  589. * src/DefaultPeerStorage.cc
  590. * src/DefaultPeerStorage.h
  591. * src/OptionHandlerFactory.cc
  592. * src/RequestGroup.cc
  593. * src/option_processing.cc
  594. * src/prefs.cc
  595. * src/prefs.h
  596. * src/usage_text.h
  597. * test/DefaultPeerStorageTest.cc
  598. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Added --bt-hash-check-seed option. If true is given to this
  600. option, after hash check using --check-integrity option and file
  601. is complete, continue to seed file. If you want to check file and
  602. download it only when it is damaged or incomplete, set this option
  603. to false. This option has effect only on BitTorrent download.
  604. The default value is true(This is the same behavior with the
  605. previous release).
  606. * src/BtCheckIntegrityEntry.cc
  607. * src/OptionHandlerFactory.cc
  608. * src/option_processing.cc
  609. * src/prefs.cc
  610. * src/prefs.h
  611. * src/usage_text.h
  612. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Updated copyright year.
  614. * src/version_usage.cc
  615. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Rewritten the usage text for --bt-request-peer-speed-limit option.
  617. * doc/aria2c.1.txt
  618. * src/usage_text.h
  619. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Made the max value of split option unlimited.
  621. * doc/aria2c.1.txt
  622. * src/OptionHandlerFactory.cc
  623. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Fixed compile warning/error.
  625. * src/DownloadResult.h
  626. * src/HttpDownloadCommand.cc
  627. * src/ServerStat.cc
  628. * test/RequestGroupTest.cc
  629. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Added --event-poll option to select the method for polling events.
  631. The available methods are "select" and "epoll". "epoll" is
  632. available on Linux only. The earlier release has the compile
  633. option to choose from these methods.
  634. * configure.ac
  635. * src/RequestGroupMan.cc
  636. * src/OptionHandlerFactory.cc
  637. * src/EpollEventPoll.h
  638. * src/StreamFileAllocationEntry.cc
  639. * src/a2io.h
  640. * src/SelectEventPoll.h
  641. * src/option_processing.cc
  642. * src/prefs.h
  643. * src/EpollEventPoll.cc
  644. * src/EventPoll.h
  645. * src/SocketCore.h
  646. * src/Makefile.am
  647. * src/main.cc
  648. * src/DownloadEngine.h
  649. * src/SelectEventPoll.cc
  650. * src/DownloadEngine.cc
  651. * src/SocketCore.cc
  652. * src/DownloadEngineFactory.cc
  653. * src/Makefile.in
  654. * src/prefs.cc
  655. * src/usage_text.h
  656. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Included RecoverableException.h from main.cc
  658. * src/main.cc
  659. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  661. now returns last error encountered in the HTTP/FTP downloads as a
  662. exit status value. If all downloads finished successfully, aria2
  663. returns 0. The error code is defined in src/DownloadResult.h.
  664. The error occurred in the download currently in progress is not
  665. reported as a last error. If no error has encountered but there
  666. are in progress or waiting downloads, aria2 returns 7.
  667. * src/AbstractCommand.cc
  668. * src/DlAbortEx.h
  669. * src/DlRetryEx.h
  670. * src/DownloadCommand.cc
  671. * src/DownloadFailureException.h
  672. * src/DownloadResult.h
  673. * src/FtpNegotiationCommand.cc
  674. * src/HttpSkipResponseCommand.cc
  675. * src/Makefile.am
  676. * src/MultiUrlRequestInfo.cc
  677. * src/MultiUrlRequestInfo.h
  678. * src/RecoverableException.h
  679. * src/RequestGroup.cc
  680. * src/RequestGroup.h
  681. * src/RequestGroupMan.cc
  682. * src/RequestGroupMan.h
  683. * src/URIResult.cc
  684. * src/URIResult.h
  685. * src/main.cc
  686. * src/option_processing.cc
  687. * test/RequestGroupTest.cc
  688. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  690. patch adds AdaptiveURISelector, which selects one of the bests
  691. mirrors for first and reserved connections. For supplementary
  692. ones, it returns mirrors which has not been tested yet, and if
  693. each of them already tested, returns mirrors which has to be
  694. tested again. Otherwise, it doesn't return anymore mirrors.
  695. * src/AdaptiveURISelector.cc
  696. * src/AdaptiveURISelector.h
  697. * src/FtpNegotiationCommand.cc
  698. * src/HttpResponseCommand.cc
  699. * src/Makefile.am
  700. * src/Makefile.in
  701. * src/OptionHandlerFactory.cc
  702. * src/RequestGroup.cc
  703. * src/RequestGroup.h
  704. * src/RequestGroupMan.cc
  705. * src/ServerStat.cc
  706. * src/ServerStat.h
  707. * src/ServerStatMan.cc
  708. * src/SpeedCalc.cc
  709. * src/URISelector.h
  710. * src/prefs.cc
  711. * src/prefs.h
  712. * test/RequestGroupManTest.cc
  713. * test/ServerStatManTest.cc
  714. * test/ServerStatTest.cc
  715. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Fixed unit test error.
  717. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  718. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. * Release 1.1.2
  720. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Updated Russian translation. Thanks to the translators.
  722. * po/ru.po
  723. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Added the description of --use-head option to man page.
  725. * doc/aria2c.1.txt
  726. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Bump up version number to 1.1.2
  728. * configure.ac
  729. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Added --use-head option to toggle whether HEAD method should be
  731. used in the first HTTP request. By default aria2 uses HEAD method
  732. as the first request. When the server doesn't recognize HEAD, then
  733. give aria2 --use-head=false to force aria2 to use GET method
  734. instead.
  735. * src/OptionHandlerFactory.cc
  736. * src/RequestGroupMan.cc
  737. * src/option_processing.cc
  738. * src/prefs.cc
  739. * src/prefs.h
  740. * src/usage_text.h
  741. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Fixed the bug that BitTorrent download doesn't finish when REJECT
  743. message is received before CHOKE message. The old implementation
  744. doen't clear the use-bit of the piece when recieved REJECT
  745. message.
  746. * src/DefaultBtMessageDispatcher.cc
  747. * test/DefaultBtMessageDispatcherTest.cc
  748. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. * Release 1.1.1
  750. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Bump up version number to 1.1.1.
  752. * configure.ac
  753. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Fixed the bug that --summary-interval=0 doesn't work. The summary
  755. is printed repeatedly.
  756. * src/ConsoleStatCalc.cc
  757. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. * Release 1.1.0
  759. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Added ifdef clause for conditional compilation.
  761. * src/main.cc
  762. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  764. translations. Thanks to all translators.
  765. * po/ja.po
  766. * po/ru.po
  767. * po/uk.po
  768. * po/zh_CN.po
  769. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  770. Added the preceding ">>> " before the message "Printing the
  771. contents of file..." to make the output more readable.
  772. * src/main.cc
  773. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Added try-catch block in the loop in showFiles() to continue the
  775. operation even if the exception occurred in one file.
  776. * src/main.cc (showFiles)
  777. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Made messages in showFiles() translatable.
  779. * po/aria2.pot
  780. * src/main.cc
  781. * src/message.h
  782. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Print the contents of Torrent/Metalink files are printed without
  784. -T/-M options.
  785. * src/main.cc
  786. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Escaped '--' with '\--'
  788. * README
  789. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Updated "How to build" section in README. Mentioned about
  791. --with-ca-bundle compile option.
  792. * README
  793. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Bump up version number to 1.1.0.
  795. * configure.ac
  796. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Added a note for --dht-listen-port option.
  798. * doc/aria2c.1.txt
  799. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Update doc for --realtime-chunk-checksum option.
  801. * doc/aria2c.1.txt
  802. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Update doc for --realtime-chunk-checksum option.
  804. * src/usage_text.h
  805. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Updated French, Japanese, Russian and Ukrainian translations.
  807. Thanks to all translators.
  808. * po/fr.po
  809. * po/ja.po
  810. * po/ru.po
  811. * po/uk.po
  812. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Renamed aria2c.pot to aria2.pot
  814. * po/aria2.pot
  815. * po/aria2c.pot: Removed.
  816. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Removed MetaEntry.h
  818. * src/Makefile.am
  819. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Rename file by appending digits if a local file exists and its
  821. file size is larger than that of remote file with --continue
  822. option. The old implementation just throws exception in such case.
  823. * src/RequestGroup.cc
  824. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Fixed the bug that download progress summary is not printed in the
  826. interval specified by the option.
  827. * src/ConsoleStatCalc.cc
  828. * src/ConsoleStatCalc.h
  829. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Fixed compiler warning
  831. * src/Cookie.cc
  832. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Fixed the cookie implementation based on RFC2965.
  834. Now if a value in domain field is not started with dot, then
  835. prepend dot. That means a cookie with domain=sf.net is sent to
  836. wiki.sf.net.
  837. * src/Cookie.cc
  838. * test/CookieParserTest.cc
  839. * test/CookieStorageTest.cc
  840. * test/CookieTest.cc
  841. * test/NsCookieParserTest.cc
  842. * test/Sqlite3MozCookieParserTest.cc
  843. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Fixed the bug that causes corrupted downloads if HTTP pipelining
  845. is enabled and the server doesn't support keep-alive.
  846. * src/AbstractCommand.cc
  847. * src/DownloadCommand.cc
  848. * src/HttpDownloadCommand.cc
  849. * src/HttpDownloadCommand.h
  850. * src/HttpResponseCommand.cc
  851. * src/Request.cc
  852. * src/Request.h
  853. * test/RequestTest.cc
  854. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Removed Dictionary/List/Data and its related classes.
  856. * src/BencodeVisitor.cc: Removed.
  857. * src/BencodeVisitor.h: Removed.
  858. * src/Data.cc: Removed.
  859. * src/Data.h: Removed.
  860. * src/Dictionary.cc: Removed.
  861. * src/Dictionary.h: Removed.
  862. * src/List.cc: Removed.
  863. * src/List.h: Removed.
  864. * src/Makefile.am
  865. * src/MetaEntry.h: Removed.
  866. * src/MetaEntryVisitor.h: Removed.
  867. * src/MetaFileUtil.cc: Removed.
  868. * src/MetaFileUtil.h: Removed.
  869. * test/BencodeVisitorTest.cc: Removed.
  870. * test/DataTest.cc: Removed.
  871. * test/DictionaryTest.cc: Removed.
  872. * test/ListTest.cc: Removed.
  873. * test/Makefile.am
  874. * test/MetaFileUtilTest.cc: Removed.
  875. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Removed include of MetaEntry.h
  877. * test/DHTMessageTrackerEntryTest.cc
  878. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Use BDE instead of Dictionary/List/Data.
  880. * src/AnnounceList.cc
  881. * src/AnnounceList.h
  882. * test/AnnounceListTest.cc
  883. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Use BDE instead of Dictionary/List/Data.
  885. * src/DHTAbstractMessage.cc
  886. * src/DHTAbstractMessage.h
  887. * src/DHTAnnouncePeerMessage.cc
  888. * src/DHTAnnouncePeerMessage.h
  889. * src/DHTAnnouncePeerReplyMessage.cc
  890. * src/DHTAnnouncePeerReplyMessage.h
  891. * src/DHTFindNodeMessage.cc
  892. * src/DHTFindNodeMessage.h
  893. * src/DHTFindNodeReplyMessage.cc
  894. * src/DHTFindNodeReplyMessage.h
  895. * src/DHTGetPeersMessage.cc
  896. * src/DHTGetPeersMessage.h
  897. * src/DHTGetPeersReplyMessage.cc
  898. * src/DHTGetPeersReplyMessage.h
  899. * src/DHTMessageFactory.h
  900. * src/DHTMessageFactoryImpl.cc
  901. * src/DHTMessageFactoryImpl.h
  902. * src/DHTMessageReceiver.cc
  903. * src/DHTMessageTracker.cc
  904. * src/DHTMessageTracker.h
  905. * src/DHTPingMessage.cc
  906. * src/DHTPingMessage.h
  907. * src/DHTPingReplyMessage.cc
  908. * src/DHTPingReplyMessage.h
  909. * src/DHTQueryMessage.cc
  910. * src/DHTQueryMessage.h
  911. * src/DHTResponseMessage.cc
  912. * src/DHTResponseMessage.h
  913. * test/DHTAnnouncePeerMessageTest.cc
  914. * test/DHTAnnouncePeerReplyMessageTest.cc
  915. * test/DHTFindNodeMessageTest.cc
  916. * test/DHTFindNodeReplyMessageTest.cc
  917. * test/DHTGetPeersMessageTest.cc
  918. * test/DHTGetPeersReplyMessageTest.cc
  919. * test/DHTMessageFactoryImplTest.cc
  920. * test/DHTMessageTrackerTest.cc
  921. * test/DHTPingMessageTest.cc
  922. * test/DHTPingReplyMessageTest.cc
  923. * test/MockDHTMessageFactory.h
  924. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Added tests the case where length < 0 is specified.
  926. * test/BencodeTest.cc
  927. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Fixed memory leak in decoderawstring()
  929. * src/bencode.cc
  930. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Added missing #ifdef guard. Added uc() function for String and
  932. removeKey() for Dict.
  933. * src/bencode.cc
  934. * src/bencode.h
  935. * test/BencodeTest.cc
  936. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Use BDE instead of Dictionary/List/Data.
  938. * src/HandshakeExtensionMessage.cc
  939. * src/HandshakeExtensionMessage.h
  940. * test/HandshakeExtensionMessageTest.cc
  941. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Added --max-overall-upload-limit option. This option limits the
  943. overall upload speed. Stated in help message that the existing
  944. --max-upload-limit option limits the upload speed per each
  945. torrent. Man page is also updated.
  946. * doc/aria2c.1.txt
  947. * src/DefaultBtMessageDispatcher.cc
  948. * src/DefaultBtMessageDispatcher.h
  949. * src/OptionHandlerFactory.cc
  950. * src/PeerInteractionCommand.cc
  951. * src/option_processing.cc
  952. * src/prefs.cc
  953. * src/prefs.h
  954. * src/usage_text.h
  955. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Use BDE instead of Dictionary/List/Data classes.
  957. * src/CompactPeerListProcessor.cc
  958. * src/CompactPeerListProcessor.h
  959. * src/DefaultBtAnnounce.cc
  960. * src/DefaultBtContext.cc
  961. * src/DefaultBtContext.h
  962. * src/DefaultPeerListProcessor.cc
  963. * src/DefaultPeerListProcessor.h
  964. * src/DelegatingPeerListProcessor.cc
  965. * src/DelegatingPeerListProcessor.h
  966. * src/PeerListProcessor.h
  967. * src/UTPexExtensionMessage.cc
  968. * src/Util.h
  969. * src/message.h
  970. * test/DefaultBtContextTest.cc
  971. * test/DefaultPeerListProcessorTest.cc
  972. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Added bencode helper functions and BDE class.
  974. They will replace MetaFileUtil and Dictionary/List/Data classes.
  975. * src/Makefile.am
  976. * src/bencode.cc
  977. * src/bencode.h
  978. * test/BencodeTest.cc
  979. * test/Makefile.am
  980. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Fixed the bug that bad URI is sent to the tracker when the announe
  982. URI in torrent file includes query.
  983. * src/DefaultBtAnnounce.cc
  984. * test/DefaultBtAnnounceTest.cc
  985. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Added Option::blank().
  987. Use !Option::blank(name) instead of Option::defined(name) for
  988. the options that take filename.
  989. * src/MultiUrlRequestInfo.cc
  990. * src/Option.cc
  991. * src/Option.h
  992. * src/main.cc
  993. * src/option_processing.cc
  994. * test/OptionTest.cc
  995. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Documented the default value of --check-certificate option in man
  997. page.
  998. * doc/aria2c.1.txt
  999. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Enabled --check-certificate by default. Added compile
  1001. time(configure) option --with-ca-bundle to specify CA bundle.
  1002. Warn if --check-certificate=true and --ca-certificate is not
  1003. specified or loading CA certificate is failed.
  1004. * configure.ac
  1005. * src/MultiUrlRequestInfo.cc
  1006. * src/OptionHandlerFactory.cc
  1007. * src/message.h
  1008. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1009. Mentioned https tag in help option.
  1010. * doc/aria2c.1.txt
  1011. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Added `https' tag to help option category. Added https tag to
  1013. --ca-certificate, --certificate, --check-certificate and
  1014. --private-key option.
  1015. * src/OptionHandlerFactory.cc
  1016. * src/help_tags.h
  1017. * src/option_processing.cc
  1018. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Changed the package name from `aria2c' to `aria2' in order to fix
  1020. the packaging issue in Debian and Fedora. The name of the
  1021. executable is not changed.
  1022. * configure.ac
  1023. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Fixed typos
  1025. * src/usage_text.h
  1026. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Fixed typos and updated doc.
  1028. * README
  1029. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Fixed typos
  1031. * doc/aria2c.1.txt
  1032. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Fixed typos
  1034. * src/usage_text.h
  1035. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Print a message when no files to download.
  1037. * src/download_helper.cc
  1038. * src/main.cc
  1039. * src/message.h
  1040. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. RFC3986 complied Percent-Encoding(urlencode).
  1042. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1043. ones.
  1044. * src/Request.cc
  1045. * src/Util.cc
  1046. * src/Util.h
  1047. * test/BtHandshakeMessageTest.cc
  1048. * test/DefaultBtAnnounceTest.cc
  1049. * test/DefaultBtContextTest.cc
  1050. * test/RequestTest.cc
  1051. * test/UtilTest.cc
  1052. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Fixed the bug that prevents aria2 from downloading 0-length files
  1054. via HTTP/FTP.
  1055. * src/DefaultBtContext.cc
  1056. * src/DefaultBtContext.h
  1057. * src/DownloadContext.h
  1058. * src/FtpNegotiationCommand.cc
  1059. * src/HttpResponseCommand.cc
  1060. * src/HttpResponseCommand.h
  1061. * src/RequestGroup.cc
  1062. * src/SingleFileDownloadContext.cc
  1063. * src/SingleFileDownloadContext.h
  1064. * test/BtPostDownloadHandlerTest.cc
  1065. * test/MetalinkPostDownloadHandlerTest.cc
  1066. * test/MockBtContext.h
  1067. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1069. * src/option_processing.cc
  1070. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Applied aria2-1.0.1-mingw.patch.
  1072. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1073. mingw.
  1074. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1075. * src/SocketCore.cc
  1076. * src/a2netcompat.h
  1077. * test/SocketCoreTest.cc
  1078. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. * Release 1.0.1
  1080. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Updated Ukrainian and Norwegian Nynorsk translations.
  1082. Thanks to all translators.
  1083. * po/nn.po
  1084. * po/uk.po
  1085. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Don't show download result when -S option is used.
  1087. * src/main.cc
  1088. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Bump up version number to 1.0.1
  1090. * configure.ac
  1091. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Closed files after the test cases in MultiDiskWriterTest::
  1093. testResetDiskWriterEntries(). This will fix the unit test error
  1094. in mingw32 build.
  1095. * test/MultiDiskWriterTest.cc
  1096. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Use HEAD method to get file size from HTTP server for segmented
  1098. downloading.
  1099. The request to the BitTorrent Tracker always uses GET method because
  1100. the response of the tracker is small and it doesn't need segmented
  1101. download.
  1102. * src/FtpNegotiationCommand.cc
  1103. * src/HttpRequest.cc
  1104. * src/HttpResponseCommand.cc
  1105. * src/HttpSkipResponseCommand.cc
  1106. * src/RequestGroup.cc
  1107. * src/RequestGroup.h
  1108. * src/TrackerWatcherCommand.cc
  1109. * test/HttpRequestTest.cc
  1110. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Fixed the bug that causes floating exception when -T option is used and
  1112. no URIs are given.
  1113. * src/download_helper.cc
  1114. * test/DownloadHelperTest.cc
  1115. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1116. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1117. errors in MinGW:
  1118. Closed file after saving server stats (RequestGroupMan.cc)
  1119. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1120. Ignored case & handled 2-digit years (strptime.c)
  1121. Added missing suseconds_t definition (a2time.h)
  1122. Fixed socket CLOSE() define (SocketCore.cc)
  1123. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1124. Changed utime() test values from x000 to x00000 as MinGW failed on
  1125. values less than timezone offset from Unix epoch
  1126. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1127. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1128. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1129. handle negative dates (CookieParserTest.cc)
  1130. * src/a2time.h
  1131. * src/FtpConnection.cc
  1132. * src/RequestGroupMan.cc
  1133. * src/SocketCore.cc
  1134. * src/strptime.c
  1135. * test/CookieParserTest.cc
  1136. * test/CopyDiskAdaptorTest.cc
  1137. * test/FileTest.cc
  1138. * test/FtpConnectionTest.cc
  1139. * test/MultiDiskAdaptorTest.cc
  1140. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1142. * doc/aria2c.1.txt
  1143. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. * Release 1.0.0
  1145. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Added '~' to reserved characters.
  1147. * src/Util.cc
  1148. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Do not urlencode Request::url in setUrl() because we want unmodified
  1150. URL using Request::getUrl()
  1151. * src/Request.cc
  1152. * src/Request.h
  1153. * test/RequestTest.cc
  1154. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1156. Thanks to all translators.
  1157. * po/bg.po
  1158. * po/fr.po
  1159. * po/ja.po
  1160. * po/ru.po
  1161. * po/uk.po
  1162. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Bump up version number to 1.0.0
  1164. * configure.ac
  1165. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Added nosqlite3 build to build_test.sh.
  1167. Renamed noxml as expat.
  1168. * build_test.sh
  1169. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Updated INPUT FILE section.
  1171. * doc/aria2c.1.txt
  1172. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1174. on big endian systems because test .aria2 files are made for little
  1175. endian systems.
  1176. * test/DefaultBtProgressInfoFileTest.cc
  1177. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Dropped ares support.
  1179. * README
  1180. * configure.ac
  1181. * m4/libares.m4: Removed.
  1182. * src/AsyncNameResolver.cc
  1183. * src/Makefile.am
  1184. * test/Makefile.am
  1185. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1187. Removed const qualifier from DiskWriter::size().
  1188. * src/AbstractDiskWriter.cc
  1189. * src/AbstractDiskWriter.h
  1190. * src/ByteArrayDiskWriter.cc
  1191. * src/ByteArrayDiskWriter.h
  1192. * src/DiskWriter.h
  1193. * test/ByteArrayDiskWriterTest.cc
  1194. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Fixed the bug that causes segmentation fault/bus error during executing
  1196. choking algorithm while seeding. This is caused by improper
  1197. implementation of compare function which returns inconsistent results
  1198. depending on the timing of last unchoke.
  1199. * src/BtSeederStateChoke.cc
  1200. * src/BtSeederStateChoke.h
  1201. * src/DefaultPeerStorage.cc
  1202. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Removed TODO
  1204. * TODO
  1205. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Added a section that explains how to pass argument to options that
  1207. takes optional arguments with its short form.
  1208. * doc/aria2c.1.txt
  1209. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Added -u for the short form of --max-upload-limit option.
  1211. * doc/aria2c.1.txt
  1212. * src/option_processing.cc
  1213. * src/usage_text.h
  1214. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Added -V for the short form of --check-integrity option.
  1216. Now the argument of --check-integrity option is optional:
  1217. if it is omitted, it is evaluated as true.
  1218. * doc/aria2c.1.txt
  1219. * src/option_processing.cc
  1220. * src/usage_text.h
  1221. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Made the default value of --ftp-pasv option set to true and it can take
  1223. true/false values.
  1224. * src/OptionHandlerFactory.cc
  1225. * src/option_processing.cc
  1226. * src/usage_text.h
  1227. * doc/aria2c.1.txt
  1228. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Given custom random number generator to std::random_shuffle.
  1230. * src/AnnounceList.cc
  1231. * src/BtLeecherStateChoke.cc
  1232. * src/BtSeederStateChoke.cc
  1233. * src/DefaultBtRequestFactory.cc
  1234. * src/MetalinkEntry.cc
  1235. * src/RarestPieceSelector.cc
  1236. * src/SimpleRandomizer.cc
  1237. * src/SimpleRandomizer.h
  1238. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Now the default value of --enable-direct-io is true.
  1240. * src/OptionHandlerFactory.cc
  1241. * doc/aria2c.1.txt
  1242. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Erase peer before executing onReturningPeer and onErasingPeer
  1244. because choking algorithm called from onReturningPeer doesn't
  1245. like erasing peer in the active peer list.
  1246. * src/DefaultPeerStorage.cc
  1247. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Instead of creating special filename in createDownloadResult() if
  1249. inMemoryDownload() is true, now it is done in getFilePath().
  1250. * src/RequestGroup.cc
  1251. * test/RequestGroupTest.cc
  1252. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1254. processed in memory. This is the fix for previous comment out.
  1255. * src/MemoryBufferPreDownloadHandler.cc
  1256. * src/RequestGroup.cc
  1257. * src/RequestGroup.h
  1258. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Commented out the code which sets virtual directory path "[MEMORY]"
  1260. propagate directory to store to following RequestGroup.
  1261. * src/MemoryBufferPreDownloadHandler.cc
  1262. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Bump up version number to 1.0.0b
  1264. * configure.ac
  1265. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Added input_uris.txt to EXTRA_DIST
  1267. * test/Makefile.am
  1268. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Removed PeerObject.h from Makefile.am
  1270. * src/Makefile.am
  1271. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Avoid slow seeding
  1273. * src/PeerInteractionCommand.cc
  1274. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Updated usage for -i option.
  1276. * src/usage_text.h (TEXT_INPUT_FILE)
  1277. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Added INPUT FILE section to man page.
  1279. Escaped fake URLs.
  1280. * doc/aria2c.1.txt
  1281. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Fixed wrong note position for -o option.
  1283. * doc/aria2c.1.txt
  1284. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Fixed compile error without SSL/XML library.
  1286. * src/DefaultBtProgressInfoFile.cc
  1287. * src/DefaultBtProgressInfoFile.h
  1288. * src/FileMetalinkParserState.cc
  1289. * src/RequestGroup.h
  1290. * src/SocketCore.cc
  1291. * src/SocketCore.h
  1292. * src/VerificationMetalinkParserState.cc
  1293. * src/download_helper.h
  1294. * src/main.cc
  1295. * test/DefaultBtProgressInfoFileTest.cc
  1296. * test/DownloadHelperTest.cc
  1297. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Rewritten URI handling functions. They are now provided as a testable
  1299. functions.
  1300. * src/Makefile.am
  1301. * src/RequestGroup.cc
  1302. * src/RequestGroup.h
  1303. * src/download_helper.cc
  1304. * src/download_helper.h
  1305. * src/main.cc
  1306. * test/DownloadHelperTest.cc
  1307. * test/Makefile.am
  1308. * test/input_uris.txt
  1309. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Quickly terminate commands when ctrl-c is pressed.
  1311. * src/DownloadEngine.cc
  1312. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Quickly terminate idle commands when download finished.
  1314. * src/AbstractCommand.cc
  1315. * src/DownloadCommand.cc
  1316. * src/DownloadEngine.cc
  1317. * src/DownloadEngine.h
  1318. * src/SleepCommand.cc
  1319. * src/SleepCommand.h
  1320. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Added the ability to specify output filename and directory in input
  1322. file.
  1323. Additional parameters are added in the following line of URIs
  1324. with proceeding white space(s), 1 parameter in 1 line.
  1325. The parameter names are the same with the command-line option name
  1326. without proceeding "--". Not all the options are available here:
  1327. at the moment, 'dir' and 'out' options are avialable.
  1328. Please note that out option has no effect against Metalink or BitTorrent
  1329. downloads.
  1330. Example input file:
  1331. http://host/foo-1.1.tar.bz2
  1332. out=foo.tar.bz2
  1333. dir=/tmp/downloads
  1334. http://host/thundermonkey-2.0.tar.bz2
  1335. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1336. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1337. thundermonkey-2.0.tar.bz2 is saved as
  1338. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1339. * src/BtPostDownloadHandler.cc
  1340. * src/Metalink2RequestGroup.cc
  1341. * src/Metalink2RequestGroup.h
  1342. * src/MetalinkPostDownloadHandler.cc
  1343. * src/UriListParser.cc
  1344. * src/UriListParser.h
  1345. * src/main.cc
  1346. * test/Metalink2RequestGroupTest.cc
  1347. * test/UriListParserTest.cc
  1348. * test/filelist1.txt
  1349. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Fixed error when SSL library is not found.
  1351. * configure.ac
  1352. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Cross referenced among -s, -C and -j options.
  1354. Updated usage of -C and -s options.
  1355. * src/usage_text.h
  1356. * doc/aria2c.1.txt
  1357. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Fixed bad cast in 32bit platforms.
  1359. * test/DefaultPieceStorageTest.cc
  1360. (DefaultPieceStorageTest::testGetCompletedLength)
  1361. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Fixed unit test fails on 32bit platforms.
  1363. * test/CookieParserTest.cc
  1364. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Show an average download speed in Download results.
  1366. * src/BtFileAllocationEntry.cc
  1367. * src/DefaultPieceStorage.cc
  1368. * src/DownloadContext.cc
  1369. * src/DownloadContext.h
  1370. * src/DownloadResult.h
  1371. * src/RequestGroup.cc
  1372. * src/RequestGroupMan.cc
  1373. * src/StreamFileAllocationEntry.cc
  1374. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Fixed the bug that metalink file is not processed if Content-Type
  1376. field has a paramter.
  1377. * src/HttpResponse.cc
  1378. * src/HttpResponse.h
  1379. * test/HttpResponseTest.cc
  1380. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Removed unused code.
  1382. * src/DefaultBtAnnounce.cc
  1383. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1385. the value larger than DefaultPieceStorage::getTotalLength() when
  1386. in flight pieces are involved.
  1387. * src/DefaultPieceStorage.cc
  1388. * test/DefaultPieceStorageTest.cc
  1389. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Bump up version number to 1.0.0a.
  1391. * configure.ac
  1392. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Updated configure.ac
  1394. * configure.ac
  1395. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Added usege for proxy.
  1397. * doc/aria2c.1.txt
  1398. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Added usage for --ca-certificate, --certificate, --private-key and
  1400. --check-certificate options.
  1401. * doc/aria2c.1.txt
  1402. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Updated man page
  1404. * doc/aria2c.1.txt
  1405. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Added --no-proxy option. It receives comman separated hostname or
  1407. domains to which proxy should not be used.
  1408. aria2 honors the environment variable no_proxy to override no-proxy
  1409. value in configuration file. The user can override the environment
  1410. variable no_proxy with --no-proxy command-line option.
  1411. * src/AbstractCommand.cc
  1412. * src/OptionHandlerFactory.cc
  1413. * src/option_processing.cc
  1414. * src/prefs.cc
  1415. * src/prefs.h
  1416. * src/usage_text.h
  1417. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1419. The CA certificates are specified in --ca-certificate option.
  1420. By default, the verification is disabled. Use --check-certificate
  1421. option to enable it.
  1422. * src/HttpRequestCommand.cc
  1423. * src/LibgnutlsTLSContext.cc
  1424. * src/LibgnutlsTLSContext.h
  1425. * src/LibsslTLSContext.cc
  1426. * src/LibsslTLSContext.h
  1427. * src/MultiUrlRequestInfo.cc
  1428. * src/OptionHandlerFactory.cc
  1429. * src/SocketCore.cc
  1430. * src/SocketCore.h
  1431. * src/a2functional.h
  1432. * src/message.h
  1433. * src/option_processing.cc
  1434. * src/prefs.cc
  1435. * src/prefs.h
  1436. * src/usage_text.h
  1437. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Added client certificate authentication for SSL/TLS.
  1439. Currently a private key must be decrypted for use with aria2.
  1440. If a user accidentally gives encrypted file to aria2 then following
  1441. thing happens:
  1442. If encrypted private key is given to aria2, it behaves differently
  1443. depending on the ssl library it uses. If aria2 built with openssl then
  1444. openssl prompts the user for password. If aria2 build with gnutls then
  1445. aria2 exists with error at start up.
  1446. * src/DownloadEngineFactory.cc
  1447. * src/MultiUrlRequestInfo.cc
  1448. * src/OptionHandlerFactory.cc
  1449. * src/option_processing.cc
  1450. * src/prefs.cc
  1451. * src/prefs.h
  1452. * src/usage_text.h
  1453. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Introduced TLSContext that holds TLS related data that can be shared
  1455. with multiple SSL connections.
  1456. * src/DownloadEngineFactory.cc
  1457. * src/LibgnutlsTLSContext.cc
  1458. * src/LibgnutlsTLSContext.h
  1459. * src/LibsslTLSContext.cc
  1460. * src/LibsslTLSContext.h
  1461. * src/Makefile.am
  1462. * src/SocketCore.cc
  1463. * src/SocketCore.h
  1464. * src/TLSContext.h
  1465. * src/message.h
  1466. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Fixed the bug that the DiskWriter of the first FileEntry whose
  1468. `needsFileAllocation' property is false is not created
  1469. even if it shares a piece with next FileEntry which `requested' property
  1470. is true.
  1471. Fixed the bug that zero-length file is not created if pre file
  1472. allocation is not done.
  1473. * src/MultiDiskAdaptor.cc
  1474. * src/MultiDiskAdaptor.h
  1475. * test/MultiDiskAdaptorTest.cc
  1476. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1477. Added the ability to pool proxy connection.
  1478. The conneciton in FTP with proxy-method=GET is not pooled.
  1479. Proxy-Connection header will not be sent when sending CONNECT method.
  1480. * src/DownloadEngine.cc
  1481. * src/DownloadEngine.h
  1482. * src/FtpFinishDownloadCommand.cc
  1483. * src/FtpInitiateConnectionCommand.cc
  1484. * src/FtpNegotiationCommand.cc
  1485. * src/HttpDownloadCommand.cc
  1486. * src/HttpInitiateConnectionCommand.cc
  1487. * src/HttpRequest.cc
  1488. * src/HttpRequest.h
  1489. * src/HttpResponse.cc
  1490. * src/HttpSkipResponseCommand.cc
  1491. * test/HttpRequestTest.cc
  1492. * test/HttpResponseTest.cc
  1493. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1494. Handle date before epoch.
  1495. To create *bad* Time object, call Time::null().
  1496. * src/CookieParser.cc
  1497. * src/FtpConnection.cc
  1498. * src/FtpConnection.h
  1499. * src/FtpNegotiationCommand.cc
  1500. * src/RequestGroup.cc
  1501. * src/TimeA2.cc
  1502. * src/TimeA2.h
  1503. * test/CookieParserTest.cc
  1504. * test/FtpConnectionTest.cc
  1505. * test/TimeTest.cc
  1506. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1507. Added support for following envrionment variables: http_proxy,
  1508. https_proxy, ftp_proxy and all_proxy.
  1509. Each variable is equivalent to the aria2 option whose name is the
  1510. variable name with '_' replaced with '-'.
  1511. They overrides options specified in aria2.conf file.
  1512. The envrionment variables can be overrode using command-line option.
  1513. * src/option_processing.cc
  1514. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1515. Renamed --http-proxy-method as --proxy-method.
  1516. * src/AbstractCommand.cc
  1517. * src/FtpInitiateConnectionCommand.cc
  1518. * src/HttpInitiateConnectionCommand.cc
  1519. * src/OptionHandlerFactory.cc
  1520. * src/option_processing.cc
  1521. * src/prefs.cc
  1522. * src/prefs.h
  1523. * src/usage_text.h
  1524. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1525. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1526. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1527. Above 3 options and --http-proxy option can handle proxy in URL format
  1528. like: http://user:passwd@host:port.
  1529. If a proxy requires user/password, they must be specified in a URL.
  1530. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1531. instead.
  1532. * src/AbstractCommand.cc
  1533. * src/AbstractCommand.h
  1534. * src/AbstractProxyRequestCommand.cc
  1535. * src/AbstractProxyRequestCommand.h
  1536. * src/AuthConfigFactory.cc
  1537. * src/AuthConfigFactory.h
  1538. * src/FtpFinishDownloadCommand.cc
  1539. * src/FtpInitiateConnectionCommand.cc
  1540. * src/FtpInitiateConnectionCommand.h
  1541. * src/FtpNegotiationCommand.cc
  1542. * src/FtpTunnelRequestCommand.cc
  1543. * src/FtpTunnelRequestCommand.h
  1544. * src/HttpDownloadCommand.cc
  1545. * src/HttpInitiateConnectionCommand.cc
  1546. * src/HttpInitiateConnectionCommand.h
  1547. * src/HttpProxyRequestCommand.cc
  1548. * src/HttpProxyRequestCommand.h
  1549. * src/HttpRequest.cc
  1550. * src/HttpRequest.h
  1551. * src/HttpRequestCommand.cc
  1552. * src/HttpRequestCommand.h
  1553. * src/HttpSkipResponseCommand.cc
  1554. * src/InitiateConnectionCommand.cc
  1555. * src/InitiateConnectionCommand.h
  1556. * src/OptionHandlerFactory.cc
  1557. * src/OptionHandlerImpl.h
  1558. * src/Request.cc
  1559. * src/option_processing.cc
  1560. * src/prefs.cc
  1561. * src/prefs.h
  1562. * src/usage_text.h
  1563. * test/AuthConfigFactoryTest.cc
  1564. * test/HttpRequestTest.cc
  1565. * test/OptionHandlerTest.cc
  1566. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1567. Execute choking algorithm when unchoked and interested peer is
  1568. disconected.
  1569. * src/DefaultPeerStorage.cc
  1570. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1571. Added testcase for BtNotInterestedMessage from unchoked peer.
  1572. * test/BtNotInterestedMessageTest.cc
  1573. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1574. Execute choking algorithm when BtInterestedMessage arrives from
  1575. unchoked peer.
  1576. * src/BtInterestedMessage.cc
  1577. * src/BtInterestedMessage.h
  1578. * src/DefaultBtMessageFactory.cc
  1579. * test/BtInterestedMessageTest.cc
  1580. * test/MockPeerStorage.h
  1581. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1582. AuthConfigFactory is now part of DownloadEngine.
  1583. * src/AbstractProxyRequestCommand.cc
  1584. * src/AuthConfigFactory.h
  1585. * src/DownloadEngine.cc
  1586. * src/DownloadEngine.h
  1587. * src/FtpConnection.cc
  1588. * src/FtpConnection.h
  1589. * src/FtpNegotiationCommand.cc
  1590. * src/HttpConnection.cc
  1591. * src/HttpRequest.cc
  1592. * src/HttpRequest.h
  1593. * src/HttpRequestCommand.cc
  1594. * src/HttpResponse.cc
  1595. * src/HttpResponseCommand.cc
  1596. * src/HttpSkipResponseCommand.cc
  1597. * src/MultiUrlRequestInfo.cc
  1598. * src/main.cc
  1599. * test/FtpConnectionTest.cc
  1600. * test/HttpRequestTest.cc
  1601. * test/HttpResponseTest.cc
  1602. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1603. Corrected catched exception type.
  1604. * src/ServerStatMan.cc
  1605. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1606. DNSCache is now part of DownloadEngine.
  1607. * src/DNSCache.h
  1608. * src/DownloadEngine.cc
  1609. * src/DownloadEngine.h
  1610. * src/InitiateConnectionCommand.cc
  1611. * src/MultiUrlRequestInfo.cc
  1612. * test/Makefile.am
  1613. * test/Makefile.in
  1614. * test/SimpleDNSCacheTest.cc
  1615. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1616. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1617. DownloadEngine.
  1618. * src/ActivePeerConnectionCommand.cc
  1619. * src/BtSetup.cc
  1620. * src/CUIDCounter.h
  1621. * src/DHTSetup.cc
  1622. * src/DownloadCommand.cc
  1623. * src/DownloadEngine.cc
  1624. * src/DownloadEngine.h
  1625. * src/DownloadEngineFactory.cc
  1626. * src/FileAllocationDispatcherCommand.cc
  1627. * src/InitiatorMSEHandshakeCommand.cc
  1628. * src/PeerInitiateConnectionCommand.cc
  1629. * src/PeerInteractionCommand.cc
  1630. * src/PeerListenCommand.cc
  1631. * src/RequestGroup.cc
  1632. * src/StreamFileAllocationEntry.cc
  1633. * src/TrackerWatcherCommand.cc
  1634. * src/main.cc
  1635. * test/RequestGroupManTest.cc
  1636. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1637. Implemented commented code in BtSeederStateChoke
  1638. * src/BtSeederStateChoke.cc
  1639. * src/Peer.cc
  1640. * src/Peer.h
  1641. * src/PeerInteractionCommand.cc
  1642. * src/PeerSessionResource.cc
  1643. * src/PeerSessionResource.h
  1644. * test/MockBtMessageDispatcher.h
  1645. * test/PeerSessionResourceTest.cc
  1646. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1647. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1648. its object.
  1649. * src/AbstractBtMessage.cc
  1650. * src/ActivePeerConnectionCommand.cc
  1651. * src/ActivePeerConnectionCommand.h
  1652. * src/BtContextAwareCommand.cc
  1653. * src/BtContextAwareCommand.h
  1654. * src/BtExtendedMessage.cc
  1655. * src/BtExtendedMessage.h
  1656. * src/BtInterestedMessage.cc
  1657. * src/BtInterestedMessage.h
  1658. * src/BtNotInterestedMessage.cc
  1659. * src/BtNotInterestedMessage.h
  1660. * src/BtRegistry.cc
  1661. * src/BtRegistry.h
  1662. * src/BtSeederStateChoke.cc
  1663. * src/BtSetup.cc
  1664. * src/DHTGetPeersCommand.cc
  1665. * src/DHTGetPeersCommand.h
  1666. * src/DHTPeerAnnounceEntry.cc
  1667. * src/DHTPeerAnnounceEntry.h
  1668. * src/DHTPeerAnnounceStorage.cc
  1669. * src/DHTPeerAnnounceStorage.h
  1670. * src/DHTPeerLookupTask.cc
  1671. * src/DHTPeerLookupTask.h
  1672. * src/DHTSetup.cc
  1673. * src/DHTSetup.h
  1674. * src/DHTTaskFactory.h
  1675. * src/DHTTaskFactoryImpl.cc
  1676. * src/DHTTaskFactoryImpl.h
  1677. * src/DefaultBtAnnounce.cc
  1678. * src/DefaultBtInteractive.cc
  1679. * src/DefaultBtInteractive.h
  1680. * src/DefaultBtMessageDispatcher.cc
  1681. * src/DefaultBtMessageDispatcher.h
  1682. * src/DefaultBtMessageFactory.cc
  1683. * src/DefaultBtMessageFactory.h
  1684. * src/DefaultBtMessageReceiver.cc
  1685. * src/DefaultBtProgressInfoFile.cc
  1686. * src/DefaultBtProgressInfoFile.h
  1687. * src/DefaultBtRequestFactory.cc
  1688. * src/DefaultBtRequestFactory.h
  1689. * src/DefaultExtensionMessageFactory.cc
  1690. * src/DefaultExtensionMessageFactory.h
  1691. * src/DefaultPeerStorage.cc
  1692. * src/DefaultPeerStorage.h
  1693. * src/DownloadEngine.cc
  1694. * src/DownloadEngine.h
  1695. * src/InitiatorMSEHandshakeCommand.cc
  1696. * src/InitiatorMSEHandshakeCommand.h
  1697. * src/MSEHandshake.cc
  1698. * src/MSEHandshake.h
  1699. * src/Makefile.am
  1700. * src/Makefile.in
  1701. * src/PeerChokeCommand.cc
  1702. * src/PeerChokeCommand.h
  1703. * src/PeerInitiateConnectionCommand.cc
  1704. * src/PeerInitiateConnectionCommand.h
  1705. * src/PeerInteractionCommand.cc
  1706. * src/PeerInteractionCommand.h
  1707. * src/PeerObject.h
  1708. * src/PeerReceiveHandshakeCommand.cc
  1709. * src/PeerReceiveHandshakeCommand.h
  1710. * src/ReceiverMSEHandshakeCommand.cc
  1711. * src/RequestGroup.cc
  1712. * src/RequestGroup.h
  1713. * src/RequestGroupMan.cc
  1714. * src/RequestGroupMan.h
  1715. * src/SeedCheckCommand.cc
  1716. * src/SeedCheckCommand.h
  1717. * src/ShareRatioSeedCriteria.h
  1718. * src/SimpleBtMessage.cc
  1719. * src/TrackerWatcherCommand.cc
  1720. * src/TrackerWatcherCommand.h
  1721. * src/UTPexExtensionMessage.cc
  1722. * src/UTPexExtensionMessage.h
  1723. * test/BtCancelMessageTest.cc
  1724. * test/BtChokeMessageTest.cc
  1725. * test/BtExtendedMessageTest.cc
  1726. * test/BtInterestedMessageTest.cc
  1727. * test/BtNotInterestedMessageTest.cc
  1728. * test/BtPieceMessageTest.cc
  1729. * test/BtPortMessageTest.cc
  1730. * test/BtRegistryTest.cc
  1731. * test/BtRejectMessageTest.cc
  1732. * test/BtRequestMessageTest.cc
  1733. * test/DHTPeerAnnounceEntryTest.cc
  1734. * test/DHTPeerAnnounceStorageTest.cc
  1735. * test/DefaultBtMessageDispatcherTest.cc
  1736. * test/DefaultBtMessageFactoryTest.cc
  1737. * test/DefaultBtProgressInfoFileTest.cc
  1738. * test/DefaultBtRequestFactoryTest.cc
  1739. * test/DefaultExtensionMessageFactoryTest.cc
  1740. * test/MSEHandshakeTest.cc
  1741. * test/MockDHTTaskFactory.h
  1742. * test/ShareRatioSeedCriteriaTest.cc
  1743. * test/UTPexExtensionMessageTest.cc
  1744. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1745. Fixed compiler warning.
  1746. * test/UtilTest.cc
  1747. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1748. Treat Cookie object as session cookie if expiry = 0 is given.
  1749. With this change, you can specify session scoped cookies in an external
  1750. file setting expiry value to 0.
  1751. * src/Cookie.cc
  1752. * src/Cookie.h
  1753. * test/CookieParserTest.cc
  1754. * test/CookieStorageTest.cc
  1755. * test/CookieTest.cc
  1756. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1757. Changed signature of DHTMessageFactory::createResponseMessage().
  1758. Removed unused validateIDMatch.
  1759. * src/DHTMessageFactory.h
  1760. * src/DHTMessageFactoryImpl.cc
  1761. * src/DHTMessageFactoryImpl.h
  1762. * src/DHTMessageTracker.cc
  1763. * test/DHTMessageFactoryImplTest.cc
  1764. * test/MockDHTMessageFactory.h
  1765. Dropped DHT message coming from same ID of localhost.
  1766. * src/DHTMessageReceiver.cc
  1767. Rejected adding node whose ID is the same as localhost's.
  1768. * src/DHTRoutingTable.cc
  1769. * test/BtPortMessageTest.cc
  1770. * test/DHTRoutingTableTest.cc
  1771. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. Pool connection when redirection occurs with Content-Length = 0.
  1773. * src/HttpSkipResponseCommand.cc
  1774. * src/HttpSkipResponseCommand.h
  1775. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1776. Fixed the bug that causes time out when redirection occurs with
  1777. content-length 0.
  1778. * src/HttpResponseCommand.cc
  1779. * src/HttpSkipResponseCommand.cc
  1780. * src/HttpSkipResponseCommand.h
  1781. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1782. Now each status legends is shown only when it appears in Download
  1783. Result. If Download Result has no item, then status legend will not
  1784. be printed.
  1785. * src/RequestGroupMan.cc
  1786. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1787. Removed duplicate creation of OptionHandlers.
  1788. * src/option_processing.cc
  1789. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1790. Fixed the bug that causes segmentation fault when accessing files which
  1791. don't exist or are not included in --select-file option while
  1792. validating chunk checksum.
  1793. * src/MultiDiskAdaptor.cc
  1794. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1795. Fixed compiler warning.
  1796. * test/UtilTest.cc
  1797. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1798. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1799. * src/IteratableChecksumValidator.cc
  1800. * src/IteratableChunkChecksumValidator.cc
  1801. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1802. * Release 0.16.2
  1803. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1804. Added Serbian translation. Updated Ukrainian translation.
  1805. Thanks to all translators.
  1806. * po/sr.po
  1807. * po/uk.po
  1808. * po/LINGUAS
  1809. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1810. Bump up version number to 0.16.2
  1811. * configure.ac
  1812. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1813. Added length equality test to operator== to drop a piece message
  1814. whose length does not match to the requested one.
  1815. * src/RequestSlot.cc
  1816. * test/DefaultBtMessageDispatcherTest.cc
  1817. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1818. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1819. recieved.
  1820. In this fix, if a request larger than 16KiB length is received, aria2
  1821. disconnects the peer.
  1822. * src/BtConstants.h
  1823. * src/PeerMessageUtil.cc
  1824. * src/PeerMessageUtil.h
  1825. * test/BtRequestMessageTest.cc
  1826. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1827. * Release 0.16.1
  1828. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1830. * doc/aria2c.1.txt
  1831. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1832. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1833. Updated French, Simplified Chinese and Japanese translations.
  1834. Thanks to all translators.
  1835. en@quot and en@boldquot are also added.
  1836. * po/LINGUAS
  1837. * po/fr.po
  1838. * po/ja.po
  1839. * po/uk.po
  1840. * po/vi.po
  1841. * po/zh_CN.po
  1842. * po/zh_TW.po
  1843. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1844. Bump up version number to 0.16.1.
  1845. * configure.ac
  1846. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1847. Updated README.
  1848. * README
  1849. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1850. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1851. not to replace '--' with em dash character.
  1852. * doc/aria2c.1.txt
  1853. * doc/makeman
  1854. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1855. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1856. every SEC seconds.
  1857. * src/DownloadEngineFactory.cc
  1858. * src/OptionHandlerFactory.cc
  1859. * src/option_processing.cc
  1860. * src/usage_text.h
  1861. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1862. Fixed compile warning on linux-amd64
  1863. * src/FtpConnection.cc
  1864. * src/IteratableChunkChecksumValidator.cc
  1865. * src/MultiDiskAdaptor.cc
  1866. Fixed the bug that unit test fails on linux-amd64
  1867. * test/UtilTest.cc
  1868. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1869. Added --dht-file-path option to change the path to dht.dat, which is a
  1870. serialized DHT routing table.
  1871. * src/OptionHandlerFactory.cc
  1872. * src/option_processing.cc
  1873. * src/usage_text.h
  1874. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Fixed possible underflow.
  1876. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1877. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. Fixed the bug that last character in URI is not encoded.
  1879. * src/Request.cc
  1880. * test/RequestTest.cc
  1881. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Fixed the bug that referer header field contains fragment.
  1883. Now Request class removes fragment part of URI and encodes it
  1884. in Request::setUri() and setReferer().
  1885. * src/Request.h
  1886. * src/Request.cc
  1887. * test/RequestTest.cc
  1888. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Added missing m4 macros.
  1890. * m4/cppunit.m4
  1891. * m4/libgcrypt.m4
  1892. * m4/libgnutls-extra.m4
  1893. * m4/libgnutls.m4
  1894. * m4/libxml2.m4
  1895. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1896. Fixed compile error with gcc-4.4(snapshot)
  1897. * src/File.cc
  1898. * src/FtpConnection.cc
  1899. * src/OptionHandlerImpl.h
  1900. * src/Util.cc
  1901. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1902. Removed assert()
  1903. * src/SocketBuffer.cc (SocketBuffer::send)
  1904. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1905. Changed the type of _numNewConnection to unsigned int.
  1906. * src/ActivePeerConnectionCommand.cc
  1907. * src/ActivePeerConnectionCommand.h
  1908. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. * Release 0.16.0
  1910. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1911. Updated doc
  1912. * README
  1913. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1914. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1915. translations. Thanks to all translators.
  1916. * po/bg.po
  1917. * po/de.po
  1918. * po/fr.po
  1919. * po/ja.po
  1920. * po/zh_CN.po
  1921. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Bump up version number to 0.16.0.
  1923. * configure.ac
  1924. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1925. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1926. int32_t.
  1927. Changed the type of count to int32_t.
  1928. * src/Metalink2RequestGroup.cc
  1929. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1930. Added test for Time::elapsed(time_t).
  1931. * test/TimeTest.cc
  1932. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1933. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1934. Util::difftv() should be used instead.
  1935. * src/TimeA2.cc
  1936. * src/TimeA2.h
  1937. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1938. Made socket for dht connections non-blocking
  1939. * src/DHTAbstractMessage.cc
  1940. * src/DHTAbstractMessage.h
  1941. * src/DHTConnection.h
  1942. * src/DHTConnectionImpl.cc
  1943. * src/DHTConnectionImpl.h
  1944. * src/DHTMessage.h
  1945. * src/DHTMessageDispatcherImpl.cc
  1946. * src/DHTMessageDispatcherImpl.h
  1947. * src/DHTUnknownMessage.cc
  1948. * src/DHTUnknownMessage.h
  1949. * src/SocketCore.cc
  1950. * src/SocketCore.h
  1951. * test/MockDHTMessage.h
  1952. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1953. Changed the type of offset to int.
  1954. * src/ParameterizedStringParser.cc
  1955. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1956. Made getAsInt() return int32_t
  1957. * src/Option.h
  1958. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1959. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1960. build.
  1961. * configure.ac
  1962. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1963. Use sqlite3_open if sqlite3_open_v2 is not available.
  1964. * src/Sqlite3MozCookieParser.cc
  1965. * src/Sqlite3MozCookieParser.h
  1966. * m4/sqlite3.m4
  1967. * test/Sqlite3MozCookieParserTest.cc
  1968. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1969. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1970. * src/BtPieceMessage.cc
  1971. * src/DHTPeerAnnounceStorage.cc
  1972. * src/DefaultPieceStorage.cc
  1973. * src/DownloadCommand.cc
  1974. * src/DownloadEngine.cc
  1975. * src/FtpConnection.cc
  1976. * src/PeerConnection.cc
  1977. * src/PeerMessageUtil.cc
  1978. * src/RequestGroup.cc
  1979. * src/RequestGroupMan.cc
  1980. * src/SimpleBtMessage.cc
  1981. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1982. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  1983. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  1984. * src/AbstractDiskWriter.cc
  1985. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1986. Don't set Request::supportsPersistentConnection() in HttpConnection
  1987. since this code is also used in AbstractProxyResponseCommand.
  1988. Moved those code to HttpResponse.
  1989. * src/HttpResponse.cc
  1990. * src/HttpResponse.h
  1991. * src/HttpConnection.cc
  1992. * src/HttpConnection.h
  1993. * src/HttpResponseCommand.cc
  1994. * test/HttpResponseTest.cc
  1995. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1996. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1997. The configuration is minimum: no torrent, no metalink, so there may be
  1998. other compile error on their code.
  1999. * src/a2netcompat.h
  2000. * src/File.cc
  2001. * src/File.h
  2002. * src/SocketCore.cc
  2003. * src/SocketCore.h
  2004. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2005. Made a socket of incoming peer non-blocking.
  2006. * src/PeerListenCommand.cc
  2007. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2008. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2009. whole message data is not sent in one send() call.
  2010. * src/BtPieceMessage.cc
  2011. * src/BtPieceMessage.h
  2012. * src/PeerConnection.cc
  2013. * src/PeerConnection.h
  2014. * src/SimpleBtMessage.cc
  2015. * src/SimpleBtMessage.h
  2016. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2017. Fixed the bug that aria2 downloads faster than max-download-limit when
  2018. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2019. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2020. , instead of sum of them.
  2021. * src/ActivePeerConnectionCommand.cc
  2022. * src/DefaultBtInteractive.cc
  2023. * src/DownloadCommand.cc
  2024. * src/PeerInteractionCommand.cc
  2025. * src/PeerReceiveHandshakeCommand.cc
  2026. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2027. Fixed the bug that HTTPS download fails.
  2028. * src/AbstractCommand.cc
  2029. * src/AbstractCommand.h
  2030. * src/DownloadCommand.cc
  2031. * src/FtpConnection.cc
  2032. * src/HttpConnection.cc
  2033. * src/HttpRequestCommand.cc
  2034. * src/HttpResponseCommand.cc
  2035. * src/HttpSkipResponseCommand.cc
  2036. * src/MSEHandshake.cc
  2037. * src/PeerConnection.cc
  2038. * src/SocketCore.cc
  2039. * src/SocketCore.h
  2040. Fixed the bug that aria2 doesn't download whole content body and cannot
  2041. reuse connection if chunked transfer encoding and gzip content encoding
  2042. are set.
  2043. * src/DownloadCommand.cc
  2044. * src/HttpSkipResponseCommand.cc
  2045. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Updated man page.
  2047. * doc/aria2c.1.txt
  2048. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2049. When error occurred while aria2 was parsing an .aria2.conf file, print
  2050. the usage of the option that caused error.
  2051. * src/option_processing.cc
  2052. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2053. Fixed compile error on OptionHandlerException
  2054. * src/Makefile.am
  2055. * src/OptionHandlerException.cc
  2056. * src/OptionHandlerException.h
  2057. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2058. Moved message of the error to OptionHandlerException.h
  2059. * src/NameMatchOptionHandler.h
  2060. * src/OptionHandlerException.h
  2061. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. When error occurs while aria2 is parsing an command-line option, print
  2063. the usage of the option.
  2064. * src/Makefile.am
  2065. * src/NameMatchOptionHandler.h
  2066. * src/OptionHandlerException.h
  2067. * src/option_processing.cc
  2068. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2069. Reverted previous change.
  2070. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2071. username is not in URI.
  2072. * src/HttpRequest.cc
  2073. * src/Request.cc
  2074. * test/HttpRequestTest.cc
  2075. * test/RequestTest.cc
  2076. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Now colon is required for username and password in FTP URL, like:
  2078. ftp://username:password@host.
  2079. If colon is not there, aria2 don't parse it as a username. For example,
  2080. aria2 don't retrieve username from ftp://username@host.
  2081. This fix was made in order to login FTP server via non-transparent ftp
  2082. proxy.
  2083. * src/Request.cc
  2084. * test/RequestTest.cc
  2085. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2086. Use netrc for HTTP.
  2087. Now FTP user/password is sent in Authorization header when
  2088. --ftp-via-http-proxy=get is given.
  2089. * src/AuthConfigFactory.cc
  2090. * src/HttpRequest.cc
  2091. * src/HttpRequest.h
  2092. * src/NetrcAuthResolver.cc
  2093. * src/NetrcAuthResolver.h
  2094. * src/OptionHandlerFactory.cc
  2095. * src/option_processing.cc
  2096. * src/prefs.cc
  2097. * src/prefs.h
  2098. * test/AuthConfigFactoryTest.cc
  2099. * test/HttpRequestTest.cc
  2100. * test/NetrcAuthResolverTest.cc
  2101. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2102. Issue PWD command first and get working directory and use it as a prefix
  2103. for CWD command.
  2104. * src/DownloadEngine.cc
  2105. * src/DownloadEngine.h
  2106. * src/FtpConnection.cc
  2107. * src/FtpConnection.h
  2108. * src/FtpFinishDownloadCommand.cc
  2109. * src/FtpInitiateConnectionCommand.cc
  2110. * src/FtpNegotiationCommand.cc
  2111. * src/FtpNegotiationCommand.h
  2112. * test/FtpConnectionTest.cc
  2113. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2114. Removed default user/pass for FTP user/pass, since it should not have
  2115. precedence over netrc configuration by default.
  2116. * src/OptionHandlerFactory.cc
  2117. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2118. Added debug log for socket event.
  2119. * src/AbstractCommand.cc
  2120. * src/PeerAbstractCommand.cc
  2121. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2122. Log microseconds.
  2123. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2124. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2125. Replaced HelpItem.cc with OptionHandler.cc.
  2126. * po/POTFILES.in
  2127. Updated po files with 'make update-po'
  2128. * po/aria2c.pot
  2129. * po/*.po
  2130. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2131. Removed possible values from the text.
  2132. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2133. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2134. Removed unused preferences:
  2135. PREF_NO_PREALLOCATION
  2136. PREF_STDOUT_LOG
  2137. PREF_TRACKER_MAX_TRIES
  2138. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2139. PREF_MIN_SEGMENT_SIZE
  2140. * src/option_processing.cc
  2141. * src/prefs.cc
  2142. * src/prefs.h
  2143. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2144. Integrated HelpItem into OptionParser to ease the workload for adding
  2145. new options. Removed default value from usage text.
  2146. * src/HelpItem.cc: Removed.
  2147. * src/HelpItem.h: Removed.
  2148. * src/HelpItemFactory.cc: Removed.
  2149. * src/HelpItemFactory.h: Removed.
  2150. * src/Makefile.am
  2151. * src/Makefile.in
  2152. * src/NameMatchOptionHandler.h
  2153. * src/OptionHandler.cc
  2154. * src/OptionHandler.h
  2155. * src/OptionHandlerFactory.cc
  2156. * src/OptionHandlerImpl.h
  2157. * src/OptionParser.cc
  2158. * src/OptionParser.h
  2159. * src/TagContainer.cc: Removed.
  2160. * src/TagContainer.h: Removed.
  2161. * src/TaggedItem.cc: Removed.
  2162. * src/TaggedItem.h: Removed.
  2163. * src/main.cc
  2164. * src/option_processing.cc
  2165. * src/usage_text.h
  2166. * src/version_usage.cc
  2167. * test/HelpItemTest.cc: Removed.
  2168. * test/Makefile.am
  2169. * test/Makefile.in
  2170. * test/OptionHandlerTest.cc
  2171. * test/OptionParserTest.cc
  2172. * test/TagContainerTest.cc: Removed.
  2173. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2174. Moved `TransferStat stat = ...' to inside the `if' clause.
  2175. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2176. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2177. Fixed the bug that a block in a piece is requested when same block is
  2178. already requested to the same peer in end game mode.
  2179. * src/BtRequestFactory.h
  2180. * src/DefaultBtInteractive.cc
  2181. * src/DefaultBtRequestFactory.cc
  2182. * src/DefaultBtRequestFactory.h
  2183. * src/DefaultPieceStorage.cc
  2184. * src/DefaultPieceStorage.h
  2185. * src/PieceStorage.h
  2186. * src/UnknownLengthPieceStorage.cc
  2187. * src/UnknownLengthPieceStorage.h
  2188. * test/DefaultBtRequestFactoryTest.cc
  2189. * test/DefaultPieceStorageTest.cc
  2190. * test/MockBtRequestFactory.h
  2191. * test/MockPieceStorage.h
  2192. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2193. Removed _uploadLength and _downloadLength from PeerSessionResource
  2194. and use PeerStat::_sessionUploadLength and
  2195. PeerStat::_sessionDownloadLength.
  2196. * src/PeerSessionResource.cc
  2197. * src/PeerSessionResource.h
  2198. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2199. Fixed the bug that prefixLength of split bucket which doesn't include
  2200. local node ID is incremented.
  2201. * src/DHTBucket.cc
  2202. * src/DHTBucket.h
  2203. * test/DHTBucketTest.cc
  2204. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2205. Added cookies.sqlite to EXTRA_DIST
  2206. * test/Makefile.am
  2207. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2208. Added Turkish translation. Updated French, German, Russian and
  2209. Simplified Chinese translations. Thanks to all translators.
  2210. * po/LINGUAS
  2211. * po/de.po
  2212. * po/fr.po
  2213. * po/ru.po
  2214. * po/tr.po
  2215. * po/zh_CN.po
  2216. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2217. Added deliminating text to the beginning of the log so that one can find
  2218. where the log starts easily.
  2219. * src/main.cc
  2220. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2221. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2222. to fix compile error when async DNS is not enabled by configuration.
  2223. * src/AbstractCommand.cc
  2224. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2225. If establishing conneciton to a server is failed, then mark error on
  2226. its ServerStat.
  2227. Added the cause of error to log when error event occurred.
  2228. Moved message string to message.h for translation.
  2229. * src/AbstractCommand.cc
  2230. * src/AbstractCommand.h
  2231. * src/FtpNegotiationCommand.cc
  2232. * src/HttpRequestCommand.cc
  2233. * src/PeerAbstractCommand.cc
  2234. * src/message.h
  2235. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2236. Added the function to get error message from socket.
  2237. * src/SocketCore.cc
  2238. * src/SocketCore.h
  2239. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2240. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2241. * src/RequestGroupMan.cc
  2242. * src/RequestGroupMan.h
  2243. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2244. If error event is received in epoll, then abort download immediately.
  2245. * src/AbstractCommand.cc
  2246. * src/Command.cc
  2247. * src/Command.h
  2248. * src/DownloadEngine.cc
  2249. * src/PeerAbstractCommand.cc
  2250. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2251. Added usage message for --uri-selector, --server-stat-of,
  2252. --server-stat-in, --server-stat-timeout options.
  2253. * src/HelpItemFactory.cc
  2254. * src/usage_text.h
  2255. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2256. Added upper limit of FTP response buffer. The current implementation
  2257. uses 4096bytes as a limit.
  2258. * src/FtpConnection.cc
  2259. * src/FtpConnection.h
  2260. * test/FtpConnectionTest.cc
  2261. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2262. Use non-blocking socket for TCP communication to avoid possible
  2263. blocking due to buffer full.
  2264. * src/AbstractProxyRequestCommand.cc
  2265. * src/FtpConnection.cc
  2266. * src/FtpConnection.h
  2267. * src/FtpNegotiationCommand.cc
  2268. * src/FtpNegotiationCommand.h
  2269. * src/HttpConnection.cc
  2270. * src/HttpConnection.h
  2271. * src/HttpRequestCommand.cc
  2272. * src/InitiatorMSEHandshakeCommand.cc
  2273. * src/InitiatorMSEHandshakeCommand.h
  2274. * src/MSEHandshake.cc
  2275. * src/MSEHandshake.h
  2276. * src/Makefile.am
  2277. * src/PeerConnection.cc
  2278. * src/PeerConnection.h
  2279. * src/PeerInteractionCommand.cc
  2280. * src/PeerListenCommand.cc
  2281. * src/ReceiverMSEHandshakeCommand.cc
  2282. * src/ReceiverMSEHandshakeCommand.h
  2283. * src/SocketBuffer.cc
  2284. * src/SocketBuffer.h
  2285. * src/SocketCore.cc
  2286. * src/SocketCore.h
  2287. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2288. Call setStatusRealtime() in constructor.
  2289. * src/RealtimeCommand.cc
  2290. * src/RealtimeCommand.h
  2291. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2292. Call Download::setNoWait(true) to execute newly created command without
  2293. a pause.
  2294. * src/AbstractCommand.cc
  2295. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2296. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2297. found' error from HTTP/FTP server NUM times without getting single
  2298. bytes of data, then force the download to fail.
  2299. Basically aria2 tris all URIs available. So if long list of URIs are
  2300. specified in Metalink, then aria2 will take a long time to fail
  2301. eventually if all URIs are outdated. This option eases this situation
  2302. to limit the number of servers to try.
  2303. * src/FtpNegotiationCommand.cc
  2304. * src/HelpItemFactory.cc
  2305. * src/HttpResponseCommand.cc
  2306. * src/OptionHandlerFactory.cc
  2307. * src/PeerStat.h
  2308. * src/RequestGroup.cc
  2309. * src/RequestGroup.h
  2310. * src/SegmentMan.cc
  2311. * src/SegmentMan.h
  2312. * src/option_processing.cc
  2313. * src/prefs.cc
  2314. * src/prefs.h
  2315. * src/usage_text.h
  2316. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2317. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2318. response even if more than one response is in it.
  2319. * src/FtpConnection.cc
  2320. * src/FtpConnection.h
  2321. * test/FtpConnectionTest.cc
  2322. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2323. Merged from stable-0.15
  2324. * m4/libcares.m4
  2325. Use pkg-config
  2326. * m4/sqlite3.m4
  2327. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Removed unnecessary if statement.
  2329. * src/DefaultPieceStorage.cc (initPieceStorage)
  2330. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2331. Added --connect-timeout option to specify connect timeout in seconds.
  2332. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2333. connecting to BitTorrent peer is not controlled by this option.
  2334. * src/AbstractProxyRequestCommand.cc
  2335. * src/FtpNegotiationCommand.cc
  2336. * src/HelpItemFactory.cc
  2337. * src/HttpRequestCommand.cc
  2338. * src/OptionHandlerFactory.cc
  2339. * src/option_processing.cc
  2340. * src/prefs.cc
  2341. * src/prefs.h
  2342. * src/usage_text.h
  2343. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2344. Added help message for -R option.
  2345. * src/HelpItemFactory.cc
  2346. * src/usage_text.h
  2347. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2348. Added the message that the time is in local time zone.
  2349. * src/RequestGroup.cc
  2350. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Implemented the ability to get timestamp from remote FTP server using
  2352. MDTM command described in RFC3659.
  2353. * src/FtpConnection.cc
  2354. * src/FtpConnection.h
  2355. * src/FtpNegotiationCommand.cc
  2356. * src/FtpNegotiationCommand.h
  2357. * test/FtpConnectionTest.cc
  2358. * test/Makefile.am
  2359. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2360. Implemented the ability to get timestamp from remote HTTP server and
  2361. apply it to local file. To enable this feature, --remote-time option
  2362. is added. No usage text has been written yet.
  2363. If several servers returns difference timestamp, then aria2 uses latest
  2364. one.
  2365. * src/CopyDiskAdaptor.cc
  2366. * src/CopyDiskAdaptor.h
  2367. * src/DirectDiskAdaptor.cc
  2368. * src/DirectDiskAdaptor.h
  2369. * src/DiskAdaptor.h
  2370. * src/File.cc
  2371. * src/File.h
  2372. * src/HttpHeader.cc
  2373. * src/HttpHeader.h
  2374. * src/HttpResponse.cc
  2375. * src/HttpResponse.h
  2376. * src/HttpResponseCommand.cc
  2377. * src/HttpResponseCommand.h
  2378. * src/MultiDiskAdaptor.cc
  2379. * src/MultiDiskAdaptor.h
  2380. * src/OptionHandlerFactory.cc
  2381. * src/RequestGroup.cc
  2382. * src/RequestGroup.h
  2383. * src/RequestGroupMan.cc
  2384. * src/option_processing.cc
  2385. * src/prefs.cc
  2386. * src/prefs.h
  2387. * test/CopyDiskAdaptorTest.cc
  2388. * test/FileTest.cc
  2389. * test/Makefile.am
  2390. * test/Makefile.in
  2391. * test/MultiDiskAdaptorTest.cc
  2392. * test/TestUtil.cc
  2393. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2394. Fixed the bug that DiskWriterEntry is not created when its
  2395. FileEntry.isRequested() is false and it doesn't share a piece with
  2396. other FileEntries that are requested. This bug causes segmentation fault
  2397. in the end.
  2398. * src/MultiDiskAdaptor.cc
  2399. * src/MultiDiskAdaptor.h
  2400. * src/MultiFileAllocationIterator.cc
  2401. * test/MultiDiskAdaptorTest.cc
  2402. * test/MultiFileAllocationIteratorTest.cc
  2403. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2405. called if the number of file entries are greater than max open files.
  2406. * src/AbstractSingleDiskAdaptor.cc
  2407. * src/AbstractSingleDiskAdaptor.h
  2408. * src/DiskAdaptor.h
  2409. * src/MultiDiskAdaptor.cc
  2410. * src/MultiDiskAdaptor.h
  2411. * test/MultiDiskAdaptorTest.cc
  2412. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2413. Added a constuctor that receives struct timeval.
  2414. Added operator<.
  2415. * src/TimeA2.cc
  2416. * src/TimeA2.h
  2417. * test/TimeTest.cc
  2418. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2419. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2420. * src/CookieParser.cc
  2421. * test/CookieParserTest.cc
  2422. * test/HttpResponseTest.cc
  2423. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2424. Implmented the functions to parse date.
  2425. * src/TimeA2.cc
  2426. * src/TimeA2.h
  2427. * test/TimeTest.cc
  2428. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2429. Added "Firefox3 Cookie" feature to FeatureConfig
  2430. * src/FeatureConfig.cc
  2431. * src/FeatureConfig.h
  2432. * test/FeatureConfigTest.cc
  2433. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2434. Bump up version number to 0.16.0b
  2435. * configure.ac
  2436. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2437. Use pkg-config if is is available.
  2438. * m4/openssl.m4
  2439. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2440. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2441. * src/BtAnnounce.h
  2442. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2443. If an error occurred with a URI, remove identical URI from remaining
  2444. URI list because it is likely that same error occurred in the end and it
  2445. is waste of time.
  2446. * src/AbstractCommand.cc
  2447. * src/RequestGroup.cc
  2448. * src/RequestGroup.h
  2449. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Removed wrong comment.
  2451. * src/DefaultPeerStorage.cc
  2452. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2453. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2454. Added return value of getpid() to argument of srand() to achieve more
  2455. randomized value.
  2456. * src/SimpleRandomizer.cc
  2457. * src/SimpleRandomizer.h
  2458. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2459. Contact tracker frequently when the number of connections are 0 and
  2460. download is not finished yet.
  2461. * src/ActivePeerConnectionCommand.cc
  2462. * src/BtAnnounce.h
  2463. * src/DefaultBtAnnounce.cc
  2464. * src/DefaultBtAnnounce.h
  2465. * test/MockBtAnnounce.h
  2466. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2467. Moved threshold values to UTPexExtensionMessage.
  2468. * src/DefaultBtInteractive.cc
  2469. * src/Peer.cc
  2470. * src/Peer.h
  2471. * src/UTPexExtensionMessage.cc
  2472. * src/UTPexExtensionMessage.h
  2473. * test/UTPexExtensionMessageTest.cc
  2474. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2475. Added _incoming member to Peer class and made it true if the peer
  2476. initiated connection. Don't add those peer to UTPex message.
  2477. If extended handshake is received, assign _incoming to false.
  2478. * src/DefaultBtInteractive.cc
  2479. * src/HandshakeExtensionMessage.cc
  2480. * src/Peer.cc
  2481. * src/Peer.h
  2482. * src/PeerListenCommand.cc
  2483. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2484. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2485. Encoding Decoder. Removed size threshold for turning off on the fly
  2486. inflation because resulting file may or may not be inflated depending
  2487. on the file size and I think it is not expected by users.
  2488. This change fixes segmentation fault when Metalink file contains gzipped
  2489. file and its filesize is provided.
  2490. * src/HttpResponseCommand.cc
  2491. * src/HttpResponseCommand.h
  2492. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Made Cookie immutable.
  2494. * src/Cookie.cc
  2495. * src/Cookie.h
  2496. * src/CookieParser.cc
  2497. * src/CookieParser.h
  2498. * src/CookieStorage.cc
  2499. * test/CookieParserTest.cc
  2500. * test/CookieStorageTest.cc
  2501. * test/NsCookieParserTest.cc
  2502. * test/Sqlite3MozCookieParserTest.cc
  2503. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2504. Removed CookieBox, CookieBoxFactory.
  2505. * src/CookieBox.cc
  2506. * src/CookieBox.h
  2507. * src/CookieBoxFactory.cc
  2508. * src/CookieBoxFactory.h
  2509. * src/Makefile.am
  2510. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. Use CookieStorage class instead of CookieBox class.
  2512. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2513. * src/AbstractProxyRequestCommand.cc
  2514. * src/CookieStorage.cc
  2515. * src/DownloadEngine.cc
  2516. * src/DownloadEngine.h
  2517. * src/HttpConnection.cc
  2518. * src/HttpConnection.h
  2519. * src/HttpRequest.cc
  2520. * src/HttpRequest.h
  2521. * src/HttpRequestCommand.cc
  2522. * src/HttpResponse.cc
  2523. * src/HttpResponseCommand.cc
  2524. * src/HttpSkipResponseCommand.cc
  2525. * src/Makefile.am
  2526. * src/MultiUrlRequestInfo.cc
  2527. * src/Request.cc
  2528. * src/Request.h
  2529. * src/main.cc
  2530. * test/AllTest.cc
  2531. * test/CookieStorageTest.cc
  2532. * test/CookieTest.cc
  2533. * test/HttpRequestTest.cc
  2534. * test/HttpResponseTest.cc
  2535. * test/Makefile.am
  2536. * test/NsCookieParserTest.cc
  2537. * test/Sqlite3MozCookieParserTest.cc
  2538. * test/nscookietest.txt
  2539. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2540. Updated
  2541. * test/Cookies.sqlite
  2542. * test/nscookietest.txt
  2543. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2544. Added tests for CookieStorage::load()
  2545. * test/CookieStorageTest.cc
  2546. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2547. Added CookieStorage class which is based on RFC2109 and manages cookies
  2548. more strictly than CookieBox and CookieBoxFactory class.
  2549. * src/CookieStorage.cc
  2550. * src/CookieStorage.h
  2551. * src/Cookie.cc
  2552. * src/Cookie.h
  2553. * test/CookieStorageTest.cc
  2554. * test/CookieTest.cc
  2555. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2556. Fixed the bug that commands are created more than the number of pieces.
  2557. * src/RequestGroup.cc
  2558. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Fixed infinite loop bug in FTP when SIZE command failed.
  2560. * src/FtpNegotiationCommand.cc
  2561. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2562. Removed DirectDiskAdaptorTest.h
  2563. * test/Makefile.am
  2564. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2565. Fixed chunk checksum validation cannot detect trailing garbage data.
  2566. BUG#2074141
  2567. * src/AbstractSingleDiskAdaptor.cc
  2568. * src/AbstractSingleDiskAdaptor.h
  2569. * src/CheckIntegrityEntry.cc
  2570. * src/CheckIntegrityEntry.h
  2571. * src/DiskAdaptor.h
  2572. * src/MultiDiskAdaptor.cc
  2573. * src/MultiDiskAdaptor.h
  2574. * src/RequestGroup.cc
  2575. * test/DirectDiskAdaptorTest.cc
  2576. * test/MultiDiskAdaptorTest.cc
  2577. * test/TestUtil.cc
  2578. * test/TestUtil.h
  2579. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2580. Bump up version number of dht.dat file to 3. In version 3 format, time
  2581. is stored in 64bit, network byte order.
  2582. New build can load old format(version 2) but it saves the file in new
  2583. format. It means once you used new build, your dht.dat becomes
  2584. incompatible with older build.
  2585. * src/DHTRoutingTableDeserializer.cc
  2586. * src/DHTRoutingTableSerializer.cc
  2587. * test/DHTRoutingTableSerializerTest.cc
  2588. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2590. * test/Makefile.am
  2591. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2592. Bump up version number of .aria2 control file to 0001.
  2593. New aria2 can still load version 0000 file but it saves the file in
  2594. version 0001 format. It means that new aria2 can resume download
  2595. started by old aria2 but the opposite is not true.
  2596. * src/DefaultBtProgressInfoFile.cc
  2597. * src/DefaultBtProgressInfoFile.h
  2598. * test/DefaultBtProgressInfoFileTest.cc
  2599. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2600. Added ntoh64 and hton64 as inline functions.
  2601. * src/Util.cc
  2602. * test/UtilTest.cc
  2603. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2604. Added sqlite3 depenency and Firefox3 cookie support.
  2605. * README
  2606. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. State that firefox3 cookie is supported explicitly in the usage.
  2608. * src/usage_text.h
  2609. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2610. Externalized message.
  2611. * src/RequestGroupMan.cc
  2612. * src/message.h
  2613. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2614. Save temporary file first and rename to the destination on success.
  2615. Added test cases.
  2616. * src/RequestGroupMan.cc
  2617. * test/RequestGroupManTest.cc
  2618. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2619. Fixed the bug that the number of connected peer is exceeding the limit
  2620. (55 by default) in seeding mode.
  2621. Multiplied 0.8 to _maxUploadSpeedLimit.
  2622. * src/ActivePeerConnectionCommand.cc
  2623. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2624. Clear table item.
  2625. * src/Dictionary.cc
  2626. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2627. Fixed error handling of lseek.
  2628. * src/AbstractDiskWriter.cc
  2629. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2630. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2631. style cookie file.
  2632. * src/usage_text.h
  2633. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2635. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2636. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2637. * src/Util.cc
  2638. * src/Util.h
  2639. * src/CookieParser.cc
  2640. * test/UtilTest.cc
  2641. * test/CookieParserTest.cc
  2642. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2643. Separate the implementation to load old mozilla format of cookie to
  2644. NsCookieParser class.
  2645. * src/CookieBoxFactory.cc
  2646. * src/CookieBoxFactory.h
  2647. * src/NsCookieParser.cc
  2648. * src/NsCookieParser.h
  2649. * test/NsCookieParserTest.cc
  2650. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2651. Made parse() const
  2652. * src/Sqlite3MozCookieParser.cc
  2653. * src/Sqlite3MozCookieParser.h
  2654. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2655. Added firefox3 cookie support based on the patch submitted by
  2656. tizianomueller.
  2657. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2658. this functionality.
  2659. * configure.ac
  2660. * m4/sqlite3.m4
  2661. * src/CookieBoxFactory.cc
  2662. * src/CookieBoxFactory.h
  2663. * src/Makefile.am
  2664. * src/Makefile.in
  2665. * src/Sqlite3MozCookieParser.cc
  2666. * src/Sqlite3MozCookieParser.h
  2667. * src/main.cc
  2668. * test/CookieBoxFactoryTest.cc
  2669. * test/Makefile.am
  2670. * test/Makefile.in
  2671. * test/Sqlite3MozCookieParserTest.cc
  2672. * test/badcookies.sqlite
  2673. * test/cookies.sqlite
  2674. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2675. Added Danish and Greek translations.
  2676. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2677. Great thanks to all translators.
  2678. * po/LINGUAS
  2679. * po/el.po
  2680. * po/da.po
  2681. * po/es.po
  2682. * po/ca.po
  2683. * po/nn.po
  2684. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Fixed man page: --follow-bittorrent should be --follow-torrent
  2686. * doc/aria2c.1.txt
  2687. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Fixed: numCommand is less than the value specified in -C option.
  2689. * src/RequestGroup.cc
  2690. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Fixed occasional assertion failure in PieceSegment.
  2692. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2693. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2694. creation of duplicate segments and one of the segment was finished then
  2695. assertion failure was caused.
  2696. * src/SegmentMan.cc
  2697. * test/SegmentManTest.cc
  2698. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Added options to load/save the server's performance/status to a file
  2700. and the timeout to drop their data.
  2701. --server-stat-of=FILE specifies the file to which performance data
  2702. is saved.
  2703. --server-stat-if=FILE specifies the file to read previously saved
  2704. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2705. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2706. TIMEOUT is specified in seconds and the default value is 24hours.
  2707. * src/MultiUrlRequestInfo.cc
  2708. * src/OptionHandlerFactory.cc
  2709. * src/RequestGroupMan.cc
  2710. * src/RequestGroupMan.h
  2711. * src/ServerStatMan.cc
  2712. * src/ServerStatMan.h
  2713. * src/option_processing.cc
  2714. * src/prefs.cc
  2715. * src/prefs.h
  2716. * test/ServerStatManTest.cc
  2717. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2719. * src/ServerStatMan.cc
  2720. * src/ServerStatMan.h
  2721. * test/ServerStatManTest.cc
  2722. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2723. Implemented ServerStatMan::load(...) function and its test case.
  2724. * src/ServerStat.cc
  2725. * src/ServerStat.h
  2726. * src/ServerStatMan.cc
  2727. * test/ServerStatManTest.cc
  2728. * test/ServerStatTest.cc
  2729. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2730. Use time_t instead of int32_t. Use int64_t where milli second is
  2731. expected.
  2732. * src/TimeA2.cc
  2733. * src/TimeA2.h
  2734. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Implemented ServerStatMan::save(...) function and its test case.
  2736. * src/ServerStat.cc
  2737. * src/ServerStat.h
  2738. * src/ServerStatMan.cc
  2739. * src/ServerStatMan.h
  2740. * test/ServerStatManTest.cc
  2741. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2742. Now aria2 uses name attribute in Metalink as local filename in
  2743. BitTorrent downloads. BUG#2033999
  2744. * src/BtContext.h
  2745. * src/BtDependency.cc
  2746. * src/DefaultBtContext.cc
  2747. * src/DefaultBtContext.h
  2748. * src/SingleFileDownloadContext.cc
  2749. * src/SingleFileDownloadContext.h
  2750. * test/BtDependencyTest.cc
  2751. * test/DefaultBtContextTest.cc
  2752. * test/MockBtContext.h
  2753. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2754. Added AC_C_BIGENDIAN
  2755. * src/configure.ac
  2756. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2757. Limited numCommand less than or equal to the number of piece.
  2758. * src/RequestGroup.cc
  2759. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2760. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2761. directive.
  2762. * test/DefaultPieceStorageTest.cc
  2763. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2764. Fixed memory leak in test code
  2765. * test/AnnounceListTest.cc
  2766. * test/DefaultPeerListProcessorTest.cc
  2767. * test/DefaultPeerStorageTest.cc
  2768. * test/MetaFileUtilTest.cc
  2769. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2770. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2771. * src/DefaultPieceStorage.cc
  2772. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Initialized _directIOAllowed
  2774. * src/MultiDiskAdaptor.cc
  2775. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2776. Fixed memory leak
  2777. * src/GZipDecoder.cc
  2778. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2779. Fixed memory leak
  2780. * src/MetalinkParserStateMachine.cc
  2781. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2782. Fixed memory leak
  2783. * src/Dictionary.cc
  2784. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. Fixed memory leak
  2786. * src/IteratableChunkChecksumValidator.h
  2787. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Fixed unmatched malloc/free.
  2789. * src/IteratableChunkChecksumValidator.cc
  2790. * src/IteratableChecksumValidator.cc
  2791. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2792. Removed max chunk size check. This change fixes BUG#2040169
  2793. * src/ChunkedDecoder.cc
  2794. * src/ChunkedDecoder.h
  2795. * test/ChunkedDecoderTest.cc
  2796. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2797. Implemented download speed based URI selection algorithm.
  2798. Introduced new option --uri-selector.
  2799. If --uri-selector=feedback is given, aria2 uses download speed observed
  2800. in the previous downloads and chooses fastest server in the URI list.
  2801. Currently at most 10 URIs are considered to introduce randomeness for
  2802. finding better servers. The speed is average download speed in the
  2803. downloads.
  2804. On the other hand, if --uri-selector=inorder is given, which is default,
  2805. URI is tried in order in URI list.
  2806. The usage text for the new option has not been written yet.
  2807. * src/AbstractCommand.cc
  2808. * src/DownloadCommand.cc
  2809. * src/DownloadEngine.cc
  2810. * src/DownloadEngineFactory.cc
  2811. * src/InOrderURISelector.cc
  2812. * src/InOrderURISelector.h
  2813. * src/OptionHandlerFactory.cc
  2814. * src/PeerStat.h
  2815. * src/RequestGroup.cc
  2816. * src/RequestGroup.h
  2817. * src/RequestGroupMan.cc
  2818. * src/RequestGroupMan.h
  2819. * src/SegmentMan.cc
  2820. * src/SegmentMan.h
  2821. * src/ServerStat.cc
  2822. * src/ServerStat.h
  2823. * src/ServerStatMan.cc
  2824. * src/ServerStatMan.h
  2825. * src/ServerStatURISelector.cc
  2826. * src/ServerStatURISelector.h
  2827. * src/URISelector.h
  2828. * src/option_processing.cc
  2829. * src/prefs.cc
  2830. * src/prefs.h
  2831. * test/InOrderURISelectorTest.cc
  2832. * test/RequestGroupManTest.cc
  2833. * test/ServerStatManTest.cc
  2834. * test/ServerStatURISelectorTest.cc
  2835. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2836. * Release 0.15.1+2
  2837. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2838. Bump up version number to 0.15.1+2
  2839. * configure.ac
  2840. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2841. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2842. * m4/aria2_arg.m4
  2843. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. * Release 0.15.1+1
  2845. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2846. Bump up version number to 0.15.1+1
  2847. * configure.ac
  2848. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2849. Fixed the bug that causes segmentaion fault when resuming download
  2850. using metalink without size tag. Reproducible only using HTTP URI.
  2851. * src/HttpResponseCommand.cc
  2852. * src/FtpNegotiationCommand.cc
  2853. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2854. * Release 0.15.1
  2855. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Updated Bulgarian and French translations, thanks to all translators.
  2857. * po/bg.po
  2858. * po/fr.po
  2859. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2860. Bump up version number to 0.15.1
  2861. * configure.ac
  2862. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Avoid repeated call of gettimeofday() when calculating speed.
  2864. * src/SpeedCalc.cc
  2865. * src/SpeedCalc.h
  2866. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2867. Removed writable check when socket's send buffer is full in BitTorrent
  2868. downloads to lower CPU usage.
  2869. * src/PeerInteractionCommand.cc
  2870. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2871. Fixed broken gzip inflation.
  2872. Turn off segmented downloading if gzip content is smaller than or equal
  2873. to 1MiB and inflate the data on the fly, because HTTP response header
  2874. doesn't contain the length of inflated file we can't determin where
  2875. the chunk of data should be written.
  2876. On the other hand, if gzip content is larger than 1MB, then turn off
  2877. on the fly inflation, because some servers returns "content-type: gzip"
  2878. for *.tgz, *.gz files.
  2879. * src/DownloadCommand.cc
  2880. * src/HttpResponseCommand.cc
  2881. * src/HttpResponseCommand.h
  2882. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Applied tizianomueller's patch to fix compile error.
  2884. * test/BitfieldManTest.cc
  2885. * test/BtRequestMessageTest.cc
  2886. * test/DefaultBtContextTest.cc
  2887. * test/DefaultDiskWriterTest.cc
  2888. * test/DefaultPieceStorageTest.cc
  2889. * test/HttpHeaderProcessorTest.cc
  2890. * test/HttpResponseTest.cc
  2891. * test/Metalink2RequestGroupTest.cc
  2892. * test/MetalinkParserControllerTest.cc
  2893. * test/MetalinkProcessorTest.cc
  2894. * test/PeerSessionResourceTest.cc
  2895. * test/UtilTest.cc
  2896. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. * Release 0.15.0
  2898. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2899. Reordered src files in POTFILES.in so that usage text appears first.
  2900. * po/POTFILES.in
  2901. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Bump up version number to 0.15.0
  2903. * configure.ac
  2904. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Added Bulgarian translation.
  2906. Updated Catalan, Spanish, French and Japanese translations.
  2907. Thanks to all translators.
  2908. * po/LINGUAS
  2909. * po/bg.po
  2910. * po/ca.po
  2911. * po/es.po
  2912. * po/fr.po
  2913. * po/ja.po
  2914. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2915. Updated feature list. Added libz for dependency section.
  2916. Added a description about unit testing using CppUnit.
  2917. * README
  2918. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2919. Added a test for libz. Quoted where it is necessary.
  2920. * build_test.sh
  2921. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2922. Added GZip to `Enabled Features' list.
  2923. * src/FeatureConfig.cc
  2924. * src/FeatureConfig.h
  2925. * test/FeatureConfigTest.cc
  2926. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2927. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2928. the transfer has not yet started.
  2929. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2930. * src/SegmentMan.cc
  2931. * src/SegmentMan.h
  2932. * test/SegmentManTest.cc
  2933. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2934. Cache last calculated average download/upload speed.
  2935. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2936. cached value.
  2937. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2938. * src/PeerStat.h
  2939. * src/SpeedCalc.cc
  2940. * src/SpeedCalc.h
  2941. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2942. Call parseUrl directly.
  2943. * src/Request.cc (resetUrl)
  2944. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2945. Supported absolute/relative path in Location header field.
  2946. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2947. * src/HttpHeader.cc
  2948. * src/HttpHeader.h
  2949. * src/HttpResponse.cc
  2950. * src/HttpSkipResponseCommand.cc
  2951. * src/Request.cc
  2952. * test/HttpHeaderTest.cc
  2953. * test/HttpResponseTest.cc
  2954. * test/RequestTest.cc
  2955. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2956. Changed help text for --load-cookie option.
  2957. * doc/aria2c.1.txt
  2958. * src/usage_text.h
  2959. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2960. Regenerated test/Makefile.in to remove stale ChangeLog.
  2961. * test/Makefile.in
  2962. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2963. Updated po files.
  2964. * po/aria2c.pot
  2965. * po/*.po
  2966. * po/*.gmo
  2967. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2968. Bump up version number to 0.15.0b
  2969. * configure.ac
  2970. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Externalize messages.
  2972. * src/RequestGroupMan.cc
  2973. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  2974. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2975. Use File::exists() instead of File::isFile() to allow non-regular file
  2976. such as block special files.
  2977. * src/AbstractDiskWriter.cc
  2978. * src/MultiDiskWriter.cc
  2979. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  2981. * src/gai_strerror.h
  2982. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Fixed compile error. Thanks gknauf for the patch.
  2984. * src/asctime_r.c
  2985. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2986. Included asctime_r.h from a2time.h.
  2987. * src/a2time.h
  2988. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Added a message "aria2 doesn't verify signature" to log message when
  2990. signature file is saved.
  2991. * src/RequestGroupMan.cc
  2992. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2993. Added the ability to save signature when download is completed if
  2994. signature is available. The filename of signature file is the path to
  2995. download file followed by ".sig". If it already exists, then signature
  2996. will not be saved.
  2997. * src/RequestGroupMan.cc
  2998. * src/Signature.cc
  2999. * test/SignatureTest.cc
  3000. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Updated the descriptions for --bt-seed-unverified.
  3002. * doc/aria2c.1
  3003. * doc/aria2c.1.html
  3004. * doc/aria2c.1.txt
  3005. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3007. that this is not going to verify files using piece hashes.
  3008. * src/HelpItemFactory.cc
  3009. * src/OptionHandlerFactory.cc
  3010. * src/RequestGroup.cc
  3011. * src/option_processing.cc
  3012. * src/prefs.cc
  3013. * src/prefs.h
  3014. * src/usage_text.h
  3015. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3016. Added the ability to retrieve signature from Metalink file.
  3017. A retrieved signature is stored in Signature class and it is held by
  3018. DownloadContext class. Note that aria2 doesn't verify signature.
  3019. * src/DownloadContext.cc
  3020. * src/DownloadContext.h
  3021. * src/Makefile.am
  3022. * src/Makefile.in
  3023. * src/Metalink2RequestGroup.cc
  3024. * src/MetalinkEntry.cc
  3025. * src/MetalinkEntry.h
  3026. * src/MetalinkParserController.cc
  3027. * src/MetalinkParserController.h
  3028. * src/MetalinkParserStateMachine.cc
  3029. * src/MetalinkParserStateMachine.h
  3030. * src/Signature.cc
  3031. * src/Signature.h
  3032. * src/SignatureMetalinkParserState.cc
  3033. * src/SignatureMetalinkParserState.h
  3034. * src/VerificationMetalinkParserState.cc
  3035. * src/VerificationMetalinkParserState.h
  3036. * test/Metalink2RequestGroupTest.cc
  3037. * test/MetalinkParserControllerTest.cc
  3038. * test/MetalinkProcessorTest.cc
  3039. * test/test.xml
  3040. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3041. Close DiskAdaptor after renaming file.
  3042. * src/RequestGroup.cc
  3043. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Corrected indentation
  3045. * src/DefaultBtProgressInfoFile.cc
  3046. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3047. Moved the calls of std::ios::exceptions() inside of try-catch block
  3048. because if an error occurred in constructor of std::fstream, then
  3049. exception is thrown immediately when std::ios::exceptions() is called
  3050. which results unhandled exception and aria2c aborts.
  3051. * src/DefaultBtProgressInfoFile.cc
  3052. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3053. Added the test for the previous change in DefaultBtContext.cc
  3054. * test/DefaultBtContextTest.cc
  3055. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Fixed the bug that causes infinite loop when the number of pieces are
  3057. fewer than allowed fast set size which is 10 by default.
  3058. * src/DefaultBtContext.cc
  3059. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Updated the descriptions for -j, -s. Added --bt-seed.
  3061. * doc/aria2c.1
  3062. * doc/aria2c.1.html
  3063. * doc/aria2c.1.txt
  3064. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3066. aria2 seeds previously downloaded files without validating piece hashs.
  3067. * src/HelpItemFactory.cc
  3068. * src/OptionHandlerFactory.cc
  3069. * src/RequestGroup.cc
  3070. * src/option_processing.cc
  3071. * src/prefs.cc
  3072. * src/prefs.h
  3073. * src/usage_text.h
  3074. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3075. Updated DESCRIPTION of man page.
  3076. * doc/aria2c.1
  3077. * doc/aria2c.1.html
  3078. * doc/aria2c.1.txt
  3079. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3080. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3081. Don't define `struct addrinfo' when __sun is defined.
  3082. * src/getaddrinfo.h
  3083. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3084. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3085. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3086. second argument is of type `struct _stati64'. Otherwise it is defined as
  3087. `struct stat'.
  3088. * src/AbstractDiskWriter.cc
  3089. * src/File.cc
  3090. * src/File.h
  3091. * src/a2io.h
  3092. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3093. Fixed the compile error in hurd-i386
  3094. See the original bug report:
  3095. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3096. * src/a2io.h
  3097. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3098. Code cleanup.
  3099. * src/PeerAbstractCommand.cc
  3100. * src/PeerAbstractCommand.h
  3101. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3102. Removed TransferEncoding.
  3103. * src/DownloadCommand.cc
  3104. * src/DownloadCommand.h
  3105. * src/HttpResponseCommand.cc
  3106. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3107. Updated po files.
  3108. * po/aria2c.pot
  3109. * po/*.po
  3110. * po/*.gmo
  3111. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3112. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3113. * src/A2STR.cc
  3114. * src/A2STR.h
  3115. * src/ChunkedDecoder.cc
  3116. * src/ChunkedDecoder.h
  3117. * src/ChunkedEncoding.cc: Removed
  3118. * src/ChunkedEncoding.h: Removed
  3119. * src/DownloadCommand.cc
  3120. * src/DownloadCommand.h
  3121. * src/HttpDownloadCommand.cc
  3122. * src/HttpResponse.cc
  3123. * src/HttpResponse.h
  3124. * src/HttpResponseCommand.cc
  3125. * src/HttpSkipResponseCommand.cc
  3126. * src/HttpSkipResponseCommand.h
  3127. * src/Makefile.am
  3128. * src/TransferEncoding.h: Removed
  3129. * test/ChunkedDecoderTest.cc
  3130. * test/ChunkedEncodingTest.cc: Removed
  3131. * test/HttpResponseTest.cc
  3132. * test/Makefile.am
  3133. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3134. Use append instead of insert.
  3135. * src/GZipDecoder.cc
  3136. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3137. Updated doc
  3138. * src/Decoder.h
  3139. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3140. Updated usage text for -s option.
  3141. * src/usage_text.h
  3142. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3144. * src/Request.cc
  3145. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3146. Cleaned up configure.ac.
  3147. * configure.ac
  3148. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3149. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3150. AC_ARG_ENABLE.
  3151. * configure.ac
  3152. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3153. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3154. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3155. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3156. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3157. fly and writes decoded data to a local disk.
  3158. * README
  3159. * README.html
  3160. * configure.ac
  3161. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3162. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3163. * m4/libz.m4
  3164. * src/Decoder.h
  3165. * src/DownloadCommand.cc
  3166. * src/DownloadCommand.h
  3167. * src/Exception.h
  3168. * src/GZipDecoder.cc
  3169. * src/GZipDecoder.h
  3170. * src/HttpHeader.cc
  3171. * src/HttpHeader.h
  3172. * src/HttpRequest.cc
  3173. * src/HttpRequest.h
  3174. * src/HttpResponse.cc
  3175. * src/HttpResponse.h
  3176. * src/HttpResponseCommand.cc
  3177. * src/Makefile.am
  3178. * test/GZipDecoderTest.cc
  3179. * test/HttpRequestTest.cc
  3180. * test/HttpResponseTest.cc
  3181. * test/Makefile.am
  3182. * test/Makefile.in
  3183. * test/gzip_decode_test.gz
  3184. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. Clarified usage of -j option.
  3186. * src/usage_text.h
  3187. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3188. Disabled getting size from the response of RETR.
  3189. If SIZE command failed, then disable resuming and segmented downloading.
  3190. * src/FtpConnection.cc
  3191. * src/FtpConnection.h
  3192. * src/FtpNegotiationCommand.cc
  3193. * src/FtpNegotiationCommand.h
  3194. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Use digits to find first byte of file size, which makes the intention
  3196. of the code clearer.
  3197. * src/FtpConnection.cc
  3198. Don't call validateTotalLength() when size is 0.
  3199. * src/FtpNegotiationCommand.cc
  3200. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3201. Updated po files.
  3202. * po/aria2c.pot
  3203. * po/*.gmo
  3204. * po/*.po
  3205. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Clarified usage text for --split option.
  3207. * src/usage_text.h
  3208. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Bump up version number to 0.15.0dev. "dev" means "development"
  3210. version, which means I started the development of the next release!
  3211. * src/configure.ac
  3212. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3213. If FTP server returns negative response with REST raw command and
  3214. requested range is not 0, throw exception. If requested range is 0,
  3215. continue download a file from 0 byte.
  3216. * src/FtpNegotiationCommand.cc
  3217. * src/FtpNegotiationCommand.h
  3218. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Supported FTP server which don't recognize SIZE raw command.
  3220. If SIZE raw command is failed, aria2 will try to get file size
  3221. from the response of RETR raw command. If both attempts are failed,
  3222. then resuming and segmented downloading are disabled.
  3223. * src/FtpConnection.cc
  3224. * src/FtpConnection.h
  3225. * src/FtpNegotiationCommand.cc
  3226. * src/FtpNegotiationCommand.h
  3227. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3228. * Release 0.14.0+1
  3229. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Bump up version number to 0.14.0+1
  3231. * src/configure.ac
  3232. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Fixed the code that refers static member variable from non-static
  3234. context.
  3235. * src/DefaultPeerStorage.cc
  3236. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. * Release 0.14.0
  3238. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3239. Added build test script
  3240. * build_test.sh
  3241. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3242. Updated ja.po
  3243. * src/ja.po
  3244. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3245. Bump up version number to 0.14.0
  3246. * src/configure.ac
  3247. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Updated ja.po and fr.po. Great thanks for french translators and
  3249. Sebastien WILLEMIJNS.
  3250. * po/fr.po
  3251. * po/ja.po
  3252. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3253. Added configure option to enable/disable epoll support.
  3254. * configure.ac
  3255. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3256. Updated man page.
  3257. * doc/aria2c.1.txt
  3258. * doc/aria2c.1
  3259. * doc/aria2c.1.html
  3260. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3261. Added missing default value '5' to the usage of --split option.
  3262. * src/HelpItemFactory.cc
  3263. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. Filled up pieces based on the number of missing blocks, rather than
  3265. simplay the number of piece * block length.
  3266. * src/BtRequestFactory.h
  3267. * src/DefaultBtInteractive.cc
  3268. * src/DefaultBtInteractive.h
  3269. * src/DefaultBtRequestFactory.cc
  3270. * src/DefaultBtRequestFactory.h
  3271. * src/Piece.cc
  3272. * src/Piece.h
  3273. * test/BitfieldManTest.cc
  3274. * test/DefaultBtRequestFactoryTest.cc
  3275. * test/MockBtRequestFactory.h
  3276. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. Made _epEvents a member variable.
  3278. * src/DownloadEngine.cc
  3279. * src/DownloadEngine.h
  3280. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3281. Cancel download if http redirect is bounded more than 20 times.
  3282. * src/AbstractCommand.cc
  3283. * src/HttpSkipResponseCommand.cc
  3284. * src/Request.cc
  3285. * src/Request.h
  3286. * test/RequestTest.cc
  3287. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Fixed unhandled exception(removed keyword `new').
  3289. * src/SocketCore.cc (initEPOLL)
  3290. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. Removed visit(const MetaEntry*)
  3292. * src/MetaEntryVisitor.h:
  3293. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3294. and made them virtual.
  3295. * src/BencodeVisitor.h
  3296. * src/BencodeVisitor.cc
  3297. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3298. Updated po files.
  3299. * po/aria2c.pot
  3300. * po/*.po
  3301. * po/*.gmo
  3302. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3303. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3304. the number of socket to watch out.
  3305. * src/PeerInteractionCommand.cc
  3306. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3307. When there is not enough space in disk when writing a chunk of data,
  3308. aria2 now prints the message to the console to warn user and aborts
  3309. its download. Not all downloads are canceled because some downloads
  3310. may use another disk or partition. BUG#1640332
  3311. * src/AbstractDiskWriter.cc
  3312. * src/PeerAbstractCommand.cc
  3313. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3314. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3315. setHaltRequested(true) to cancel download.
  3316. * src/PeerInteractionCommand.h
  3317. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3318. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3319. socket from int to sock_t as sockets are unsigned in Windows.
  3320. For AsyncNameResolver, DownloadEngine, I did additional modification
  3321. for the portion of the code changed according to epoll support.
  3322. I defined sock_t in a2netcompat.h to use sock_t without including
  3323. SocketCore.h.
  3324. * src/AsyncNameResolver.cc
  3325. * src/AsyncNameResolver.h
  3326. * src/DownloadEngine.cc
  3327. * src/DownloadEngine.h
  3328. * src/SocketCore.cc
  3329. * src/SocketCore.h
  3330. * src/a2netcompat.h
  3331. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3333. changes in the patch were applied.
  3334. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3335. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3336. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3337. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3338. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3339. a2io.h and common.h were modified.
  3340. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3341. MinGW.
  3342. * src/common.h: Changed off_t to 64 bit in MinGW.
  3343. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3345. only a2netcompat.h is modified.
  3346. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3347. directives.
  3348. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3350. only gai_strerror.h is modified.
  3351. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3352. winsock errors in MinGW.
  3353. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3354. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3355. follow sources are applied.
  3356. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3357. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3358. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3359. I included locale.h from Platform.cc.
  3360. * src/main.cc: Moved common setup/teardown code to Platform class.
  3361. * test/AllTest.cc: Use Platform class.
  3362. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3363. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3365. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3366. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3367. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3369. aria2-0.13.2+1-mingw-2.patch.
  3370. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3371. systems which don't have termious.h. I moved the directive inside of
  3372. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3373. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3374. anyway.
  3375. * src/asctime_r.h
  3376. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3377. I added 2nd argument to the prototype declaration.
  3378. * src/StringFormat.cc: Get rid of vasprintf.
  3379. * src/getaddrinfo.h: Fixed constants.
  3380. * configure.ac: Added the check for asctime_r function.
  3381. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3382. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Added writable test for Socket when the sending message is in progress.
  3384. Usually the sending message is piece message. Without wriable check,
  3385. upload latency is dropped to more than 1sec.
  3386. * src/PeerInteractionCommand.cc
  3387. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Create only requested files and files which shares a piece with
  3389. requested file in multi-torrent downloads. Directory structures are
  3390. also created in the same rule.
  3391. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3392. DiskWriterEntry as in the previous implementation.
  3393. * src/MultiDiskWriter.cc
  3394. * src/MultiFileAllocationIterator.cc
  3395. * src/MultiFileAllocationIterator.h
  3396. * test/MultiFileAllocationIteratorTest.cc
  3397. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Commented out -lprofiler
  3399. * src/Makefile.am
  3400. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Bump up version number to 0.14.0b.
  3402. * src/configure.ac
  3403. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3404. Actively establish connection to peers in seeding, when peer cache
  3405. is not full and max upload speed limit is not reached.
  3406. * src/ActivePeerConnectionCommand.cc
  3407. * src/ActivePeerConnectionCommand.h
  3408. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3410. to make room more fleshy, recently found peers.
  3411. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3412. it.
  3413. * src/DefaultPeerStorage.cc
  3414. * test/DefaultPeerStorageTest.cc
  3415. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3416. Returns cached data only when the previous receiveHandshake() is called
  3417. with peek = true.
  3418. * src/PeerConnection.cc (receiveHandshake)
  3419. * src/PeerConnection.h (receiveHandshake)
  3420. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Changed default value of -s option from 1 to 5.
  3422. Also max value of -s option is changed from 5 to 16.
  3423. * src/HelpItemFactory.cc
  3424. * src/OptionHandlerFactory.cc
  3425. * src/option_processing.cc
  3426. * src/usage_text.h
  3427. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Changed -s options behavior. Now it means the number of connections
  3429. made simultaneously in each http/ftp download.
  3430. If 1 URL is specified, the behavior is the same with old implementation.
  3431. If -s N is given and more than N URLs are specified, first N URLs are
  3432. used and remaining URLs are used for backup. If less than N URLs are
  3433. specified, some of URLs are used more than once so that totally N
  3434. connections are made simultaneously.
  3435. * src/main.cc
  3436. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3437. Included missing iosfwd or ostream header.
  3438. * src/RequestGroupMan.cc
  3439. * src/TaggedItem.cc
  3440. * src/TaggedItem.h
  3441. * src/Util.cc
  3442. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3443. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3444. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3445. * src/HttpConnection.cc: Included missing sstream.
  3446. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3447. Added --bt-max-open-files option.
  3448. * src/DefaultPieceStorage.cc
  3449. * src/HelpItemFactory.cc
  3450. * src/MultiDiskAdaptor.cc
  3451. * src/MultiDiskAdaptor.h
  3452. * src/OptionHandlerFactory.cc
  3453. * src/option_processing.cc
  3454. * src/prefs.cc
  3455. * src/prefs.h
  3456. * src/usage_text.h
  3457. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Fixed the bug that aria2 aborts when a path to a directory is given
  3459. in command-line.
  3460. * src/ProtocolDetector.cc
  3461. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3462. Limited the number files opened in each BitTorrent download. The default
  3463. value is 100. The option to change this value will be added.
  3464. * src/MultiDiskAdaptor.cc
  3465. * src/MultiDiskAdaptor.h
  3466. * src/MultiFileAllocationIterator.cc
  3467. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Fixed the bug that HTTP downloads don't start with old libraries.
  3469. * src/HttpHeaderProcessor.cc
  3470. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Use empty() instead of size() > 0.
  3472. * src/HttpConnection.cc
  3473. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. Drop connection if the incoming peer ID is the same with localhost's
  3475. one. The previous implementation drops connection when incoming peer's
  3476. IP address is the same with localhost's one.
  3477. * src/PeerListenCommand.cc
  3478. * src/DefaultBtInteractive.cc
  3479. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Returns cached data without checking whether socket is readable
  3481. if the cache is available.
  3482. * src/PeerConnection.cc (receiveHandshake)
  3483. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. Included stdint.h
  3485. * src/common.h
  3486. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Removed duplicate HAVE_GETTIMEOFDAY
  3488. * src/Makefile.am
  3489. * src/Makefile.in
  3490. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Use interval as a minInterval when minInterval is not supplied.
  3492. * src/DefaultBtAnnounce.cc
  3493. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3494. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3495. attempt is failed, then 2nd attempt get kicked out more quickly.
  3496. And it is now static const member of DefaultBtAnnounce.
  3497. * src/DefaultBtAnnounce.h
  3498. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3499. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3500. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3501. * src/ActivePeerConnectionCommand.cc
  3502. * src/BtConstants.h
  3503. * src/BtRuntime.h
  3504. * src/DHTGetPeersCommand.cc
  3505. * src/DefaultBtAnnounce.cc
  3506. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3507. BtRuntime::MAX_PEERS.
  3508. * src/DefaultPeerStorage.h
  3509. * src/InitiatorMSEHandshakeCommand.cc
  3510. * src/PeerInitiateConnectionCommand.cc
  3511. * src/PeerInteractionCommand.cc
  3512. * src/PeerReceiveHandshakeCommand.cc
  3513. * src/TrackerWatcherCommand.cc
  3514. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Always Connect to _numNewConnection
  3516. * src/ActivePeerConnectionCommand.cc
  3517. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Made `begin' unsigned int.
  3519. * src/GrowSegment.h
  3520. * src/Piece.cc
  3521. * src/Piece.h
  3522. * src/PiecedSegment.cc
  3523. * src/PiecedSegment.h
  3524. * src/Segment.h
  3525. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Calculate piece hash when data is arrived if the data is arrived in
  3527. order. This removes additional read operation for hash calculation.
  3528. If the data is arrived in out of order, the hash is calucated when the
  3529. piece is completed. This is the same behavior as the old implementation.
  3530. * src/BtPieceMessage.cc
  3531. * src/DefaultBtProgressInfoFile.cc
  3532. * src/DefaultPieceStorage.cc
  3533. * src/DownloadCommand.cc
  3534. * src/DownloadCommand.h
  3535. * src/DownloadEngine.cc
  3536. * src/GrowSegment.cc
  3537. * src/GrowSegment.h
  3538. * src/Piece.cc
  3539. * src/Piece.h
  3540. * src/PiecedSegment.cc
  3541. * src/PiecedSegment.h
  3542. * src/Segment.h
  3543. * test/PieceTest.cc
  3544. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. Try to keep the ordering of outgoing piece message.
  3546. * src/DefaultBtMessageDispatcher.cc
  3547. (DefaultBtMessageDispatcher::sendMessages)
  3548. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Fixed busy loop when error/hup epoll events occur.
  3550. * src/AbstractCommand.cc
  3551. * src/PeerAbstractCommand.cc
  3552. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3553. Added --bt-request-peer-speed-limit option, which was a constant
  3554. SLOW_SPEED_THRESHOLD.
  3555. * src/ActivePeerConnectionCommand.cc
  3556. * src/ActivePeerConnectionCommand.h
  3557. * src/BtConstants.h
  3558. * src/HelpItemFactory.cc
  3559. * src/OptionHandlerFactory.cc
  3560. * src/PeerReceiveHandshakeCommand.cc
  3561. * src/option_processing.cc
  3562. * src/prefs.cc
  3563. * src/prefs.h
  3564. * src/usage_text.h
  3565. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. Removed repeated call of getTopDirPath(). Instead, call it once and
  3567. cache the result.
  3568. * src/MultiDiskAdaptor.cc
  3569. * src/MultiDiskAdaptor.h
  3570. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3571. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Fixed compile error on debian etch.
  3573. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3574. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3575. it is undefined.
  3576. * src/Util.cc (ULLONG_MAX)
  3577. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Added epoll support. Use epoll if it is available. If not, use select.
  3579. When async dns is enabled in compile time, epoll support is enabled
  3580. only when aria2 is built with c-ares. This condition statement is
  3581. defined in a2io.h.
  3582. Currently aria2 supports both c-ares and ares, but ares is maintained
  3583. for quite a while and debian already has c-ares package, ares support
  3584. will be dropped in the future version.
  3585. * configure.ac
  3586. * src/AbstractCommand.cc
  3587. * src/AsyncNameResolver.cc
  3588. * src/AsyncNameResolver.h
  3589. * src/Command.cc
  3590. * src/Command.h
  3591. * src/DownloadEngine.cc
  3592. * src/DownloadEngine.h
  3593. * src/PeerAbstractCommand.cc
  3594. * src/SocketCore.cc
  3595. * src/SocketCore.h
  3596. * src/a2io.h
  3597. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3599. directive.
  3600. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Do not do write operation to /dev/null file.
  3602. * src/LogFactory.cc
  3603. * src/SimpleLogger.cc
  3604. Replaced vasprintf with vsnprintf
  3605. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3606. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. * src/BtRequestMessage.cc
  3608. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3609. for segmentation fault caused by previous commit.
  3610. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Reduced the usage of gettimeofday().
  3612. * src/DefaultBtMessageDispatcher.cc
  3613. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3614. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3615. * src/RequestSlot.cc
  3616. * src/RequestSlot.h
  3617. (RequestSlot::isTimeout)
  3618. Made RequestSlot have a reference to Piece object to avoid find
  3619. Piece repeatedly.
  3620. * src/DefaultBtMessageDispatcher.cc
  3621. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3622. * src/RequestSlot.cc
  3623. * src/RequestSlot.h
  3624. (RequestSlot::getPiece)
  3625. * test/DefaultBtMessageDispatcherTest.cc
  3626. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3627. * src/TimeA2.cc
  3628. * src/TimeA2.h
  3629. (Time::difference): New function.
  3630. (Time::elapsed): Done optimization.
  3631. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3633. directive.
  3634. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3635. * src/option_processing.cc: Added missing `defined' keyword to #if
  3636. directive.
  3637. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3638. Bump up version number to 0.13.2+1
  3639. * src/configure.ac
  3640. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3641. Refactored broken outstanding piece handling.
  3642. * src/DefaultPieceStorage.cc
  3643. * src/DefaultPieceStorage.h
  3644. * src/Piece.cc
  3645. * src/Piece.h
  3646. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3648. name collision of static variable and predefined macro.
  3649. * src/BtContext.cc
  3650. * src/BtContext.h
  3651. * src/CookieBoxFactory.cc
  3652. * src/CookieBoxFactory.h
  3653. * src/CookieParser.cc
  3654. * src/CookieParser.h
  3655. * src/DefaultBtContext.cc
  3656. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. * src/RequestGroup.cc
  3658. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3659. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. * Release 0.13.2
  3661. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3663. * po/fr.po
  3664. * po/ja.po
  3665. * po/aria2c.pot
  3666. * po/*.po
  3667. * po/*.gmo
  3668. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Bump up version number to 0.13.2
  3670. * src/configure.ac
  3671. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3672. Refactord.
  3673. * src/RequestGroupMan.cc
  3674. (removeStoppedGroup)
  3675. (fillRequestGroupFromReserver)
  3676. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3677. Fixed compile error on Ubuntu.
  3678. * src/BtPieceMessage.cc
  3679. * src/MessageDigestHelper.cc
  3680. * src/Util.cc
  3681. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Fixed compile error when configured with --disable-bittorrent
  3683. * test/DownloadHandlerFactoryTest.cc
  3684. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3685. Done make update-po
  3686. * po/aria2c.pot
  3687. * po/*.po
  3688. * po/*.gmo
  3689. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3690. Bump up version number to 0.13.2rc.
  3691. * src/configure.ac
  3692. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Made option name bold. Updated SYNOPSIS to make it more readable.
  3694. * doc/aria2c.1.txt
  3695. * doc/aria2c.1
  3696. * doc/aria2c.1.html
  3697. * src/version_usage.cc
  3698. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3699. Refactored. Use std::string instead of size and char*.
  3700. * Data.cc
  3701. * Data.h
  3702. * test/Data.cc
  3703. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Added trimSelf(). Rewritten trim() to use trimSelf().
  3705. * Util.cc
  3706. * Util.h
  3707. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3708. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3709. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Fixed compile error when configured with --disable-metalink.
  3711. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3712. * test/FeatureConfigTest.cc
  3713. * test/DownloadHandlerFactoryTest.cc
  3714. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Fixed compile error when configured with --without-gnutls
  3716. --without-openssl
  3717. * src/main.cc
  3718. * test/DefaultBtProgressInfoFileTest.cc
  3719. * test/SegmentManTest.cc
  3720. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Fixed compile error with OpenSSL.
  3722. * src/IteratableChunkChecksumValidator.cc
  3723. * src/LibsslDHKeyExchange.h
  3724. * src/MessageDigestHelper.cc
  3725. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. Revert the default value of --max-concurrent-downloads to 5.
  3727. Revert the default value of --metalink-servers to 5.
  3728. Man pages was also updated.
  3729. * src/option_processing.cc
  3730. * doc/aria2c.1.txt
  3731. * doc/aria2c.1.html
  3732. * doc/aria2c.1
  3733. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3734. Returns const reference:
  3735. DownloadContext::getPieceHash, DownloadContext::getName,
  3736. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3737. BtContext::getInfoHashAsString,
  3738. * src/BtContext.h
  3739. * src/DefaultBtContext.cc
  3740. * src/DefaultBtContext.h
  3741. * src/DownloadContext.h
  3742. * src/SingleFileDownloadContext.h
  3743. * test/MockBtContext.h
  3744. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. * src/RequestGroup.h (getDir): Removed.
  3746. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3747. Returns const reference. The internal urlencode function was optimized
  3748. a little bit.
  3749. * src/Request.cc
  3750. * src/Request.h
  3751. * src/HttpRequest.cc
  3752. * src/HttpRequest.h
  3753. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Defined option name and possible values as std::string to reduce
  3755. temporary string object creation in runtime.
  3756. * src/HelpItemFactory.cc
  3757. * src/LogFactory.cc
  3758. * src/Option.cc
  3759. * src/OptionHandlerFactory.cc
  3760. * src/option_processing.cc
  3761. * src/prefs.cc
  3762. * src/prefs.h
  3763. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3764. Return const reference.
  3765. * src/DownloadHandlerConstants.cc
  3766. * src/DownloadHandlerConstants.h
  3767. (getMetalinkExtensions)
  3768. (getMetalinkContentTypes)
  3769. (getBtExtensions)
  3770. (getBtContentTypes)
  3771. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3772. * src/HttpHeader.cc (get): Rewritten.
  3773. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3774. Make HttpHeader::getFirst(...) return const reference.
  3775. * src/HttpHeader.cc
  3776. * src/HttpHeader.h
  3777. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3778. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3779. it with V_TRUE.
  3780. * src/DefaultPieceStorage.cc
  3781. * src/DownloadCommand.cc
  3782. * src/FtpNegotiationCommand.cc
  3783. * src/HttpRequest.cc
  3784. * src/InitiateConnectionCommand.cc
  3785. * src/RequestGroup.cc
  3786. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3787. Made Option::get(...) return const reference of std::string.
  3788. * src/Option.cc
  3789. * src/Option.h
  3790. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Replaced std:copy with insert.
  3792. * src/DefaultBtMessageDispatcher.cc
  3793. * src/DefaultPieceStorage.cc
  3794. * src/DownloadEngineFactory.cc
  3795. * src/RequestGroup.cc
  3796. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3797. Included SocketCore.h to fix compiler warning.
  3798. * src/InitiateConnectionCommand.cc
  3799. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Put piece selection strategy algorithm to RarestPieceSelector class,
  3801. Added a switch to choose whether randomized selection so that unit
  3802. tests emit same results in, possibly, win32.
  3803. * src/DefaultPieceStorage.cc
  3804. * src/DefaultPieceStorage.h
  3805. * src/RarestPieceSelector.cc
  3806. * src/RarestPieceSelector.h
  3807. * test/DefaultPieceStorageTest.cc
  3808. * test/RarestPieceSelectorTest.cc
  3809. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3810. Don't pool connection if HTTP proxy is enabled.
  3811. * src/FtpFinishDownloadCommand.cc
  3812. * src/FtpNegotiationCommand.cc
  3813. * src/HttpSkipResponseCommand.cc
  3814. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3815. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3816. * src/AbstractCommand.cc
  3817. * src/AbstractCommand.h
  3818. * src/ActivePeerConnectionCommand.cc
  3819. * src/FtpInitiateConnectionCommand.cc
  3820. * src/HttpInitiateConnectionCommand.cc
  3821. * src/InitiateConnectionCommandFactory.cc
  3822. * src/PeerAbstractCommand.cc
  3823. * src/PeerAbstractCommand.h
  3824. * src/PeerInitiateConnectionCommand.cc
  3825. * src/TrackerWatcherCommand.cc
  3826. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Sort RequestSlot in ascending order and manipulate them using
  3828. lower_bound.
  3829. * src/DefaultBtMessageDispatcher.cc
  3830. * src/DefaultBtMessageDispatcher.h
  3831. (getMessageQueue): Added const qualifier.
  3832. (getRequestSlots): Added const qualifier.
  3833. (sendMessages): Use empty() instead of size().
  3834. (doCancelSendingPieceAction): Use HandleEvent object.
  3835. (doAbortOutstandingRequestAction): Rewritten.
  3836. (doChokedAction): Rewritten.
  3837. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3838. (isOutstandingRequest): Rewritten.
  3839. (getOutstandingRequest): Rewritten.
  3840. (removeOutstandingRequest): Rewritten.
  3841. (addOutstandingRequest): Rewritten.
  3842. * src/RequestSlot.cc
  3843. * src/RequestSlot.h
  3844. (operator=): Rewritten.
  3845. (operator!=): New function.
  3846. (operator<): New function.
  3847. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. * src/DefaultBtRequestFactory.cc
  3849. (doChokedAction): Rewritten.
  3850. (removeCompletedPiece): Rewritten.
  3851. (removeTargetPiece): Rewritten.
  3852. (createRequestMessages): Added the debug log.
  3853. (createRequestMessagesOnEndGame: Added the debug log.
  3854. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3855. Added the debug log message.
  3856. * src/BtPieceMessage.cc (doReceivedAction)
  3857. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3858. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3859. used lower_bound to process them rather than linear search.
  3860. * src/DHTPeerAnnounceStorage.cc
  3861. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3863. peer has at least one completed piece.
  3864. * src/Peer.cc
  3865. * src/Peer.h
  3866. * src/PeerInteractionCommand.cc
  3867. * src/PeerSessionResource.cc
  3868. * src/PeerSessionResource.h
  3869. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Removed unnecessary sorting
  3871. * src/DefaultPieceStorage (DefaultPieceStorage)
  3872. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Rewritten the portion of the code that mangaes allowed fast indexes.
  3874. * src/PeerSessionResource.cc
  3875. * src/PeerSessionResource.h
  3876. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Removed the invalid string including '\r' from ru.po and
  3878. did make update-po.
  3879. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3880. Added --log-level and --summary-interval to man page.
  3881. * doc/aria2c.1.txt
  3882. * doc/aria2c.1.html
  3883. * doc/aria2c.1
  3884. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3885. Added --log-level option to specify log level. Log messages under
  3886. the specified level are not output. Default value is `debug'.
  3887. * src/HelpItemFactory.cc
  3888. * src/LogFactory.cc
  3889. * src/LogFactory.h
  3890. * src/Logger.h
  3891. * src/OptionHandlerFactory.cc
  3892. * src/SimpleLogger.cc
  3893. * src/SimpleLogger.h
  3894. * src/main.cc
  3895. * src/option_processing.cc
  3896. * src/prefs.h
  3897. * src/usage_text.h
  3898. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Print download progress summary of all parallel downloads in specified
  3900. interval, default 60 secs. While aria2 could download several files
  3901. in parallel (see -j option), it displayed just first download progress,
  3902. and the other downloads are hidden from the users. This new feature
  3903. prints all downloads currently in-progress to the console so that you
  3904. can check the status of all downloads. The interval can be adjusted
  3905. by --summary-interval option.
  3906. The progress readout is now cut so that all fits in the one line of
  3907. console.
  3908. * src/ConsoleStatCalc.cc
  3909. * src/ConsoleStatCalc.h
  3910. * src/HelpItemFactory.cc
  3911. * src/OptionHandlerFactory.cc
  3912. * src/RequestGroupMan.cc
  3913. * src/RequestGroupMan.h
  3914. * src/main.cc
  3915. * src/option_processing.cc
  3916. * src/prefs.h
  3917. * src/usage_text.h
  3918. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3919. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3920. * src/DownloadEngine.cc (DownloadEngine)
  3921. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3923. defined.
  3924. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3925. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Use erase+lower_bound+insert instead of sort.
  3927. * src/DefaultPieceStorage.cc (addPieceStats)
  3928. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3929. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3930. * src/A2STR.cc
  3931. * src/A2STR.h
  3932. * src/OptionParser.cc (parse)
  3933. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. Defined fake filename `[tracker.announce]' as static const std::string.
  3935. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3936. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. Defined default filename `index.html' as static const std::string
  3938. * src/SingleFileDownloadContext.cc
  3939. * src/SingleFileDownloadContext.h
  3940. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Defined "[MEMORY]" as static const std::string.
  3942. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3943. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Defined control file's version number as static const std::string.
  3945. * src/DefaultBtProgressInfoFile.cc
  3946. * src/DefaultBtProgressInfoFile.h
  3947. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3948. Use Request::METHOD_GET
  3949. * src/RequestGroup.cc (createNextCommandWithAdj)
  3950. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Defined "OK", "ERR", "INPR" as static const std::string
  3952. * src/RequestGroupMan.cc (showDownloadResults)
  3953. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Defined default client used in extended handshake as static const
  3955. std::string
  3956. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3957. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3959. * src/HttpConnection.cc (eraseConfidentialInfo)
  3960. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Defined default ftp user and password as static const std::string
  3962. * src/AuthConfigFactory.cc
  3963. * src/AuthConfigFactory.h
  3964. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Defined strings used in netrc as static const std::string
  3966. * src/Netrc.cc
  3967. * src/Netrc.h
  3968. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Defined HTTP status as static const std::string
  3970. * src/AbstractProxyResponseCommand.cc
  3971. * src/HttpHeader.cc
  3972. * src/HttpHeader.h
  3973. * src/HttpResponse.cc
  3974. * src/HttpResponseCommand.cc
  3975. * src/HttpSkipResponseCommand.cc
  3976. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3977. Defined "\r\n", "A", "I" as static const std::string
  3978. * src/A2STR.cc
  3979. * src/A2STR.h
  3980. * src/FtpConnection.cc
  3981. * src/FtpConnection.h
  3982. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3983. Added COLON_C(".") and used it in Request::parseUrl()
  3984. * src/A2STR.cc
  3985. * src/A2STR.h
  3986. * src/Request.cc (parseUrl)
  3987. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3988. Changed the type of padName from `const std::string&' to `const char*'.
  3989. * src/MSEHandshake.cc (verifyPadLength)
  3990. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Defined "sha1" as static const std::string.
  3992. * src/MetalinkParserController.cc
  3993. * src/MetalinkParserController.h
  3994. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3995. Defined message digest algorithm name as static const std::string
  3996. * src/DHTTokenTracker.cc
  3997. * src/DHTUtil.cc
  3998. * src/DefaultBtContext.cc
  3999. * src/MSEHandshake.cc
  4000. * src/MessageDigestHelper.cc
  4001. * src/Peer.cc
  4002. * src/messageDigest.cc
  4003. * src/messageDigest.h
  4004. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. Made string literals used in SAX parser static const std::string.
  4006. * src/FileMetalinkParserState.cc
  4007. * src/FileMetalinkParserState.h
  4008. * src/FilesMetalinkParserState.cc
  4009. * src/FilesMetalinkParserState.h
  4010. * src/InitialMetalinkParserState.cc
  4011. * src/InitialMetalinkParserState.h
  4012. * src/MetalinkMetalinkParserState.cc
  4013. * src/MetalinkMetalinkParserState.h
  4014. * src/PiecesMetalinkParserState.cc
  4015. * src/PiecesMetalinkParserState.h
  4016. * src/ResourcesMetalinkParserState.cc
  4017. * src/ResourcesMetalinkParserState.h
  4018. * src/VerificationMetalinkParserState.cc
  4019. * src/VerificationMetalinkParserState.h
  4020. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4022. * src/A2STR.cc
  4023. * src/A2STR.h
  4024. * src/File.cc
  4025. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Defined static const std::string IP("ip"), PORT("port") and use them
  4027. instead of string literals.
  4028. * src/DefaultPeerListProcessor.cc
  4029. * src/DefaultPeerListProcessor.h
  4030. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4031. Made string literals for torrent file processing static const
  4032. std::string.
  4033. * src/BtContext.cc
  4034. * src/BtContext.h
  4035. * src/DefaultBtContext.cc
  4036. * src/DefaultBtContext.h
  4037. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Made string literal for tracker response static const std::string
  4039. * src/BtAnnounce.cc
  4040. * src/BtAnnounce.h
  4041. * src/DefaultBtAnnounce.cc
  4042. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Use DHTMessage::T instead of "t".
  4044. * src/DHTMessageTracker.cc (messageArrived)
  4045. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Made keyName static const. Made trimmed charset static const
  4047. std::string.
  4048. * src/Util.cc (getContentDispositionFilename)
  4049. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Made USER_AGENT const. Made "/" static const std::string.
  4051. * src/A2STR.cc
  4052. * src/A2STR.h
  4053. * src/HttpRequest.cc
  4054. * src/HttpRequest.h
  4055. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4056. Made string listeral to static const std::string:
  4057. "Content-Range", "Content-Length"
  4058. * src/HttpHeader.cc
  4059. * src/HttpHeader.h
  4060. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4061. Made string listeral to static const std::string.
  4062. * src/HttpConnection.cc
  4063. * src/HttpHeader.cc
  4064. * src/HttpHeader.h
  4065. * src/HttpResponse.cc
  4066. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Made string listeral to static const std::string.
  4068. * src/A2STR.cc
  4069. * src/A2STR.h
  4070. * src/SimpleLogger.cc
  4071. * src/SimpleLogger.h
  4072. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Made string literal to static const std::string.
  4074. Rewritten CookieParser::setField.
  4075. * src/A2STR.cc
  4076. * src/A2STR.h
  4077. * src/CookieBoxFactory.cc
  4078. * src/CookieBoxFactory.h
  4079. * src/CookieParser.cc
  4080. * src/CookieParser.h
  4081. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4082. Made string literal to static const std::string
  4083. * src/DHTAbstractMessage.cc
  4084. * src/DHTAnnouncePeerMessage.cc
  4085. * src/DHTAnnouncePeerMessage.h
  4086. * src/DHTAnnouncePeerReplyMessage.cc
  4087. * src/DHTAnnouncePeerReplyMessage.h
  4088. * src/DHTFindNodeMessage.cc
  4089. * src/DHTFindNodeMessage.h
  4090. * src/DHTFindNodeReplyMessage.cc
  4091. * src/DHTFindNodeReplyMessage.h
  4092. * src/DHTGetPeersMessage.cc
  4093. * src/DHTGetPeersMessage.h
  4094. * src/DHTGetPeersReplyMessage.cc
  4095. * src/DHTGetPeersReplyMessage.h
  4096. * src/DHTMessage.cc
  4097. * src/DHTMessage.h
  4098. * src/DHTMessageFactoryImpl.cc
  4099. * src/DHTMessageReceiver.cc
  4100. * src/DHTPingMessage.cc
  4101. * src/DHTPingMessage.h
  4102. * src/DHTPingReplyMessage.cc
  4103. * src/DHTPingReplyMessage.h
  4104. * src/DHTQueryMessage.cc
  4105. * src/DHTQueryMessage.h
  4106. * src/DHTResponseMessage.cc
  4107. * src/DHTResponseMessage.h
  4108. * src/DHTUnknownMessage.cc
  4109. * src/DHTUnknownMessage.h
  4110. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Made string literal to static const std::string
  4112. * src/BtChokeMessage.cc (toString)
  4113. * src/BtHaveAllMessage.cc (toString)
  4114. * src/BtHaveNoneMessage.cc (toString)
  4115. * src/BtInterestedMessage.cc (toString)
  4116. * src/BtNotInterestedMessage.cc (toString)
  4117. * src/BtUnchokeMessage.cc (toString)
  4118. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. Replaced "" with static const variable A2STR::NIL.
  4120. Replaced string comparison against "" with std::string::empty().
  4121. Added PROTO_* to Request class and use them as a protocol string
  4122. constant.
  4123. Made "started", "stopped", "completed" static const variable in
  4124. AnnounceList class.
  4125. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Updated translations. Great thanks to translators.
  4127. * po/ca.po
  4128. * po/de.po
  4129. * po/fr.po
  4130. * po/it.po
  4131. * po/ja.po
  4132. * po/ru.po
  4133. * po/zh_CN.po
  4134. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Updated man page; categorized options and fixed typo.
  4136. * doc/aria2c.1.txt
  4137. * doc/aria2c.1.html
  4138. * doc/aria2c.1
  4139. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4140. Removed const ref
  4141. * src/MetalinkEntry.cc (AddProtocolPreference)
  4142. * src/RequestGroup.cc (FindServerHostByHostname)
  4143. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Rewritten Accept-Features handling.
  4145. * src/HttpRequestCommand.cc (createHttpRequest)
  4146. * src/a2functional.h
  4147. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4148. Changed method signature:
  4149. DHTAbstractNodeLookupTask::toEntries
  4150. * src/DHTAbstractNodeLookupTask.cc
  4151. * src/DHTAbstractNodeLookupTask.h
  4152. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Changed method signature:
  4154. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4155. * src/BtContext.h
  4156. * src/DefaultBtContext.cc
  4157. * src/DefaultBtContext.h
  4158. * src/DefaultBtInteractive.cc
  4159. * test/DefaultBtContextTest.cc
  4160. * test/MockBtContext.h
  4161. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Changed method signature:
  4163. MultiFileAllocationIterator::makeDiskWriterEntries
  4164. * src/MultiFileAllocationIterator.cc
  4165. * src/MultiFileAllocationIterator.h
  4166. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Changed method sinature:
  4168. MetalinkEntry::toFileEntry,
  4169. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4170. Metalinker::queryEntry
  4171. * src/Metalink2RequestGroup.cc
  4172. * src/MetalinkEntry.cc
  4173. * src/MetalinkEntry.h
  4174. * src/MetalinkHelper.cc
  4175. * src/MetalinkHelper.h
  4176. * src/Metalinker.cc
  4177. * src/Metalinker.h
  4178. * src/main.cc
  4179. * test/MetalinkHelperTest.cc
  4180. * test/MetalinkerTest.cc
  4181. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Changed method sinature:
  4183. RequestGroup::getURIs
  4184. * src/RequestGroup.cc
  4185. * src/RequestGroup.h
  4186. * test/Metalink2RequestGroupTest.cc
  4187. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4188. Changed method signature:
  4189. PeerListProcessor::extractPeer
  4190. * src/CompactPeerListProcessor.cc
  4191. * src/CompactPeerListProcessor.h
  4192. * src/DefaultBtAnnounce.cc
  4193. * src/DefaultPeerListProcessor.cc
  4194. * src/DefaultPeerListProcessor.h
  4195. * src/DelegatingPeerListProcessor.cc
  4196. * src/DelegatingPeerListProcessor.h
  4197. * src/PeerListProcessor.h
  4198. * src/UTPexExtensionMessage.cc
  4199. * test/DefaultPeerListProcessorTest.cc
  4200. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Changed method signature:
  4202. BtRequestFactory::createRequestMessages,
  4203. BtRequestFactory::createRequestMessagesOnEndGame
  4204. * src/BtRequestFactory.h
  4205. * src/DefaultBtInteractive.cc
  4206. * src/DefaultBtRequestFactory.cc
  4207. * src/DefaultBtRequestFactory.h
  4208. * test/DefaultBtRequestFactoryTest.cc
  4209. * test/MockBtRequestFactory.h
  4210. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4211. Changed method signature:
  4212. PieceStorage::getInFlightPieces
  4213. * src/DefaultBtProgressInfoFile.cc
  4214. * src/DefaultPieceStorage.cc
  4215. * src/DefaultPieceStorage.h
  4216. * src/PieceStorage.h
  4217. * src/UnknownLengthPieceStorage.cc
  4218. * src/UnknownLengthPieceStorage.h
  4219. * test/DefaultBtProgressInfoFileTest.cc
  4220. * test/MockPieceStorage.h
  4221. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. Changed method signature:
  4223. PostDownloadHandler::getNextRequestGroups
  4224. Metalink2RequestGroup::generate
  4225. RequestGroup::postDownloadProcessing
  4226. * src/BtPostDownloadHandler.cc
  4227. * src/BtPostDownloadHandler.h
  4228. * src/Metalink2RequestGroup.cc
  4229. * src/Metalink2RequestGroup.h
  4230. * src/MetalinkPostDownloadHandler.cc
  4231. * src/MetalinkPostDownloadHandler.h
  4232. * src/PostDownloadHandler.h
  4233. * src/RequestGroup.cc
  4234. * src/RequestGroup.h
  4235. * src/RequestGroupMan.cc
  4236. * src/main.cc
  4237. * test/BtPostDownloadHandlerTest.cc
  4238. * test/Metalink2RequestGroupTest.cc
  4239. * test/MetalinkPostDownloadHandlerTest.cc
  4240. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. Rewritten AccRequestGroup
  4242. * src/main.cc
  4243. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4244. Rewritten.
  4245. * src/TaggedItem.cc (toTagString)
  4246. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Rewritten Accept-Features handling.
  4248. * src/HttpRequestCommand.cc (createHttpRequest)
  4249. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4250. Rewritten accept types handling.
  4251. * HttpRequest.cc (createRequest)
  4252. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Rewritten
  4254. * src/FeatureConfig.cc (featureSummary)
  4255. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4256. Changed method signature:
  4257. PeerStorage::getActivePeers
  4258. * src/DHTPeerAnnounceEntry.cc
  4259. * src/DefaultPeerStorage.cc
  4260. * src/DefaultPeerStorage.h
  4261. * src/PeerStorage.h
  4262. * test/DefaultPeerStorageTest.cc
  4263. * test/MockPeerStorage.h
  4264. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Changed method signature:
  4266. DHTPeerAnnounceStorage::getPeers,
  4267. DHTPeerAnnounceEntry::getPeers
  4268. * src/DHTGetPeersMessage.cc
  4269. * src/DHTPeerAnnounceEntry.cc
  4270. * src/DHTPeerAnnounceEntry.h
  4271. * src/DHTPeerAnnounceStorage.cc
  4272. * src/DHTPeerAnnounceStorage.h
  4273. * test/DHTAnnouncePeerMessageTest.cc
  4274. * test/DHTPeerAnnounceEntryTest.cc
  4275. * test/DHTPeerAnnounceStorageTest.cc
  4276. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. Changed method signature:
  4278. NameResolver::resolve
  4279. * src/DHTEntryPointNameResolveCommand.cc
  4280. * src/InitiateConnectionCommand.cc
  4281. * src/NameResolver.cc
  4282. * src/NameResolver.h
  4283. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4284. Changed method signature:
  4285. PieceStorage::getAdvertisedPieceIndexes
  4286. * src/DefaultBtInteractive.cc
  4287. * src/DefaultPieceStorage.cc
  4288. * src/DefaultPieceStorage.h
  4289. * src/PieceStorage.h
  4290. * src/UnknownLengthPieceStorage.h
  4291. * test/MockPieceStorage.h
  4292. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Changed method signature:
  4294. SegmentMan::getInFlightSegment
  4295. * src/AbstractCommand.cc
  4296. * src/SegmentMan.cc
  4297. * src/SegmentMan.h
  4298. * test/SegmentManTest.cc
  4299. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4300. Changed method signature:
  4301. DHTAbstractNodeLookupTask::getNodesFromMessage
  4302. * src/DHTAbstractNodeLookupTask.cc
  4303. * src/DHTAbstractNodeLookupTask.h
  4304. * src/DHTNodeLookupTask.cc
  4305. * src/DHTNodeLookupTask.h
  4306. * src/DHTPeerLookupTask.cc
  4307. * src/DHTPeerLookupTask.h
  4308. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4310. * src/AbstractCommand.cc
  4311. * src/BtCheckIntegrityEntry.cc
  4312. * src/BtCheckIntegrityEntry.h
  4313. * src/BtFileAllocationEntry.cc
  4314. * src/BtFileAllocationEntry.h
  4315. * src/BtSetup.cc
  4316. * src/BtSetup.h
  4317. * src/CheckIntegrityCommand.cc
  4318. * src/CheckIntegrityEntry.h
  4319. * src/ChecksumCheckIntegrityEntry.cc
  4320. * src/ChecksumCheckIntegrityEntry.h
  4321. * src/DHTSetup.cc
  4322. * src/DHTSetup.h
  4323. * src/DownloadEngine.cc
  4324. * src/FileAllocationCommand.cc
  4325. * src/FileAllocationEntry.h
  4326. * src/RequestGroup.cc
  4327. * src/RequestGroup.h
  4328. * src/RequestGroupMan.cc
  4329. * src/RequestGroupMan.h
  4330. * src/StreamCheckIntegrityEntry.cc
  4331. * src/StreamCheckIntegrityEntry.h
  4332. * src/StreamFileAllocationEntry.cc
  4333. * src/StreamFileAllocationEntry.h
  4334. * src/TrackerWatcherCommand.cc
  4335. * src/a2functional.h
  4336. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4337. Changed method signature:
  4338. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4339. DHTBucket::getGoodNodes,
  4340. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4341. * src/BNode.cc
  4342. * src/BNode.h
  4343. * src/DHTAbstractNodeLookupTask.cc
  4344. * src/DHTAutoSaveCommand.cc
  4345. * src/DHTBucket.cc
  4346. * src/DHTBucket.h
  4347. * src/DHTBucketRefreshTask.cc
  4348. * src/DHTFindNodeMessage.cc
  4349. * src/DHTGetPeersMessage.cc
  4350. * src/DHTRoutingTable.cc
  4351. * src/DHTRoutingTable.h
  4352. * test/BNodeTest.cc
  4353. * test/DHTBucketTest.cc
  4354. * test/DHTRoutingTableTest.cc
  4355. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. In piece selection functions, Pass std::deque<...> by reference rather
  4357. than returning it.
  4358. * src/BitfieldMan.cc
  4359. * src/BitfieldMan.h
  4360. * src/DefaultBtRequestFactory.cc
  4361. * src/DefaultPieceStorage.cc
  4362. * src/Piece.cc
  4363. * src/Piece.h
  4364. * test/BitfieldManTest.cc
  4365. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4366. Implemented rarest piece first piece selection strategy.
  4367. * src/AbstractBtMessage.cc
  4368. * src/AbstractBtMessage.h
  4369. * src/BitfieldMan.cc
  4370. * src/BitfieldMan.h
  4371. * src/BtBitfieldMessage.cc
  4372. * src/BtHaveAllMessage.cc
  4373. * src/BtHaveMessage.cc
  4374. * src/DefaultPieceStorage.cc
  4375. * src/DefaultPieceStorage.h
  4376. * src/PeerInteractionCommand.cc
  4377. * src/PieceStorage.h
  4378. * src/UnknownLengthPieceStorage.h
  4379. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4380. Rewritten readData and writeData.
  4381. * src/MultiDiskAdaptor.cc
  4382. * src/MultiDiskAdaptor.h
  4383. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4384. Move \n out of the message "Usage: ...".
  4385. * src/version_usage.cc
  4386. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4387. Bump up version number to 0.13.2b.
  4388. * configure.ac
  4389. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Added const qualifier to argument Exception& e.
  4391. * src/Logger.h
  4392. * src/SimpleLogger.cc
  4393. * src/SimpleLogger.h
  4394. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Pool connection when CWD, SIZE command fails.
  4396. * src/FtpNegotiationCommand.cc
  4397. * src/FtpNegotiationCommand.h
  4398. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4400. * src/HttpResponseCommand.cc
  4401. * src/HttpSkipResponseCommand.cc
  4402. * src/HttpSkipResponseCommand.h
  4403. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Pool connection when a server returns 4xx, 5xx responses.
  4405. * src/HttpNullDownloadCommand.cc
  4406. * src/HttpNullDownloadCommand.h
  4407. * src/HttpResponse.cc
  4408. * src/HttpResponse.h
  4409. * src/HttpResponseCommand.cc
  4410. * src/HttpResponseCommand.h
  4411. * test/HttpResponseTest.cc
  4412. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4413. Print usage when no URL is specifed or bad command-line option is
  4414. specified.
  4415. * src/HelpItemFactory.cc
  4416. * src/help_tags.h
  4417. * src/option_processing.cc
  4418. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Removed duplicate log message.
  4420. * src/AbstractCommand.cc (asyncResolveHostname)
  4421. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4423. Changed -j option's default value from 5 to 1.
  4424. Added new examples using protocol auto detection feature.
  4425. Removed -T, -M usage where it can be omitted.
  4426. * doc/aria2c.1.txt
  4427. * doc/aria2c.1.html
  4428. * doc/aria2c.1.txt
  4429. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Updated command-line usage text, so that it tells users that they
  4431. can specify any number of torrent files and metalink files in
  4432. command-line.
  4433. * src/version_usage.cc
  4434. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Changed the default value of -j option to 1.
  4436. * src/HelpItemFactory.cc
  4437. * src/option_processing.cc
  4438. * src/usage_text.h
  4439. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Added the ability to reuse connection in FTP and it is enabled by
  4441. default. It can be disabled by --ftp-reuse-connection=false option.
  4442. * src/Command.cc
  4443. * src/DownloadCommand.cc
  4444. * src/FtpDownloadCommand.cc
  4445. * src/FtpDownloadCommand.h
  4446. * src/FtpFinishDownloadCommand.cc
  4447. * src/FtpFinishDownloadCommand.h
  4448. * src/FtpInitiateConnectionCommand.cc
  4449. * src/FtpNegotiationCommand.cc
  4450. * src/FtpNegotiationCommand.h
  4451. * src/HelpItemFactory.cc
  4452. * src/Makefile.am
  4453. * src/Makefile.in
  4454. * src/OptionHandlerFactory.cc
  4455. * src/option_processing.cc
  4456. * src/prefs.h
  4457. * src/usage_text.h
  4458. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. Call Command::transitStatus() before calling Command::execute(),
  4460. so that the status change made in execute() is not cleared.
  4461. * src/DownloadEngine.cc
  4462. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4463. Removed forward declaration of SocketCore class.
  4464. * src/HttpDownloadCommand.h
  4465. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4467. in InitiateConnectionCommandFactory. They should be set only when
  4468. the protocol is HTTP or HTTPS.
  4469. * src/InitiateConnectionCommandFactory.cc
  4470. * src/RequestGroup.cc
  4471. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Fixed infinite loop in checksum checking.
  4473. * src/IteratableChecksumValidator.cc
  4474. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Set _supportsPersistentConnection to true by default.
  4476. * src/Request.cc
  4477. * src/RequestGroup.cc
  4478. * test/HttpRequestTest.cc
  4479. * test/RequestTest.cc
  4480. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4481. Added timeout to socket pool. The default timeout is 15 seconds,
  4482. which is the same value Apache uses.
  4483. * src/DownloadEngine.cc
  4484. * src/DownloadEngine.h
  4485. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Fixed misuse of multimap::find()
  4487. * src/HttpHeader.cc
  4488. * test/HttpHeaderTest.cc
  4489. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4491. option.
  4492. The asynchronous DNS is not capable of IPv6 yet.
  4493. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4494. least for HTTP download.
  4495. * src/AbstractCommand.cc
  4496. * src/AbstractCommand.h
  4497. * src/AsyncNameResolver.cc
  4498. * src/AsyncNameResolver.h
  4499. * src/DHTEntryPointNameResolveCommand.cc
  4500. * src/DHTEntryPointNameResolveCommand.h
  4501. * src/DownloadEngine.cc
  4502. * src/DownloadEngine.h
  4503. * src/FtpInitiateConnectionCommand.cc
  4504. * src/FtpInitiateConnectionCommand.h
  4505. * src/HelpItemFactory.cc
  4506. * src/HttpInitiateConnectionCommand.cc
  4507. * src/HttpInitiateConnectionCommand.h
  4508. * src/InitiateConnectionCommand.cc
  4509. * src/InitiateConnectionCommand.h
  4510. * src/Makefile.am
  4511. * src/Makefile.in
  4512. * src/NameResolver.cc
  4513. * src/NameResolver.h
  4514. * src/OptionHandlerFactory.cc
  4515. * src/SocketCore.cc
  4516. * src/SocketCore.h
  4517. * src/Util.cc
  4518. * src/Util.h
  4519. * src/option_processing.cc
  4520. * src/prefs.h
  4521. * src/usage_text.h
  4522. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4523. Updated man page: --quiet, --header were added.
  4524. --metalink-servers and --enable-http-keep-alive option were updated.
  4525. * doc/aria2c.1
  4526. * doc/aria2c.1.html
  4527. * doc/aria2c.1.txt
  4528. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Enable HTTP keep-alive by default.
  4530. * src/HelpItemFactory.cc
  4531. * src/option_processing.cc
  4532. * src/usage_text.h
  4533. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Disable http keep-alive if the remote server is not HTTP/1.1.
  4535. * src/HttpConnection.cc
  4536. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Receive content body of 302 response so that the connection can be
  4538. reused later when http keep-alive is enabled.
  4539. * src/HttpNullDownloadCommand.cc
  4540. * src/HttpNullDownloadCommand.h
  4541. * src/HttpResponseCommand.cc
  4542. * src/HttpResponseCommand.h
  4543. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. const SharedHandle<Request> -> const SharedHandle<Request>&
  4545. * src/FtpDowndloadCommand.cc
  4546. * src/FtpDowndloadCommand.h
  4547. * src/HttpDownloadCommand.cc
  4548. * src/HttpDownloadCommand.h
  4549. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Fixed the bug that the control file(.aria2 file) is not renamed
  4551. according to tryAutoFileRenaming().
  4552. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4553. its control file exist, use them and continue download.
  4554. The old implementation didn't take into account of control file's
  4555. existence, so basically you couldn't continue download of renamed file.
  4556. * src/BtProgressInfoFile.h
  4557. * src/DefaultBtProgressInfoFile.cc
  4558. * src/DefaultBtProgressInfoFile.h
  4559. * src/NullProgressInfoFile.h
  4560. * src/RequestGroup.cc
  4561. * test/DefaultBtProgressInfoFileTest.cc
  4562. * test/MockBtProgressInfoFile.h
  4563. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Change the default value of --metalink-servers option from `5' to `1'.
  4565. * src/HelpItemFactory.cc
  4566. * src/option_processing.cc
  4567. * src/usage_text.h
  4568. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. Reimplemented transparent metalink using Accept request header.
  4570. * src/HttpRequest.cc
  4571. * src/HttpRequest.h
  4572. * src/HttpRequestCommand.cc
  4573. * src/Metalink2RequestGroup.cc
  4574. * src/RequestGroup.cc
  4575. * src/RequestGroup.h
  4576. * test/HttpRequestTest.cc
  4577. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Bump up version number to 0.13.2a
  4579. * configure.ac
  4580. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Updated configure.ac using the result of autoscan.
  4582. * configure.ac
  4583. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4584. Fixed compilation error without gcrypt/openssl.
  4585. * src/DownloadCommand.cc
  4586. * src/DownloadCommand.h
  4587. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Reorganized version information so that it can be displayed in a
  4589. standard terminal screen without scrolling.
  4590. Removed http, ftp from Configuration section, because they are always
  4591. enabled.
  4592. * src/FeatureConfig.cc
  4593. * src/FeatureConfig.h
  4594. * src/main.cc
  4595. * src/messageDigest.cc
  4596. * src/messageDigest.h
  4597. * src/version_usage.cc
  4598. * test/FeatureConfigTest.cc
  4599. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Masked user ID in log.
  4601. * src/FtpConnection.cc (sendUser)
  4602. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Removed query part from filename in HTTP download. The query part means
  4604. the substring after "?" in URL. Firefox seems do the same thing.
  4605. A query part is sometimes very long and not suitable to filename,
  4606. so I think it is better to remove it from filename.
  4607. * src/HttpRequest.cc
  4608. * src/HttpRequest.h
  4609. * src/Request.cc
  4610. * src/Request.h
  4611. * test/HttpRequestTest.cc
  4612. * test/RequestTest.cc
  4613. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Rewritten Exception class. Throw exception object, not its pointer and
  4615. catch by reference, so that remove problematic delete operator for
  4616. catched exception.
  4617. * src/Exception.cc
  4618. * src/Exception.h
  4619. * test/ExceptionTest.cc
  4620. * src/*: All files throwing/catching exception.
  4621. * test/*: All files throwing/catching exception.
  4622. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Now auto protocol detection is enabled without -Z option.
  4624. But there is a important difference between with/without -Z optoin.
  4625. For example, if you type:
  4626. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4627. then, aria2 interprets there are 3 request groups:
  4628. (1) http://host/file, http://mirror/file <-- multi-source download
  4629. (2) file1.torrent
  4630. (3) file2.metalink
  4631. On the other hand, if you invoke above command with -Z option, it is
  4632. interpreted as 4 request groups:
  4633. (1) http://host/file
  4634. (2) file1.torrent
  4635. (3) file2.metalink
  4636. (4) http://mirror/file
  4637. I think usually user don't mix multi-source URLs and torrent files, so
  4638. there is no big problem here.
  4639. * src/main.cc
  4640. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Fixed the bug that causes segmentaion fault when reading XML containing
  4642. unescapsed character like '&'.
  4643. Also a modification was made which avoids adding unnecessary
  4644. characters stack and appending unused string.
  4645. * src/ExpatMetalinkProcessor.cc
  4646. * src/FileMetalinkParserState.h
  4647. * src/FilesMetalinkParserState.h
  4648. * src/FinMetalinkParserState.h
  4649. * src/HashMetalinkParserState.h
  4650. * src/InitialMetalinkParserState.h
  4651. * src/LanguageMetalinkParserState.h
  4652. * src/MetalinkMetalinkParserState.h
  4653. * src/MetalinkParserState.h
  4654. * src/MetalinkParserStateMachine.cc
  4655. * src/MetalinkParserStateMachine.h
  4656. * src/OSMetalinkParserState.h
  4657. * src/PieceHashMetalinkParserState.h
  4658. * src/PiecesMetalinkParserState.h
  4659. * src/ResourcesMetalinkParserState.h
  4660. * src/SizeMetalinkParserState.h
  4661. * src/SkipTagMetalinkParserState.h
  4662. * src/URLMetalinkParserState.h
  4663. * src/VerificationMetalinkParserState.h
  4664. * src/VersionMetalinkParserState.h
  4665. * src/XML2SAXMetalinkProcessor.cc
  4666. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Added StringFormat class, which internally calls vasprintf.
  4668. operator<< is defined for this class, so it can be used with iostream
  4669. classes nicely. SimpleLogger and following functions are rewritten
  4670. using StringFormat class.
  4671. Besides, now Logger class's methods are non-const, many classes
  4672. that has a const Logger* as a member variable are modified to remove
  4673. const qualifier from the variable declaration.
  4674. * src/HelpItemFactory.cc
  4675. * src/Request.cc
  4676. * src/SimpleLogger.cc
  4677. * src/StringFormat.cc
  4678. * src/StringFormat.h
  4679. * src/Util.cc
  4680. * src/option_processing.cc
  4681. * src/version_usage.cc
  4682. * test/StringFormatTest.cc
  4683. * src/*.h: The classes that has const Logger* as a member variable.
  4684. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4686. failed. Also fixed memory link when exception is thrown there.
  4687. * src/main.cc (AccRequestGroup)
  4688. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Added build-in "Accept-Features" support. For now only "metalink" is
  4690. used in this header field.
  4691. This "metalink" value is removed from the list when connecting URLs
  4692. fed by metalink file to avoid loop in "transparent" metlaink.
  4693. * src/HttpRequest.cc
  4694. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4695. header is also held in this variable. Also renamed setUserHeaders as
  4696. addHeader and it was rewritten to add header not just to clear the old
  4697. value.
  4698. * src/HttpRequestCommand.cc
  4699. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4700. from "Accept-Features" list.
  4701. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4702. default.
  4703. * src/RequestGroup.h
  4704. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4705. * src/a2functional.h: Included <string> because Concat class depends on
  4706. it.
  4707. * test/HttpRequestTest.cc
  4708. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Added comment
  4710. * src/RequestGroup.cc (createNextCommand)
  4711. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4712. Capitalized METHOD_GET and METHOD_HEAD
  4713. * src/Request.cc
  4714. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Added getDownloadResults() method
  4716. * src/RequestGroupMan.cc
  4717. * src/RequestGroupMan.h
  4718. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. Fixed the bug that aria2 exits when commands is empty() but
  4720. _routineCommands are not.
  4721. * src/DownloadEngine.cc
  4722. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4723. Use the default value pulled from Option object in HelpItemFactory.
  4724. except options whose defualt value is embedded in a usage text.
  4725. * src/HelpItemFactory.cc
  4726. * src/HelpItemFactory.h
  4727. * src/option_processing.cc
  4728. * src/version_usage.cc
  4729. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. Added --quiet option to make aria2 quiet (no console output).
  4731. --quiet option is tagged with ADVANCED.
  4732. * src/HelpItemFactory.cc
  4733. * src/LogFactory.cc
  4734. * src/LogFactory.h
  4735. * src/MultiUrlRequestInfo.cc
  4736. * src/MultiUrlRequestInfo.h
  4737. * src/NullStatCalc.h: New class. This class prints nothing.
  4738. * src/OptionHandlerFactory.cc
  4739. * src/main.cc
  4740. * src/option_processing.cc
  4741. * src/prefs.h
  4742. * src/usage_text.h
  4743. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4744. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4745. * src/HelpItemFactory.cc (createHelpItems):
  4746. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. Fixed compilation error in ExpatMetalinkProcessor.cc
  4748. * src/ExpatMetalinkProcessor.cc
  4749. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Reuse socket if the origin server supports HTTP keep-alive and
  4751. --enable-http-keep-alive or --enable-http-pipelining is given.
  4752. The current implementation doesn't reuse the connections established
  4753. against proxy server.
  4754. * src/AbstractCommand.cc
  4755. * src/DownloadEngine.cc
  4756. * src/DownloadEngine.h
  4757. * src/HttpDownloadCommand.cc
  4758. * src/HttpInitiateConnectionCommand.cc
  4759. * src/HttpResponseCommand.cc
  4760. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Rewritten HTTP keep-alive and pipelining routine.
  4762. * src/AbstractCommand.cc
  4763. * src/HttpConnection.cc
  4764. * src/HttpDownloadCommand.cc
  4765. * src/HttpRequest.cc
  4766. * src/HttpRequestCommand.cc
  4767. * src/HttpResponseCommand.cc
  4768. * src/Request.cc
  4769. * src/Request.h
  4770. * src/RequestGroup.cc
  4771. * test/HttpRequestTest.cc
  4772. * test/HttpResponseTest.cc
  4773. * test/RequestTest.cc
  4774. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4775. Added missing setUserHeaders call
  4776. * src/HttpRequestCommand.cc
  4777. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4779. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4780. waste of time because it is more likey false.
  4781. * src/FileAllocationDispatcherCommand.cc (execute)
  4782. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Now HTTP status and version are a member variable of HttpHeader.
  4784. HTTP status is processed as a string, not integer.
  4785. * src/AbstractProxyResponseCommand.cc
  4786. * src/HttpConnection.cc
  4787. * src/HttpHeader.cc
  4788. * src/HttpHeader.h
  4789. * src/HttpHeaderProcessor.cc
  4790. * src/HttpHeaderProcessor.h
  4791. * src/HttpResponse.cc
  4792. * src/HttpResponse.h
  4793. * test/HttpHeaderProcessorTest.cc
  4794. * test/HttpResponseTest.cc
  4795. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Added --header option. You can specify any number of additional HTTP headers
  4797. like:
  4798. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4799. Unlike other commad-line option, you can use --header option multiple times.
  4800. * src/HelpItemFactory.cc
  4801. * src/HttpRequest.{cc, h}
  4802. * src/HttpRequestCommand.cc
  4803. * src/OptionHandlerFactory.cc
  4804. * src/OptionHandlerImpl.h
  4805. * src/option_processing.cc
  4806. * src/prefs.h
  4807. * src/usage_text.h
  4808. * test/HttpRequestTest.cc (testUserHeaders)
  4809. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. Eliminates the time lag between sequential downloads and commands in
  4811. the same RequestGroup.
  4812. In old implementation, aria2 occasionally waits 1 seconds before
  4813. executing next command or RequestGroup.
  4814. This is really a waste of time, and new implementation eliminates
  4815. this unnecessary time lag.
  4816. * src/AbstractCommand.cc
  4817. * src/AutoSaveCommand.cc
  4818. * src/CheckIntegrityCommand.cc
  4819. * src/Command.{cc, h}
  4820. * src/DownloadEngine.{cc, h}
  4821. * src/DownloadEngineFactory.cc
  4822. * src/FileAllocationCommand.cc
  4823. * src/FileAllocationDispatcherCommand.cc
  4824. * src/FillRequestGroupCommand.cc
  4825. * src/FtpInitiateConnectionCommand.cc
  4826. * src/HaveEraseCommand.cc
  4827. * src/HttpInitiateConnectionCommand.cc
  4828. * src/HttpResponseCommand.cc
  4829. * src/RealtimeCommand.cc
  4830. * src/RequestGroup.cc
  4831. * src/RequestGroupMan.cc
  4832. * src/StreamFileAllocationEntry.cc
  4833. * src/TimeBasedCommand.{cc, h}
  4834. * src/TimedHaltCommand.cc
  4835. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4837. keyword explicit and SharedHandle's default constructor initializes
  4838. its internal obj to null, old implementation initializes it using
  4839. obj's default constructor.
  4840. To assign null, write SharedHandle<T> x(...); x.reset();
  4841. TODO: test/SharedHandleTest.cc needs more tests.
  4842. * src/SharedHandle.h
  4843. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4844. Fixed type in man page.
  4845. * doc/aria2c.1.txt
  4846. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4847. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4848. * src/SimpleLogger.{cc, h}
  4849. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Implemented auto protocol detection.
  4851. Now you can do:
  4852. aria2c -Z http://host/file file1.torrent file2.metalink
  4853. (Note: -Z option is required for auto protcol detection.)
  4854. Then aria2c downloads 3 files simultaneously:
  4855. 1. http://host/file
  4856. 2. file1.torrent <-- read local torrent file
  4857. 3. file2.metalink <-- read local Metalink file.
  4858. Same thing goes with -i option. Assume your uris.txt contans:
  4859. http://host/file
  4860. file1.torrent
  4861. file2.metalink
  4862. Then you can do: aria2c -i uris.txt
  4863. (Note: -Z option is not needed if -i option is given.)
  4864. * src/main.cc
  4865. * src/ProtocolDetector.{cc, h}
  4866. * test/ProtocolDetectorTest.cc
  4867. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4869. installed
  4870. * src/ARC4Encryptor.h
  4871. * src/ARC4Decryptor.h
  4872. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4873. Renamed argument from 'errno' to 'err', since errno is confused with
  4874. errno defined in errno.h.
  4875. * src/LibgcryptARC4Decryptor.h
  4876. * src/LibgcryptARC4Context.h
  4877. * src/LibgcryptDHKeyExchange.h
  4878. * src/LibgcryptARC4Encryptor.h
  4879. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Rewritten choking algorithm.
  4881. * src/PeerChokeCommand.{cc, h}
  4882. * src/BtInterestedMessage.cc
  4883. * src/PeerSessionResource.{cc, h}
  4884. * src/DefaultPeerStorage.{cc, h}
  4885. * src/BtNotInterestedMessage.cc
  4886. * src/DefaultBtMessageDispatcher.{cc, h}
  4887. * src/BtMessageDispatcher.h
  4888. * src/Peer.{cc, h}
  4889. * src/BtLeecherStateChoke.{cc, h}
  4890. * src/BtSetup.cc
  4891. * src/BtSeederStateChoke.{cc, h}
  4892. * src/PeerStorage.h
  4893. * test/MockPeerStorage.h
  4894. * test/MockBtMessageDispatcher.h
  4895. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Fixed compilation error on x84-64 platform.
  4897. * src/AuthConfig.cc: Included ostream.
  4898. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Rewritten getBasename() and getDirname(), without standard library
  4900. basename(), dirname().
  4901. * src/File.cc
  4902. * test/FileTest.cc
  4903. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4904. Added Simplified Chinese translation. Also updated the following
  4905. translations: Polish, Dutch, German. Great thanks to all translators.
  4906. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Suppress content-range error when 'Content-Range' response header
  4908. doesn't contains bytes-unit specifier 'bytes'
  4909. * src/HttpHeader.cc (getRange)
  4910. * test/HttpHeaderTest.cc
  4911. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Fixed compilation error with g++-4.3
  4913. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Added missing include files for MinGW
  4915. * test/HttpHeaderProcessorTest.cc
  4916. * test/DHTRoutingTableSerializerTest.cc
  4917. * test/DHTRoutingTableDeserializerTest.cc
  4918. * test/UriListParserTest.cc
  4919. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Now download line is printed nicely with no garbage at the end of
  4921. line. I use ioctl to get the columns of terminal.
  4922. If stdout is redirected to another device, instead of carriage return,
  4923. end of line '\n' character is used. This is feature request#1909659
  4924. * src/ConsoleStatCalc.cc (calculateStat)
  4925. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Included a2time.h
  4927. * src/DHTMessageDispatcher.h
  4928. * src/DHTMessageEntry.h
  4929. * src/DHTReplaceNodeTask.h
  4930. * src/DHTMessageTracker.h
  4931. * src/Util.h
  4932. * src/CookieBox.h
  4933. * src/SocketCore.h
  4934. * src/DefaultBtMessageDispatcher.h
  4935. * src/SocketCore.cc
  4936. * src/Util.cc
  4937. * src/DHTPingTask.h
  4938. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Fixed high memory footprint when DHT is enabled.
  4940. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4941. queued than it is processed and the queue is getting longer. As a
  4942. consequence, momory usage is increased.
  4943. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4944. replacement cache in DHTBucket which is described in Kademlia paper.
  4945. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4946. DHTReplaceNodeTask.
  4947. * src/DHTBucket.{h, cc}
  4948. (cacheNode): New function.
  4949. (getCachedNodes): New function.
  4950. (dropNode): Push back cached node to _nodes.
  4951. * test/DHTBucketTest.cc
  4952. (testCacheNode): New test
  4953. (testDropNode): New test
  4954. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4955. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4956. the unused 4KB memory when ssl is not used.
  4957. * src/SocketCore.cc
  4958. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Added summary log for peer announce storage.
  4960. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4961. Removed cast
  4962. * src/DefaultPeerStorage.cc (addPeer)
  4963. Log exception message
  4964. * src/DHTMessageTracker.cc (handleTimeout)
  4965. Fixed casting
  4966. * test/HttpRequestTest.cc
  4967. * test/MetalinkProcessorTest.cc
  4968. * test/PieceTest.cc
  4969. * test/MetalinkEntryTest.cc
  4970. * test/SequenceTest.cc
  4971. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. * src/ParameterizedStringParser.cc (createLoop):
  4973. Removed unused variable sstep.
  4974. * src/AlphaNumberDecorator.h (decode): Rewritten.
  4975. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. * src/Util.{h, cc}
  4977. (parseUInt): New function.
  4978. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  4979. The actual range is uint32_t.
  4980. * test/UtilTest.cc
  4981. * src/ParameterizedStringParser.cc:
  4982. Use Util::parseUInt() for loop variables.
  4983. * test/ParameterizedStringParserTest.cc
  4984. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  4985. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4986. Rewritten the functions for binding port.
  4987. * src/DHTConnectionImpl.{h, cc}
  4988. * src/PeerListenCommand.{h, cc}
  4989. * src/DHTSetup.cc
  4990. * src/BtSetup.cc
  4991. * test/DHTConnectionImplTest.cc
  4992. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. type cleanup for allmost all remaining files.
  4994. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Type clarification
  4996. * src/PeerSessionResource.{h, cc}
  4997. * src/DefaultPieceStorage.{h, cc}
  4998. * src/Peer.{h, cc}
  4999. * test/PeerSessionResourceTest.cc
  5000. Use div function
  5001. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5002. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Type clarification
  5004. * src/DefaultPeerStorage.{h, cc}
  5005. * test/DefaultPeerStorageTest.cc
  5006. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Type clarification: size_t for length or size, uint64_t for file
  5008. length, off_t for file offset.
  5009. * src/DefaultBtProgressInfoFile.cc
  5010. * src/DefaultBtContext.{h, cc}
  5011. * src/DefaultBtInteractive.cc
  5012. * src/DownloadCommand.{h, cc}
  5013. * src/IteratableChunkChecksumValidator.{h, cc}
  5014. * src/SegmentMan.{h, cc}
  5015. * src/SingleFileDownloadContext.{h, cc}
  5016. * src/IteratableChecksumValidator.{h, cc}
  5017. * src/BtContext.h
  5018. * src/IteratableValidator.h
  5019. * src/DownloadContext.h
  5020. * test/SingleFileDownloadContextTest.cc
  5021. * test/DefaultBtContextTest.cc
  5022. * test/MockBtContext.h
  5023. * test/Metalink2RequestGroupTest.cc
  5024. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Type clarification: size_t for length or size, uint64_t for file
  5026. length, off_t for file offset.
  5027. * src/PiecedSegment.cc
  5028. * src/GrowSegment.h
  5029. * src/DefaultBtRequestFactory.h
  5030. * src/DefaultBtProgressInfoFile.cc
  5031. * src/UnknownLengthPieceStorage.h
  5032. * src/DefaultPieceStorage.cc
  5033. * src/UnknownLengthPieceStorage.cc
  5034. * src/DefaultBtInteractive.cc
  5035. * src/GrowSegment.cc
  5036. * src/BitfieldMan.h
  5037. * src/DownloadCommand.cc
  5038. * src/BtRequestFactory.h
  5039. * src/PiecedSegment.h
  5040. * src/DefaultPieceStorage.h
  5041. * src/Piece.cc
  5042. * src/DefaultBtRequestFactory.cc
  5043. * src/PieceStorage.h
  5044. * src/Segment.h
  5045. * src/Piece.h
  5046. * src/BitfieldMan.cc
  5047. * src/Util.cc
  5048. * test/DefaultBtProgressInfoFileTest.cc
  5049. * test/DefaultPieceStorageTest.cc
  5050. * test/MockPieceStorage.h
  5051. * test/BtRequestMessageTest.cc
  5052. * test/DefaultBtMessageDispatcherTest.cc
  5053. * test/BitfieldManTest.cc
  5054. * test/GrowSegmentTest.cc
  5055. * test/PieceTest.cc
  5056. * test/SegmentTest.cc
  5057. * test/SegmentManTest.cc
  5058. * test/DefaultBtRequestFactoryTest.cc
  5059. * test/MockBtRequestFactory.h
  5060. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Fixed compilation error with --disable-nls
  5062. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5063. in gettext.h causes the problem.
  5064. * src/common.h
  5065. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Removed subPiece related functions.
  5067. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5068. * src/DefaultPieceStorage.{h, cc}
  5069. * test/PieceTest.cc
  5070. * test/DefaultPieceStorageTest.cc
  5071. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Use unsigned char for data store.
  5073. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Bump up version number to 0.13.0+1
  5075. * configure.ac
  5076. * Release 0.13.0+1
  5077. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5078. Changed inactive connection timeout to 120.
  5079. To accept more mulually interested peers, disconnect peer when there
  5080. is no interest between us after certain time passed.
  5081. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5082. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5083. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5084. when compiled with async DNS support.
  5085. * src/DownloadEngine.cc
  5086. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5087. value '10' will be a little bit short when some DNS servers are
  5088. offline and several DNS servers are tried. It should be configured
  5089. by command-line option.
  5090. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Merged Ross's mingw patch.
  5092. * src/DHTRoutingTableDeserializer.cc
  5093. * src/DHTRoutingTableSerializer.cc
  5094. * src/Platform.{h, cc}
  5095. * src/timegm.h
  5096. * src/gettimeofday.h
  5097. * src/getaddrinfo.h
  5098. * src/SocketCore.h
  5099. * src/common.h
  5100. * src/inet_aton.h
  5101. * src/DownloadEngine.h
  5102. * src/gai_strerror.h
  5103. * src/a2netcompat.h
  5104. * configure.ac
  5105. * configure
  5106. * aclocal.m4
  5107. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Included missing iostream.
  5109. * test/AllTest.cc
  5110. * test/BtDependencyTest.cc
  5111. * test/BtExtendedMessageTest.cc
  5112. * test/DHTConnectionImplTest.cc
  5113. * test/DHTMessageFactoryImplTest.cc
  5114. * test/DHTMessageTrackerEntryTest.cc
  5115. * test/DHTNodeTest.cc
  5116. * test/DHTRoutingTableSerializerTest.cc
  5117. * test/DefaultBtAnnounceTest.cc
  5118. * test/DefaultBtContextTest.cc
  5119. * test/DefaultBtMessageFactoryTest.cc
  5120. * test/DefaultExtensionMessageFactoryTest.cc
  5121. * test/HandshakeExtensionMessageTest.cc
  5122. * test/HttpResponseTest.cc
  5123. * test/MetalinkProcessorTest.cc
  5124. * test/MultiFileAllocationIteratorTest.cc
  5125. * test/SocketCoreTest.cc
  5126. * test/UTPexExtensionMessageTest.cc
  5127. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Reorganized includes.
  5129. * src/NameResolver.cc
  5130. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5131. Fixed compilation error without ares/c-ares
  5132. * src/NameResolver.h:
  5133. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Added a test for large file.
  5135. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5136. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5137. Fixed the bug that file size is ignored if size > INT32_MAX
  5138. * src/SizeMetalinkParserState.cc (endElement):
  5139. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Bump up version number to 0.13.0
  5141. * configure.ac
  5142. * Release 0.13.0
  5143. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Updated Makfefile.am to make 'make dist' work.
  5145. Now packaged filename is aria2c-VERSION.tar.bz2.
  5146. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5147. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5148. Large file support is now configured by configure script.
  5149. * configure.ac
  5150. Removed unsused source files
  5151. * src/
  5152. * test/
  5153. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5154. Peer.h and BtContext.h respectively.
  5155. * src/Peer.h
  5156. * src/BtContext.h
  5157. Updated translations.
  5158. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5159. translations. Great thanks to all translators!;)
  5160. * po/*.{po, gmo}
  5161. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5163. statically declared sha1 MessageDigestContext.
  5164. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5165. initialization of short-lived MessageDigestContext.
  5166. * src/MessageDigestHelper.{h, cc}
  5167. * src/main.cc
  5168. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5169. the initialization of MessageDigestContext every time in validating
  5170. chunk checksum.
  5171. * src/DownloadCommand.{h, cc}
  5172. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Add a file descriptor which connected to fast peer(latency<1500) to
  5174. select(). This change reduced CPU load.
  5175. * src/PeerInteractionCommand.cc
  5176. * src/DefaultBtInteractive.{h, cc}
  5177. * src/BtInteractive.h
  5178. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Fixed the previous insufficient fix for possible busy loop.
  5180. * src/MSEHandshake.cc (identifyHandshakeType)
  5181. Removed unused functions.
  5182. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5183. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Fixed possible busy loop if first 20 bytes are not received for a few
  5185. minutes.
  5186. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5187. * src/ReceiverMSEHandshakeCommand.cc
  5188. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Fixed compilation error
  5190. * src/ExpatMetalinkProcessor.cc
  5191. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5193. * src/DHTBucket.cc
  5194. Removed unnecessary cast.
  5195. * src/HandshakeExtensionMessage.cc
  5196. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5198. is missing.
  5199. * src/OptionHandlerFactory.cc
  5200. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5201. Fixed the bug that HAVE message is not sent for a piece they are
  5202. downloaded fom http/ftp server before any BitTorrent handshake is done
  5203. with peers.
  5204. * src/DefaultBtInteractive.cc
  5205. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5206. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5207. * src/Makefile.am
  5208. * src/Makefile.in
  5209. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Updated README. Added html version of README and man page.
  5211. * README
  5212. * README.html
  5213. * readme2html: Shell script to generate README.html from README using
  5214. asciidoc.
  5215. * doc/aria2c.1.html
  5216. * doc/makeman: Added the line to generate aria2c.1.html
  5217. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Fixed offset calculation.
  5219. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5220. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Rewritten itos and uitos using template. llitos and ullitos are
  5222. replaced with itos and uitos respectively.
  5223. * src/Util.{h, cc}
  5224. * test/UtilTest.cc
  5225. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5226. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5227. of the number of bytes required for storing public key and shared
  5228. secret.
  5229. * src/LibgcryptDHKeyExchange.h
  5230. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5231. * src/MSEHandshake.cc
  5232. * test/DHKeyExchangeTest.cc
  5233. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5234. Removed since they are not used.
  5235. * src/Xml2MetalinkProcessor.{h, cc}
  5236. * src/Socket.cc
  5237. * src/SegmentSplitter.{h, cc}
  5238. * test/Xml2MetalinkProcessorTest.cc
  5239. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Fixed the bug that prevents aria2 from stopping other than by pressing
  5241. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5242. option. aria2 doesn't stop even after --seed-time is satisfied and
  5243. continues to output blank lines in the console.
  5244. * src/ReceiverMSEHandshakeCommand.cc
  5245. * src/PeerReceiveHandshakeCommand.cc
  5246. * src/PeerListenCommand.cc
  5247. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Bump up version number to 0.13.0rc
  5249. * configure.ac
  5250. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5251. Updated man page and some usage text.
  5252. * doc/aria2c.1.txt
  5253. * src/usage_text.h
  5254. * po/*.{po, gmo}
  5255. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Updated translations. Added Finnish and Hebrew translations.
  5257. Great thanks to all translators!
  5258. * po/*.{po, gmo}
  5259. * po/LINGUAS
  5260. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Log more detailed information about each message.
  5262. * src/DHTQueryMessage.{h, cc}
  5263. * src/DHTGetPeersMessage.{h, cc}
  5264. * src/DHTFindNodeReplyMessage.{h, cc}
  5265. * src/DHTGetPeersReplyMessage.{h, cc}
  5266. * src/DHTAnnouncePeerMessage.{h, cc}
  5267. * src/DHTResponseMessage.{h, cc}
  5268. * src/DHTFindNodeMessage.{h, cc}
  5269. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Use constants defined in prefs.h
  5271. * src/option_processing.cc
  5272. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5274. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Make room for future enchancements for IPv6 addresses.
  5276. Bump up version number of dht.dat file format to 2.
  5277. Not compatible with previous version.
  5278. * src/DHTRoutingTableSerializer.cc
  5279. * src/DHTRoutingTableDeserializer.cc
  5280. * test/DHTRoutingTableSerializerTest.cc
  5281. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Added handling for the return values from
  5283. PeerMessageUtil::createcompact().
  5284. * src/DefaultBtContext.cc (computeFastSet):
  5285. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5286. Fixed abort when peer's ip address is IPv4-mapped address.
  5287. * src/DefaultBtContext.cc (computeFastSet)
  5288. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5289. cannot handle IPv4-mapped addresses.
  5290. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5291. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Proper return value handling for OpenSSL functions.
  5293. * src/LibsslDHKeyExchange.h
  5294. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Random bytes generation using libgcrypt and OpenSSL.
  5296. * src/DHTUtil.{h, cc}
  5297. * test/DHTUtilTest.cc
  5298. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5300. received.
  5301. * src/DHTMessageReceiver.cc (receiveMessage)
  5302. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Fixed the bug that a return code is always 0. BUG#1897704
  5304. If error occurred during the download or there exist unfinished
  5305. downloads, aria2 returns with code 1.
  5306. * src/RequestGroupMan.{h, cc}
  5307. * src/MultiUrlRequestInfo.{h, cc}
  5308. * src/main.cc
  5309. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. IPv6 support for SocketCore class.
  5311. TODO: In SocketCore::establishConnection(), this is insufficient to
  5312. determin the failure of connect() here because the socket is
  5313. non-blocking state. The next addresses should be tried after select().
  5314. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5315. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5316. instead which address family independent.
  5317. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5318. information in a compact peer format which is for IPv4 only.
  5319. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5320. this is a spec of BitTorrent protocol.
  5321. * src/SocketCore.{h, cc}
  5322. * src/PeerMessageUtil.cc
  5323. * test/SocketCoreTest.cc
  5324. * test/PeerMessageUtilTest.cc
  5325. * test/DHTConnectionImplTest.cc
  5326. Handle IPv4-mapped addresses.
  5327. * src/DHTNode.cc: Now identity is determined by node id.
  5328. * src/DHTMessageTrackerEntry.cc
  5329. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5330. should handle it.
  5331. * src/DHTRoutingTableDeserializer.cc
  5332. * src/DHTMessageFactoryImpl.cc
  5333. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Change the unit of --stop option from a minute to a second.
  5335. * src/usage_text.h
  5336. * src/DownloadEngineFactory.cc
  5337. * src/OptionHandlerFactory.cc
  5338. * src/message.h
  5339. * src/TimedHaltCommand.cc
  5340. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Make listening socket non-block mode.
  5342. * src/FtpConnection.cc
  5343. * src/FtpNegotiationCommand.{h, cc}
  5344. * src/PeerListenCommand.cc
  5345. Fixed the bug that cause slow ftp negotiation.
  5346. * src/FtpNegotiationCommand.{h, cc}
  5347. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5348. Added basic tag to --enable-dht, --dht-listen-port option.
  5349. * src/HelpItemFactory.cc (createHelpItems)
  5350. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Updated text.
  5352. * src/usage_text.h
  5353. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5354. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5355. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. Determin _threadtholdSpeed in each constructor for
  5357. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5358. * src/ActivePeerConnectionCommand.{h, cc}
  5359. * src/PeerReceiveHandshakeCommand.{h, cc}
  5360. * src/BtSetup.cc
  5361. * src/BtConstants.h
  5362. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5363. Added --bt-min-crypto-level and --bt-require-crypto options.
  5364. * src/OptionHandlerFactory.cc
  5365. * src/MSEHandshake.cc
  5366. * src/HelpItemFactory.cc
  5367. * src/option_processing.cc
  5368. * src/ReceiverMSEHandshakeCommand.cc
  5369. * src/prefs.h
  5370. * src/DefaultBtAnnounce.cc
  5371. * src/InitiatorMSEHandshakeCommand.cc
  5372. * src/usage_text.h
  5373. * test/MSEHandshakeTest.cc
  5374. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Bump version number to 0.13.0b
  5376. * configure.ac
  5377. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Updated doc.
  5379. * src/MessageDigestHelper.h:
  5380. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5381. Use raw message digest as a token instead of its hexadecimal
  5382. representation.
  5383. * src/DHTTokenTracker.cc (generateToken)
  5384. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Added Message Stream Encryption(MSE) support.
  5386. Currently, aria2 accepts incoming connections with Obfuscation Header
  5387. and legacy BitTorrent Header and establishes connections with
  5388. Obfuscation Header first and if failed then retry with legacy
  5389. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5390. choose ARC4. The new option to change the default behavior is planned.
  5391. For tracker extension, "supportcrypto=1" is added statically.
  5392. * src/PeerInitiateConnectionCommand.{h, cc}
  5393. * src/PeerConnection.{h, cc}
  5394. * src/HandleRegistry.h
  5395. * src/SocketCore.h
  5396. * src/PeerReceiveHandshakeCommand.{h, cc}
  5397. * src/BtRegistry.{h, cc}
  5398. * src/PeerListenCommand.cc
  5399. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5400. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5401. * src/MSEHandshake.{h, cc}
  5402. * src/ARC4Encryptor.h
  5403. * src/ARC4Decryptor.h
  5404. * src/LibgcryptARC4Encryptor.h
  5405. * src/LibgcryptARC4Decryptor.h
  5406. * src/LibgcryptARC4Context.h
  5407. * src/LibsslARC4Encryptor.h
  5408. * src/LibsslARC4Decryptor.h
  5409. * src/LibsslARC4Context.h
  5410. * src/DHKeyExchange.h
  5411. * src/LibgcryptDHKeyExchange.h
  5412. * src/LibsslDHKeyExchange.h
  5413. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5414. * test/DefaultBtAnnounceTest.cc
  5415. * test/ARC4Test.cc
  5416. * test/DHKeyExchangeTest.cc
  5417. Removed prepareForRetry() because it is not used.
  5418. * src/PeerAbstractCommand.{h, cc}
  5419. * src/PeerInteractionCommand.{h, cc}
  5420. * src/PeerInitiateConnectionCommand.{h, cc}
  5421. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5422. Added the ability to load nodes from torrent file. These nodes are
  5423. added to the routing table when downloading that torrent.
  5424. * src/BtContext.h
  5425. * src/DefaultBtContext.{h, cc}
  5426. * src/DHTSetup.cc
  5427. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5428. hostname and port pair, and resolves all of them.
  5429. * src/NameResolver.{h, cc}: Added reset().
  5430. * src/RequestGroup.cc
  5431. * test/DefaultBtContextTest.cc
  5432. * test/MockBtContext.h
  5433. Removed assert() from DefaultBtContext and throw exception instead.
  5434. * src/DefaultBtContext.cc
  5435. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5436. Fixed segmentation fault bug when exiting if dht is disabled.
  5437. * src/RequestGroup.cc
  5438. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Fixed typo in log message and define the message in message.h
  5440. * src/TimedHaltCommand.cc
  5441. * src/message.h
  5442. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Included RecoverableException.h to fix compilation error.
  5444. * test/DHTMessageFactoryImplTest.cc
  5445. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5447. * test/DHTPingMessageTest.cc
  5448. * test/DHTGetPeersMessageTest.cc
  5449. * test/DHTFindNodeMessageTest.cc
  5450. * test/DHTAnnouncePeerMessageTest.cc
  5451. * test/MockDHTMessage.h
  5452. * test/MockDHTMessageFactory.h
  5453. * test/MockDHTMessageDispatcher.h: New class.
  5454. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5456. virtual.
  5457. * src/DHTMessageDispatcher.h
  5458. * src/DHTMessageDispatcherImpl.{h, cc}
  5459. * src/DHTSetup.cc
  5460. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Adding handling of DHT error message. Just log error message and
  5462. throw exception.
  5463. * src/DHTMessageFactoryImpl.cc
  5464. * test/DHTMessageFactoryImplTest.cc
  5465. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5466. Added handling of dynamic cast failure.
  5467. * src/DHTNodeLookupTask.cc
  5468. * src/DHTPeerLookupTask.cc
  5469. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Added the ability to stop aria2 itself when given time has passed
  5471. from start. Use --stop option to specify time in minutes.
  5472. When 0 is given, this feature is disabled.
  5473. * src/OptionHandlerFactory.cc
  5474. * src/TimeBasedCommand.h: Make _interval protected scope.
  5475. * src/HelpItemFactory.cc
  5476. * src/option_processing.cc
  5477. * src/prefs.h
  5478. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5479. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5480. Without this modification, the result list shows "ERR" when aria2 is
  5481. stopped by --stop option. It should be "INPR".
  5482. * src/DownloadEngine.{h, cc}
  5483. * src/DownloadEngineFactory.cc
  5484. * src/usage_text.h
  5485. * src/TimedHaltCommand.{h, cc}: New class.
  5486. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5487. Bootstrap through node added by port message.
  5488. Currently bootstrap is executed if the number of buckets in routing
  5489. table is 1.
  5490. * src/BtPortMessage.{h, cc}
  5491. * src/DefaultBtMessageFactory.{h, cc}
  5492. * src/PeerInteractionCommand.cc
  5493. * test/BtPortMessageTest.cc
  5494. * test/MockDHTTask.h
  5495. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Extract the Peer class's member variables, which are only needed after
  5497. PeerInteractionCommand, into PeerSessionResource class.
  5498. This class is instantiated in PeerInteractionCommand class's ctor and
  5499. released in its dtor.
  5500. This will make Peer class lightweight and uses less memory for peers
  5501. which are not connected and wait in the queue.
  5502. * src/PeerChokeCommand.cc
  5503. * src/PeerSessionResource.{h, cc}
  5504. * src/PeerInteractionCommand.cc
  5505. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5506. * src/DefaultBtInteractive.cc
  5507. * src/BtPieceMessage.cc
  5508. * src/BtInterestedMessage.cc
  5509. * src/BtUnchokeMessage.cc
  5510. * src/DefaultPeerStorage.{h, cc}
  5511. * src/PeerInitiateConnectionCommand.cc
  5512. * src/ActivePeerConnectionCommand.cc
  5513. * src/BtNotInterestedMessage.cc
  5514. * src/DefaultBtMessageDispatcher.cc
  5515. * src/BtChokeMessage.cc
  5516. * src/BtRequestMessage.cc
  5517. * src/Peer.{h, cc}
  5518. * src/BtRegistry.h
  5519. * src/TrackerWatcherCommand.cc
  5520. * src/PeerReceiveHandshakeCommand.cc
  5521. * test/BtExtendedMessageTest.cc
  5522. * test/BtAllowedFastMessageTest.cc
  5523. * test/BtCancelMessageTest.cc
  5524. * test/DefaultPieceStorageTest.cc
  5525. * test/BtBitfieldMessageTest.cc
  5526. * test/BtHaveMessageTest.cc
  5527. * test/BtNotInterestedMessageTest.cc
  5528. * test/BtRequestMessageTest.cc
  5529. * test/PeerSessionResourceTest.cc
  5530. * test/DefaultBtMessageDispatcherTest.cc
  5531. * test/PeerTest.cc
  5532. * test/BtInterestedMessageTest.cc
  5533. * test/BtRejectMessageTest.cc
  5534. * test/BtChokeMessageTest.cc
  5535. * test/DefaultPeerStorageTest.cc
  5536. * test/BtHaveNoneMessageTest.cc
  5537. * test/BtHaveAllMessageTest.cc
  5538. * test/DefaultExtensionMessageFactoryTest.cc
  5539. * test/BtUnchokeMessageTest.cc
  5540. * test/DefaultBtMessageFactoryTest.cc
  5541. * test/HandshakeExtensionMessageTest.cc
  5542. * test/UTPexExtensionMessageTest.cc
  5543. * test/DefaultBtRequestFactoryTest.cc
  5544. * test/BtPieceMessageTest.cc
  5545. Removed typedef PeerStats.
  5546. * src/PeerStat.h
  5547. * src/SegmentMan.cc
  5548. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. Added std namespace to copy, remove_copy, back_inserter,
  5550. front_inserter.
  5551. * src/RequestGroupMan.cc
  5552. * src/DefaultPieceStorage.cc
  5553. * src/StreamFileAllocationEntry.cc
  5554. * src/BtFileAllocationEntry.cc
  5555. * src/RequestGroup.cc
  5556. * src/MetalinkEntry.cc
  5557. * src/DelegatingPeerListProcessor.cc
  5558. * src/DefaultBtRequestFactory.cc
  5559. * src/DefaultBtMessageDispatcher.cc
  5560. * src/version_usage.cc: Included <algorithm>
  5561. * src/main.cc
  5562. * src/MetalinkParserController.cc
  5563. * src/DefaultBtContext.cc
  5564. * src/DownloadEngineFactory.cc
  5565. * src/a2algo.h
  5566. Removed.
  5567. * test/StreamUriListParserTest.cc
  5568. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5570. ActivePeerConnectionCommand when it is given and
  5571. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5572. * src/ActivePeerConnectionCommand.{h, cc}
  5573. * src/BtSetup.cc
  5574. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. Only add socket to DownloadEngine's select routine when peer or
  5576. localhost is unchoked and interested. This lowers CPU usage a
  5577. little bit.
  5578. * src/PeerInteractionCommand.cc
  5579. * src/PeerAbstractCommand.{h, cc}
  5580. * src/BtInteractive.h
  5581. * src/DefaultBtInteractive.{h, cc}
  5582. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Revert previous change because get_peers message is needed for
  5584. announce_peer anyway.
  5585. * src/DHTGetPeersCommand.cc
  5586. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5587. Request peers thought DHT only when download hasn't finished.
  5588. * src/DHTGetPeersCommand.cc
  5589. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5591. * src/DHTBucketRefreshTask.{h, cc}
  5592. * src/DHTSetup.cc
  5593. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5595. standard classes.
  5596. Included string.h where mem* function are used.
  5597. Added namespace aria2.
  5598. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Create directory before saving DHT routing table.
  5600. Now ios::failure is now handled properly.
  5601. * src/DHTAutoSaveCommand.cc
  5602. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Removed unnecessary cerr.
  5604. * src/DownloadEngine.cc
  5605. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Catch exception inside DHTMessageReceiver::receiveMessage().
  5607. Log unknown message.
  5608. * src/DHTMessageReceiver.{h, cc}
  5609. * src/DHTMessageFactory.h
  5610. * src/DHTMessageFactoryImpl.{h, cc}
  5611. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5612. * src/DHTInteractionCommand.cc
  5613. * src/DHTUnknownMessage.{h, cc}
  5614. * test/DHTUnknownMessageTest.cc
  5615. * test/MockDHTMessageFactory.h
  5616. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Commented out ip address comparison because a host can have multiple
  5618. ip addresses and it is hard to predict the hostname is resolved into
  5619. which one.
  5620. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5621. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5622. * po/Makefile.in: Removed since this is generated by configure.
  5623. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Fixed compiler warning about redefinition of SIZE_MAX.
  5625. Use common.h instead of config.h directly here.
  5626. * src/Platform.{h, cc}
  5627. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5628. here.
  5629. * common.h
  5630. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5631. Updated gettext related files.
  5632. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5633. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5634. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Added DHT functionality, compatible with mainline.
  5636. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5637. You may need to specify entry point to DHT network using
  5638. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5639. Use --dht-listen-port to specify port number. Make sure that your
  5640. firewall configuration can pass through UDP traffic to the port.
  5641. The routing table is saved in $HOME/.aria2/dht.dat.
  5642. * src/DHT*
  5643. * src/BNode.{h, cc}
  5644. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5645. particular torrent.
  5646. * src/Data.cc: Rewritten ctor.
  5647. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5648. --dht-entry-point.
  5649. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5650. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5651. ends, remove BtContext from DHTPeerAnnounceStorage.
  5652. * src/BtPortMessage.{h, cc}: Rewritten.
  5653. * src/message.h
  5654. * src/OptionHandlerImpl.cc
  5655. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5656. --dht-entry-point.
  5657. * src/Dictionary.{h, cc} (remove): New function.
  5658. * src/prefs.h
  5659. * src/DefaultBtMessageFactory.h
  5660. * src/BtHandshakeMessage.cc
  5661. * src/ActivePeerConnectionCommand.cc
  5662. * src/SocketCore.{h, cc}: Added datagram socket support.
  5663. * src/DefaultBtMessageFactory.cc
  5664. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5665. Create DHT commands.
  5666. * src/BtMessageFactory.h
  5667. * src/PeerMessageUtil.{h, cc}
  5668. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Fixed the bug that log file is not written when configuration file doesn't exist.
  5670. This is caused by using Logger class before LogFactory is not configured.
  5671. BUG #1875079
  5672. * src/option_processing.cc
  5673. Warning message "configuration doesn't exist" is only printed when --conf is
  5674. given.
  5675. * src/option_processing.cc
  5676. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5678. ShaVisitor is now deprecated and slated to be removed.
  5679. * src/DefaultBtContext.cc
  5680. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Externalize message to message.h
  5682. * src/Platform.cc
  5683. * src/message.h
  5684. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Set default domain and default path to cookie.
  5686. * src/HttpResponse.cc
  5687. * src/CookieBox.{h, cc}
  5688. * src/CookieParser.{h, cc}
  5689. * test/CookieParserTest.cc
  5690. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Added --no-conf and --conf-path command-line option.
  5692. --no-conf option disables loading aria2.conf file.
  5693. --conf-path option changes the configuration file path. The default
  5694. file path is $HOME/.aria2/aria2.conf
  5695. Added a warning message when the configuration file is not found.
  5696. * src/HelpItemFactory.cc
  5697. * src/option_processing.cc
  5698. * src/prefs.h
  5699. * src/usage_text.h
  5700. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Added the message to inform users that other help categories are
  5702. available in -h option.
  5703. * src/version_usage.cc
  5704. * src/TagContainer.{h, cc}
  5705. * test/TagContainerTest.cc
  5706. * src/TaggedItem.{h, cc}
  5707. * test/TaggedItemTest.cc
  5708. * src/HelpItem.h
  5709. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5710. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5711. from PiecedSegment's ctor.
  5712. Previously Piece::getAllMissingBlockIndexes() is called from
  5713. PiecedSegment() but it is rather expensive since only first element is
  5714. used.
  5715. * src/PiecedSegment.cc
  5716. * src/Piece.{h, cc}
  5717. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5719. each time these functions are called.
  5720. * src/BitfieldMan.{h, cc}
  5721. * test/BitfieldManTest.cc
  5722. * src/array_fun.h
  5723. * test/array_funTest.cc
  5724. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5725. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5726. filtered. Removed unnecessary cast to int32_t.
  5727. * src/BitfieldMan.{h, cc}
  5728. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5729. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5730. payload length(4bytes) are received. This happens because lenbufLength
  5731. is not updated in this particular case and successive call of
  5732. receiveMessage() overwrites payload length with bytes recieved which
  5733. are payload body.
  5734. * src/PeerConnection.{h, cc}
  5735. * src/message.h
  5736. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5738. peer if there are peers that have same ipaddr and port.
  5739. I've experiened segmentation fault and "pure virtual function was
  5740. called" error.
  5741. * src/Peer.h
  5742. * test/PeerTest.cc
  5743. * src/DefaultPeerStorage.cc
  5744. * test/DefaultPeerStorageTest.cc
  5745. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5746. Removed a call to isPowerOf() because it is no longer necessary here
  5747. and a request block is not always power of 2.
  5748. BUG#1866924
  5749. * src/PeerMessageUtil.cc (checkLength)
  5750. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Fixed the bug that always first found Segment is removed from
  5752. usedSegmentEntries. Removed unused functions.
  5753. * src/SegmentMan.{h, cc}
  5754. * test/SegmentManTest.cc
  5755. Fixed the bug that ServerHost is not removed.
  5756. * src/RequestGroup.cc
  5757. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Fixed the bug that SegmentMan::completeSegment() is not called
  5759. even if Segment is complete when --lowest-speed-limit is enabled.
  5760. BUG#1864525
  5761. * src/DownloadCommand.{h, cc}
  5762. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Fixed: hash algorithm 'sha1' is always used.
  5764. * src/DownloadCommand.cc (validatePieceHash)
  5765. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Added --enable-peer-exchange command-line option.
  5767. * src/OptionHandlerFactory.cc
  5768. * src/HelpItemFactory.cc
  5769. * src/option_processing.cc
  5770. * src/usage_text.h
  5771. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5772. Move extension from BtRuntime to ExtensionMessageFactory, because
  5773. extension can be specified per peer, not per torrent.
  5774. * src/DefaultBtInteractive.cc
  5775. * src/BtRuntime.h
  5776. * src/ExtendedMessagingAware.h
  5777. * src/ExtensionMessageFactory.h
  5778. * src/DefaultExtensionMessageFactory.cc
  5779. * test/DefaultExtensionMessageFactoryTest.cc
  5780. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Added categorized option help. Specify category using --help option.
  5782. Also added the ability to search options in forward match.
  5783. * src/HelpItem.{h, cc}
  5784. * test/HelpItemTest.cc
  5785. * src/HelpItemFactory.{h, cc}
  5786. * src/TagContainer.{h, cc}
  5787. * test/TagContainerTest.cc
  5788. * src/option_processing.cc
  5789. * src/prefs.h
  5790. * src/TaggedItem.{h, cc}
  5791. * test/TaggedItemTest.cc
  5792. * src/version_usage.cc
  5793. * src/help_tags.h
  5794. * src/usage_text.h
  5795. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Fixed segmentation fault when bad torrent metainfo is parsed.
  5797. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5798. and then throw exception or skip it.
  5799. * src/DefaultBtContext.{h, cc}
  5800. * test/DefaultBtContextTest.cc
  5801. * src/AnnounceList.cc
  5802. * src/CompactPeerListProcessor.cc
  5803. * src/message.h
  5804. * src/DefaultBtAnnounce.{h, cc}
  5805. * test/DefaultBtAnnounceTest.cc
  5806. * src/BencodeVisitor.cc
  5807. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Added missing "B"(=Byte). So now the message looks like this:
  5809. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5810. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5811. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Show the seed ratio after torrent downloads.
  5813. For example, after torrent download completed and --seed-time and
  5814. --seed-ratio conditions are fulfilled, following message is printed
  5815. right after "Download complete: .....":
  5816. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5817. * src/RequestGroupMan.cc
  5818. * src/RequestGroup.{h, cc}
  5819. * src/message.h
  5820. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Remove a defunct control file. A defunct control file means that while
  5822. it exists, but the corresponding download file is missing.
  5823. After its removal, a download restarts from the beginning.
  5824. * src/RequestGroup.cc
  5825. * src/message.h
  5826. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Allocate bitfield in Peer when it is really used. More specifically,
  5828. bitfield in Peer is allocated after the connection is established and
  5829. deallocated when the connection is dropped.
  5830. Since 2 parameters(piece length and total length) was removed from the
  5831. constructor of Peer class, many test classes were modified accordingly.
  5832. See svn log for more detailed information.
  5833. * src/PeerInteractionCommand.cc
  5834. * src/CompactPeerListProcessor.cc
  5835. * src/Peer.cc
  5836. * src/DefaultPeerListProcessor.cc
  5837. * src/PeerListenCommand.cc
  5838. * src/PeerReceiveHandshakeCommand.cc
  5839. Fixed memory leak
  5840. * src/Piece.cc
  5841. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5842. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5843. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5844. command-line options.
  5845. * src/option_processing.cc
  5846. * src/ActivePeerConnectionCommand.cc
  5847. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. Send have message to peer if it already has the piece.
  5849. * src/BtHaveMessage.{h, cc}
  5850. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5852. port.
  5853. * src/DefaultPeerStorage.{h, cc}
  5854. * test/DefaultPeerStorageTest.cc
  5855. * src/HandshakeExtensionMessage.cc
  5856. * test/HandshakeExtensionMessageTest.cc
  5857. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5858. * src/PeerStorage.h
  5859. * test/MockPeerStorage.h
  5860. * src/PeerListenCommand.cc
  5861. * src/PeerReceiveHandshakeCommand.cc
  5862. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Added --metalink-enable-unique-protocol option.
  5864. * src/Metalink2RequestGroup.cc
  5865. * src/option_processing.cc
  5866. * src/prefs.h
  5867. * src/version_usage.cc
  5868. * doc/aria2c.1.txt
  5869. * doc/aria2c.1
  5870. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Allow a peer in incomingPeer to be added peers.
  5872. * src/DefaultPeerStorage.cc
  5873. * test/DefaultPeerStorageTest.cc
  5874. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5876. I could reproduce this bug in following procedure:
  5877. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5878. 2. Restart aria2.
  5879. 3. You see the download stopped around 99%.
  5880. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5881. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5882. If timeout is reached, then _nextCommand is unused and it may contains
  5883. segments and they won't be canceled. Actually, timeout is not needed
  5884. here because if the server dropped connection, then retry is made.
  5885. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Added uTorrent compatible Peer Exchange.
  5887. * src/BencodeVisitor.{h, cc}
  5888. * test/BencodeVisitorTest.cc
  5889. * src/BtConstants.h
  5890. * src/BtContext.h: Added 'private' flag.
  5891. * src/BtExtendedMessage.{h, cc}
  5892. * test/BtExtendedMessageTest.cc
  5893. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5894. reserved field.
  5895. * test/BtHandshakeMessageTest.cc
  5896. * src/BtMessageFactory.h
  5897. * src/BtRegistry.h
  5898. * src/BtRuntime.h: This class holds default extension message IDs for
  5899. aria2. By default, aria2 uses ID 8 for ut_pex.
  5900. * src/DefaultBtContext.cc
  5901. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5902. When it is true, aria2 enables ut_pex. This value is set by
  5903. PeerInteractionCommand.
  5904. * src/DefaultBtMessageFactory.{h, cc}
  5905. * test/DefaultBtMessageFactoryTest.cc
  5906. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5907. handling to DefaultBtInteractive class.
  5908. * src/DefaultExtensionMessageFactory.{h, cc}
  5909. * test/DefaultExtensionMessageFactoryTest.cc
  5910. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5911. the container(peers and incomingPeers. The equality is determined by
  5912. Peer::id).
  5913. * test/DefaultPeerStorageTest.cc
  5914. * src/ExtensionMessage.h
  5915. * test/MockExtensionMessage.h
  5916. * src/ExtensionMessageFactory.h
  5917. * test/MockExtensionMessageFactory.h
  5918. * src/HandshakeExtensionMessage.{h, cc}
  5919. * test/HandshakeExtensionMessageTest.cc
  5920. * src/MetaEntry.h
  5921. * src/Peer.{h, cc}
  5922. * src/PeerInteractionCommand.cc
  5923. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5924. addIncomingPeer.
  5925. * src/PeerMessageUtil.{h, cc}
  5926. * src/PeerObject.h
  5927. * src/UTPexExtensionMessage.{h, cc}
  5928. * test/UTPexExtensionMessageTest.cc
  5929. * src/message.h
  5930. * src/prefs.h
  5931. Fixed the bug that returns incomplete data when it contains null
  5932. character. A convenient constructor was also added.
  5933. * src/Data.{h, cc}
  5934. Rewritten.
  5935. * src/CompactPeerListProcessor.cc
  5936. Fixed typos.
  5937. * src/message.h
  5938. * src/MetaFileUtil.cc
  5939. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Added "Status Legend" label to the explanation text of 'stat' in
  5941. download result and moved it to the last. BUG#1848214
  5942. * src/RequestGroupMan.cc
  5943. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5945. * src/Makefie.am
  5946. * test/Makefile.am
  5947. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Fixed the bug that prevents aria2 from loading cookie file when expire
  5949. value is greater than 2^31-1. BUG#1851066
  5950. * src/CookieBoxFactory.cc
  5951. * test/CookieBoxFactoryTest.cc
  5952. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5953. Fixed possible memory leak when an exception is thrown.
  5954. * src/XML2SAXMetalinkProcessor.cc
  5955. Added Expat support. If both libxml2 and Expat are installed, then
  5956. libxml2 is used by default.
  5957. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5958. ExpatMetalinkProcessor according to the configuration.
  5959. * src/ExpatMetalinkProcessor.{h, cc}
  5960. * src/main.cc: Removed libxml2 specific header and init/free function.
  5961. * src/MetalinkProcessorFactory.{h, cc}
  5962. * src/MetalinkHelper.cc
  5963. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5964. * src/MetalinkProcessor.h
  5965. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5966. MetalinkProcessorTest is used instead.
  5967. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5968. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5969. MetalinkProcessorFactory::newInstance().
  5970. * m4/libexpat.m4
  5971. * configure.ac: Added configuration options for libexpat.
  5972. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Disabled -s option in metalink download.
  5974. * src/Metalink2RequestGroup.cc
  5975. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. If several protocols are available for a mirror in metalink file,
  5977. aria2 now use one of them. --metalink-preferred-protocol option was
  5978. added to specify the preference of protocol.
  5979. * src/AbstractCommand.cc
  5980. * src/OptionHandlerFactory.cc
  5981. * src/ServerHost.{h, cc}
  5982. * src/Metalink2RequestGroup.cc
  5983. * src/RequestGroup.{h, cc}
  5984. * test/RequestGroupTest.cc
  5985. * src/option_processing.cc
  5986. * src/prefs.h
  5987. * src/HttpResponseCommand.cc
  5988. * src/MetalinkResource.{h, cc}
  5989. * src/FtpNegotiationCommand.cc
  5990. * src/MetalinkEntry.{h, cc}
  5991. * src/MetalinkEntryTest.cc
  5992. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Code cleanup and added debug log.
  5994. * src/PeerConnection.cc
  5995. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Compiler error fix: applied the patch by Tiziano Mueller
  5997. * src/RequestGroup.cc
  5998. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6000. in stopped and completed event.
  6001. * src/AnnounceList.{h, cc}
  6002. * test/AnnounceListTest.cc
  6003. * src/DefaultBtAnnounce.cc
  6004. * test/DefaultBtAnnounceTest.cc
  6005. Sorted URLs.
  6006. * test/Metalink2RequestGroupTest.cc
  6007. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Removed unnecessary string copy. Updated doc and corrected indentation.
  6009. * src/Base64.cc
  6010. Fixed compilation warnings
  6011. * test/DataTest.cc
  6012. * test/HttpRequestTest.cc
  6013. * test/MetaFileUtilTest.cc
  6014. * test/RequestTest.cc
  6015. * Release 0.12.0
  6016. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Updated translations
  6018. * po/{de,fr,ja,nl,ru}.po
  6019. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6020. translations. Many thanks to translators.
  6021. * po/{ca,es,it,pt_BR,sv}.po
  6022. * po/LINGUAS
  6023. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Added a notice about URL
  6025. * src/version_usage.cc
  6026. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6027. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6028. aria2 repeatedly sends stopped request when tracker returns error code.
  6029. * src/AnnounceList.cc
  6030. * test/AnnounceListTest.cc
  6031. * src/AnnounceTier.h
  6032. Added a message when ctrl-c is hit.
  6033. Now second ctrl-c is also handled in signal handler.
  6034. * src/RequestGroupMan.{h, cc}
  6035. * src/RequestGroup.{h, cc}
  6036. * src/MultiUrlRequestInfo.cc
  6037. * src/DownloadEngine.cc
  6038. * src/TrackerWatcherCommand.cc
  6039. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Code cleanup
  6041. * src/Base64.cc (encode)
  6042. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Changed Direct/IO enable/disable procesure in file allocation routine.
  6044. * src/SingleFileAllocationIterator.cc
  6045. (SingleFileAllocationIterator):
  6046. Disable directIO if offset is not multiple of 512.
  6047. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6048. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6049. Enable created SingleFileAllocationIterator's directIO.
  6050. * src/FileAllocationEntry.cc
  6051. (FileAllocationEntry): Enable directIO here.
  6052. (~FileAllocationEntry): Disable directIO here.
  6053. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6055. * src/Peer.{h, cc}
  6056. * src/DefaultPieceStorage.cc
  6057. * test/DefaultPieceStorageTest.cc
  6058. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Rewritten direct I/O support routine
  6060. * src/SingleFileAllocationIterator.cc
  6061. * src/MultiDiskAdaptor.{h, cc}
  6062. * src/ByteArrayDiskWriter.h
  6063. * src/AbstractSingleDiskAdaptor.h
  6064. * src/AbstractDiskWriter.cc
  6065. * src/DefaultPieceStorage.cc
  6066. * src/DiskWriter.h
  6067. * src/BinaryStream.h
  6068. * src/IteratableChunkChecksumValidator.cc
  6069. * src/IteratableChecksumValidator.cc
  6070. * src/CheckIntegrityEntry.cc
  6071. * src/FileAllocationEntry.cc
  6072. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Fixed typo
  6074. * src/version_usage.cc
  6075. Updated doc
  6076. * doc/aria2c.1.txt
  6077. * doc/aria2c.1
  6078. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Fixed compile error without message digest support.
  6080. * src/FileMetalinkParserState.cc
  6081. * src/MetalinkParserController.{h, cc}
  6082. * test/XML2SAXMetalinkProcessorTest.cc
  6083. * test/MetalinkParserControllerTest.cc
  6084. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. Enable direct I/O support in checksum checking.
  6086. * src/IteratableChunkChecksumValidator.{h, cc}
  6087. * test/IteratableChunkChecksumValidatorTest.cc
  6088. * src/CheckIntegrityEntry.cc
  6089. * src/PieceHashCheckIntegrityEntry.cc
  6090. * src/IteratableChecksumValidator.{h, cc}
  6091. * src/BtCheckIntegrityEntry.cc: Added doc.
  6092. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Added --allow-piece-length-change option.
  6094. * src/DefaultBtProgressInfoFile.cc
  6095. * test/DefaultBtProgressInfoFileTest.cc
  6096. * src/OptionHandlerFactory.cc
  6097. * src/option_processing.cc
  6098. * src/prefs.h
  6099. * src/version_usage.cc
  6100. * doc/aria2c.1.txt
  6101. * doc/aria2c.1
  6102. Fixed: duplicated result entry appears when exception is thrown in
  6103. RequestGroup::createInitiateConnectionCommand().
  6104. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6105. Add RequestGroup to _requestGroup after RequetGroup::
  6106. createInitiateConnectionCommand() succeeds.
  6107. Externalized message
  6108. * src/XML2SAXMetalinkProcessor.cc
  6109. * src/message.h
  6110. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Forced download abort when received negative response from http/ftp
  6112. server.
  6113. * src/HttpResponseCommand.cc
  6114. * src/FtpNegotiationCommand.cc
  6115. * src/HttpResponse.cc
  6116. * src/FtpConnection.cc
  6117. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6118. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6119. the predecessor, Xml2MetalinkParser class.
  6120. I tested them against 94KB metalink file with 1234 chunk checksums.
  6121. The new one parsed it in 22msec, while it took 6000msec with old one.
  6122. * src/XML2SAXMetalinkProcessor.{h, cc}
  6123. * test/XML2SAXMetalinkProcessorTest.cc
  6124. * src/MetalinkParserController.{h, cc}
  6125. * test/MetalinkParserControllerTest.cc
  6126. * src/MetalinkParserState.h: Also added 16 subclasses.
  6127. * src/main.cc
  6128. * src/Metalink2RequestGroup.cc
  6129. * src/MetalinkHelper.cc
  6130. * src/MetalinkEntry.cc
  6131. * src/ChunkChecksum.h
  6132. Rewritten Base64 class for better performance.
  6133. * src/Base64.{h, cc}
  6134. * test/Base64Test.cc
  6135. * src/HttpRequest.cc
  6136. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Fixed the bug#1841757: aria2 will connect to server to only get
  6138. file size.
  6139. * src/StreamFileAllocationEntry.cc
  6140. * src/option_processing.cc
  6141. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6142. downloads.
  6143. * src/FtpNegotiationCommand.cc
  6144. Suppressed wrong message when finding PreDownloadHandler
  6145. * src/RequestGroup.cc
  6146. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Updated usage
  6148. * src/version_usage.cc
  6149. Updated man page
  6150. * doc/aria2c.1.txt
  6151. * doc/aria2c.1
  6152. Updated po files
  6153. * po/aria2c.pot
  6154. * po/*.po
  6155. * po/*.gmo
  6156. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Eliminated g++-4.2 warning
  6158. * src/DownloadHandlerConstants.{h, cc}
  6159. * src/Util.cc
  6160. * test/MetaFileUtilTest.cc
  6161. * test/PStringBuildVisitorTest.cc
  6162. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6163. * src/RequestGroup.cc
  6164. * src/BtCheckIntegrityEntry.cc
  6165. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Fixed a2io.h
  6167. * src/a2io.h
  6168. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Added direct I/O support. The current implementation uses O_DIRECT,
  6170. which is not posix standard and is tested on linux 2.6.21.
  6171. Currently only file allocation uses direct I/O.
  6172. * src/SingleFileAllocationIterator.{h, cc}
  6173. * test/SingleFileAllocationIteratorTest.cc
  6174. * src/MultiFileAllocationIterator.{h, cc}
  6175. * test/MultiFileAllocationIteratorTest.cc
  6176. * src/BinaryStream.h
  6177. * src/DiskWriter.h
  6178. * src/AbstractDiskWriter.{h, cc}
  6179. * src/ByteArrayDiskWriter.h
  6180. * src/DiskAdaptor.h
  6181. * src/AbstractSingleDiskAdaptor.{h, cc}
  6182. * src/MultiDiskAdaptor.{h, cc}
  6183. * src/FileAllocationEntry.cc
  6184. * src/Util.{h, cc}
  6185. * src/OptionHandlerFactory.cc
  6186. * src/prefs.h
  6187. * src/version_usage.cc
  6188. * src/option_processing.cc
  6189. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6190. handleException.
  6191. * src/MultiFileAllocationIterator.cc
  6192. Added EINTR handling
  6193. * src/SocketCore.cc
  6194. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Updated usage
  6196. * src/version_usage.cc
  6197. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Applied Ross's patch for MinGW port.
  6199. * src/DownloadEngine.h
  6200. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Set Content-Type to SingleFileDownloadContext when http response is
  6202. received.
  6203. * src/HttpResponseCommand.cc
  6204. * src/HttpResponse.{h, cc}
  6205. * test/HttpResponseTest.cc
  6206. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Rewritten to add content-type support.
  6208. * src/DownloadHandler.{h, cc}
  6209. * src/BtPostDownloadHandler.{h, cc}
  6210. * test/BtPostDownloadHandlerTest.cc
  6211. * src/MetalinkPostDownloadHandler.{h, cc}
  6212. * test/MetalinkPostDownloadHandlerTest.cc
  6213. * src/PostDownloadHandler.{h, cc}
  6214. * src/DownloadHandlerConstants.{h, cc}
  6215. * src/RequestGroup.cc
  6216. * src/HttpResponseCommand.cc
  6217. * src/FtpNegotiationCommand.cc
  6218. * src/SingleFileDownloadContext.{h, cc}
  6219. * src/RequestGroup.h
  6220. * src/RequestGroupCriteria.h
  6221. * src/ContentTypeRequestGroupCriteria.h
  6222. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6223. If it is give, metalink/torrent file is not written to the disk, but
  6224. just is kept in memory. Parsing is occurred on memory.
  6225. * src/MetalinkHelper.{h, cc}
  6226. * src/MetalinkProcessor.h
  6227. * src/Xml2MetalinkProcessor.{h, cc}
  6228. * test/Xml2MetalinkProcessorTest.cc
  6229. * src/DownloadHandlerFactory.{h, cc}
  6230. * test/DownloadHandlerFactoryTest.cc
  6231. * src/PreDownloadHandler.{h, cc}
  6232. * src/OptionHandlerFactory.cc
  6233. * src/DefaultBtContext.{h, cc}
  6234. * test/DefaultBtContextTest.cc
  6235. * src/version_usage.cc
  6236. * src/Metalink2RequestGroup.{h, cc}
  6237. * src/RequestGroup.{h, cc}
  6238. * src/a2functional.h
  6239. * test/a2functionalTest.cc
  6240. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6241. * src/OptionHandlerImpl.h
  6242. * src/prefs.h
  6243. * src/Util.{h, cc}
  6244. * test/UtilTest.cc
  6245. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6246. memory usage.
  6247. * src/RequestGroupMan.{h, cc}
  6248. * src/DownloadEngine.cc
  6249. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6250. WeakHandle to SharedHandle because WeakHandle could be null.
  6251. * src/RequestGroup.{h, cc}
  6252. * src/DownloadEngineFactory.cc
  6253. * src/DownloadResult.h
  6254. Set totalLength after download finished
  6255. * src/UnknownLengthPieceStorage.{h, cc}
  6256. Keep torrent file specified in metalink in memory.
  6257. * src/Metalink2RequestGroup.cc
  6258. * src/BtDependency.cc
  6259. * src/TrueRequestGroupCriteria.h
  6260. Fixed the bug: seekg is used where seekp should be used.
  6261. * src/ByteArrayDiskWriter.cc
  6262. * test/ByteArraydiskWriterTest.cc
  6263. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Fixed syntax error
  6265. * test/SequenceTest.cc
  6266. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6268. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6269. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6270. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6271. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Added the check to see whether ares_host_callback accepts timeouts
  6273. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6274. * src/NameResolver.{h, cc}
  6275. * m4/libcares.m4
  6276. * configure.ac: Set C++ for language choice.
  6277. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Fixed: compilation fails without c-ares/ares
  6279. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6280. Generate http/ftp commands only when download is incomplete.
  6281. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6282. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6283. Corrected typo. Examples are removed since they are available in man
  6284. page.
  6285. * src/version_usage.cc
  6286. Updated man page.
  6287. * doc/aria2c.1
  6288. * doc/aria2c.1.txt
  6289. * doc/makeman: Commented out sed command.
  6290. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Throw DlAbortEx when a remote file is not found.
  6292. * src/HttpResponse.cc
  6293. * src/FtpNegotiationCommand.cc
  6294. * src/message.h
  6295. Overwrite an existing file if --allow-overwrite=true is given.
  6296. * src/RequestGroup.cc
  6297. Removed unused functions
  6298. * src/AbstractCommand.h
  6299. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Removed 'extern' from 'extern typedef ...' in src/*.h
  6301. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. Updated usage
  6303. * src/version_usage.cc
  6304. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Trim announce URL
  6306. * src/DefaultBtContext.cc
  6307. * test/ShaVisitorTest.cc
  6308. Trim argument s. Give trimed s to exception constructor.
  6309. * src/Util.cc (parseInt)(parseLLInt)
  6310. * test/UtilTest.cc
  6311. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Set precision back to 1.
  6313. * src/ConsoleStatCalc.cc (calculateStat)
  6314. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Replaced strtol with Util::parseInt
  6316. * src/ChunkedEncoding.cc
  6317. * src/HttpConnection.cc
  6318. * src/CookieBoxFactory.cc
  6319. * src/ParameterizedStringParser.cc
  6320. * src/Util.cc
  6321. * test/UtilTest.cc
  6322. * test/OptionHandlerTest.cc
  6323. * src/Request.cc
  6324. Throw exception when empty string is given. The message for exception
  6325. changed.
  6326. * src/Util.cc (parseInt)(parseLLInt)
  6327. * src/message.h
  6328. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6330. set to 1.
  6331. * src/ConsoleStatCalc.cc (calculateStat)
  6332. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. Preallocate non-requested file which is adjacent forward to requested
  6334. file('requested' files means the files given in --select-file option)
  6335. if they share a same piece.
  6336. This fixes long pause in the file system which doesn't support sparse
  6337. files like FAT32 while downloading.
  6338. * src/MultiFileAllocationIterator.{h, cc}
  6339. * test/MultiFileAllocationIteratorTest.cc
  6340. * src/FileEntry.{h, cc}
  6341. Removed unused _option.
  6342. * src/MultiDiskAdaptor.h
  6343. * test/MultiDiskAdaptorTest.cc
  6344. * src/DefaultPieceStorage.cc
  6345. Set the default value of --seed-ratio to 1.0.
  6346. If 0.0 is given, then seeding continues regardless of share ratio.
  6347. * src/version_usage.cc
  6348. * src/option_processing.cc
  6349. * src/BtSetup.cc
  6350. * doc/aria2c.1.txt
  6351. * doc/aria2c.1
  6352. Fixed: Selective download is not working in BitTorrent
  6353. * src/RequestGroup.cc
  6354. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6355. * src/PieceStorage.h
  6356. * test/MockPieceStorage.h
  6357. * src/UnknownLengthPieceStorage.h
  6358. * src/DefaultPieceStorage.{h, cc}
  6359. * src/Metalink2RequestGroup.cc
  6360. * src/RequestGroup.cc
  6361. * src/Sequence.h
  6362. * test/SequenceTest.cc
  6363. * src/IntSequence.h
  6364. * src/message.h
  6365. * src/Util.{h, cc}
  6366. * test/UtilTest.cc
  6367. Added new function 'parse' to catch exception thrown by subclass's
  6368. parseArg
  6369. * src/OptionHandler.h
  6370. * src/OptionParser.cc
  6371. * src/NameMatchOptionHandler.h
  6372. * src/OptionHandlerImpl.h
  6373. * test/OptionHandlerTest.cc
  6374. Added IntegerRangeOptionHandler. Used for --listen-port and
  6375. --select-file. Now --listen-port accepts range of port.
  6376. * src/OptionHandlerFactory.cc
  6377. * src/version_usage.cc
  6378. * src/OptionHandlerImpl.h
  6379. * src/option_processing.cc
  6380. * src/BtSetup.cc
  6381. * src/PeerListenCommand.{h, cc}
  6382. * doc/aria2c.1.txt
  6383. * doc/aria2c.1
  6384. Implemented operator< for Exception class to provide easy way to print
  6385. exception stack trace.
  6386. * src/Exception.{h, cc}
  6387. * src/main.cc
  6388. * src/option_processing.cc
  6389. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. * src/version_usage.cc
  6391. (showVersion): Reworked.
  6392. (showUsage): Added examples.
  6393. Removed Hint for total length and file name.
  6394. * src/Metalink2RequestGroup.cc
  6395. * src/RequestGroup.{h, cc}
  6396. * src/HttpResponseCommand.cc
  6397. * src/FtpNegotiationCommand.cc
  6398. Now --follow-torrent and --follow-metalink option work properly.
  6399. * src/RequestGroup.cc
  6400. Updated man page
  6401. * doc/aria2c.1.txt
  6402. * doc/aria2c.1
  6403. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Removed.
  6405. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6406. Use Segment::operator==()
  6407. * src/HttpConnection.cc
  6408. * src/Segment.h
  6409. Updated usage
  6410. * src/version_usage.cc
  6411. Added EINTR treatment.
  6412. * src/SocketCore.cc
  6413. * src/AbstractDiskWriter.cc
  6414. Rewritten.
  6415. * src/Util.cc (rangedFileCopy)
  6416. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Fixed typo.
  6418. * src/version_usage.cc
  6419. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Implemented. Now -c option works fine.
  6421. * src/DefaultPieceStorage.cc (markPiecesDone)
  6422. * test/DefaultPieceStorageTest.cc
  6423. Removed.
  6424. * src/SegmentMan.{h, cc}
  6425. (markAllPiecesDone)
  6426. (markPieceDone)
  6427. Synchronized po files with
  6428. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6429. * src/fr.po
  6430. * src/ru.po
  6431. * src/de.po
  6432. * src/ja.po
  6433. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Added ifdef and some modifications to compile without BitTorrent,
  6435. Metalink, MessageDigest
  6436. support.
  6437. * src/PieceHashCheckIntegrityEntry.cc
  6438. * src/MetalinkEntry.h
  6439. * src/version_usage.cc
  6440. * src/main.cc
  6441. * src/DownloadEngine.{h, cc}
  6442. * src/Metalink2RequestGroup.cc
  6443. * src/Peer.cc
  6444. * src/RequestGroup.cc
  6445. * src/MetalinkHelper.cc
  6446. * test/DefaultPieceStorageTest.cc
  6447. * test/MetalinkPostDownloadHandlerTest.cc
  6448. * test/Metalink2RequestGroupTest.cc
  6449. Hide TOTAL SPD when all downloads complete.
  6450. * src/ConsoleStatCalc.cc
  6451. Log target system information.
  6452. * src/main.cc
  6453. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6454. Now --metalink-location accepts a comma-deliminated list of locations.
  6455. * src/MetalinkEntry.{h, cc}
  6456. * test/MetalinkEntryTest.cc
  6457. * src/version_usage.cc
  6458. * src/Metalink2RequestGroup.cc
  6459. * src/Xml2MetalinkProcessor.cc
  6460. * test/Xml2MetalinkProcessorTest.cc
  6461. * doc/aria2c.1.txt
  6462. * doc/aria2c.1
  6463. * src/Util.cc (toUpper)(toLower): Rewritten.
  6464. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Added the ability to detect duplicate download entry which is about to
  6466. download the same file other RequestGroup is downloading.
  6467. * src/RequestGroup.cc
  6468. * src/HttpResponseCommand.cc
  6469. * src/FtpNegotiationCommand.cc
  6470. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Recalculates download progress when loading a control file,
  6472. if the piece length of DownloadContext is different from the one saved
  6473. in the control file. Currently in-flight pieces are ignored.
  6474. * src/DefaultBtProgressInfoFile.cc
  6475. * test/DefaultBtProgressInfoFileTest.cc
  6476. * src/Util.{h, cc}
  6477. * test/UtilTest.cc
  6478. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Do not rotate tiers in announce-list.
  6480. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6481. AnnounceList::allTiersFailed() used instead to detect whether all
  6482. tiers are tried and failed.
  6483. * test/DefaultBtAnnounceTest.cc
  6484. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6485. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6486. * test/AnnounceListTest.cc
  6487. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6488. clause. Catch RecoverableException instead of DlRetryEx instead.
  6489. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Implemented checksum validation feature(1 checksum for each file)
  6491. The validation takes place after the download.
  6492. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6493. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6494. * src/CheckIntegrityCommand.cc: Changed log message.
  6495. * src/Metalink2RequestGroup.cc: Set checksum to
  6496. SingleFileDownloadContext.
  6497. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6498. PieceHashCheckIntegrity class.
  6499. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6500. PieceHashCheckIntegrity class.
  6501. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6502. * src/IteratableValidator.h: New class.
  6503. * src/message.h
  6504. * src/CheckIntegrityEntry.{h, cc}
  6505. * src/IteratableChunkChecksumValidator.{h, cc}
  6506. * src/SingleFileDownloadContext.h
  6507. * src/DownloadCommand.cc
  6508. --allow-overwrite=true is no longer needed to check file integrity
  6509. before download in BitTorrent download.
  6510. * src/RequestGroup.cc (getInitialCommand)
  6511. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6512. throws exception.
  6513. * src/RequestGroupMan.cc (getInitialCommands)
  6514. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. urlencode the given url inside Request::parseUrl(...)
  6516. * src/Request.{h, cc}
  6517. * src/Util.{h, cc}
  6518. * test/RequestTest.cc
  6519. Removed #!metalink3! notation support because it is deleted from
  6520. the metalink specification.
  6521. * src/Request.{h, cc}
  6522. * test/RequestTest.cc
  6523. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Don't connect server before checking file integrity at startup, if
  6525. filesize and output file path are known.
  6526. * src/AbstractCommand.cc
  6527. * src/StreamFileAllocationEntry.cc
  6528. * src/Metalink2RequestGroup.cc
  6529. * src/RequestGroup.{h, cc}
  6530. * src/HttpResponseCommand.cc
  6531. * src/FtpNegotiationCommand.cc
  6532. Added DownloadFailureException. If it is thrown, RequestGroup should
  6533. halt.
  6534. * src/AbstractCommand.cc
  6535. * src/DownloadFailureException.h
  6536. * src/RequestGroup.cc
  6537. Catch RecoverableException, instead of DlAbortEx.
  6538. * src/RequestGroupMan.cc
  6539. * src/FillRequestGroupCommand.cc
  6540. * src/MetaFileUtil.cc
  6541. * src/IteratableChunkChecksumValidator.cc
  6542. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6543. getGID())
  6544. * src/CheckIntegrityCommand.cc
  6545. * src/message.h
  6546. Print gid instead of idx.
  6547. * src/RequestGroupMan.cc
  6548. Removed exception throwers declaration.
  6549. * src/DirectDiskAdaptor.{h, cc}
  6550. * src/SocketCore.{h, cc}
  6551. * src/MultiDiskAdaptor.{h, cc}
  6552. * src/HttpConnection.{h, cc}
  6553. * src/HttpResponse.{h, cc}
  6554. * src/DiskAdaptor.{h, cc}
  6555. * src/CopyDiskAdaptor.{h, cc}
  6556. * src/MultiDiskAdaptor.{h, cc}
  6557. * src/HttpHeaderProcessor.{h, cc}
  6558. * src/AbstractSingleDiskAdaptor.{h, cc}
  6559. * src/Util.{h, cc}
  6560. * test/UtilTest.cc
  6561. * src/DefaultDiskWriter.{h, cc}
  6562. * src/FtpConnection.{h, cc}
  6563. * src/AbstractDiskWriter.{h, cc}
  6564. Removed duplicate code.
  6565. * src/StreamCheckIntegrityEntry.cc
  6566. Removed unnecessary include.
  6567. * src/DiskWriter.h
  6568. Included Exception.h
  6569. * src/option_processing.cc
  6570. Included 2 files and added doc
  6571. * src/TrackerWatcherCommand.cc
  6572. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6573. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Changed CheckIntegrityEntry interface so that it can define
  6575. the action when all the chunk checksums are valid.
  6576. * src/CheckIntegrityEntry.h
  6577. * src/StreamCheckIntegrityEntry.{h, cc}
  6578. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6579. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6580. to exit rather than doing seeding. So, it would be good to toggle this
  6581. behavior.
  6582. * src/CheckIntegrityCommand.cc
  6583. * src/AbstractCommand.cc
  6584. * src/RequestGroup.cc
  6585. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6586. Reflect the download length of in-flight pieces.
  6587. It makes the download length readout more precise.
  6588. * src/DefaultPieceStorage.{h, cc}
  6589. * test/DefaultPieceStorageTest.cc
  6590. * src/a2functional.h
  6591. * test/a2functionalTest.cc
  6592. Lower CPU load when --max-download-limit is used.
  6593. There is up and down in speed indicator when enabling
  6594. http-pipelining but a download goes well. I think the problem is that
  6595. because http-pipelining is enabled, DownloadCommand is created for
  6596. each segment and in its constructor, PeerStat::downloadStart() is
  6597. called. In PeerStat::downloadStart(), speed calculation object is
  6598. reseted, which makes download speed zero.
  6599. * src/DownloadCommand.cc
  6600. Rewritten using accumulate.
  6601. * src/RequestGroupMan.cc (calculateStat)
  6602. Code clearnup.
  6603. * src/FtpNegotiationCommand.cc
  6604. * src/HttpResponseCommand.cc
  6605. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Fixed: Can not resume: aria2 reports download already finished.
  6607. * src/AbstractCommand.{h, cc}
  6608. * src/HttpResponseCommand.cc
  6609. * src/FtpNegotiateCommand.cc
  6610. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Now a file is stored in the directory specified in .metalnk file
  6612. (file[@name]).
  6613. * src/Metalink2RequestGroup.cc
  6614. Create the directory structure when opening the file if it doesn't
  6615. exist.
  6616. * src/AbstractDiskWriter.cc
  6617. * src/Util.{h, cc}
  6618. * src/File.h
  6619. * test/UtilTest.cc
  6620. Removed file name comparison
  6621. * src/Metalink2RequestGroup.cc
  6622. * src/HttpResponseCommand.cc
  6623. Rewritten using Util::mkdirs()
  6624. * src/FileEntry.cc (setupDir)
  6625. * test/FileEntryTest.cc
  6626. Updated doc
  6627. * src/SingleFileDownloadContext.h
  6628. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6629. Now SleepCommand dispatches nextCommand when halt is requested.
  6630. It avoids a possible long wait after hitting CTRL-C.
  6631. * src/SleepCommand.{h, cc}
  6632. * src/RequestGroupAware.{h, cc}
  6633. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6635. to open listen port, then remove the port number from the tracker
  6636. request.
  6637. * src/DefaultBtAnnounce.cc
  6638. * test/DefaultBtAnnounceTest.cc
  6639. * test/MockPieceStorage.h
  6640. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6641. them more testable.
  6642. * src/DefaultBtAnnounce.{h, cc}
  6643. * src/DefaultBtContext.{h, cc}
  6644. * src/Util.{h, cc}
  6645. * test/DefaultBtAnnounceTest.cc
  6646. * test/DefaultBtContextTest.cc
  6647. * test/UtilTest.cc
  6648. Added 'B' to upload bytes readout.
  6649. * src/ConsoleStatCalc.cc
  6650. Now the listen port for BitTorrent download is opened when it is
  6651. needed.
  6652. * src/DownloadEngineFactory.cc
  6653. * src/BtSetup.{h, cc}
  6654. * src/PeerListenCommand.{h, cc}
  6655. Now an exception thrown while parsing tracker response is now logged.
  6656. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6657. called, which means no retry is made in this case, assuming a tracker
  6658. has a problem.
  6659. * src/TrackerWatcherCommand.cc
  6660. Fixed: downloading a file whose length is unkown fails.
  6661. * src/DownloadCommand.cc
  6662. Simplified prepareForNextSegment()
  6663. * src/DownloadCommand.cc
  6664. Updated
  6665. * po/POTFILES.in
  6666. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Re-implemented a file listing for Metalink, which was dropped while
  6668. http/ftp/torrent integration was being implemented.
  6669. * src/MetalinkHelper.{h, cc}: New class.
  6670. * test/MetalinkHelperTest.cc
  6671. * src/main.cc
  6672. * src/Metalink2RequestGroup.cc
  6673. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Added the ability to display the detailed torrent file information.
  6675. Now -S option gives not only a file listing, but also total download
  6676. length, info hash, announce URI, piece length, the number of pieces,
  6677. and mode(single or multi-torrent).
  6678. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6679. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6680. KiB)
  6681. * test/UtilTest.cc
  6682. * src/main.cc
  6683. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Added ftp://USER:PASSWD@Servername automatic parsing.
  6685. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6686. _password. Recognize username and password in URI.
  6687. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6688. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6689. * src/RequestFactory.{h, cc}: Removed.
  6690. * src/AuthConfigFactory.{h, cc}: New class.
  6691. * src/FtpConnection.cc: Use AuthConfigFactory.
  6692. * src/HttpRequest.cc: Use AuthConfigFactory.
  6693. * test/HttpRequestTest.cc: Updated.
  6694. * test/RequestTest.cc: Updated.
  6695. * test/AuthConfigFactoryTest.cc: New class.
  6696. * test/RequestFactoryTest.cc: Removed.
  6697. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Use RequestGroup::allDownloadFinished() to decide whether the control
  6699. file should be removed or saved.
  6700. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6701. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6702. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Use File::renameTo()
  6704. * src/DefaultBtProgressInfoFile.cc
  6705. Added --no-file-allocation-limit command-line option.
  6706. * src/version_usage.cc
  6707. * src/option_processing.cc
  6708. * src/OptionHandlerFactory.cc
  6709. * src/RequestGroup.{h, cc}
  6710. * src/BtCheckIntegrityEntry.cc
  6711. * src/StreamCheckIntegrityEntry.cc
  6712. * src/prefs.h
  6713. * doc/aria2c.1.txt
  6714. * doc/aria2c.1
  6715. Now prealloc is the default value for --file-allocation option.
  6716. * src/version_usage.cc
  6717. * src/option_processing.cc
  6718. * doc/aria2c.1.txt
  6719. * doc/aria2c.1
  6720. Don't URL-encode user-agent.
  6721. * src/HttpRequest.cc
  6722. Updated translations
  6723. * po/LINGUAS: Added nl for Dutch translation.
  6724. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6725. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6726. * po/POTFILES.in: Updated.
  6727. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Added the ability to recognize url-list in a torrent file.
  6729. The retrieved URLs are attached to the corresponding FileEntry.
  6730. * src/DefaultBtContext.{h, cc}
  6731. * src/FileEntry.{h, cc}
  6732. * test/DefaultBtContextTest.cc
  6733. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6735. after the download finishes.
  6736. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6738. the data smaller than block length.
  6739. A block length can be specified by constructor's argument.
  6740. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6741. Get a missing piece in the range of given FileEntry. This function is
  6742. not used in the program yet.
  6743. * src/Util.h: Added some macros.
  6744. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Added HTTP/1.1 keep alive and pipelining support.
  6746. See --enable-http-keep-alive and --enable-http-pipelining option.
  6747. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6748. Segment.
  6749. * src/HttpDownloadCommand.{h, cc}
  6750. * src/OptionHandlerFactory.cc
  6751. * src/HttpConnection.{h, cc}
  6752. * src/version_usage.cc
  6753. * src/HttpInitiateConnectionCommand.cc
  6754. * src/FtpInitiateConnectionCommand.cc
  6755. * src/Segment.h
  6756. * src/HttpRequestCommand.{h, cc}
  6757. * src/option_processing.cc
  6758. * src/prefs.h
  6759. * src/HttpResponseCommand.cc
  6760. * src/SegmentMan.{h, cc}
  6761. * src/FtpNegotiateCommand.cc
  6762. * src/HttpProxyResponseCommand.cc
  6763. * src/Request.cc
  6764. * src/HttpRequest.cc
  6765. * src/DownloadCommand.cc
  6766. * test/HttpRequestTest.cc
  6767. * test/RequestTest.cc
  6768. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6770. finished.
  6771. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6773. catching it inside the method.
  6774. When no file entry is found in a metalink without querying user
  6775. preferences, throw the exception with the error message that suggests
  6776. metalink file is probably broken.
  6777. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6778. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6780. processed.
  6781. * src/RequestGroupMan.cc (removeStoppedGroup)
  6782. Added debug message.
  6783. * src/BtPostDownloadHandler.cc
  6784. * src/MetalinkPostDownloadHandler.cc
  6785. * src/PostDownloadHandler.{h, cc}
  6786. * src/RequestGroup.cc
  6787. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6789. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6791. stops and there are any unfinished or in-progress downloads.
  6792. Added the legend of "stat".
  6793. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Throw exception when chunck checksum verification fails.
  6795. * src/DownloadCommand.cc (validatePieceHash): New function.
  6796. * src/PiecedSegment.{h, cc} (clear): New function.
  6797. * src/GrowSegment.{h, cc} (clear): New function.
  6798. * src/Segment.h (clear): New function.
  6799. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6800. * test/SegmentTest.cc
  6801. * test/GrowSegmentTest.cc
  6802. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. Do not send referer when redirected.
  6804. * src/Request.cc (redirectUrl)
  6805. * test/RequestTest.cc
  6806. * test/HttpRequestTest.cc
  6807. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6808. Implemented BitTorrent/http/ftp integrated download.
  6809. I've rewritten lots of files and now some headers have forward
  6810. class declarations to reduce compile time.
  6811. The implementation is extremely alpha stage, I recommend to use this
  6812. for testing purpose only.
  6813. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Fixed the compilation error on 64bit platform.
  6815. * test/HttpHeaderProcessorTest.cc
  6816. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Merged Ross's patch that fixes compilation problem in MinGW
  6818. * test/DefaultBtProgressInfoFileTest.cc
  6819. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. Updated fr.po by sebone
  6821. * po/fr.po
  6822. Updated man page.
  6823. * doc/aria2c.1.txt
  6824. * Release 0.11.3
  6825. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6827. failure in Metalink.
  6828. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Automatically save *.aria2 control file of http/ftp download in every
  6830. 60 seconds.
  6831. * src/AutoSaveCommand.{h, cc}: New class.
  6832. * src/TimeBasedCommand.{h, cc}: New class.
  6833. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6834. Disable parameterized URI support by default. Added -P option to
  6835. enable the feature.
  6836. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6837. * src/OptionHandlerFactory.cc
  6838. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6839. Updated Japanese translation.
  6840. * po/ja.po
  6841. Updated man page.
  6842. * doc/aria2c.1.txt
  6843. * Release 0.11.3-rc
  6844. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6846. it is successful, then renamed to *.aria2.
  6847. This prevents *.aria2 file from being truncated or corrupted when
  6848. file system becomes out of space.
  6849. * src/DefaultBtProgressInfoFile.cc (save)
  6850. * src/SegmentMan.cc (save)
  6851. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6852. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Reduced the fragmentation of bitfield in http/ftp download.
  6854. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6855. * test/BitfieldManTest.cc
  6856. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Added the ability to disable segmented download in .metalink.
  6858. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6859. 'url' tag.
  6860. * src/MetalinkEntry.{h, cc}
  6861. * src/RequestResource.{h, cc}
  6862. * src/MetalinkRequestInfo.cc
  6863. * src/Xml2MetalinkProcessor.cc
  6864. * test/Xml2MetalinkProcessorTest.cc
  6865. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Added parameterized URI support.
  6867. * src/main.cc: -Z option added.
  6868. * src/OptionHandlerFactory.cc
  6869. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6870. * src/PStringDatum.h: New class.
  6871. * src/PStringSegment.{h,cc}: New class.
  6872. * src/PStringNumLoop.h: New class.
  6873. * src/PStringSelect.h: New class.
  6874. * src/NumberDecorator.h: New class.
  6875. * src/FixedWidthNumberDecorator.h: New class.
  6876. * src/AlphaNumberDecorator.h: New class.
  6877. * src/PStringVisitor.h: New class.
  6878. * src/PStringBuildVisitor.{h,cc}: New class.
  6879. * src/ParameterizedStringParser.{h,cc}: New class.
  6880. * src/Util.{h,cc}
  6881. (isNumber): New function.
  6882. (isLowercase): New function.
  6883. (isUppercase): New function.
  6884. (alphaToNum): New function.
  6885. * test/ParameterizedStringParserTest.cc: New class.
  6886. * test/AlphaNumberDecoratorTest.cc: New class.
  6887. * test/PStringBuildVisitorTest.cc: New class.
  6888. * test/UtilTest.cc
  6889. (testIsNumber): New function.
  6890. (testIsLowercase): New function.
  6891. (testIsUppercase): New function.
  6892. (testAlphaToNum): New function.
  6893. Added '\n' after the error message
  6894. * src/RequestInfo.h (printDownloadAbortMessage)
  6895. Added auto file renaming feature in http(s)/ftp download.
  6896. * src/main.cc: Added --auto-file-renaming command-line option.
  6897. * src/OptionHandlerFactory.cc
  6898. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6899. * src/RequestGroup.{h, cc}
  6900. (shouldCancelDownloadForSafety): Rewritten
  6901. (tryAutoFileRenaming): New function.
  6902. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6903. * src/HttpResponseCommand.cc
  6904. (executeInternal): Removed the call to RequestGroupMan::
  6905. isSameFileBeingDownloaded()
  6906. * src/FtpNegotiateCommand.cc
  6907. (recvSize): Removed the call to RequestGroupMan::
  6908. isSameFileBeingDownloaded()
  6909. * test/RequestGroupTest.cc: New class.
  6910. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6912. IO.
  6913. * src/DefaultBtProgressInfoFile.cc
  6914. * src/MetaFileUtil.cc
  6915. * src/SimpleLogger.cc
  6916. * src/SegmentMan.cc
  6917. * src/Util.cc
  6918. * src/Platform.cc
  6919. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6921. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6923. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6924. Fixed the bug that prevents file allocation is not done when
  6925. dowloading multi-torrent file.
  6926. * src/AbstractDiskWriter.cc (openFile)
  6927. Increase the maximum number of -j option from 15 to 45.
  6928. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6929. Added fr.po, thanks to Charles Landemaine.
  6930. * po/fr.po
  6931. * po/LINGUAS
  6932. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6933. gcc 3.4.4 support:
  6934. * src/DefaultBtContext.cc: int32_t -> int
  6935. * src/main.cc: int -> int32_t, int32_t -> int
  6936. * src/messageDigest.h: uint32_t -> unsigned int
  6937. * src/NameResolver.h: int32_t -> int
  6938. * src/PeerConnection.cc: int -> int32_t
  6939. * src/SpeedCalc.cc: int32_t -> int
  6940. * src/TrackerUpdateCommand.h: int -> int32_t
  6941. * src/Util.cc: int32_t -> int
  6942. * src/Util.h: int32_t -> int
  6943. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6944. * test/AnnounceListTest.cc: int -> int32_t
  6945. * test/ChunkedEncodingTest.cc: int -> int32_t
  6946. * test/DataTest.cc: int -> int32_t
  6947. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6948. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6949. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6950. * test/FeatureConfigTest.cc: int -> int32_t
  6951. * test/MetalinkEntryTest.cc: int -> int32_t
  6952. * test/MockBtRequestFactory.h: int -> int32_t
  6953. * test/MockPieceStorage.h: int -> int32_t
  6954. * test/OptionTest.cc: int -> int32_t
  6955. * test/RequestTest.cc: int -> int32_t
  6956. * test/SegmentManTest.cc: int -> int32_t
  6957. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6958. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6959. Move sleep functions to Util class:
  6960. * src/Util.cc
  6961. (sleep): New function.
  6962. (usleep): New function.
  6963. * src/DownloadCommand.cc: sleep -> Util::sleep
  6964. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6965. MinGW build enhancements. The following files are added:
  6966. * src/timegm.{c,h}
  6967. Changes to support the above new files:
  6968. * configure.ac
  6969. * src/Makefile.am
  6970. * src/a2time.h
  6971. * src/Util.cc:
  6972. * src/strptime.c: Added support for %Z option.
  6973. Fixed MinGW non-blocking bug.
  6974. * src/SocketCore.cc
  6975. * src/HttpRequestCommand.cc
  6976. Miscellenous build fixes/enhancements.
  6977. * configure.ac: Added summary report.
  6978. * src/Platform.h: Tweaked #include's.
  6979. * src/a2netcompat.h: Tweaked #include's.
  6980. * src/strptime.h: Tweaked #include's.
  6981. * src/gai_strerror.c: Tweaked #include's.
  6982. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  6983. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  6984. * src/gettimeofday.h: Added HAVE_CONFIG_H
  6985. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. Increased the initial connection size in BitTorrent download to 40.
  6987. * src/BtRuntime.h
  6988. Added the usage message of --peer-id-prefix option.
  6989. * src/main.cc
  6990. * Release 0.11.2
  6991. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. MessageDigestHelper is introduced in order to simplify the use
  6993. of message digest. Removed repeated code.
  6994. The message digest algorithm is now specified by string, like "sha1",
  6995. "md5".
  6996. * src/messageDigest.{h, cc}
  6997. * src/MessageDigestHelper.{h, cc}: New class.
  6998. * src/DefaultPieceStorage.cc
  6999. * src/DefaultBtContext.{h, cc}
  7000. (computeFastSet): New function.
  7001. (setInfoHash): Added for unit testing.
  7002. (setNumPieces): Added for unit testing.
  7003. * src/DefaultBtInteractive.cc
  7004. * src/BtPieceMessage.cc
  7005. * src/Peer.cc
  7006. * src/Checksum.h
  7007. * src/message.h
  7008. * src/IteratableChecksumValidator.h
  7009. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7010. inside it.
  7011. * src/SegmentMan.{h, cc}
  7012. (checkIntegrity): Removed.
  7013. * src/IteratableChunkChecksumValidator.{h, cc}
  7014. * src/Util.h
  7015. (sha1Sum): Removed.
  7016. (simpleMessageDigest): Removed.
  7017. (fileChecksum): Removed.
  7018. (computeFastSet): Removed.
  7019. * src/ShaVisitor.cc
  7020. * src/ChunkChecksum.h
  7021. * src/DownloadCommand.cc
  7022. Removed messageDigest virtual functions.
  7023. * src/MultiDiskAdaptor.{h, cc}
  7024. * src/DiskAdaptor.h
  7025. * src/ByteArrayDiskWriter.h
  7026. * src/DiskWriter.h
  7027. * src/DiskAdaptorWriter.h
  7028. * src/AbstractSingleDiskAdaptor.{h, cc}
  7029. * src/AbstractDiskWriter.{h, cc}
  7030. Fixed comilation error when message digest is disabled.
  7031. * src/MetalinkEntry.{h, cc}
  7032. * src/MetalinkRequestInfo.cc
  7033. Removed srandom and random.
  7034. * src/SimpleRandomizer.h
  7035. Added size() virtual function to DiskAdaptor
  7036. * src/MultiDiskAdaptor.h
  7037. Fixed the bug that causes that files are not opened correctly in
  7038. multi-file torrent.
  7039. * src/TorrentRequestInfo.cc
  7040. * src/MultiDiskAdaptor.cc
  7041. Added SHA256 support
  7042. * src/messageDigest.cc
  7043. * src/Xml2MetalinkProcessor.cc
  7044. Show supported message digest algorithms
  7045. * src/main.cc
  7046. Updated contact info.
  7047. * src/main.cc
  7048. Applied Ross's patch
  7049. * src/a2netcompat.h
  7050. * src/main.cc
  7051. Fixed the bug that prevents a remote metalink from not being processed
  7052. even if '-o foo.metalink' is specified.
  7053. * src/MetalinkRequestInfo.cc
  7054. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Merged Dan's patch:
  7056. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7057. Use va_copy to avoid core dump on amd64:
  7058. * src/SimpleLogger.cc
  7059. Updated contact info.
  7060. * src/main.cc
  7061. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7062. digest is not available.
  7063. * src/MetalinkEntry.h
  7064. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Make a2netcompat.h include a2io.h to fix compilation error:
  7066. * src/a2netcompat.h
  7067. * src/SocketCore.cc: Removed include of a2io.h
  7068. * src/Util.cc: Removed include of a2io.h
  7069. Gather time related functions to a2time.h:
  7070. * src/a2time.h: New file.
  7071. * src/DefaultPeerStorage.cc
  7072. * src/SimpleLogger.cc
  7073. * src/Util.{h, cc}
  7074. * src/SimpleRandomizer.h
  7075. * src/TimeA2.{h,cc}
  7076. * src/DownloadCommand.cc
  7077. * src/main.cc
  7078. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7079. a2netcompat.h:
  7080. * src/NameResolver.cc
  7081. Fixed compilation error without openssl:
  7082. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7083. Added default block to suppress compiler warnings:
  7084. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7085. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7086. MinGW build enhancements. The following files are added:
  7087. * src/gai_strerror.{c,h}
  7088. * src/gettimeofday.{c,h}
  7089. Changes to support the above new files:
  7090. * configure.ac
  7091. * src/Makefile.am
  7092. * src/a2netcompat.h
  7093. * src/TimeA2.cc
  7094. * src/DefaultPeerStorage.cc
  7095. * src/NameResolver.cc: removed mingw_strerror() function.
  7096. * src/SocketCore.cc: removed mingw_strerror() function.
  7097. Miscellaneous MinGW build fixes.
  7098. * src/a2io.h: Use _lseeki64() instead of lseek()
  7099. * src/common.h
  7100. * src/DefaultFileAllocator.cc
  7101. * src/GlowFileAllocator.cc
  7102. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7103. * src/NameResolver.cc
  7104. (callback): Changed int32_t to int.
  7105. (resolve): Changed int32_t to int.
  7106. * src/Platform.cc
  7107. * src/Platform.h
  7108. * test/MultiDiskWriterTest.cc
  7109. * test/PeerMessageUtilTest.cc
  7110. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7111. Other enhancements and fixes.
  7112. * src/HttpRequestCommand.cc
  7113. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7114. * src/SocketCore.cc:
  7115. (error): New function to abstract errno/WSAGetLastError().
  7116. (errorMsg): New function to abstract errno/WSAGetLastError().
  7117. (initiateSecureConnection): Added more detailed error reporting.
  7118. * src/SocketCore.h: Added private variable blocking, to allow
  7119. proper handling of OpenSSL psuedo-errors.
  7120. * src/message.h
  7121. (EX_SSL_INIT_FAILURE)
  7122. (EX_SSL_IO_ERROR)
  7123. (EX_SSL_PROTOCOL_ERROR)
  7124. (EX_SSL_UNKNOWN_ERROR)
  7125. (EX_SSL_CONNECT_ERROR)
  7126. (EX_SOCKET_BLOCKING)
  7127. (EX_SOCKET_NONBLOCKING)
  7128. (EX_SOCKET_UNKNOWN_ERROR)
  7129. * src/Util.cc
  7130. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7131. reserved name.
  7132. (httpGMT): Fixed typo.
  7133. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Merged Ross's win32 patch(manually)
  7135. In the course of merging, following files are added.
  7136. * src/strptime.{h,c}
  7137. * src/libgen.{h,c}
  7138. * src/inet_aton.{h,c}
  7139. * src/Platform.{h,cc}
  7140. * src/localtime_r.{h,c}
  7141. * src/getaddrinfo.{h,c}
  7142. I've gethered network related things, and put them to following file:
  7143. * src/a2netcompat.h
  7144. Also io related things are put to following file:
  7145. * src/a2io.h
  7146. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7147. * src/message.h
  7148. (MSG_ALLOCATION_COMPLETED)
  7149. (EX_TOO_LARGE_FILE)
  7150. (EX_SIZE_MISMATCH)
  7151. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7152. (EX_INVALID_CHUNK_CHECKSUM)
  7153. (EX_INVALID_RANGE_HEADER)
  7154. * src/FileAllocationCommand.cc
  7155. * src/HttpResponse.cc
  7156. * src/RequestGroup.cc
  7157. * src/MultiDiskAdaptor.cc
  7158. * src/OptionHandlerImpl.h
  7159. * src/HttpResponseCommand.cc
  7160. * src/FtpNegotiateCommand.cc
  7161. * src/IteratableChecksumValidator.cc
  7162. * src/SegmentMan.cc
  7163. * src/ChunkChecksumValidator.cc
  7164. Added Randomizer::getRandomNumber(long int)
  7165. * src/Randomizer.h (getRandomNumber)
  7166. * src/SimpleRandomizer.h (getRandomNumber)
  7167. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7168. * src/Util.cc (randomAlpha): Use this new function.
  7169. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Converted int's to in32_t. long long int's are also converted to
  7171. int64_t
  7172. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Fixed the bug that prevents cookies from being sent to the server
  7174. if the domain of cookie is FQDN and starts with ".".
  7175. * src/Cookie.cc (match)
  7176. To add the ability to change peer id.
  7177. * src/DefaultBtContext.h
  7178. (_peerIdPrefix): New variable
  7179. (setPeerIdPrefix): New function.
  7180. * src/torrentRequestInfo.cc
  7181. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7182. DefaultBtContext.
  7183. * src/main.cc (main): Added peer-id-prefix command-line option.
  7184. The usage message is not added yet.
  7185. * src/DefaultBtContext.cc
  7186. (generatePeerId): Use _peerIdPrefix.
  7187. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7188. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Fixed the bug that prevents filename in content-disposition from
  7190. being retrieved when filename is not quoted.
  7191. * src/Util.cc (getContentDispositionFilename)
  7192. Fixed the bug that causes infinate loop and memory leak when file open
  7193. operation failed.
  7194. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7195. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Fixed the bug that causes segfault when all URIs specified are
  7197. unsupported.
  7198. * src/RequestGroupMan.cc (getInitialCommands)
  7199. Check if RequestGroup::createNextCommand() returns empty list of
  7200. commands.
  7201. * src/RequestGroup.cc (createNextCommand)
  7202. Change log level from info to error so that users can notice that
  7203. an error occurred.
  7204. Fixed the bug that causes segfault when a zero-sized file is
  7205. downloaded.
  7206. * src/BitfieldMan.cc (isAllBitSet)
  7207. Return true if bitfieldLength is 0.
  7208. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. * src/main.cc
  7210. (showUsage): Added 3 usage examples for metalink download.
  7211. Replace MetalinkChunkChecksum with ChunkChecksum.
  7212. * src/MetalinkChunkChecksum.h: Removed.
  7213. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7214. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7215. * src/Xml2MetalinkProcessor.cc
  7216. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7217. * src/MetalinkRequestInfo.cc (execute)
  7218. * Release 0.11.1
  7219. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Reads URIs from stdin when "-i -" is specified.
  7221. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7222. * src/UriListParser.h, src/UriListParser.cc: New class.
  7223. * src/StreamUriListParser.h: New class.
  7224. * src/FileUriListParser.h: New class.
  7225. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7226. instead of UriFileListParser.
  7227. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Made console readout more readable.
  7229. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7230. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Fix the bug that causes -s option not to work.
  7232. * src/main.cc (main)
  7233. * src/a2algo.h: New file.
  7234. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Create directory structure specified in metalink file.
  7236. * src/RequestGroup.h, src/RequestGroup.cc
  7237. (initAndOpenFile): Create a directory to store files if it does not
  7238. exist.
  7239. (getDir): New function.
  7240. Added ETA and download speed for an individual file to readout.
  7241. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7242. * src/RequestGroup.h
  7243. (calculateDownloadSpeed): New function.
  7244. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Made -S option work with metalink file and provided selective download
  7246. to metalink.
  7247. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7248. (filename): Removed.
  7249. (file): New variable.
  7250. (size): Removed.
  7251. (operator=): Updated.
  7252. (getPath): New function.
  7253. (getLength): New function.
  7254. (toFileEntry): New function.
  7255. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7256. (execute): Use toStream.
  7257. (showFileEntry): Removed.
  7258. * src/MetalinkRequestInfo.h
  7259. (targetFiles): New variable.
  7260. (setTargetFiles): New variable.
  7261. * src/MetalinkRequestInfo.cc
  7262. (execute): Added the ability to print file information included in
  7263. a metalink file.
  7264. Added selective download mode to metalink.
  7265. * src/main.cc
  7266. (showUsage): Updated to denote that -S and --select-file options are
  7267. applicable to metalink.
  7268. * src/FileEntry.h
  7269. (operator=): New function.
  7270. (getBasename): New function.
  7271. (getDirname): New function.
  7272. * src/Util.h, src/Util.cc
  7273. (toStream): New function.
  7274. * src/Xml2MetalinkProcessor.cc: Updated.
  7275. Made aria2 work with metalink with directory structure.
  7276. * src/File.h, src/File.cc
  7277. (getBasename): New function.
  7278. (getDirname): New function.
  7279. * src/RequestGroup.h, src/RequestGroup.cc
  7280. (_topDir): New variable.
  7281. (setTopDir): New function.
  7282. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7283. Rewrote HTTP header parsing with stringstream.
  7284. * src/HttpConnection.h, src/HttpConnection.cc
  7285. (HttpRequestEntry): New class.
  7286. (headerBuf): Removed.
  7287. (headerBufLength): Removed.
  7288. (outstandingHttpRequests): Now its element type is
  7289. HttpRequestEntryHandle.
  7290. (findEndOfHeader): Removed.
  7291. (receiveResponse): Rewritten.
  7292. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7293. Updated doc for -j option to notice that it should be used with -i
  7294. option.
  7295. * src/main.cc (showUsage)
  7296. Removed unused classes.
  7297. * src/RequestInfo.h
  7298. (FileInfo): Removed.
  7299. (checksum): Removed.
  7300. (fileInfo): Removed.
  7301. (setChecksum): Removed.
  7302. (getChecksum): Removed.
  7303. (getFileInfo): Removed.
  7304. Use ISO units.
  7305. * src/ConsoleDownloadEngine.cc
  7306. * src/TorrentConsoleDownloadEngine.cc
  7307. * src/Util.cc (abbrevSize)
  7308. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Added the default listening ports to the help message.
  7310. * src/main.cc (showUsage)
  7311. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Reduce the number of calls to gettimeofday to lower CPU load.
  7313. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7314. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7315. * src/Peer.h (calculateUploadSpeed): New function.
  7316. (calculateDownloadSpeed): New function.
  7317. * src/DefaultPeerStorage.cc
  7318. (CalculateStat): Added _now variable.
  7319. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7320. and Peer::calculateUploadSpeed(const struct timeval&)
  7321. Drop connection if no request or piece message is exchanged in
  7322. a certain interval.
  7323. * src/DefaultBtInteractive.h
  7324. (btRuntime): New variable.
  7325. (inactiveCheckPoint): New variable.
  7326. (checkActiveInteraction): New function.
  7327. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7328. request or piece message is received.
  7329. (checkActiveInteraction): New function.
  7330. (doInteractionProcessing): Call checkActiveInteraction.
  7331. Fixed the bug that causes remote Metalink and Torrent files are not
  7332. processed.
  7333. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7334. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Changed format of log file.
  7336. * src/SimpleLogger.cc
  7337. * Release 0.11.0
  7338. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. * src/AbstractCommand.cc
  7340. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7341. MSG_MAX_TRY from error to info.
  7342. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7343. * src/message.h
  7344. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7345. (MSG_DOWNLOAD_ABORTED): Added %s.
  7346. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7347. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7348. * src/PeerAbstractCommand.cc
  7349. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7350. * src/Request.h
  7351. (cookieBox): Made ShardHandle.
  7352. * src/RequestGroup.h, src/RequestGroup.cc
  7353. (createNextCommandWithAdj): New function.
  7354. * src/FileAllocationCommand.cc
  7355. (executeInternal): Use createNextCommandWithAdj().
  7356. * src/CheckIntegrityCommand.cc
  7357. (executeInternal): Use createNextCommandWithAdj().
  7358. Added --load-cookies command-option.
  7359. * src/OptionHandlerFactory.cc
  7360. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7361. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7362. Now aria2 can handle cookie's expiration date.
  7363. * src/Cookie.h (expires): Changed its type to time_t.
  7364. * src/main.cc: Added --load-cookies command-line option.
  7365. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7366. * src/Util.h, src/Util.cc (httpGMT): New function.
  7367. * src/Request.cc (Request): Initialize cookieBox using
  7368. CookieBoxFactory.
  7369. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7370. * src/CookieParser.h, src/CookieParser.cc: New class.
  7371. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7372. * src/HttpResponseCommand.cc
  7373. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7374. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7375. download.
  7376. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Added -j command-line option.
  7378. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7379. * src/main.cc
  7380. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7381. Rewritten using stringstream.
  7382. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7383. Rewritten using stringstream.
  7384. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Make download size shown in MB, KB.
  7386. * src/ConsoleDownloadEngine.h (sendStatistics)
  7387. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7388. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Accept incoming connections if download rate is low.
  7390. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7391. (_lowestSpeedLimit): New variable.
  7392. (setLowestSpeedLimit): New function.
  7393. (execute): Accept incoming connections if download rate is low.
  7394. MAX_PEERS is ignored in this case.
  7395. Disable PREF_OUT in multiple concurrent download:
  7396. * src/RequestGroup.h, src/RequestGroup.cc
  7397. (setUserDefinedFilename): New function.
  7398. * src/DownloadEngineFactory.cc
  7399. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7400. concurrent download.
  7401. * src/DefaultSegmentManFactory.cc
  7402. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7403. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7405. Added its overloaded method.
  7406. * src/RequestGroup.h
  7407. (_numConcurrentCommand): New variable.
  7408. (setNumConcurrentCommand): New function.
  7409. * src/RequestGroup.cc
  7410. Abort download if same file is being downloaded concurrently.
  7411. * src/RequestGroup.h, src/RequestGroupMan.cc
  7412. (isSameFileBeingDownloaded): New function.
  7413. * src/HttpResponseCommand.cc (executeInternal)
  7414. * src/FtpNegotiateCommand.cc (recvSize)
  7415. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7416. * main.cc: Added help message for -i option.
  7417. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7419. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7420. * src/MetalinkEntry.h
  7421. (checksum): Changed to ChecksumHandle
  7422. * src/MetalinkRequestInfo.cc
  7423. (checksum): Changed to ChecksumHandle
  7424. * src/File.cc
  7425. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7426. * src/common.h
  7427. (DIR_OPEN_MODE): New definition
  7428. * src/RequestGroup.cc
  7429. (prepareForNextAction): Added an argument.
  7430. * src/message.h
  7431. (MSG_GOOD_CHECKSUM): New definition
  7432. (MSG_BAD_CHECKSUM): New definition
  7433. * src/HttpResponseCommand.cc
  7434. (handleDefaultEncoding): Continue download sequence in new
  7435. non-segmented download.
  7436. * src/FileAllocationEntry.h
  7437. (_nextDownloadCommand): New variable.
  7438. * src/DownloadCommand.cc
  7439. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7440. available.
  7441. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7442. * src/IteratableChecksumValidator.h,
  7443. src/IteratableChecksumValidator.cc: New class.
  7444. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7445. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Change file mode to 666:
  7447. * src/common.h (OPEN_MODE): New definition.
  7448. * src/File.cc
  7449. * src/Util.cc
  7450. * src/Directry.cc
  7451. * src/AbstractDiskWriter.cc
  7452. Change the level of log message "download aborted" to debug:
  7453. * src/PeerAbstractCommand.cc (execute)
  7454. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7455. * src/TrackerWatcherCommand.cc
  7456. (createCommand): Sleep some seconds after request failed.
  7457. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7458. then abort tracker request.
  7459. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. * Added the simultaneous download feature.
  7461. * src/main.cc: Print "Exception caught: " when exception is caught.
  7462. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7463. * src/ActivePeerConnectionCommand.cc
  7464. * src/PeerInteractionCommand.cc
  7465. * src/BtRuntime.h
  7466. (cuidCounter): Removed.
  7467. (getNewCuid): Removed.
  7468. * src/DownloadEngineFactory.cc
  7469. * src/PeerListenCommand.cc
  7470. * src/TrackerUpdateCommand.cc
  7471. * src/PeerInitiateConnectionCommand.cc
  7472. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. * src/PeerAbstractCommand.cc
  7474. (onAbort): Call PeerStorage::returnPeer()
  7475. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7476. (incomingPeers): New variable.
  7477. (addIncomingPeer): New function.
  7478. (returnPeer): New function.
  7479. (onErasingPeer): New function.
  7480. (addPeer): push_back -> push_front
  7481. (getActivePeers): Rewritten.
  7482. (calculateStat): Rewritten.
  7483. * src/PeerStorage.h
  7484. (TransferStat::copy): New function.
  7485. (TransferStat::TransferStat): New function.
  7486. (TransferStat::operator=): New function.
  7487. (addIncomingPeer): New function.
  7488. (returnPeer): New function.
  7489. * src/PeerListenCommand.cc
  7490. (execute): Use PeerStorage::addIncomingPeer() instead of
  7491. Peer::addPeer().
  7492. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Connect to a peer actively when download speed is lower than specified
  7494. speed in torrent download:
  7495. * src/ActivePeerConnectionCommand.h: New class.
  7496. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7498. * src/main.cc: Fixed the bug that prevents download if .netrc
  7499. doesn't exist.
  7500. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. To cache resolved hostname:
  7502. * src/AbstractCommand.h, src/AbstractCommand.cc
  7503. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7504. Added dns cache.
  7505. * src/FtpInitiateConnectionCommand.cc
  7506. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7507. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7508. NameResolver working without ares.
  7509. * src/TorrentRequestInfo.cc
  7510. (execute): Don't cache dns in torrent download.
  7511. * src/HttpInitiateConnectionCommand.cc
  7512. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7513. * src/DNSCache.h: New class.
  7514. * src/UrlRequestInfo.cc
  7515. (execute): Use dns cache.
  7516. In http request, suppress port number in http request header if port
  7517. is 80 or 443:
  7518. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7519. request header if port is 80 or 443.
  7520. (createProxyRequest): Allways send port number.
  7521. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. To add the command-line option which disables netrc support:
  7523. * src/OptionHandlerFactory.cc
  7524. (createOptionHandlers): Added PREF_NO_NETRC.
  7525. * src/main.cc: Added -n option.
  7526. * src/prefs.h (PREF_NO_NETRC): New definition.
  7527. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7528. V_TRUE.
  7529. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7530. is V_FALSE. This may get configurable in the future release.
  7531. To clear peer's error status by time basis:
  7532. * src/PeerAbstractCommand.cc
  7533. (onAbort): Call Peer::startBadCondition().
  7534. * src/Peer.h, src/Peer.cc
  7535. (error): Removed.
  7536. (_badConditionStartTime): New variable.
  7537. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7538. (startBadCondition): New function.
  7539. (isGood): New function.
  7540. * src/DefaultPeerStorage.cc
  7541. (addPeer): Use Peer::isGood().
  7542. (FindFinePeer): Use Peer::isGood().
  7543. Always include port number in http request header:
  7544. * src/HttpRequest.cc (getHostText): Always include port number in
  7545. http request header.
  7546. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. To the ability to read options from a config file:
  7548. * src/main.cc: Command-line parameter validation is delegated to
  7549. OptionHandler class.
  7550. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7551. * src/Option.h, src/Option.cc (clear): New function.
  7552. * src/OptionParser.h, src/OptionParser.cc: New class.
  7553. * src/OptionHandler.h: New class.
  7554. * src/NameMatchOptionHandler.h: New class.
  7555. * src/OptionHandlerImpl.h: New classes.
  7556. * src/prefs.h: '_' -> '-'
  7557. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7558. (FTP_PASV): New definition.
  7559. * src/Util.h, src/Util.cc (getRealSize): New function.
  7560. To disable netrc support if .netrc file does not have correct
  7561. permissions:
  7562. * src/File.h, src/File.cc (mode): New function.
  7563. To prevent confidential information to be logged:
  7564. * src/HttpConnection.h, src/HttpConnection.cc
  7565. (eraseConfidentialInfo): New function.
  7566. (sendRequest): Call eraseConfidentialInfo().
  7567. (sendProxyRequest): Call eraseConfidentialInfo().
  7568. * src/main.cc: Validate permissions of .netrc file.
  7569. To add --user-agent command-line option:
  7570. * src/main.cc: Added new command line option: --user-agent
  7571. * src/prefs.h (PREF_USER_AGENT): New definition.
  7572. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7573. parameter to HttpRequest object.
  7574. * src/AbstractProxyRequestCommand.cc
  7575. (executeInternal): Set user-agent option parameter to HttpRequest
  7576. object.
  7577. Marged the patches from Dan Fandrich.
  7578. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Use filename and size from Metalink file instead of sending HEAD
  7580. request:
  7581. * src/UrlRequestInfo.h
  7582. (_filename): New variable.
  7583. (_totalLength): New variable.
  7584. (setTotalLength): New variable.
  7585. (setFilename): New variable.
  7586. * src/MetalinkRequestInfo.cc
  7587. (execute): Set filename and size to UrlRequestInfo
  7588. * src/UrlRequestInfo.cc
  7589. (execute): Use filename and size from Metalink instead of seding
  7590. HEAD request to servers.
  7591. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. To add the ability to resume downloading a partially downloaded file
  7593. which is downloaded from the beginning:
  7594. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7595. takes this role.
  7596. * src/main.cc: Added -c option.
  7597. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7598. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7599. * src/prefs.h (PREF_CONTINUE): New definition.
  7600. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7601. * src/DefaultDiskWriter.cc
  7602. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7603. * src/AbstractDiskWriter.h
  7604. (glowFileAllocator): New variable.
  7605. * src/AbstractDiskWriter.cc
  7606. (openExistingFile): Now preallocate file space from the end of the
  7607. existing file if totalLength argument is specified and grater than 0.
  7608. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7609. to download exists in local, continue the download of the file.
  7610. --allow-overwrite=true is assumed in this context.
  7611. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7612. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7613. Throw exception if --check-integrity=true is specified but chunk
  7614. checksums are not provided:
  7615. * src/UrlRequestInfo.cc
  7616. Do not print URLs to stdout:
  7617. * src/UrlRequestInfo.cc
  7618. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. * src/Request.h: Use AuthResolver to get authentication information.
  7620. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7621. set to RequestFactory object.
  7622. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7623. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7624. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7625. create Request object.
  7626. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7627. To integrate Netrc into exsiting classes:
  7628. * src/Request.h
  7629. (_userDefinedAuthConfig): New variable.
  7630. (findNetrcAuthenticator): New function.
  7631. (segment): Removed.
  7632. (setUserDefinedAuthConfig): New function.
  7633. (resolveHttpAuthConfigItem): New function.
  7634. (resolveFtpAuthConfigItem): New function.
  7635. (resolveHttpProxyAuthConfigItem): New function.
  7636. * src/HttpRequest.h
  7637. (authConfig): Removed.
  7638. (proxyAuthConfig): Removed.
  7639. (setAuthConfig): Removed.
  7640. (setProxyAuthConfig): Removed.
  7641. * src/UrlRequest.h
  7642. (getHeadResult): Added a parameter: authConfigHandle
  7643. * src/common.h
  7644. (SingletonHolder.h): New include.
  7645. * src/main.cc
  7646. (Netrc.h): New include.
  7647. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7648. Added initial value of PREF_NETRC_PATH.
  7649. Added the initialization of netrc.
  7650. * src/AuthConfig.h: New class.
  7651. * src/prefs.h
  7652. (PREF_NETRC_PATH): New definition.
  7653. * src/HttpAuthConfig.h: Removed.
  7654. * src/Netrc.cc
  7655. (getRequiredNextToken): New function.
  7656. (skipMacdef): New function.
  7657. (parse): Rewritten.
  7658. * src/Netrc.h
  7659. (getRequiredNextToken): New function.
  7660. (skipMacdef): New function.
  7661. * src/Util.h, src/Util.cc
  7662. (getHomeDir): New function.
  7663. * src/TrackerWatcherComand.cc
  7664. (createRequestCommand): Use AuthConfig.
  7665. * src/FtpConnection.cc
  7666. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7667. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7668. * src/Request.cc
  7669. (findNetrcAuthenticator): New function.
  7670. (resolveHttpAuthConfigItem): New function.
  7671. (resolveFtpAuthConfigItem): New function.
  7672. (resolveHttpProxyAuthConfigItem): New function.
  7673. * src/UrlRequestInfo.cc: Use AuthConfig.
  7674. * src/HttpRequest.cc
  7675. (createRequest): Use authConfig.
  7676. (getProxyAuthString): Use authConfig.
  7677. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7678. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7679. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7680. To reduce overhead to find commands whose socket is either
  7681. readable or writable in the download engine loop:
  7682. * src/Command.h, src/Command.cc
  7683. (STATUS): New enum.
  7684. (status): New variable.
  7685. (statusMatch): New function.
  7686. (setStatusActive): New function.
  7687. (setStatusInactive): New function.
  7688. * src/DownloadEngine.h, src/DownloadEngine.cc
  7689. (executeCommand): New function.
  7690. (run): Simplified.
  7691. (waitData): Call Command::setStatusActive() when command's socket is
  7692. readable or writable.
  7693. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. To handle Segment as SegmentHandle:
  7695. * src/AbstractCommand.cc (execute): Rewritten.
  7696. * src/SegmentMan.h: Segment -> SegmentHandle
  7697. Introducded HttpResponse class, HttpRequest class to improve code
  7698. extensiveness and make it clear:
  7699. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7700. HttpResponse class.
  7701. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7702. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7703. * src/HttpConnection.cc: Contruction of http request were moved to
  7704. HttpRequest class.
  7705. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7706. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7707. * src/HttpAuthConfig.h: New class.
  7708. * src/Range.h: New class.
  7709. To make FtpTunnel{Request, Response}Command and
  7710. HttpProxy{Request, Response}Command derived from
  7711. AbstractProxy{Request, Response}Command:
  7712. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7713. Derived from AbstractProxyRequestCommand class.
  7714. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7715. Derived from AbstractProxyResponseCommand class.
  7716. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7717. Derived from AbstractProxyRequestCommand class.
  7718. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7719. Derived from AbstractProxyResponseCommand class.
  7720. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7721. : New class.
  7722. * src/AbstractProxyResponseCommand.h,
  7723. src/AbstractProxyResponseCommand.cc: New class.
  7724. To add netrc support:
  7725. * src/Netrc.h, src/Netrc.cc: New class.
  7726. * src/Util.h, src/Util.cc (split): New function.
  7727. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7728. "Content-Range" header instead of "Range" header.
  7729. * src/HttpHeader.h
  7730. (getStatus): Removed.
  7731. (setStatus): Removed.
  7732. * src/Segment.h
  7733. (getPositionToWrite): New function.
  7734. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. * src/HttpHeader.h
  7736. (Range.h): New include.
  7737. (status): New variable.
  7738. (HttpHeader): Initialized status with 0.
  7739. (getStatus): New function.
  7740. (setStatus): New function.
  7741. (getRange): New function.
  7742. (HttpHeaderHandle): New function.
  7743. * src/HttpHeader.cc
  7744. (getRange): New function.
  7745. * src/Request.h
  7746. (RequestWeakHandle): New definition.
  7747. * src/HttpConnection.h
  7748. (HttpConnectionHandle): New type definition.
  7749. * src/HttpConnection.cc
  7750. (receiveResponse): Set HTTP status to headers.
  7751. * src/main.cc
  7752. (showUsage): Fixed typo.
  7753. * src/Segment.h
  7754. (SegmentHandle): New type definition.
  7755. * src/BitfieldMan.h
  7756. (getMissingUnusedLength): New function.
  7757. * src/BitfieldMan.cc
  7758. (getMissingUnusedLength): New function.
  7759. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. To fix static initialization order problem:
  7761. * src/BitfieldManFactory.h
  7762. (defaultRandomizer): Removed.
  7763. (factory): New variable.
  7764. (getNewFactory): Removed.
  7765. (getFactoryInstance): New function.
  7766. (setDefaultRandomizer): Rewritten.
  7767. (getDefaultRandomizer): Rewritten.
  7768. * src/BitfieldManFactory.cc
  7769. (defaultRandomizer): Removed.
  7770. (factory): Initialized to 0.
  7771. (BitfieldManFactory): Initialized randomizer to 0.
  7772. * src/DefaultPieceStorage.cc
  7773. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7774. * src/Peer.cc
  7775. (Peer): getNewFactory() -> getFactoryInstance()
  7776. * src/SegmentMan.cc
  7777. (initBitfield): getNewFactory() -> getFactoryInstance()
  7778. * src/Piece.cc
  7779. (Piece): getNewFactory() -> getFactoryInstance()
  7780. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. To fix the bug that causes crash on Max OS X:
  7782. * src/SimpleRandomizer.h
  7783. (getInstance): Create new instance if the static variable is null.
  7784. * src/SimpleRandomizer.cc
  7785. (randomizer): Initialized to 0.
  7786. * src/BitfieldManFactory.h
  7787. (getNewFactory): Removed the call to setRandomizer().
  7788. To fix the miscalculation of the range of checksum:
  7789. * src/BitfieldMan.h
  7790. (isBitSetOffsetRange): New function.
  7791. * src/BitfieldMan.cc
  7792. (isBitSetOffsetRange): New function.
  7793. * src/SegmentMan.cc
  7794. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7795. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7796. * Release 0.10.1
  7797. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. To lower CPU usage in BitTorrent download when --max-upload-limit
  7799. command-line option specified:
  7800. * src/DefaultBtMessageDispatcher.cc
  7801. (sendMessages): Calculate uploading speed only when current message
  7802. is uploading data and is not sent yet.
  7803. * src/DefaultPeerStorage.h
  7804. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7805. * src/HttpResponseCommand.cc
  7806. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7807. This fixes compile error in Soralis 10.
  7808. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. To fix segfault in Metalink download:
  7810. * src/UrlRequestInfo.h
  7811. (filename): Removed.
  7812. (totalLength): Removed.
  7813. (setTotalLength): Removed.
  7814. (setFilename): Removed.
  7815. * src/MetalinkRequestInfo.cc
  7816. (execute): Do not set filename and totalLength to reqInfo.
  7817. Set chunk checksum to reqInfo if it is not null.
  7818. * src/HttpResponseCommand.cc
  7819. (executeInternal): Fixed filename in log.
  7820. (handleDefaultEncoding): Removed the call to initBitfield() and
  7821. markAllPiecesDone().
  7822. (handleOtherEncoding): Added HEAD method handling.
  7823. * src/FtpNegotiateCommand.cc
  7824. (executeInternal): Added SEQ_HEAD_OK handling.
  7825. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7826. return false.
  7827. * src/FtpNegotiateCommand.h
  7828. (SEQ_HEAD_OK): New definition.
  7829. * src/SegmentMan.cc
  7830. (initBitfield): Delete bitfield.
  7831. (isChunkChecksumValidationReady): Fixed the condition.
  7832. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7833. works fine.
  7834. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. * src/Xml2MetalinkProcessor.h
  7836. (xpathExists): New function.
  7837. * src/Xml2MetalinkProcessor.cc
  7838. (xpathExists): New function.
  7839. Not to send HEAD request if filename and size are available in Metalink
  7840. file:
  7841. * src/UrlRequestInfo.h
  7842. (filename): New variable.
  7843. (totalLength): New variable.
  7844. (setTotalLength): New function.
  7845. (setFilename): New function.
  7846. * src/MetalinkRequestInfo.cc
  7847. (execute): Set filename and size to UrlRequestInfo.
  7848. * src/MetalinkEntry.cc
  7849. (MetalinkEntry): Initialize size with 0.
  7850. * src/UrlRequestInfo.cc
  7851. (execute): Set filename and size to SegmentMan.
  7852. Not to download rest of the files after selected files are downloaded
  7853. in BitTorrent:
  7854. * src/PieceStorage.h
  7855. (allDownloadFinished): New function.
  7856. * src/DefaultBtAnnounce.cc
  7857. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7858. downloadFinished.
  7859. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7860. * src/DefaultPieceStorage.cc
  7861. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7862. Commented out the call to finishSelectiveDownloadingMode().
  7863. (downloadFinished): Call isFilteredAllBitSet() instead of
  7864. isAllBitSet().
  7865. (allDownloadFinished): New function.
  7866. * src/DefaultBtInteractive.cc
  7867. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7868. downloadFinished().
  7869. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7870. * src/TorrentDownloadEngine.cc
  7871. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7872. * src/BitfieldMan.h
  7873. (isFilteredAllBitSet): New function.
  7874. * src/ShareRatioSeedCriteria.h
  7875. (PieceStorage.h): New include.
  7876. (pieceStorage): New variable.
  7877. (evaluate):
  7878. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7879. * src/BitfieldMan.cc
  7880. (isFilteredAllBitSet): New function.
  7881. (isAllBitSet): Filter is not took into account.
  7882. Rename --force-truncate as --allow-overwrite:
  7883. * src/TorrentRequestInfo.cc
  7884. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7885. * src/main.cc
  7886. (showUsage): --force-truncate -> --allow-overwrite
  7887. * src/message.h
  7888. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7889. * src/prefs.h
  7890. (PREF_FORCE_TRUNCATE): Removed.
  7891. (PREF_ALLOW_OVERWRITE): New definition.
  7892. * src/SegmentMan.cc
  7893. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7894. * src/MetalinkRequestInfo.cc
  7895. (execute): Queueing message are now logged in info level.
  7896. * src/common.h
  7897. (LONG_LONG_MAX): Removed.
  7898. (LONG_LONG_MIN): Removed.
  7899. * src/HttpResponseCommand.cc
  7900. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7901. * src/FtpNegotiateCommand.cc
  7902. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7903. * src/main.cc
  7904. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7905. command-line option.
  7906. (main): Added --check-integriy and --realtime-chunk-checksum
  7907. command-line option.
  7908. --force-truncate -> --allow-overwrite
  7909. Set initial value of --check-integrity option to false.
  7910. Don't show usage when error occurs while persing command-line options.
  7911. Removed deprecated --upload-limit option.
  7912. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7914. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7915. * src/BtAllowedFastMessage.cc:
  7916. * src/BtBitfieldMessage.cc
  7917. * src/BtCancelMessage.cc
  7918. * src/BtChokeMessage.cc
  7919. * src/BtHaveAllMessage.cc
  7920. * src/BtHaveMessage.cc
  7921. * src/BtHaveNoneMessage.cc
  7922. * src/BtInterestedMessage.cc
  7923. * src/BtNotInterestedMessage.cc
  7924. * src/BtPieceMessage.cc
  7925. * src/BtPortMessage.cc
  7926. * src/BtRejectMessage.cc
  7927. * src/BtRequestMessage.cc
  7928. * src/BtSuggestPieceMessage.cc
  7929. * src/BtUnchokeMessage.cc
  7930. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7931. files are affected.
  7932. * src/ChunkChecksumValidator.cc
  7933. * src/SegmentMan.cc
  7934. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. To add chunk checksum validation:
  7936. * src/MetalinkEntry.h
  7937. (MetalinkChunkChecksum.h): New include.
  7938. (chunkChecksum): New variable.
  7939. * src/Request.h
  7940. (method): New variable.
  7941. (setMethod): New function.
  7942. (getMethod): New function.
  7943. (METHOD_GET): New static constant.
  7944. (METHOD_HEAD): New static constant.
  7945. * src/Xml2MetalinkProcessor.h
  7946. (getPieceHash): New function.
  7947. * src/PieceStorage.h
  7948. (markAllPiecesDone): New function.
  7949. (checkIntegrity): New function.
  7950. * src/FileAllocator.h
  7951. (NullFileAllocationMonitor.h): New include.
  7952. (FileAllocator): Initialize fileAllocationMonitor with new
  7953. NullFileAllocationMonitor().
  7954. * src/MultiDiskAdaptor.h
  7955. (messageDigest.h): Remove include.
  7956. (ctx): Removed.
  7957. (hashUpdate): Added ctx.
  7958. (MultiDiskAdaptor): Removed ctx.
  7959. (sha1Sum): Renamed as messageDigest.
  7960. (messageDigest): New function.
  7961. * src/UrlRequestInfo.h
  7962. (HeadResult): New class.
  7963. (digestAlgo): New variable.
  7964. (chunkChecksumLength): New variable.
  7965. (chunkChecksums): New variable.
  7966. (getHeadResult): New function.
  7967. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7968. (setDigestAlgo): New function.
  7969. (setChunkChecksumLength): New function.
  7970. (setChunkChecksums): New function.
  7971. * src/DefaultPieceStorage.cc
  7972. (DiskAdaptorWriter.h): New include.
  7973. (ChunkChecksumValidator.h): New include.
  7974. (markAllPiecesDone): New function.
  7975. (checkIntegrity): New function.
  7976. * src/DefaultBtContext.h
  7977. (getPieceHashes): New function.
  7978. * src/TorrentRequestInfo.cc
  7979. (execute): Try to validate chunk checksum if file already exists and
  7980. .aria2 file doesn't there and user allows aria2 to overwrite it.
  7981. * src/messageDigest.h
  7982. (~MessageDigestContext): Added digestFree().
  7983. * src/MetalinkRequestInfo.cc
  7984. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  7985. * src/DiskAdaptor.h
  7986. (messageDigest.h): New include.
  7987. (sha1Sum): Renamed as messageDigest.
  7988. (messageDigest): New function.
  7989. * src/DownloadCommand.h
  7990. (PeerStat.h): New include.
  7991. (maxDownloadSpeedLimit): New variable.
  7992. (startupIdleTime): New variable.
  7993. (lowestDownloadSpeedLimit): New variable.
  7994. (peerStat): New variable.
  7995. (setMaxDownloadSpeedLimit): New function.
  7996. (setStartupIdleTime): New function.
  7997. (setLowestDownloadSPeedLimit): New function.
  7998. * src/BtContext.h
  7999. (getPieceHashes): New function.
  8000. * src/main.cc
  8001. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8002. option to true for testing purpose.
  8003. * src/BtPieceMessage.cc
  8004. (checkPieceHash): Use messageDigest
  8005. * src/DownloadEngine.cc
  8006. (SetDescriptor): Removed.
  8007. (AccumulateActiveCommand): Removed.
  8008. (waitData): Rewritten.
  8009. (updateFdSet): Rewritten.
  8010. * src/MultiDiskAdaptor.cc
  8011. (hashUpdate): Added ctx.
  8012. (sha1Sum): Renamed as messageDigest.
  8013. (messageDigest): New function.
  8014. * src/BitfieldMan.h
  8015. (isBitRangeSet): New function.
  8016. (unsetBitRange): New function.
  8017. * src/ByteArrayDiskWriter.h
  8018. (sha1Sum): Renamed as messageDigest.
  8019. (messageDigest): New function.
  8020. * src/ConsoleDownloadEngine.cc
  8021. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8022. * src/DiskWriter.h
  8023. (messageDigest.h): New include.
  8024. (sha1Sum): Renamed as messageDigest.
  8025. (messageDigest): New function.
  8026. * src/ChunkChecksumValidator.h: New class.
  8027. * src/DiskAdaptorWriter.h: New class.
  8028. * src/prefs.h
  8029. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8030. (PREF_CHECK_INTEGRITY): New definition.
  8031. * src/HttpResponseCommand.cc
  8032. (handleDefaultEncoding): Added method "HEAD" handling.
  8033. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8034. (handleOtherEncoding):
  8035. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8036. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8037. startupIdleTime, lowestDownloadSpeedLimit to command.
  8038. * src/SegmentMan.h
  8039. (getSegmentEntryByIndex): New function.
  8040. (getSegmentEntryByCuid): New function.
  8041. (getSegmentEntryIteratorByCuid): New function.
  8042. (diskWriter): DiskWriter -> DiskWriterHandle
  8043. (pieceHashes): New variable.
  8044. (chunkHashLength): New variable.
  8045. (digestAlgo): New variable.
  8046. (FindPeerStat): Removed.
  8047. (getPeerStat): Rewritten.
  8048. (markAllPiecesDone): New function.
  8049. (checkIntegrity): New function.
  8050. (tryChunkChecksumValidation): New function.
  8051. (isChunkChecksumValidationReady): New function.
  8052. * src/BitfieldMan.cc
  8053. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8054. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8055. blocks to 0.
  8056. (isBitRangeSet): New function.
  8057. (unsetBitRange): New function.
  8058. * src/FtpNegotiateCommand.cc
  8059. (executeInternal): Set maxDownloadSpeedLimit,
  8060. startupIdleTime, lowestDownloadSpeedLimit to command.
  8061. (recvSize): Added method "HEAD" handling.
  8062. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8063. * src/AbstractSingleDiskAdaptor.cc
  8064. (sha1Sum): Renamed as messageDigest.
  8065. (messageDigest): New function.
  8066. * src/AbstractSingleDiskAdaptor.h
  8067. (sha1Sum): Renamed as messageDigest.
  8068. (messageDigest): New function.
  8069. * src/Util.h
  8070. (indexRange): New function.
  8071. * src/MetalinkEntry.cc
  8072. (MetalinkEntry): Initialized chunkChecksum to 0.
  8073. * src/ShaVisitor.cc
  8074. (~ShaVisitor): Removed the call to ctx.digestFree().
  8075. * src/SegmentMan.cc
  8076. (ChunkChecksumValidator.h): New include.
  8077. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8078. to DIGEST_ALGO_SHA1.
  8079. (~SegmentMan): Removed diskWriter.
  8080. (FindSegmentEntryByIndex): Removed.
  8081. (FindSegmentEntryByCuid): Removed.
  8082. (checkoutSegment): Rewritten.
  8083. (findSlowerSegmentEntry): Rewritten.
  8084. (getSegment): Rewritten.
  8085. (updateSegment): Rewritten.
  8086. (completeSegment): Rewritten.
  8087. (markAllPiecesDone): New function.
  8088. (checkIntegrity): New function.
  8089. (isChunkChecksumValidationReady): New function.
  8090. (tryChunkChecksumValidation): New function.
  8091. * src/Xml2MetalinkProcessor.cc
  8092. (getEntry): Get size and set it to entry.
  8093. Get chunk checksum and set it to entry.
  8094. (getPieceHash): New function.
  8095. * src/Util.cc
  8096. (sha1Sum): Removed ctx.digestFree()
  8097. (fileChecksum): Removed ctx.digestFree()
  8098. (indexRange): New function.
  8099. * src/Request.cc
  8100. (METHOD_GET): New variable.
  8101. (METHOD_HEAD): New variable.
  8102. (Request): Added method.
  8103. * src/UrlRequestInfo.cc
  8104. (FatalException.h): New include.
  8105. (message.h): New include.
  8106. (operator<<): Added operator<< for class HeadResult.
  8107. (getHeadResult): New function.
  8108. (execute): Get filename and size in separate download engine.
  8109. * src/ChunkChecksumValidator.cc: New class.
  8110. * src/DownloadCommand.cc:
  8111. (DownloadCommand): Added peerStat.
  8112. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8113. the value from Option.
  8114. The buffer size is now 16KB.
  8115. Use peerStat member instead of getting it from SegmentMan.
  8116. Use startupIdleTime member instead of gettingit from Option.
  8117. Added chunk checksum validation.
  8118. * src/AbstractDiskWriter.cc
  8119. (AbstractDiskWriter): Removed ctx.
  8120. (~AbstractDiskWriter): Removed ctx.digestFree()
  8121. (writeDataInternal): Returns the return value of write.
  8122. (readDataInternal): Returns the return value of read.
  8123. (sha1Sum): Renamed as messageDigest
  8124. (messageDigest): New function.
  8125. * src/AbstractDiwkWriter.h
  8126. (messageDigest.h): Removed include.
  8127. (ctx): Removed.
  8128. (sha1Sum): Renamed as messageDigest
  8129. (messageDigest): New function.
  8130. * src/DefaultPieceStorage.h
  8131. (markAllPiecesDone): New function.
  8132. (checkIntegrity): New function.
  8133. * src/NullFileAllocationMonitor.h: New class.
  8134. * src/MetalinkChunkChecksum.h: New class.
  8135. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8136. To decrease CPU usage in bittorrent download, calculation results in
  8137. BitfieldMan were cached and realtime fetching PeerObject was removed
  8138. with WeakHandle introduced. Option values are set to the objects
  8139. by setter before download begins.
  8140. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8141. * src/DefaultBtRequestFactory.h
  8142. (dispatcher): BtMessageDispatcherHandle ->
  8143. BtMessageDispatcherWeakHandle.
  8144. (messageFactory): New variable.
  8145. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8146. BtMessageDispatcherWeakHandle.
  8147. (setBtMessageFactory): New function.
  8148. * src/DefaultBtMessageDispatcher.cc:
  8149. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8150. from Option.
  8151. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8152. feating the value from Option.
  8153. Use messageFactory member.
  8154. * src/PeerInteractionCommand.cc
  8155. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8156. Add reverse dependencies to factory object.
  8157. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8158. dispatcher.
  8159. Set messageFactory to receiver.
  8160. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8161. btInteractive.
  8162. Set receiver to peerObject.
  8163. Set maxDownloadSpeedLimit to this.
  8164. (executeInternal): Use maxDownloadSpeedLimit member.
  8165. * src/BtChokeMessage.cc
  8166. (doReceivedAction): Use dispatcher, requestFactory member.
  8167. (onSendComplete): Use dispatcher member.
  8168. * src/PeerInteractionCommand.h
  8169. (maxDownloadSpeedLimit): New variable.
  8170. * src/DefaultBtMessageReceiver.h
  8171. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8172. (dispatcher):
  8173. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8174. (messageFactory): New variable.
  8175. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8176. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8177. (setDispatcher):
  8178. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8179. (setBtMessageFactory): New function.
  8180. * src/DefaultBtInteractive.cc
  8181. (initiateHandshake): Use messageFactory member.
  8182. (addBitfieldMessageToQueue): Use messageFactory member.
  8183. (addAllowedFastMessageToQueue): Use messageFactory member.
  8184. (decideChoking): Use messageFactory member.
  8185. (checkHave): Use messageFactory member.
  8186. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8187. (receiveMessages): Use maxDownloadSpeedLimit member.
  8188. (decideInterest): Use messageFactory member.
  8189. * src/BtRequestMessage.cc
  8190. (doReceivedAction): Use messageFactory, dispatcher member.
  8191. (onQueued): Use dispatcher member.
  8192. * src/BtPieceMessage.cc
  8193. (doReceivedAction): Use dispatcher member.
  8194. (send): Use peerConnection member.
  8195. (onWrongPiece): Use requestFactory member.
  8196. (handleChokingEvent): Use messageFactory, dispatcher member.
  8197. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8198. * src/BtMessageDispatcher.h
  8199. (BtMessageDispatcherWeakHandle): New type definition.
  8200. * src/SimpleBtMessage.cc
  8201. (send): Use peerConnection member.
  8202. * src/BtRejectMessage.cc
  8203. (doReceivedAction): Use dispatcher member.
  8204. * src/DefaultBtMessageDispatcher.h
  8205. (Option.h): Removed include.
  8206. (messageFactory): New variable.
  8207. (option): Removed.
  8208. (maxUploadSpeedLimit): New variable.
  8209. (requestTimeout): New variable.
  8210. (DefaultBtMessageDispatcher): Removed option.
  8211. Added maxUploadSpeedLimit, requestTimeout.
  8212. (setOption): Removed.
  8213. (getOption): Removed.
  8214. (setMaxUploadSpeedLimit): New function.
  8215. (setRequestTimeout): New function.
  8216. (setBtMessageFactory): New function.
  8217. * src/DefaultBtInteractive.h
  8218. (btMessageReceiver):
  8219. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8220. (dispatcher):
  8221. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8222. (btRequestFactory):
  8223. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8224. (peerConnection):
  8225. PeerConnectionHandle -> PeerConnectionWeakHandle
  8226. (messageFactory): New variable.
  8227. (option): Removed.
  8228. (keepAliveInterval): New variable.
  8229. (maxDownloadSpeedLimit): New variable.
  8230. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8231. (setBtMessageReceiver):
  8232. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8233. (setDispatcher):
  8234. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8235. (setBtRequestFactory):
  8236. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8237. (setPeerConnection):
  8238. PeerConnectionHandle -> PeerConnectionWeakHandle
  8239. (setOption): Removed.
  8240. (setKeepAliveInterval): New function.
  8241. (setMaxDownloadSpeedLimit): New function.
  8242. (setBtMessageFactory): New function.
  8243. * src/BitfieldMan.h
  8244. (cachedNumMissingBlock): New variable.
  8245. (cachedNumFilteredBlock): New variable.
  8246. (cachedCompletedLength): New variable.
  8247. (cachedFilteredComletedLength): New variable.
  8248. (cachedFilteredTotalLength): New variable.
  8249. (countMissingBlockNow): New function.
  8250. (countFilteredBlockNow): New function.
  8251. (getFilteredTotalLengthNow): New function.
  8252. (getCompletedLengthNow): New function.
  8253. (getFilteredCompletedLengthNow): New function.
  8254. (updateCache): New function.
  8255. * src/AbstractBtMessage.h
  8256. (BtMessageDispatcher.h): New include.
  8257. (PeerConnection.h): New include.
  8258. (BtRequestFactory.h): New include
  8259. (BtMessageFactory.h): New include.
  8260. (dispatcher): New variable.
  8261. (messageFactory): New variable.
  8262. (peerConnection: New variable.
  8263. (setBtMessageDispatcher): New function.
  8264. (setPeerConnection): New function.
  8265. (setBtMessageFactory): New function.
  8266. (setBtRequestFactory): New function.
  8267. * src/DefaultBtMessageFactory.cc
  8268. (setCommonProperty): Set dispatcher, requestFactory, this,
  8269. peerConnection to msg.
  8270. * src/BtRegistry.h
  8271. (BT_MESSAGE_RECEIVER): New macro.
  8272. * src/PeerConnection.h
  8273. (PeerConnectionWeakHandle): New type definition.
  8274. * src/BtMessageFactory.h
  8275. (BtMessageFactoryWeakHandle): New type definition.
  8276. * src/BitfieldMan.cc
  8277. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8278. cachedCompletedLength, cachedFilteredComletedLength,
  8279. cachedFilteredTotalLength.
  8280. Call updateCache().
  8281. (countMissingBlock): Return cachedNumMissingBlock.
  8282. (countMissingBlockNow): New function.
  8283. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8284. (countFilteredBlockNow): New function.
  8285. (setBit): Call updateCache().
  8286. (unsetBit): Call updateCache().
  8287. (setBitfield): Call updateCache().
  8288. (clearAllBit): Call updateCache().
  8289. (setAllBit): Use setBitInternal instead of setBit.
  8290. Call updateCache().
  8291. (addFilter): Call updateCache().
  8292. (enableFilter): Call updateCache().
  8293. (disableFilter): Call updateCache().
  8294. (clearFilter): Call updateCache().
  8295. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8296. (getFilteredTotalLengthNow): New function.
  8297. (getCompletedLength): Return cachedCompletedLength.
  8298. (getCompletedLengthNow): New function.
  8299. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8300. (getFilteredCompletedLengthNow): New function.
  8301. (updateCache): New function.
  8302. * src/BtMessageReceiver.h
  8303. (BtMessageReceiverWeakHandle): New type definition.
  8304. * src/DefaultBtMessageReceiver.cc
  8305. (receiveHandshake): Use messageFactory member.
  8306. (sendHandshake): Use messageFactory member.
  8307. (receiveMessage): Use messageFactory member.
  8308. * src/DefaultBtMessageFactory.h
  8309. (dispatcher): New variable.
  8310. (requestFactory): New variable.
  8311. (peerConnection): New variablle.
  8312. (setBtMessageDispatcher): New function.
  8313. (setBtRequestFactory): New function.
  8314. (setPeerConnection): New function.
  8315. * src/SharedHandle.h
  8316. (RefCount): New class.
  8317. (WeakHandle): New class.
  8318. * src/PeerObject.h
  8319. (BtMessageReceiver.h): New include.
  8320. (PeerObject): Added btMessageReceiver.
  8321. (btMessageReceiver): New variable.
  8322. * src/Util.cc
  8323. (countBit): Simplified.
  8324. * src/BtCancelMessage.cc
  8325. (doReceivedAction): Use dispatcher member.
  8326. * src/BtRequestFactory.h
  8327. (BtRequestFactoryWeakHandle): New type definition.
  8328. * src/PeerStorage.h
  8329. (downloadSpeed): int -> uint32_t
  8330. (uploadSpeed): int -> uint32_t
  8331. (sessionDownloadLength): long long int -> uint64_t
  8332. (sessionUploadLength): long long int -> uint64_t
  8333. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. To add RecoverableException, FatalException:
  8335. * src/AbstractCommand.cc
  8336. (onAbort): Exception -> RecoverableException
  8337. * src/PeerAbstractCommand.h
  8338. (RecoverableException.h): New include.
  8339. (onAbort): Exception -> RecoverableException.
  8340. * src/PeerInteractionCommand.cc
  8341. (onAbort): Exception -> RecoverableException.
  8342. * src/PeerAbstractCommand.cc
  8343. (execute): Exception -> RecoverableException.
  8344. (onAbort): Exception -> RecoverableException.
  8345. * src/TorrentRequestInfo.cc
  8346. (execute): Exception -> RecoverableException.
  8347. * src/MetalinkRequestInfo.cc
  8348. (execute): Exception -> RecoverableException.
  8349. * src/MetaFileUtil.cc: RecoverableException.
  8350. * src/AbstractCommand.h
  8351. (onAbort): Exception -> RecoverableException.
  8352. * src/DlRetryEx.h: Exception -> RecoverableException.
  8353. * src/DlAbortEx.h: Exception -> RecoverableException.
  8354. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8355. * src/Util.cc: Exception -> RecoverableException.
  8356. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8357. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8358. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8359. To make ID static const int
  8360. * src/BtInterestedMessage.h
  8361. (ID_t): Removed.
  8362. (ID): New variable.
  8363. (getId): Made non-const.
  8364. * src/BtPieceMessage.h
  8365. (ID_t): Removed.
  8366. (ID): New variable.
  8367. (getId): Made non-const.
  8368. * src/BtChokeMessage.h
  8369. (ID_t): Removed.
  8370. (ID): New variable.
  8371. (getId): Made non-const.
  8372. * src/BtHaveAllMessage.h
  8373. (ID_t): Removed.
  8374. (ID): New variable.
  8375. (getId): Made non-const.
  8376. * src/BtKeepAliveMessage.h
  8377. (ID_t): Removed.
  8378. (ID): New variable.
  8379. (getId): Made non-const.
  8380. * src/BtHandshakeMessage.h
  8381. (ID): New variable.
  8382. (getId): Made non-const.
  8383. * src/BtSuggestPieceMessage.h
  8384. (ID_t): Removed.
  8385. (ID): New variable.
  8386. (getId): Made non-const.
  8387. * src/BtPortMessage.h
  8388. (ID_t): Removed.
  8389. (ID): New variable.
  8390. (getId): Made non-const.
  8391. * src/AbstractBtMessage.h
  8392. (id): Removed.
  8393. (AbstractBtMessage): Removed id.
  8394. (getId): Removed.
  8395. * src/BtHaveMessage.h
  8396. (ID_t): Removed.
  8397. (ID): New variable.
  8398. (getId): Made non-const.
  8399. * src/BtAllowedFastMessage.h
  8400. (ID_t): Removed.
  8401. (ID): New variable.
  8402. (getId): Made non-const.
  8403. * src/BtCancelMessage.h
  8404. (ID_t): Removed.
  8405. (ID): New variable.
  8406. (getId): Made non-const.
  8407. * src/BtNotInterestedMessage.h
  8408. (ID_t): Removed.
  8409. (ID): New variable.
  8410. (getId): Made non-const.
  8411. * src/BtChokeMessage.h
  8412. (ID_t): Removed.
  8413. (ID): New variable.
  8414. (getId): Made non-const.
  8415. * src/BtRejectMessage.h
  8416. (ID_t): Removed.
  8417. (ID): New variable.
  8418. (getId): Made non-const.
  8419. * src/BtBitfieldMessage.h
  8420. (ID_t): Removed.
  8421. (ID): New variable.
  8422. (getId): Made non-const.
  8423. * src/BtUnchokeMessage.h
  8424. (ID_t): Removed.
  8425. (ID): New variable.
  8426. (getId): Made non-const.
  8427. * src/BtRequestMessage.h
  8428. (ID_t): Removed.
  8429. (ID): New variable.
  8430. (getId): Made non-const.
  8431. * src/BtHaveMessage.h
  8432. (ID_t): Removed.
  8433. (ID): New variable.
  8434. (getId): Made non-const.
  8435. To add --force-truncate command-line option and a check whether
  8436. the file already exists:
  8437. * src/DirectDiskAdaptor.h
  8438. (getFilePath): Made virtual public.
  8439. * src/MultiDiskAdaptor.h
  8440. (File.h): New include.
  8441. (DiskWriterEntry::fileEntry): Made private.
  8442. (DiskWriterEntry::fileExists): New function.
  8443. (DiskWriterEntry::getFileEntry): New function.
  8444. (fileExists): New function.
  8445. (getFilePath): New function.
  8446. * src/TorrentRequestInfo.cc
  8447. (FatalException.h): New include.
  8448. (message.h): New include.
  8449. (RecoverableException.h): New include.
  8450. (execute): Added a check whether file is already exists or not.
  8451. * src/DiskAdaptor.h
  8452. (fileExists): New function.
  8453. (getFilePath): New function.
  8454. * src/main.cc
  8455. (showUsage): Added an explanation of --force-truncate command-line
  8456. option.
  8457. (main): Added --force-truncate command-line option.
  8458. * src/Exception.h
  8459. (setMsg): buf[256] -> buf[1024]
  8460. * src/CopyDiskWriter.h
  8461. (getFilePath): Made public virtual.
  8462. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8463. (fileExists): New function.
  8464. * src/DownloadEngineFactory.cc
  8465. (newTorrentConsoleEngine): Don't open file here.
  8466. * src/message.h
  8467. (EX_FILE_ALREADY_EXISTS): New definition.
  8468. * src/prefs.h
  8469. (PREF_FOECE_TRUNCATE): New definition.
  8470. * src/HttpResponseCommand.cc
  8471. (handleDefaultEncoding): Added a check whether the file already exists.
  8472. * src/SegmentMan.h
  8473. (fileExists): New function.
  8474. (shouldCancelDownloadForSafety): New function.
  8475. * src/FtpNegotiateCommand.cc
  8476. (recvSize): Added a check whether the file already exists.
  8477. * src/AbstractSingleDiskAdaptor.cc
  8478. (File.h): New include.
  8479. (fileExists): New function.
  8480. * src/AbstractSingleDiskAdaptor.h
  8481. (getFilePath): Removed.
  8482. (fileExists): New function.
  8483. * src/SegmentMan.cc
  8484. (fileExists): New function.
  8485. (shouldCancelDownloadForSafety): New function.
  8486. To fix regression bug in torrent downloading:
  8487. * src/DefaultBtRequestFactory.cc
  8488. (doChokedAction): New function.
  8489. * src/DefaultBtRequestFactory.h
  8490. (doChokedAction): New function.
  8491. * src/DefaultBtMessageDispatcher.cc
  8492. (doChokedAction): Do not delete request if its target is in allowed
  8493. fast set.
  8494. * src/DefaultBtInteractive.cc
  8495. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8496. (sendKeepAlive): Send keep alive message even if the outgoing message
  8497. queue is not empty.
  8498. (decideInterest): Simplified the code.
  8499. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8500. it is already called when BtChokeMessage is received from a peer.
  8501. * src/BtRequestFactory.h
  8502. (doChokedAction): New function.
  8503. To clean up code:
  8504. * src/PeerInteractionCommand.h
  8505. (executeInternal): Added virtual keyword explicitly.
  8506. (prepareForRetry): Added virtual keyword explicitly.
  8507. (prepareForNextPeer): Added virtual keyword explicitly.
  8508. (onAbort): Added virtual keyword explicitly.
  8509. * src/RequestSlot.cc
  8510. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8511. * src/BtPieceMessage.cc
  8512. (doReceivedAction): Added a debug log of piece's bitfield.
  8513. * src/Piece.h
  8514. (getBitfieldLength): New function.
  8515. * src/ByteArrayDiskWriter.cc
  8516. (clear): Added buf = 0 to avoid double free corruption.
  8517. * src/FileAllocator.cc
  8518. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8519. Added cp.reset().
  8520. * src/BitfieldMan.h
  8521. (operator=): Rewritten.
  8522. * src/BitfieldMan.cc
  8523. (BitfieldMan): Initialized bitfield, useBitfield.
  8524. * src/PeerConnection.cc
  8525. (receiveMessage): Added a call to socket->readable() after getting
  8526. message length to avoid possible EOF.
  8527. * src/Util.cc
  8528. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8529. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. To add an ability to pre-allocate file space:
  8531. * src/DirectDiskAdaptor.h: Rewritten.
  8532. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8533. * src/MultiDiskAdaptor.h: Rewritten.
  8534. * src/DefaultPieceStorage.cc
  8535. (MultiDiskWriter.h): Removed include.
  8536. (PreAllocationDiskWriter.h): Removed include.
  8537. (FileAllocationMonitor.h): New include.
  8538. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8539. (initStorage): Rewritten.
  8540. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8541. * src/FileAllocator.h: New class.
  8542. * src/FileAllocator.cc: New class.
  8543. * src/FileAllocationMonitor.h: New class.
  8544. * src/FileAllocationMonitor.cc: New class.
  8545. * src/ConsoleFileAllocationMonitor.h: New class.
  8546. * src/ConsoleFileAllocationMonitor.cc: New class.
  8547. * src/AbstractSingleDiskAdaptor.h: New class.
  8548. * src/AbstractSingleDiskAdaptor.cc: New class.
  8549. * src/DiskAdaptor.h
  8550. (Directory.h): Removed include.
  8551. (DiskWriter.h): Removed include.
  8552. (FileEntry.h): Removed include.
  8553. (diskWriter): Removed.
  8554. (DiskAdaptor): Removed diskWriter.
  8555. (openFile): Made pure virtual.
  8556. (closeFile): Made pure virtual.
  8557. (openExistingFile): Made pure virtual.
  8558. (initAndOpenFile): Made pure virtual.
  8559. (writeData): Made pure virtual.
  8560. (readData): Made pure virtual.
  8561. (sha1Sum): Made pure virtual.
  8562. (getStoreDir): Returns const reference of storeDir.
  8563. (DiskAdaptorHandle): New type definition.
  8564. * src/main.cc
  8565. (ConsoleFileAllocationMonitor.h): New include.
  8566. (showUsage): Added default value description of -s option.
  8567. Added the description of --file-allocation option.
  8568. (main): Set default value of --file-allocation option to 'none'.
  8569. Added --file-allocation command-line option.
  8570. Setup FileAllocationMonitorFactory.
  8571. * src/FtpInitiateConnectionCommand.cc
  8572. (executeInternal): Removed diskWriter related processing, which was
  8573. moved to FtpNegotiationCommand.cc.
  8574. * src/DirectDiskAdaptor.cc
  8575. (getFilePath): Made non-const.
  8576. * src/CopyDiskAdaptor.h
  8577. (DiskAdaptor.h): Removed include.
  8578. (DiskWriter.h): Removed include.
  8579. (AbstractSingleDiskAdaptor.h): New include.
  8580. (getFilePath): Made non-const. Added virtual keyword.
  8581. (CopyDiskAdaptor): Removed diskWriter.
  8582. (getTempFile): Returns const reference.
  8583. (CopyDiskAdaptorHandle): New type definition.
  8584. * src/ByteArrayDiskWriter.cc
  8585. (clear): Simplified.
  8586. (initAndOpenFile): Rewritten.
  8587. (openFile): Call initAndOpenFile()
  8588. * src/MultiDiskAdaptor.cc: Rewritten.
  8589. * src/DownloadEngineFactory.cc
  8590. (FileAllocator.h): New include.
  8591. (FileAllocationMonitor.h): New include.
  8592. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8593. create DefaultDiskWriter with file allocator.
  8594. * src/DiskWriter.h
  8595. (initAndOpenFile): Added totalLength argument.
  8596. (openFile): Added totalLength argument.
  8597. * src/prefs.h
  8598. (PREF_FILE_ALLOCATION): New definition.
  8599. (V_PREALLOC): New definition.
  8600. (V_NONE): New definition.
  8601. * src/HttpResponseCommand.cc
  8602. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8603. size.
  8604. * src/FtpNegotiateCommand.cc
  8605. (Util.h): New include.
  8606. (recvSize): Open file here.
  8607. * src/Util.h
  8608. (ullitos): New function.
  8609. * src/CopyDiskWriter.h
  8610. (getFilePath): Made non-const.
  8611. * src/DefaultDiskWriter.h
  8612. (Option.h): New include.
  8613. (totalLength): Removed.
  8614. (DefaultDiskWriter): Removed totalLength.
  8615. (initAndOpenFile): Added totalLength argument.
  8616. (DefaultDiskWriterHandle): New type definition.
  8617. (createNewDiskWriter): New function.
  8618. * src/Util.cc
  8619. (ullitos): New function.
  8620. * src/DefaultDiskWriter.cc
  8621. (message.h): New include.
  8622. (FileAllocator.h): New include.
  8623. (prefs.h): New include.
  8624. (Util.h): New include.
  8625. (DefaultDiskWriter): Removed totalLength.
  8626. (initAndOpenFile): Added file allocation.
  8627. (createNewDiskWriter): New function. Just for temporary solution.
  8628. It will be rewritten later.
  8629. * src/DiskAdaptor.cc
  8630. (DiskAdaptor): Removed diskWriter.
  8631. * src/AbstractDiskWriter.cc
  8632. (LogFactory.h): New include.
  8633. (AbstractDiskWriter): Added fileAllocator, logger.
  8634. (openFile): Added totalLength argument.
  8635. * src/AbstractDiskWriter.h
  8636. (FileAllocator.h): New include.
  8637. (Logger.h): New include.
  8638. (fileAllocator): New variable.
  8639. (logger): New variable.
  8640. (openFile): Added totalLength argument. Added virtual keyword
  8641. explicitly.
  8642. (openExistingFile): Added totalLength argument. Added virtual keyword
  8643. explicitly.
  8644. (closeFile): Added virtual keyword explicitly.
  8645. (sha1Sum): Added virtual keyword explicitly.
  8646. (writeData): Added virtual keyword explicitly.
  8647. (readData): Added virtual keyword explicitly.
  8648. (setFileAllocator): New function.
  8649. * src/DefaultPieceStorage.h
  8650. (FileAllocator.h): New include.
  8651. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8652. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8653. * src/FileProgressMonitor.h: New class.
  8654. To compile aria2 on PC-BSD:
  8655. * src/DefaultBtContext.cc
  8656. (libgen.h): New include.
  8657. To fix memory leak:
  8658. * src/Exception.h
  8659. (~Exception): Delete cause. Fixed memory leak.
  8660. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Rewritten a portion of bittorrent implementation:
  8662. * src/BtMessageValidator.h: New class.
  8663. * src/BtBitfieldMessageValidator.h: New class.
  8664. * src/BtHandshakeMessageValidator.h: New class.
  8665. * src/BtRequestMessageValidator.h: New class.
  8666. * src/BtSuggestPieceMessageValidator.h: New class.
  8667. * src/BtAllowedFastMessageValidator.h: New class.
  8668. * src/BtRejectMessageValidator.h: New class.
  8669. * src/BtCancelMessageValidator.h: New class.
  8670. * src/BtPieceMessageValidator.h: New class.
  8671. * src/BtHaveMessageValidator.h: New class.
  8672. * src/BtEventListener.h: New class.
  8673. * src/AbstractBtEventListener.h: New class.
  8674. * src/BtEvent.h: New class.
  8675. * src/BtChokingEvent.h: New class.
  8676. * src/BtChokedEvent.h: New class.
  8677. * src/BtCancelSendingPieceEvent.h: New class.
  8678. * src/BtAbortOutstandingRequestEvent.h: New class.
  8679. * src/Randomizer.h: New class.
  8680. * src/SimpleRandomizer.h: New class.
  8681. * src/BtMessage.h: New class.
  8682. * src/AbstractBtMessage.h: New class.
  8683. * src/SimpleBtMessage.h: New class.
  8684. * src/BtHaveMessage.h: New class.
  8685. * src/BtInterestedMessage.h: New class.
  8686. * src/BtAllowedFastMessage.h: New class.
  8687. * src/BtUnchokeMessage.h: New class.
  8688. * src/BtCancelMessage.h: New class.
  8689. * src/BtNotInterestedMessage.h: New class.
  8690. * src/BtChokeMessage.h: New class.
  8691. * src/BtHaveNoneMessage.h: New class.
  8692. * src/BtHandshakeMessage.h: New class.
  8693. * src/BtSuggestPieceMessage.h: New class.
  8694. * src/BtHaveMessage.h: New class.
  8695. * src/BtPieceMessage.h: New class.
  8696. * src/BtHaveAllMessage.h: New class.
  8697. * src/BtKeepAliveMessage.h: New class.
  8698. * src/BtPortMessage.h: New class.
  8699. * src/BtRejectMessage.h: New class.
  8700. * src/BtBitfieldMessage.h: New class.
  8701. * src/BtRequestMessage.h: New class.
  8702. * src/DefaultBtRequestFactory.h: New class.
  8703. * src/DefaultBtMessageReceiver.h: New class.
  8704. * src/BtInteractive.h: New class.
  8705. * src/BtMessageDispatcher.h: New class.
  8706. * src/DefaultBtMessageDispatcher.h: New class.
  8707. * src/DefaultBtInteractive.h: New class.
  8708. * src/BitfieldManFactory.h: New class.
  8709. * src/HandleRegistry.h: New class.
  8710. * src/BtMessageFactory.h: New class.
  8711. * src/BtMessageReceiver.h: New class.
  8712. * src/DefaultBtMessageFactory.h: New class.
  8713. * src/PeerObject.h: New class.
  8714. * src/BtRequestFactory.h: New class.
  8715. * src/SuggestPieceMessage.h: Removed.
  8716. * src/PortMessage.h: Removed.
  8717. * src/SuggestPieceMessage.h: Removed.
  8718. * src/KeepAliveMessage.h: Removed.
  8719. * src/HandshakeMessage.h: Removed.
  8720. * src/PeerInteraction.h: Removed.
  8721. * src/UnchokeMessage.h: Removed.
  8722. * src/PieceMessage.h: Removed.
  8723. * src/RequestMessage.h: Removed.
  8724. * src/InterestedMessage.h: Removed.
  8725. * src/HaveMessage.h: Removed.
  8726. * src/CancelMessage.h: Removed.
  8727. * src/RejectMessage.h: Removed.
  8728. * src/AllowedFastMessage.h: Removed.
  8729. * src/HaveNoneMessage.h: Removed.
  8730. * src/SimplePeerMessage.h: Removed.
  8731. * src/HaveAllMessage.h: Removed.
  8732. * src/BitfieldMessage.h: Removed.
  8733. * src/PeerMessageFactory.h: Removed.
  8734. * src/NotInterestedMessage.h: Removed.
  8735. * src/ChokeMessage.h: Removed.
  8736. * src/PeerMessage.h: Removed.
  8737. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. To know root cause of exception:
  8739. * src/Exception.h
  8740. (cause): New variable.
  8741. (Exception): Added a parameter.
  8742. (getMsg): Return const reference to msg.
  8743. (getCause): New function.
  8744. * src/DlRetryEx.h
  8745. (DlRetryEx): Added a parameter 'cause'.
  8746. Added an overloaded constructor.
  8747. (DlAbortEx): Added a parameter 'cause'.
  8748. Added an overloaded constructor.
  8749. * src/SimpleLogger.cc
  8750. (writeLog): Log nested exception messages recursively.
  8751. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. * src/DefaultBtProgressInfoFile.cc
  8753. (load): Fixed memory leak when the infohash doesn't match.
  8754. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8755. * src/DefaultPeerStorage.cc
  8756. (calculateStat): Simplified the code by combining 2 loops into 1.
  8757. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8759. for BitTorrent download:
  8760. * src/PeerAbstractCommand.cc
  8761. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8762. * src/main.cc:
  8763. (timeoutSpecified): Removed.
  8764. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8765. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8766. * src/TorrentRequestInfo.cc
  8767. (timeoutSpecified): Removed.
  8768. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8769. timeout value.
  8770. * src/prefs.h
  8771. (PREF_BT_TIMEOUT): New definition.
  8772. Delete unused variables:
  8773. * src/TorrentRequestInfo.cc
  8774. (requestInfo): Removed.
  8775. Move setSignalHander to Util::setGlobalSignalHandler:
  8776. * src/TorrentRequestInfo.cc:
  8777. setSignalHander -> Util::setGlobalSignalHandler
  8778. * src/main.cc
  8779. (setSignalHander): Removed.
  8780. (main): setSignalHander -> Util::setGlobalSignalHandler
  8781. * src/Util.h
  8782. (setGlobalSignalHandler): New function.
  8783. * src/Util.cc
  8784. (setGlobalSignalHandler): New function.
  8785. * src/UrlRequestInfo.cc:
  8786. setSignalHander -> Util::setGlobalSignalHandler
  8787. Reset peer status in order to exit gracefully:
  8788. * src/PeerAbstractCommand.cc
  8789. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8790. To fix the bug that causes the number of bytes uploaded is not saved
  8791. to .aria2 file:
  8792. * src/DefaultPeerStorage.h
  8793. (removedPeerSessionDownloadLength): New variable.
  8794. (removedPeerSessionUploadLength): New variable.
  8795. * src/DefaultPeerStorage.cc
  8796. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8797. removedPeerSessionUploadLength(0).
  8798. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8799. through all peers, and then add removedPeerSessionDownloadLength(
  8800. removedPeerSessionUploadLength) to it.
  8801. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8802. (to) the peer to removedPeerSessionDownloadLength
  8803. (removedPeerSessionUploadLength).
  8804. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. To add Metalink location option:
  8806. * src/MetalinkRequestInfo.cc
  8807. (execute): Call MetalinkEntry::setLocationPreference()
  8808. * src/main.cc
  8809. (showUsage): Added the help message for --metalink-location option.
  8810. (main): Added --metalink-location option.
  8811. * src/prefs.h
  8812. (PREF_METALINK_LOCATION): New definition.
  8813. * src/MetalinkEntry.cc
  8814. (AddLocationPreference): New function object.
  8815. (setLocationPreference): New function.
  8816. * src/Xml2MetalinkProcessor.cc
  8817. (getResource): Set location attribute to MetalinkResource
  8818. To show URLs to download
  8819. * src/UrlRequestInfo.h
  8820. (printUrls): New function.
  8821. To add multiple <file> Metalink support:
  8822. * src/MetalinkEntry.h
  8823. (MetalinkResources): Removed.
  8824. (setLocationPreference): New function.
  8825. (MetalinkEntryHandle): New type definition.
  8826. (MetalinkEntries): New type definition.
  8827. * src/Xml2MetalinkProcessor.h
  8828. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8829. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8830. (parseFile): Metalinker* -> MetalinkerHandle
  8831. * src/UrlRequestInfo.h
  8832. (execute): RequestInfo* -> RequestInfos
  8833. * src/MetalinkRequestInfo.cc
  8834. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8835. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8836. (execute): RequestInfo* -> RequestInfos
  8837. Added multiple <file> support. Print filename when it is queued.
  8838. * src/MetalinkRequestInfo.h
  8839. (execute): RequestInfo* -> RequestInfos
  8840. (getDownloadEngine): Removed.
  8841. * src/RequestInfo.h
  8842. (RequestInfoHandle): New type definition.
  8843. (RequestInfos): New type definition.
  8844. (execute): RequestInfo* -> RequestInfos
  8845. (getDownloadEngine): Removed.
  8846. * src/MetalinkResource.h
  8847. (MetalinkResourceHandle): New type definition.
  8848. (MetalinkResources): New type definition.
  8849. * src/MetalinkEntry.cc
  8850. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8851. because the element is now of type MetalinkResourceHandle.
  8852. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8853. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8854. (dropUnsupportedResource): Removed the deletion of the elements of
  8855. resources because the element is now of type MetalinkResourceHandle.
  8856. * src/Xml2MetalinkProcessor.cc
  8857. (parseFile): Metalinker* -> MetalinkerHandle
  8858. MetalinkEntry* -> MetalinkEntryHandle
  8859. Removed try-catch block.
  8860. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8861. MetalinkResource* -> MetalinkResourceHandle
  8862. Removed try-catch block.
  8863. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8864. Free result by using xmlXPathFreeObject()
  8865. * src/Metalinker.cc
  8866. (~Metalinker): Removed the deletion of entries.
  8867. MetalinkEntry* -> MetalinkEntryHandle
  8868. (queryEntry): Add multiple <file> Metalink support.
  8869. * src/Metalinker.h
  8870. (MetalinkEntries): Removed.
  8871. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8872. * src/MetalinkProcessor.h
  8873. (parseFile): Metalinker* -> MetalinkerHandle
  8874. Bug fixes:
  8875. * src/PeerChokeCommand.cc
  8876. (execute): cat01->cat02
  8877. * src/DefaultPieceStorage.cc
  8878. (DefaultPieceStorage): Added diskAdaptor(0)
  8879. * src/TrackerWatcherComand.cc:
  8880. (execute): Use btAnnounce->noMoreAnnounce()
  8881. to determin whether the function returns true or not.
  8882. * src/TrackerUpdateCommand.cc:
  8883. (execute): Use btAnnounce->noMoreAnnounce()
  8884. to determin whether the function returns true or not.
  8885. * src/FtpConnection.cc
  8886. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8887. This is the fix of the busy loop bug.
  8888. * src/DownloadCommand.cc
  8889. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8890. cached PeerStat.
  8891. The value of "name" entry in torrent file is now set by
  8892. *DiskAdaptor::setTopDir(...) methods.
  8893. * src/MultiDiskAdaptor.h
  8894. (topDir): New variable.
  8895. (setTopDir): New function.
  8896. (getTopDir): New function.
  8897. * src/MultiDiskAdaptor.cc
  8898. (getFilePath): Concat storDir, "/" and topDir.
  8899. (mkdir): Use getFilePath() to get the directory path for output.
  8900. * src/DefaultPieceStorage.cc
  8901. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8902. CopyDiskAdaptor.
  8903. * src/CopyDiskAdaptor.h
  8904. (topDir): New variable.
  8905. (setTopDir): New function.
  8906. (getTopDir): New function.
  8907. * src/CopyDiskAdaptor.cc
  8908. (fixFilename): Updated.
  8909. Misc
  8910. * src/UrlRequestInfo.h
  8911. (e): Removed.
  8912. (UrlRequestInfo): Removed e.
  8913. (getDownloadEngine): Removed.
  8914. * src/UrlRequestInfo.cc
  8915. (handler): Rewritten.
  8916. (printUrls): New function.
  8917. (execute): Call printUrls().
  8918. * src/HandshakeMessage.cc
  8919. (check): peerinteraction->getBtContext() -> btContext
  8920. * src/PeerInteraction.h
  8921. (getBtContext): Removed.
  8922. * src/TorrentRequestInfo.h
  8923. (execute): RequestInfo* -> RequestInfos
  8924. (getDownloadEngine): Removed.
  8925. * src/TorrentRequestInfo.cc
  8926. (haltRequested): Removed.
  8927. (btHaltRequested): New variable.
  8928. (torrentHandler): haltRequested -> btHaltRequested
  8929. (execute): RequestInfo* -> RequestInfos
  8930. * src/TorrentConsoleDownloadEngine.cc
  8931. (afterEachIteration): haltRequested -> btHaltRequested.
  8932. * src/ConsoleDownloadEngine.h
  8933. (initStatistics): Added virtual.
  8934. (calculateStatistics): Added virtual.
  8935. (onEndOfRun): Added virtual.
  8936. (afterEachIteration): Added virtual.
  8937. * src/ConsoleDownloadEngine.cc
  8938. (haltRequested): New variable.
  8939. (afterEachIteration): New function.
  8940. * src/main.cc
  8941. (requestInfo): Removed.
  8942. * src/SegmentMan.cc
  8943. (findSlowerSegmentEntry): Refactored.
  8944. * Release 0.9.0
  8945. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8947. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8948. * src/TorrentMan.h: Removed.
  8949. * src/TorrentMan.cc: Removed.
  8950. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8951. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8952. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8953. * src/PeerAbstractCommand.cc: Use btRuntime.
  8954. * src/BtContextAwareCommand.h: New class.
  8955. * src/FileEntry.h: Added accessor methods for following variables.
  8956. (path): Made private.
  8957. (length): Made private.
  8958. (offset): Made private.
  8959. (extracted): Made private.
  8960. (requested): Made private.
  8961. (FileEntries): New definition.
  8962. (FileEntryHandle): New definition.
  8963. * src/FileEntry.cc: New file.
  8964. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8965. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8966. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8967. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8968. * src/PieceStorage.h: New file.
  8969. * src/PeerInteractionCommand.h: Use btContext.
  8970. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8971. btRuntime.
  8972. * src/DefaultBtProgressInfoFile.h: New file.
  8973. * src/DefaultBtProgressInfoFile.cc: New file.
  8974. * src/File.cc
  8975. (Util.h): New include.
  8976. (mkdirs): New function.
  8977. * src/MultiDiskAdaptor.h
  8978. (mkdir): New function.
  8979. * src/PeerListProcessor.h
  8980. (Peers): Removed.
  8981. * src/PeerInteraction.h
  8982. (torrentMan): Removed.
  8983. (btContext): New variable.
  8984. (peerStorage): New variable.
  8985. (pieceStorage): New variable.
  8986. (btAnnounce): New variable.
  8987. (getTorrentMan): Removed.
  8988. (getBtContext): New function.
  8989. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  8990. btAnnounce.
  8991. * src/HandshakeMessage.h
  8992. (TorrentMan.h): Removed.
  8993. * src/HandshakeMessage.cc: Use btContext.
  8994. * src/DefaultBtAnnounce.cc: New file.
  8995. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8996. * src/DefaultPieceStorage.cc: New file.
  8997. * src/DefaultBtContext.h: New file.
  8998. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8999. Use the accessor methods of FileEntry.
  9000. * src/CookieBox.cc: Updated to use Util::slice().
  9001. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9002. * src/common.h (SharedHandle.h): New include.
  9003. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9004. pieceStorage.
  9005. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9006. * src/DiskAdaptor.h
  9007. (topDir): Removed.
  9008. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9009. (setTopDir): Removed.
  9010. (getTopDir): Removed.
  9011. * src/BtContext.h: New file.
  9012. * src/DefaultPeerStorage.h: New file.
  9013. * src/PieceMessage.h (TorrentMan.h): Removed.
  9014. * src/RequestMessage.h (TorrentMan.h): Removed.
  9015. * src/TorrentDownloadEngine.h
  9016. (uploadLength): New variable.
  9017. (btContext): New variable.
  9018. (btRuntime): New variable.
  9019. (pieceStorage): New variable.
  9020. (peerStorage): New variable.
  9021. (btAnnounce): New variable.
  9022. (btProgressInfoFile): New variable.
  9023. (torrentMan): Removed.
  9024. (setBtContext): New function.
  9025. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9026. peerStorage, btAnnounce, btProgressInfoFile.
  9027. * src/Piece.h
  9028. (toString): New function.
  9029. (Pieces): New type definition.
  9030. * src/Peer.h
  9031. (active): New variable.
  9032. (Peer): Added active.
  9033. (activate): Set active to true.
  9034. (deactivate): Set active to false.
  9035. (isActive): New function.
  9036. (Peers): New type definition.
  9037. * src/DirectDiskAdaptor.cc
  9038. (getFilePath): Use the accessor methods of FileEntry.
  9039. * src/TorrentConsoleDownloadEngine.h
  9040. (afterEachIteration): New function.
  9041. * src/TorrentConsoleDownloadEngine.cc
  9042. (haltRequested): New variable.
  9043. (sendStatistics): Use pieceStorage, btRuntime.
  9044. (afterEachIteration): New function.
  9045. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9046. * src/Directry.h
  9047. (Directory): New function.
  9048. (DirectoryHandle): New type definition.
  9049. * src/BtProgressInfoFile.h: New file.
  9050. * src/RequestMessage.cc: Use pieceStorage.
  9051. * src/BtRuntime.h: New file.
  9052. * src/DefaultBtContext.cc: New file.
  9053. * src/BitfieldMan.h
  9054. (getCompletedLength): New function(private).
  9055. (getCompletedLength): New function.
  9056. (getFilteredCompletedLength): New function.
  9057. * src/BitfieldMan.h
  9058. (getCompletedLength): New function(private).
  9059. (getCompletedLength): New function.
  9060. (getFilteredCompletedLength): New function.
  9061. * src/MultiDiskAdaptor.cc
  9062. (mkdir): New function.
  9063. (openFile): Call mkdir().
  9064. (initAndOpenFile): Call mkdir().
  9065. * src/CancelMessage.h
  9066. (TorrentMan.h): Removed.
  9067. * src/RejectMessage.h
  9068. (TorrentMan.h): Removed.
  9069. * src/DownloadEngineFactory.cc
  9070. (DefaultPieceStorage.h): New include.
  9071. (DefaultPeerStorage.h): New include.
  9072. (DefaultBtAnnounce.h): New include.
  9073. (DefaultBtProgressInfoFile.h): New include.
  9074. (newTorrentConsoleEngine): Rewritten.
  9075. * src/ShareRatioSeedCriteria.h
  9076. (torrentMan): Removed.
  9077. (btContext): New variable.
  9078. (peerStorage): New variable.
  9079. (btRuntime): New variable.
  9080. (evaluate): Use btContext, btRuntime, peerStorage.
  9081. * src/AnnounceTier.h: New file.
  9082. * src/BtAnnounce.h: New file.
  9083. * src/BtRegistry.h: New file.
  9084. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9085. * src/PeerConnection.h (TorrentMan.h): Removed.
  9086. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9087. * src/Util.h
  9088. (slice): Added an argument.
  9089. * src/Util.cc
  9090. (slice): Added an argument to control whether trim is made or not.
  9091. * src/PeerStorage.h: New file.
  9092. * src/BtRegistry.cc: New file.
  9093. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9094. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9095. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9096. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9097. * src/TorrentRequestInfo.h
  9098. (e): Removed.
  9099. (showFileEntry): Added an argument.
  9100. (getDownloadEngine): Return 0.
  9101. * src/DefaultBtAnnounce.h: New file.
  9102. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9103. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9104. * src/PeerMessageFactory.h
  9105. (btContext): New variable.
  9106. (pieceStorage): New variable.
  9107. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9108. btAnnounce.
  9109. * src/DiskAdaptor.cc
  9110. (DiskAdaptor): Removed topDir.
  9111. (~DiskAdaptor): Removed topDir.
  9112. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9113. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9114. * src/File.h (mkdirs): New function.
  9115. * src/DefaultPeerStorage): New file.
  9116. * src/DownloadEngineFactory.h
  9117. (newTorrentConsoleEngine): Use btContext.
  9118. * src/BtContextAwareCommand.cc: New file.
  9119. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9120. * src/PeerMessage.h
  9121. (btContext): New variable.
  9122. (peerStorage): New variable.
  9123. (pieceStorage): New variable.
  9124. (setBtContext): New function.
  9125. * src/Directry.cc
  9126. (Directory): New function.
  9127. (createDir): Do nothing if name.size() == 0.
  9128. * src/AnnounceList.h
  9129. (AnnounceTier): Removed.
  9130. (AnnounceTiers): Removed.
  9131. * src/DefaultPieceStorage.h: New file.
  9132. * src/Piece.cc (toString): New function.
  9133. To fix typo:
  9134. * src/main.cc (showVersion): Fixed typo.
  9135. To fix compile warning:
  9136. * src/DelegatingPeerListProcessor.cc
  9137. (canHandle): Added "return false".
  9138. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9140. make the process of announce request testable.
  9141. * src/TrackerWatcherCommand.h
  9142. (TimeA2.h): Removed.
  9143. (interval): Removed.
  9144. (checkPoint): Removed.
  9145. (createRequestCommand): Added an argument 'url'.
  9146. (TrackerWatherCommand): Removed interval.
  9147. (createCommand): New function.
  9148. * src/DownloadEngineFactory.cc
  9149. (newTorrentConsoleEngine): Updated according to the changes in
  9150. TrackerWatherCommand.
  9151. * src/TorrentMan.cc
  9152. (DelegatingPeerListProcessor.h): New includes.
  9153. (TorrentMan): Added the initialization of announceInterval.
  9154. (isStoppedAnnounceReady): New function.
  9155. (isCompletedAnnounceReady): New function.
  9156. (isDefaultAnnounceReady): New function.
  9157. (isAnnounceReady): New function.
  9158. (getAnnounceUrl): New function.
  9159. (announceStart): New function.
  9160. (announceFailure): New function.
  9161. (announceSuccess): New function.
  9162. (isAllAnnounceFailed): New function.
  9163. (resetAnnounce): New function.
  9164. (processAnnounceResponse): New function.
  9165. (needMorePeerConnection): New function.
  9166. (noMoreAnnounce): New function.
  9167. * src/TrackerUpdateCommand.h
  9168. (getTrackerResponse): int->size_t
  9169. * src/TorrentMan.h
  9170. (isStoppedAnnounceReady): New function.
  9171. (isCompletedAnnounceReady): New function.
  9172. (isDefaultAnnounceReady): New function.
  9173. (announceInterval): New variable.
  9174. (isAnnounceReady): New function.
  9175. (getAnnounceUrl): New function.
  9176. (announceStart): New function.
  9177. (announceFailure): New function.
  9178. (announceSuccess): New function.
  9179. (isAllAnnounceFailed): New function.
  9180. (resetAnnounce): New function.
  9181. (processAnnounceResponse): New function.
  9182. (needMorePeerConnection): New function.
  9183. (noMoreAnnounce): New function.
  9184. * src/TrackerWatcherCommand.cc
  9185. (TrackerWatherCommand): Removed interval and checkPoint.
  9186. (execute): Rewritten.
  9187. (createCommand): New function.
  9188. (createRequestCommand): Rewritten.
  9189. * src/TrackerUpdateCommand.cc
  9190. (MetaFileUtil.h): Removed.
  9191. (DelegatingPeerListProcessor.h): Removed.
  9192. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9193. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Request -> RequestHandle:
  9195. * src/HttpResponseCommand.h: Request->RequestHandle
  9196. * src/AbstractCommand.cc: Request->RequestHandle
  9197. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9198. * src/HttpRequestCommand.cc: Request->RequestHandle
  9199. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9200. * src/AbstractCommand.h: Request->RequestHandle
  9201. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9202. * src/HttpResponseCommand.cc: Request->RequestHandle
  9203. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9204. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9205. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9206. * src/HttpConnection.h: Request->RequestHandle
  9207. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9208. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9209. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9210. * src/DownloadCommand.h: Request->RequestHandle
  9211. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9212. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9213. * src/HttpRequestCommand.h: Request->RequestHandle
  9214. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9215. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9216. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9217. * src/HttpDownloadCommand.h: Request->RequestHandle
  9218. * src/FtpConnection.cc: Request->RequestHandle
  9219. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9220. * src/UrlRequestInfo.cc: Request->RequestHandle
  9221. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9222. * src/HttpConnection.h: Request->RequestHandle
  9223. * src/DownloadCommand.cc: Request->RequestHandle
  9224. * src/FtpConnection.h: Request->RequestHandle
  9225. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9226. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9227. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9228. * src/Request.h
  9229. (SharedHandle.h): New include.
  9230. (RequestHandle): New type definition.
  9231. (Requests): Redefined.
  9232. To add MULTITRACKER support:
  9233. * src/TrackerWatcherCommand.h
  9234. (createRequestCommand): New function.
  9235. * src/DownloadEngineFactory.cc
  9236. (newTorrentConsoleEngine): Removed req.
  9237. * src/prefs.h
  9238. (PREF_TRACKER_MAX_TRIES): New definition.
  9239. * src/TorrentMan.cc
  9240. (TorrentMan): Removed req. Added trackerNumTry.
  9241. (~TorrentMan): Removed req.
  9242. (setupInternal1): Added announceList.
  9243. * src/TorrentRequestInfo.cc
  9244. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9245. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9246. * src/main.cc
  9247. (main): Added PREF_TRACKER_MAX_TRIES.
  9248. * src/TorrentMan.h
  9249. (Request.h): Removed.
  9250. (AnnounceList.h): New include.
  9251. (trackerNumTry): New variable.
  9252. (req): Removed.
  9253. (announceList): New variable.
  9254. * src/TrackerWatcherCommand.cc
  9255. (execute): Rewritten.
  9256. (createRequestCommand): New function.
  9257. * src/TrackerUpdateCommand.cc
  9258. (execute): Updated with the use of AnnounceList.
  9259. * src/AnnounceList.cc: New class.
  9260. * src/AnnounceList.h: New class.
  9261. To fix typo:
  9262. * src/prefs.h
  9263. (PREF_MAX_TRIES): max_try->max_tries
  9264. To not to decode "+" as space in URL decode:
  9265. * src/Util.cc
  9266. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9267. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. To add timeout to async name resolution:
  9269. * src/AbstractCommand.h
  9270. (nameResolveFinished): New function. This is not elegant way. It needs
  9271. to be more refined.
  9272. (nameResolverCheck): New variable.
  9273. * src/AbstractCommand.cc
  9274. (AbstractCommand): Added nameResolverCheck.
  9275. (execute): Added the check whether the name resolution has finished.
  9276. (setNameResolverCheck): Set nameResolverCheck to true.
  9277. (disableNameResolverCheck): Set nameResolverCheck to false.
  9278. (nameResolverFinished): New function.
  9279. * src/FtpInitiateConnectionCommand.h
  9280. (nameResolverFinished): New function.
  9281. * src/FtpInitiateConnectionCommand.cc
  9282. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9283. * src/HttpInitiateConnectionCommand.h
  9284. (nameResolverFinished): New function.
  9285. * src/HttpInitiateConnectionCommand.cc
  9286. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9287. * src/prefs.h
  9288. (PREF_DNS_TIMEOUT): New definition.
  9289. * src/main.cc
  9290. (main): Added PREF_DNS_TIMEOUT.
  9291. To add the support for a non-compact response from a tracker:
  9292. * src/PeerListProcessor.h: New class.
  9293. * src/DefaultPeerListProcessor.h: New class.
  9294. * src/DefaultPeerListProcessor.cc: New class.
  9295. * src/CompactPeerListProcessor.h: New class.
  9296. * src/CompactPeerListProcessor.cc: New class.
  9297. * src/DelegatingPeerListProcessor.h: New class.
  9298. * src/DelegatingPeerListProcessor.cc: New class.
  9299. * src/TorrentMan.cc
  9300. (addPeer): New function(overload).
  9301. (addPeer): Delete unused peers only when new peer is added.
  9302. * src/TorrentMan.h
  9303. (PeerListProcessor.h): Included.
  9304. (Peers): Removed.
  9305. (addPeer): New function(overload).
  9306. * src/TrackerUpdateCommand.cc
  9307. (netinet/in.h): Removed.
  9308. (DelegatingPeerListProcessor.h): Included.
  9309. (execute): Updated to use DelegatingPeerListProcessor.
  9310. To fix the memory leak in TorrentMan::peers:
  9311. * src/PeerAbstractCommand.cc
  9312. (onAbort): Added peer->resetStatus().
  9313. * src/Peer.h
  9314. (resetStatus): Made public.
  9315. To improve the precision of the speed calculation:
  9316. * src/SpeedCalc.h
  9317. (nextInterval): New variable.
  9318. * src/SpeedCalc.cc
  9319. (reset): Added nextInterval.
  9320. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9321. (changeSw): Set nextInterval to 15 seconds relative to the current
  9322. instant time.
  9323. * src/main.cc
  9324. (showVersion): Updated.
  9325. (showUsage): Updated.
  9326. * Release 0.8.1
  9327. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. * src/main.cc
  9329. (showUsage): Commented out --min-segment-size option.
  9330. (main): Commented out --min-segment-size option.
  9331. * Release 0.8.0
  9332. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. * src/*.{h,cc}:
  9334. Added an exception to the license which allows linking with OpenSSL.
  9335. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. * src/AbstractCommand.cc
  9337. (execute): Check whether the download has finished before checking
  9338. socket status.
  9339. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9340. Do not exit even if no segment is available.
  9341. * src/prefs.h
  9342. (PREF_STARTUP_IDLE_TIME): New definition.
  9343. * src/PeerInteractionCommand.cc
  9344. (executeInternal): Removed max speed limit. Because it performs bad.
  9345. (receiveMessages): Added max speed limit. This was better than above,
  9346. but still a little bit to be desired. Sometimes the download speed
  9347. became much faster than I specified.
  9348. * src/SpeedCalc.h
  9349. (start): New variable.
  9350. (accumulatedLength): New variable.
  9351. (getAvgSpeed): New function.
  9352. * src/SpeedCalc.cc
  9353. (reset): Added start, accumulatedLength.
  9354. (update): Added calculation of an average speed.
  9355. (getAvgSpeed): New function.
  9356. * src/DownloadCommand.h
  9357. (sw): Removed.
  9358. * src/main.cc
  9359. (main): Added PREF_STARTUP_IDLE_TIME.
  9360. * src/PeerStat.h
  9361. (STATUS): Added REQUEST_IDLE.
  9362. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9363. (getAvgDownloadSpeed): New function
  9364. (requestIdle): New function.
  9365. * src/SegmentMan.h
  9366. (SegmentEntryHandle): New type definition.
  9367. (SegmentEntries): Now holds SegmentEntryHandle.
  9368. (findSlowerSegmentEntry): New funtion.
  9369. * src/SegmentMan.cc
  9370. (save): Updated according to the changes in SegmentEntries.
  9371. (read): Updated according to the changes in SegmentEntries.
  9372. (FindSegmentEntryByIndex): Updated according to the changes in
  9373. SegmentEntries.
  9374. (FindSegmentEntryByCuid): Updated according to the changes in
  9375. SegmentEntries.
  9376. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9377. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9378. Renamed uitr as itr.
  9379. (findSlowerSegmentEntry): New function.
  9380. (getSegment): Updated according to the changes in SegmentEntries.
  9381. Added the feature that cancels the segment with slow server and fast
  9382. one takes it over.
  9383. (cancelSegment): Updated according to the changes in SegmentEntries.
  9384. (getDownloadLength): Updated according to the changes in
  9385. SegmentEntries.
  9386. (init): Assigned 0 to bitfield after deleting it.
  9387. * src/DownloadCommand.cc
  9388. (STARTUP_IDLE_TIME): Removed.
  9389. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9390. * src/PeerChokeCommand.cc
  9391. (optUnchokingPeer): Updated according to the changes in Peer.
  9392. (ResetDelta): Removed.
  9393. (UploadFaster): Updated according to the changes in Peer.
  9394. (DownloadFaster): Updated according to the changes in Peer.
  9395. (execute): I clarify the meaning of "upload" and "download" here.
  9396. "upload" means the transfer from localhost to remote host.
  9397. "download" means the transfer from remote host to localhost.
  9398. Based on this rule, I swapped orderByUploadRate and
  9399. orderByDownloadRate.
  9400. * src/PeerInteractionCommand.cc
  9401. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9402. (executeInternal): Removed the argument of
  9403. peerInteraction->sendMessages().
  9404. (receiveMessages): Rewritten download speed limit.
  9405. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9406. * src/HttpResponseCommand.cc
  9407. (handleDefaultEncoding): If file size is unknown in torrent request,
  9408. do not call segmentMan->initBitfield() here.
  9409. Disabled persistent connection feature in torrent request.
  9410. * src/UrlRequestInfo.h
  9411. (UrlRequestInfo): Removed const qualifier from option.
  9412. * src/TorrentMan.h
  9413. (TransferStat): New class.
  9414. (deltaDownloadLength): Removed.
  9415. (deltaUploadLength): Removed.
  9416. (addDeltaDownloadLength): Removed.
  9417. (getDeltaDownloadLength): Removed.
  9418. (resetDeltaDownloadLength): Removed.
  9419. (addDeltaUploadLength): Removed.
  9420. (getDeltaUploadLength): Removed.
  9421. (resetDeltaUploadLength): Removed.
  9422. (addActivePeer): Added peer->activate().
  9423. (deleteActivePeer): Added peer->deactivate().
  9424. (calculateStat): New function.
  9425. * src/TorrentMan.cc
  9426. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9427. (calculateStat): New function.
  9428. * src/PeerInteraction.h
  9429. (uploadLimit): Removed.
  9430. (option): New variable.
  9431. (setUploadLimit): Removed.
  9432. (getUploadSpeed): Removed.
  9433. (sendMessages): Removed the argument "currentUploadSpeed".
  9434. * src/PeerInteraction.cc
  9435. (prefs.h): Included.
  9436. (PeerInteraction): Removed uploadLimit. Added option.
  9437. (sendMessages): Rewritten upload speed limit.
  9438. (sendHandshake): Removed the argument from sendMessages().
  9439. (sendBitfield): Removed the argument from sendMessages().
  9440. * src/PeerAbstractCommand.cc
  9441. (execute): Commented out the portion of upload limit.
  9442. (onAbort): Removed peer->resetStatus().
  9443. * src/TorrentRequestInfo.cc
  9444. (timeoutSpecified): Declared extern.
  9445. (execute): Set timeout to 180 if timeout is not specified by.
  9446. command-line.
  9447. * src/PieceMessage.cc
  9448. (receivedAction): Added peer->updateDownloadLength().
  9449. Removed peer->addPeerUpload().
  9450. Removed torrentMan->addDeltaDownloadLength().
  9451. (send): Added peer->updateUploadLength().
  9452. Removed peer->addPeerDownload().
  9453. Removed torrentMan->addDeltaUploadLength().
  9454. * src/main.cc
  9455. (timeoutSpecified): New variable.
  9456. (main): Set timeoutSpecified to false.
  9457. If the command-line option "--upload-limit" is specified, then
  9458. timeoutSpecified is set to true. This option will remain in the next
  9459. release, but be deprecated in the future release.
  9460. * src/TorrentRequestInfo.h
  9461. (TorrentRequestInfo): Removed const qualifier from op.
  9462. * src/PeerStat.h
  9463. (uploadSpeed): New variable.
  9464. (PeerStat): Added default value to cuid.
  9465. (calculateUploadSpeed): New function.
  9466. (updateUploadLength): New function.
  9467. (getMaxUploadSpeed): New function.
  9468. (getAvgUploadSpeed): New function.
  9469. (reset): Added uploadSpeed. Set status to IDLE.
  9470. * src/TorrentDownloadEngine.h
  9471. (cp): Declared as Time.
  9472. (sessionDownloadLengthArray): Removed.
  9473. (sessionUploadLengthArray): Removed.
  9474. (currentCp): Removed.
  9475. (lastCalcStat): New variable
  9476. (lastElapsed): Removed.
  9477. (sessionDownloadLength): Removed.
  9478. (calculateStat): New function.
  9479. * src/TorrentDownloadEngine.cc
  9480. (initStatistics): Removed lastElapsed, cp[],
  9481. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9482. currentCp, sessionDownloadLength.
  9483. Added cp.reset() and lastCalcStat.reset().
  9484. (calculateSpeed): Changed the name of the argument.
  9485. (calculateStatistics): Rewritten.
  9486. (calculateStat): New function.
  9487. * src/Peer.h
  9488. (PeerStat.h): Included.
  9489. (peerUpload): Removed.
  9490. (peerDownload): Removed.
  9491. (peerStat): New variable.
  9492. (sessionUploadLength): New variable.
  9493. (sessionDownloadLength): New variable.
  9494. (deltaUpload): Removed.
  9495. (deltaDownload): Removed.
  9496. (resetStatus): Made private.
  9497. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9498. Removed peerUpload, peerDownload.
  9499. (updateUploadLength): New function.
  9500. (addDeltaUpload): Removed.
  9501. (updateDownloadLength): New function.
  9502. (resetDeltaUpload): Removed.
  9503. (getDeltaUpload): Removed.
  9504. (addDeltaDownload): Removed.
  9505. (calculateUploadSpeed): New function.
  9506. (resetDeltaDownload): Removed.
  9507. (getDeltaDownload): Removed.
  9508. (calculateDownloadSpeed): New function.
  9509. (getSessionUploadLength): New function.
  9510. (getSessionDownloadLength): New function.
  9511. (activate): New function.
  9512. (deactivate): New function.
  9513. (addPeerUpload): Removed.
  9514. (setPeerUpload): Removed.
  9515. (getPeerUpload): Removed.
  9516. (addPeerDownload): Removed.
  9517. (setPeerDownload): Removed.
  9518. (getPeerDownload): Removed.
  9519. * src/Peer.cc
  9520. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9521. * src/MetalinkRequestInfo.h
  9522. (MetalinkRequestInfo): Removed const qualifier from op.
  9523. * src/RequestInfo.h
  9524. (op): Removed const qualifier.
  9525. (RequestInfo): Removed const qualifier from op.
  9526. * src/prefs.h
  9527. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9528. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9529. * src/PeerInteractionCommand.cc
  9530. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9531. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9532. * src/PeerInteraction.cc
  9533. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9534. * src/main.cc
  9535. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9536. Added the description of "--max-download-limit" option.
  9537. Removed the description of "--upload-limit" option.
  9538. Added the description of "--max-upload-limit" option.
  9539. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9540. Added "--max-download-limit" option and "--max-upload-limit" option.
  9541. Added the warning message if "--upload-limit" option is used.
  9542. * src/DownloadCommand.cc
  9543. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9544. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. To rewrite segment download mechanism for HTTP/FTP download.
  9546. Use BitfieldMan to manage segment download.
  9547. * src/HttpResponseCommand.h
  9548. (executeInternal): Pass the reference of segment.
  9549. * src/AbstractCommand.cc
  9550. (prepareForRetry): Call segmentMan->cancelSegment here.
  9551. (onAbort): Call segmentMan->cancelSegment here.
  9552. * src/HttpDownloadCommand.cc
  9553. (prepareForNextSegment): New function.
  9554. * src/DownloadEngineFactory.cc
  9555. (newConsoleEngine): Removed splitter.
  9556. (newTorrentConsoleEngine): Removed splitter.
  9557. * src/Request.h
  9558. (segment): Renamed from seg.
  9559. * src/FtpInitiateConnectionCommand.h
  9560. (executeInternal): Pass the reference of segment.
  9561. * src/AbstractCommand.h
  9562. (executeInternal): Pass the reference of segment.
  9563. * src/pref.h
  9564. (PREF_SEGMENT_SIZE): New definition.
  9565. * src/HttpProxyRequestCommand.h
  9566. (executeInternal): Pass the reference of segment.
  9567. * src/HttpResponseCommand.cc
  9568. (checkResponse): Allowed status 206 when a request range starts 0.
  9569. (handleDefaultEncoding): Rewritten the code related to Segment.
  9570. (handleOtherEncoding): Rewritten the code related to Segment.
  9571. * src/SegmentMan.h
  9572. (SegmentEntry): New class.
  9573. (SegmentEntries): New type definition.
  9574. (bitfield): New variable.
  9575. (usedSegmentEntries): New variable.
  9576. (onNullBitfield): New function.
  9577. (checkoutSegment): New function.
  9578. (segments): Removed.
  9579. (splitter): Removed.
  9580. (unregisterId): Removed.
  9581. (getSegment): New function(overload)
  9582. (getDownloadedSize): Removed.
  9583. (cancelSegment): New function.
  9584. (completeSegment): New function.
  9585. (initBitfield): New function.
  9586. (hasSegment): New function.
  9587. (getDownloadLength): New function.
  9588. * src/BitfieldMan.h
  9589. (getStartIndex): New function.
  9590. (getEndIndex): New function.
  9591. (getMissingUnusedIndex): New function(overload).
  9592. (getSparseMissingUnusedIndex): New function.
  9593. * src/BitfieldMan.cc
  9594. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9595. (getMissingUnusedIndex): New function(overload).
  9596. (Range): New class.
  9597. (getStartIndex): New function.
  9598. (getEndIndex): New function.
  9599. (getSparseMissingUnusedIndex): New function.
  9600. (isBitSetInternal): Return false if the given index is less than 0.
  9601. * src/HttpInitiateConnectionCommand.h
  9602. (executeInternal): Pass the reference of segment.
  9603. * src/FtpNegotiateCommand.h
  9604. (executeInternal): Pass the reference of segment.
  9605. * src/FtpNegotiateCommand.cc
  9606. (recvSize): Initialize bitfield here.
  9607. * src/FtpTunnelResponseCommand.h
  9608. (executeInternal): Pass the reference of segment.
  9609. * src/HttpConnection.cc
  9610. (createRequest): Rewritten range header processing.
  9611. * src/DownloadCommand.h
  9612. (executeInternal): Pass the reference of segment.
  9613. (prepareForRetry): Removed.
  9614. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9615. function.
  9616. * src/main.cc
  9617. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9618. * src/SegmentMan.cc
  9619. (SegmentMan): Added bitfield. Removed splitter.
  9620. (~SegmentMan): Added bitfield. Removed splitter.
  9621. (unregisterId): Removed.
  9622. (getSegment): Rewritten.
  9623. (updateSegment): Rewritten.
  9624. (save): Rewritten.
  9625. (read): Rewritten.
  9626. (finished): Rewritten.
  9627. (getDownloadedSize): Removed.
  9628. (initBitfield): New function.
  9629. (FindSegmentEntryByIndex): New function object.
  9630. (FindSegmentEntryByCuid): New function object.
  9631. (checkoutSegment): New function.
  9632. (onNullBitfield): New function.
  9633. (getSegment): New function(overload).
  9634. (CancelSegment): New function object.
  9635. (cancelSegment): New function.
  9636. (completeSegment): New function.
  9637. (hasSegment): New function.
  9638. (getDownloadLength): New function.
  9639. * src/FtpInitiateConnectionCommand.cc
  9640. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9641. * src/Segment.h: Rewritten.
  9642. * src/Segment.cc (operator<<): New function.
  9643. * src/HttpDownloadCommand.h
  9644. (prepareForNextSegment): New function.
  9645. * src/Request.cc
  9646. (resetUrl): Made segment null.
  9647. * src/DownloadEngine.cc
  9648. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9649. * src/HttpProxyRequestCommand.h
  9650. (executeInternal): Pass the reference of segment.
  9651. * src/DownloadCommand.cc
  9652. (executeInternal): Rewritten the code related to Segment.
  9653. (prepareForRetry): Removed.
  9654. (prepareForNextSegment): Rewritten.
  9655. * src/FtpTunnelResponseCommand.h
  9656. (executeInternal): Pass the reference of segment.
  9657. To add HTTP 1.1 persistent connection support(experimental)
  9658. * src/HttpRequestCommand.cc
  9659. (executeInternal): Disable keep alive if it is disabled by
  9660. configuration.
  9661. * src/Request.h
  9662. (keepAlive): New variable.
  9663. (isKeepAlive): New function.
  9664. (setKeepAlive): New function.
  9665. * src/pref.h
  9666. (PREF_HTTP_KEEP_ALIVE): New definition.
  9667. * src/HttpResponseCommand.cc
  9668. (executeInternal): Check the remote server supports keep alive.
  9669. * src/HttpConnection.cc
  9670. (createRequest): Send "Connection: close" only if keep alive is
  9671. disabled.
  9672. * src/main.cc
  9673. (main):
  9674. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9675. To add max download speed limit:
  9676. * src/pref.h
  9677. (PREF_MAX_SPEED_LIMIT): New definition.
  9678. * src/PeerInteractionCommand.cc
  9679. (executeInternal): Added max download speed limit. Not tested yet.
  9680. * src/SegmentMan.h
  9681. (PeerStats): New type definition.
  9682. (peerStats): New variable.
  9683. (registerPeerStat): New function.
  9684. (FindPeerStat): New function object.
  9685. (getPeerStat): New function.
  9686. (calculateDownloadSpeed): New function.
  9687. * src/SpeedCalc.h: New class.
  9688. * src/SpeedCalc.cc: New class.
  9689. * src/main.cc
  9690. (main):
  9691. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9692. download speed is not restricted).
  9693. * src/PeerStat.h: New class.
  9694. * src/SegmentMan.cc
  9695. (registerPeerStat): New function.
  9696. (calculateDownloadSpeed): New function.
  9697. * src/DownloadCommand.cc
  9698. (STARTUP_IDLE_TIME): New definition.
  9699. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9700. downloadStart.
  9701. (~DownloadCommand): Call peerStat->downloadStop.
  9702. (executeInternal): Added download speed limitter. Rewritten lowest
  9703. speed limitter.
  9704. * src/HttpConnection.cc
  9705. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9706. * src/AbstractCommand.cc
  9707. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9708. Added hostname to the error message.
  9709. * src/ConsoleDownloadEngine.cc
  9710. (calculateStatistics): Initialize psize with dlSize.
  9711. * src/PieceMessage.cc
  9712. (receivedAction): Do not call peerInteraction->abortPiece here.
  9713. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9714. * src/BitfieldMan.h
  9715. (clearAllUseBit): New function.
  9716. (setAllUseBit): New function.
  9717. * src/BitfieldMan.cc
  9718. (clearAllBit): Do not clear useBitfield here.
  9719. (clearAllUseBit): New function.
  9720. (setAllUseBit): New function.
  9721. * src/Piece.cc
  9722. (clearAllBlock): Call bitfield->clearAllUseBit().
  9723. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. To make filename URL-decoded:
  9725. * src/HttpResponseCommand.h: Updated doc.
  9726. * src/HttpResponseCommand.cc
  9727. (determinFilename): Made filename URL-decoded.
  9728. * src/FtpInitiateConnectionCommand.cc
  9729. (executeInternal): Made filename URL-decoded.
  9730. * src/Util.h (urldecode): New function.
  9731. * src/Util.cc (urldecode): New function.
  9732. To fix a bug that caused assertion failure in ares_strerror:
  9733. * src/NameResolver.cc (callback): Fixed the bug.
  9734. * Release 0.7.3
  9735. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. To add --seed-time and --seed-ratio command-line option:
  9737. * src/Option.h (getAsDouble): New function.
  9738. * src/Option.cc (getAsDouble): New function.
  9739. * src/SeedCheckCommand.h: New class.
  9740. * src/SeedCheckCommand.cc: New class.
  9741. * src/DownloadEngineFactory.cc
  9742. (SeedCheckCommand.h): Included.
  9743. (UnionSeedCriteria.h): Included.
  9744. (TimeSeedCriteria.h): Included.
  9745. (ShareRatioSeedCriteria.h): Included.
  9746. (newTorrentConsoleEngine): Added the processing of seed option.
  9747. * src/SeedCriteria.h: New class.
  9748. * src/ShareRatioSeedCriteria.h: New class.
  9749. * src/TimeSeedCriteria.h: New class.
  9750. * src/UnionSeedCriteria.h: New class.
  9751. * src/prefs.h
  9752. (PREF_SEED_TIME): New definition.
  9753. (PREF_SEED_RATIO): New definition.
  9754. * src/main.cc
  9755. (showUsage): Added --seed-time and --seed-ratio option.
  9756. (main): Added --seed-time and --seed-ratio option.
  9757. Made default log file name "/dev/null".
  9758. * src/SharedHandle.h
  9759. (SharedHandle): Copy constructor. Made it assignable from the
  9760. SharedHandle of the subclasses.
  9761. (operator=): Made it assignable from the SharedHandle of the
  9762. subclasses.
  9763. (getRefCount): New function.
  9764. To add notice log level and the switch to write log to stdout. This
  9765. switch is configurable per log level.
  9766. * src/Logger.h
  9767. (notice): New function.
  9768. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9769. constant.
  9770. * src/LogFactory.cc
  9771. (getInstance): The use of NullLogger was removed. A log message with
  9772. notice log level was made written to stdout along with log file.
  9773. * src/NullLogger.h
  9774. (notice): New function.
  9775. * src/SimpleLogger.h
  9776. (writeHeader): Added the 'file' argument.
  9777. (writeLog): Added the 'file' argument.
  9778. (writeFile): New function.
  9779. (stdoutField): New variable.
  9780. (SimpleLogger): Removed the default constructor.
  9781. (SimpleLogger): Made the default value of logfile 0.
  9782. (debug): Added 'virtual' keyword.
  9783. (info): Added 'virtual' keyword.
  9784. (warn): Added 'virtual' keyword.
  9785. (error): Added 'virtual' keyword.
  9786. (notice): New function.
  9787. (setStdout): New function.
  9788. * src/SimpleLogger.cc
  9789. (WRITE_LOG): Replaced writeLog with writeFile.
  9790. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9791. (SimpleLogger): Removed the default constructor.
  9792. (setStdout): New function.
  9793. (writeLog): Added the handling of NOTICE log level.
  9794. (writeFile): New function.
  9795. (notice): New function.
  9796. * src/TorrentMan.h: Updated doc.
  9797. * src/BitfieldMan.h: Updated doc.
  9798. * src/TrackerWatcherCommand.cc
  9799. (execute): Return true if error occurred in the request to the tracker
  9800. and halt is requested.
  9801. * src/TrackerUpdateCommand.cc
  9802. (execute): Return true if error occurred in the request to the tracker
  9803. and halt is requested.
  9804. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9805. DownloadEngine:
  9806. * src/TorrentConsoleDownloadEngine.h
  9807. (onSelectiveDownloadingCompletes): Removed.
  9808. * src/TorrentConsoleDownloadEngine.cc
  9809. (onSelectiveDownloadingCompletes): Removed.
  9810. * src/TorrentDownloadEngine.h
  9811. (onEndOfRun): Added 'virtual' keyword.
  9812. (afterEachIteration): Removed.
  9813. (onSelectiveDownloadingCompletes): Removed.
  9814. * src/TorrentDownloadEngine.cc
  9815. (onEndOfRun): Removed filenameFixed.
  9816. (afterEachIteration): Removed.
  9817. * src/TorrentMan.cc
  9818. (completePiece): Call onDownloadComplete here.
  9819. (onDownloadComplete): Added 2 log messages.
  9820. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9821. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9822. * src/NameResolver.h: Added the prototype declaration of callback().
  9823. To support c-ares library:
  9824. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9825. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9826. * src/FtpInitiateConnectionCommand.h:
  9827. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9828. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9829. * src/HttpInitiateConnectionCommand.h:
  9830. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9831. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9832. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9833. #1542285 by tizianomueller)
  9834. * src/HttpInitiateConnectionCommand.cc:
  9835. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9836. * src/FtpInitiateConnectionCommand.cc:
  9837. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9838. * src/DownloadEngine.h:
  9839. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9840. * src/DownloadEngine.cc:
  9841. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9842. To fix the bug that causes compilation failure with metalink-support
  9843. disabled(bug#1543587):
  9844. * src/main.cc: Fixed with the patch by tizianomueller.
  9845. * Release 0.7.2
  9846. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. * src/main.cc
  9848. (main): Added a message to inform users that aria2 is starting to
  9849. verify checksum.
  9850. * src/RequestInfo.cc
  9851. (printDownloadAbortMessage): Added a message to inform users that
  9852. transfer can be resumed.
  9853. * src/FeatureConfig.cc
  9854. (FEATURE_ASYNC_DNS): New definition.
  9855. (FeatureConfig): Added aysnc DNS entry.
  9856. To replace CommandUuid with Command* in SocketEntry and
  9857. NameResolverEntry:
  9858. * src/DownloadEngine.h
  9859. (CommandUuids): Removed.
  9860. (SocketEntry::commandUuid): Removed.
  9861. (SocketEntry::command): New variable.
  9862. (SocketEntry::SocketEntry): Updated.
  9863. (SocketEntry::operator==): Updated.
  9864. (NameResolverEntry::commandUuid): Removed.
  9865. (NameResolverEntry::command): New variable.
  9866. (NameResolverEntry::NameResolverEntry): Updated.
  9867. (NameResolverEntry::operator==): Updated.
  9868. (waitData): Changed the argument type.
  9869. (addSocketForReadCheck): Changed the argument type.
  9870. (deleteSocketForReadCheck): Changed the argument type.
  9871. (addSocketForWriteCheck): Changed the argument type.
  9872. (deleteSocketForWriteCheck): Changed the argument type.
  9873. (addNameResolverCheck): Changed the argument type.
  9874. (deleteNameResolverCheck): Changed the argument type.
  9875. * src/DownloadEngine.cc
  9876. (FindCommand): Removed.
  9877. (run): Removed activeUuid. Added activeCommands instead.
  9878. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9879. (AccumulateActiveCommand): New function object.
  9880. (waitData): Use AccumulateActiveCommand.
  9881. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9882. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9883. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9884. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9885. (addNameResolverCheck): Use Command instead of CommandUuid.
  9886. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9887. * src/AbstractCommand.cc
  9888. (disableReadCheckSocket): Updated according to the changes in
  9889. DownloadEngine.
  9890. (setReadCheckSocket): Updated according to the changes in
  9891. DownloadEngine.
  9892. (disableWriteCheckSocket): Updated according to the changes in
  9893. DownloadEngine.
  9894. (setWriteCheckSocket): Updated according to the changes in
  9895. DownloadEngine.
  9896. (setNameResolverCheck): Updated according to the changes in
  9897. DownloadEngine.
  9898. (disableNameResolverCheck): Updated according to the changes in
  9899. DownloadEngine.
  9900. * src/AbstractCommand.cc
  9901. (disableReadCheckSocket): Updated according to the changes in
  9902. DownloadEngine.
  9903. (setReadCheckSocket): Updated according to the changes in
  9904. DownloadEngine.
  9905. (disableWriteCheckSocket): Updated according to the changes in
  9906. DownloadEngine.
  9907. (setWriteCheckSocket): Updated according to the changes in
  9908. DownloadEngine.
  9909. * release 0.7.1
  9910. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. To handle the case where some BitTorrent tracker requires all letters
  9912. except for [A-Za-z0-9] is URL encoded.
  9913. * src/Util.h
  9914. (torrentUrlencode): New function.
  9915. * src/Util.cc
  9916. (ctype.h): Included.
  9917. (torrentUrlencode): New function.
  9918. * src/TrackerWatcherCommand.cc
  9919. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9920. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9921. To add asynchronous DNS support(libares):
  9922. * src/AbstractCommand.h
  9923. (setNameResolverCheck): New function.
  9924. (disableNameResolverCheck): New function
  9925. (resolveHostname): New function.
  9926. * src/AbstractCommand.cc
  9927. (setNameResolverCheck): New function.
  9928. (disableNameResolverCheck): New function
  9929. (resolveHostname): New function.
  9930. * src/FtpInitiateConnectionCommand.h
  9931. (nameResolver): New function.
  9932. * src/FtpInitiateConnectionCommand.cc
  9933. (Util.h): Included.
  9934. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9935. disableWriteCheckSocket.
  9936. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9937. (executeInternal): Added async DNS support.
  9938. * src/HttpInitiateConnectionCommand.h
  9939. (nameResolver): New function.
  9940. * src/HttpInitiateConnectionCommand.cc
  9941. (DlRetryEx.h): Included.
  9942. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9943. disableWriteCheckSocket.
  9944. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9945. (executeInternal): Added async DNS support.
  9946. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9947. by extern "C" declaration.
  9948. * src/NameResolver.cc: New class.
  9949. * src/Util.h:
  9950. (isNumberAndDotsNotation): New function
  9951. * src/Util.cc
  9952. (isNumberAndDotsNotation): New function.
  9953. * src/DownloadEngine.h
  9954. (NameResolver.h): Included.
  9955. (NameResolverEntry): New class.
  9956. (NameResolverEntries): New type definition.
  9957. (addNameResolverCheck): New function.
  9958. (deleteNameResolverCheck): New function.
  9959. * src/DownloadEngine.cc
  9960. (run): Initialize cp with 0.
  9961. (SetDescriptor::operator()): Added for NameResolverEntry.
  9962. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9963. (waitData): Check nameResolver entries.
  9964. (updateFdSet): Update fds in nameResolver entries.
  9965. (addNameResolverCheck): New function.
  9966. (deleteNameResolverCheck): new function.
  9967. * src/PeerInteractionCommand.cc
  9968. (executeInternal): Fixed wrong socket handling.
  9969. * src/main.cc
  9970. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9971. * src/Util.cc
  9972. (fileChecksum): Removed the call to ctx.digestReset().
  9973. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9974. * po/ru.po: Azamat sent me Russian translation.
  9975. * src/FtpNegotiateCommand.cc
  9976. (recvGreeting): Call disableWriteCheckSocket just after
  9977. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  9978. (recvRetr): Recognized status code 125 as a acceptable response code.
  9979. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  9980. case-insesitive filesystem(BUG#1531057).
  9981. * src/Time.h: Renamed as TimeA2.h.
  9982. * src/Time.cc: Renamed as TimeA2.cc.
  9983. * src/TimeA2.h: New class.
  9984. * src/TimeA2.cc: New class.
  9985. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  9986. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  9987. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  9988. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  9989. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  9990. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9991. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  9992. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  9993. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9994. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9995. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9996. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9997. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9998. * release 0.7.0
  9999. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10000. * src/PeerChokeCommand.h
  10001. (PeerChokeCommand): Rearranged the arguments.
  10002. * src/PeerChokeCommand.cc
  10003. (PeerChokeCommand): Rearranged the arguments.
  10004. * src/MetalinkEntry.h
  10005. (Checksum.h): Included.
  10006. (md5): Removed.
  10007. (sha1): Removed.
  10008. (checksum): New variable.
  10009. (operator=): Updated.
  10010. (check): Removed.
  10011. * src/prefs.h
  10012. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10013. (PREF_FOLLOW_TORRENT): New definition.
  10014. (PREF_SELECT_FILE): New definition.
  10015. (PREF_FOLLOW_METALINK): New definition.
  10016. * src/MetalinkResource.h
  10017. (TYPE_HTTPS): Added to enum TYPE.
  10018. * src/TorrentMan.cc
  10019. (~TorrentMan): Rewritten.
  10020. * src/MultiDiskWriter.cc
  10021. (MultiDiskAdaptor): Updated according to the changes in
  10022. MessageDigestContext.
  10023. (~MultiDiskAdaptor): Updated according to the changes in
  10024. MessageDigestContext.
  10025. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10026. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10027. * src/Util.h
  10028. (fileChecksum): Updated according to the changes in
  10029. MessageDigestContext.
  10030. * src/Util.cc
  10031. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10032. (fileChecksum): Updated according to the changes in
  10033. MessageDigestContext.
  10034. * src/messageDigest.h: Rewritten.
  10035. * src/MetalinkEntry.cc
  10036. (check): Removed.
  10037. (Supported): Updated.
  10038. (dropUnsupportedResource): Fixed a memory leak.
  10039. * src/ShaVisitor.cc
  10040. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10041. (~ShaVisitor): Updated according to the changes in
  10042. MessageDigestContext.
  10043. (visit): Updated according to the changes in MessageDigestContext.
  10044. * src/main.cc
  10045. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10046. command-line option added.
  10047. * src/DownloadEngine.h
  10048. (SocketEntry): New class.
  10049. (SocketEntries): New definition.
  10050. (PairFind): Removed.
  10051. (SockCmdMap): Removed.
  10052. * src/DownloadEngine.cc
  10053. (DownloadEngine): Rewritten.
  10054. (~DownloadEngine): Rewritten.
  10055. (run): Renamed activeCommandUuids as activeUuids.
  10056. (SetDescriptor): Rewritten.
  10057. (AccumulateActiveCommandUuid): Removed.
  10058. (AccumulateActiveUuid): New function object.
  10059. (waitData): Rewritten.
  10060. (updateFdSet): Rewritten.
  10061. (addSocket): Rewritten.
  10062. (deleteSocket): Rewritten.
  10063. (addSocketForReadCheck): Rewritten.
  10064. (deleteSocketForReadCheck): Rewritten.
  10065. (addSocketForWriteCheck): Rewritten.
  10066. (deleteSocketForWriteCheck): Rewritten.
  10067. * src/Xml2MetalinkProcessor.cc
  10068. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10069. * src/DownloadCommand.cc
  10070. (executeInternal): Added the check routine for lowest speed limit.
  10071. * src/AbstractDiskWriter.cc
  10072. (AbstractDiskWriter): Updated according to the changes in
  10073. MessageDigestContext.
  10074. (~AbstractDiskWriter): Updated according to the changes in
  10075. MessageDigestContext.
  10076. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10077. * src/RequestInfo.h: New class.
  10078. * src/UrlRequestInfo.h: New class.
  10079. * src/UrlRequestInfo.cc: New class.
  10080. * src/TorrentRequestInfo.h: New class.
  10081. * src/TorrentRequestInfo.cc: New class.
  10082. * src/MetalinkRequestInfo.h: New class.
  10083. * src/MetalinkRequestInfo.cc: New class.
  10084. * src/Checksum.h: New class.
  10085. * src/DownloadEngineFactory.h: New class.
  10086. * src/DownloadEngineFactory.cc: New class.
  10087. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. * src/Option.h
  10089. (getAsBool): New function.
  10090. * src/Option.cc
  10091. (prefs.h): Included.
  10092. (defined): 0-length value is now recognized as undefined.
  10093. (getAsInt): Rewritten.
  10094. (getAsLLInt): Rewritten.
  10095. (getAsBool): New function.
  10096. * src/FeatureConfig.h: Rewritten.
  10097. * src/FeatureConfig.cc: Rewritten.
  10098. * src/prefs.h
  10099. (PREF_STDOUT_LOG): New definition.
  10100. (PREF_LOG): New definition.
  10101. (PREF_DIR): New definition.
  10102. (PREF_OUT): New definition.
  10103. (PREF_SPLIT): New definition.
  10104. (PREF_DAEMON): New definition.
  10105. (PREF_REFERER): New definition.
  10106. (PREF_TORRENT_FILE): New definition.
  10107. (PREF_LISTEN_PORT): New definition.
  10108. (PREF_METALINK_FILE): New definition.
  10109. (PREF_METALINK_VERSION): New definition.
  10110. (PREF_METALINK_LANGUAGE): New definition.
  10111. (PREF_METALINK_OS): New definition.
  10112. (PREF_METALINK_SERVERS): New definition.
  10113. * src/main.cc
  10114. (main): Following command-line parameters are now put into Option
  10115. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10116. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10117. metalinkLanguage, metalinkOs, metalinkServers
  10118. To fix the bug that aria2 can not handle http response header properly.
  10119. * src/HttpHeader.cc
  10120. (put): Made name lowercased.
  10121. (defined): Made name lowercased.
  10122. (getFirst): Made name lowercased.
  10123. (get): Made name lowercased.
  10124. (getFirstAsInt): Rewritten.
  10125. (getFirstAsLLInt): Rewritten.
  10126. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. * src/TorrentMan.h:
  10128. (advertisePiece): Updated doc.
  10129. (getAdvertisedPieceIndexes): Updated doc.
  10130. (removeAdvertisedPiece); New function.
  10131. * src/TorrentMan.cc
  10132. (FindElapsedHave): New function object.
  10133. (removeAdvertisedPiece): New function.
  10134. * src/HaveEraseCommand.h: New class.
  10135. * src/HaveEraseCommand.cc: New class.
  10136. * src/FeatureConfig.h: New class.
  10137. * src/FeatureConfig.cc: New class.
  10138. * src/Request.h
  10139. (defaultPorts): Removed.
  10140. * src/Request.cc
  10141. (FeatureConfig.h): Included.
  10142. (Request): Removed the statements related to defaultPorts.
  10143. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10144. A default port number is now retrieved from FeatureConfig.
  10145. * src/main.cc
  10146. (HaveEraseCommand.h): Included.
  10147. (showVersion): Added the output of feature list.
  10148. (main): Added HaveEraseCommand to command queue in BitTorrent
  10149. downloading.
  10150. * src/PeerInteractionCommand.h
  10151. (chokeCheckPoint): Commented out.
  10152. (periodicExecPoint): New variable.
  10153. * src/PeerInteractionCommand.cc
  10154. (executeInternal): Following methods are now called in at least every
  10155. 0.5 seconds to reduce CPU usage:
  10156. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10157. checkHave(), sendKeepAlive().
  10158. (checkLongTimePeerChoking): Commented out.
  10159. * src/BitfieldMan.h
  10160. (getNthBitIndex): Changed the method signature.
  10161. (getMissingIndexRandomly): Changed the method signature.
  10162. * src/BitfieldMan.cc
  10163. (getNthBitIndex): Rewritten
  10164. (getMissingIndexRandomly): Rewritten.
  10165. (hasMissingPiece): Rewritten.
  10166. (getMissingIndex): Refactored.
  10167. (getMissingUnusedIndex); Refactored.
  10168. (getMissingIndex): Refactored.
  10169. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10170. * src/PeerMessage.h
  10171. (Piece.h): Included.
  10172. (SharedHandle.h): Included.
  10173. (invalidate): New variable.
  10174. (uploading): New variable.
  10175. (isInvalidate): New function.
  10176. (isUploading): New function.
  10177. (onPush): New function.
  10178. (onChoked): New function.
  10179. (onCanceled): New function.
  10180. (onAbortPiece): New function.
  10181. (PeerMessageHandle): New type definition.
  10182. * src/PeerMessage.cc
  10183. (PeerMessage): Added the initialization for invalidate and uploading.
  10184. * src/CancelMessage.h
  10185. (CancelMessage): Rewritten.
  10186. * src/RejectMessage.h
  10187. (RejectMessage): Rewritten.
  10188. * src/Metalinker.h
  10189. (operator=): Defined.
  10190. * src/MetaEntry.h
  10191. (operator=): Defined.
  10192. * src/MetalinkResource.h
  10193. (operator=): Defined.
  10194. * src/AllowedFastMessage.h
  10195. (AllowedFastMessage): Rewritten.
  10196. * src/HandshakeMessage.h
  10197. (HandshakeMessage): New function(overload).
  10198. * src/HandshakeMessage.cc
  10199. (HandshakeMessage): Rewritten.
  10200. (init): New function.
  10201. * src/HaveMessage.h
  10202. (HaveMessage): Rewritten.
  10203. * src/Time.h
  10204. (operator=): Defined the function body here.
  10205. * src/Time.cc
  10206. (operator=): Removed.
  10207. * src/SocketCore.h
  10208. (operator==): Defined here.
  10209. (operator!=): Defined here.
  10210. (operator<): Defined here.
  10211. * src/SocketCore.cc
  10212. (operator==): Removed.
  10213. (operator<): Removed.
  10214. * src/BitfieldMan.h
  10215. (operator=): Defined the function body here.
  10216. * src/BitfieldMan.cc
  10217. (operator=): Removed.
  10218. * src/TorrentMan.h
  10219. (deleteErrorPeer): Removed.
  10220. (deleteUnusedPeer); New function.
  10221. * src/TorrentMan.cc
  10222. (addPeer): Call deleteUnusedPeer.
  10223. (deleteErrorPeer): Removed.
  10224. (deleteUnusedPeer): New function.
  10225. * src/PeerAbstractCommand.h
  10226. (setNoCheck): New function.
  10227. (noCheck): New variable.
  10228. * src/PeerAbstractCommand.cc
  10229. (PeerAbstractCommand): Added the initialization of noCheck.
  10230. (execute): Added a check for noCheck.
  10231. (setNoCheck): New function.
  10232. * src/Util.h
  10233. (stdio.h): Included.
  10234. * src/Util.cc
  10235. (unistd.h): Included.
  10236. * src/DefaultDiskWriter.cc
  10237. (unistd.h): Included.
  10238. * src/Peer.h
  10239. (operator==): Defined the function body here.
  10240. (operator!=): Defined the function body here.
  10241. * src/Peer.cc
  10242. (operator==): Removed.
  10243. (operator!=): Removed.
  10244. * src/Piece.h
  10245. (Piece): Defined the function body here(copy constructor).
  10246. (operator=): Defined the function body here.
  10247. (operator==): Defined the function body here.
  10248. * src/Piece.cc
  10249. (Piece): Removed(copy constructor).
  10250. (operator=): Removed.
  10251. (operator==): Removed.
  10252. * src/PeerMessageUtil.h
  10253. (ChokeMessage.h): Removed.
  10254. (UnchokeMessage.h): Removed.
  10255. (InterestedMessage.h): Removed.
  10256. (NotInterestedMessage.h): Removed.
  10257. (HaveMessage.h): Removed.
  10258. (BitfieldMessage.h): Removed.
  10259. (RequestMessage.h): Removed.
  10260. (CancelMessage.h): Removed.
  10261. (PieceMessage.h): Removed.
  10262. (HandshakeMessage.h): Removed.
  10263. (KeepAliveMessage.h): Removed.
  10264. (PortMessage.h): Removed.
  10265. (HaveAllMessage.h): Removed.
  10266. (HaveNoneMessage.h): Removed.
  10267. (PeerConnection.h): Removed.
  10268. (HandshakeMessage.h): Included.
  10269. * src/BitfieldMessage.h
  10270. (init): New function.
  10271. (BitfieldMessage): Rewritten.
  10272. (BitfieldMessage): New function(overload).
  10273. * src/RequestSlot.h
  10274. (operator=): Defined the function body here.
  10275. (operator==): Defined the function body here.
  10276. * src/RequestSlot.cc
  10277. (operator=): Removed.
  10278. (operator==): Removed.
  10279. To remove the dependency on the PeerMessage subclass from
  10280. PeerInteraction:
  10281. * src/PeerMessageFactory.h: New class.
  10282. * src/PeerMessageFactory.cc: New class.
  10283. * src/SimplePeerMessage.cc
  10284. (send): If invalidate is true then do nothing.
  10285. * src/PeerInteractionCommand.cc
  10286. (HandshakeMessage.h): Included.
  10287. (KeepAliveMessage.h): Included.
  10288. (ChokeMessage.h): Included.
  10289. (UnchokeMessage.h): Included.
  10290. (HaveMessage.h): Included.
  10291. (executeInternal): Call setNoCheck().
  10292. Removed setWriteCheckSocket(socket).
  10293. * src/PeerInteraction.h
  10294. (ChokeMessage.h): Removed.
  10295. (UnchokeMessage.h): Removed.
  10296. (InterestedMessage.h): Removed.
  10297. (NotInterestedMessage.h): Removed.
  10298. (HaveMessage.h): Removed.
  10299. (BitfieldMessage.h): Removed.
  10300. (RequestMessage.h): Removed.
  10301. (CancelMessage.h): Removed.
  10302. (PieceMessage.h): Removed.
  10303. (HandshakeMessage.h): Removed.
  10304. (KeepAliveMessage.h): Removed.
  10305. (PortMessage.h): Removed.
  10306. (HaveAllMessage.h): Removed.
  10307. (HaveNoneMessage.h): Removed.
  10308. (RejectMessage.h): Removed.
  10309. (AllowedFastMessage.h): Removed.
  10310. (SuggestPieceMessage.h): Removed.
  10311. (PeerMessageFactory.h): Included.
  10312. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10313. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10314. (PeerMessageFactory): New variable.
  10315. (createPeerMessage): Removed.
  10316. (createHandshakeMessage): Removed.
  10317. (setPeerMessageCommonProperty): Removed.
  10318. (addRequestSlot): New function.
  10319. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10320. (getPeerMessageFactory): New function.
  10321. (createRequestMessage): Removed.
  10322. (createCancelMessage): Removed.
  10323. (createPieceMessage): Removed.
  10324. (createHaveMessage): Removed.
  10325. (createChokeMessage): Removed.
  10326. (createUnchokeMessage): Removed.
  10327. (createInterestedMessage): Removed.
  10328. (createNotInterestedMessage): Removed.
  10329. (createBitfieldMessage): Removed.
  10330. (createKeepAliveMessage): Removed.
  10331. (createHaveAllMessage): Removed.
  10332. (createHaveNoneMessage): Removed.
  10333. (createRejectMessage): Removed.
  10334. (createAllowedFastMessage): Removed.
  10335. * src/PeerInteraction.cc
  10336. (PeerInteraction): Allocate PeerMessageFactory here.
  10337. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10338. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10339. PieceMessage::ID.
  10340. (addMessage): Simplified by using PeerMessage::onPush().
  10341. (addRequestSlot): New function.
  10342. (rejectAllPieceMessageInQueue): Simplified by using
  10343. PeerMessage::onChoked().
  10344. (rejectPieceMessageInQueue): Simplified by using
  10345. PeerMessage::onCanceled().
  10346. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10347. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10348. (createHandshakeMessage): Removed.
  10349. (createPeerMessage): Removed.
  10350. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10351. (setPeerMessageCommonProperty): Removed.
  10352. (createRequestMessage): Removed.
  10353. (createCancelMessage): Removed.
  10354. (createPieceMessage): Removed.
  10355. (createHaveMessage): Removed.
  10356. (createChokeMessage): Removed.
  10357. (createUnchokeMessage): Removed.
  10358. (createInterestedMessage): Removed.
  10359. (createNotInterestedMessage): Removed.
  10360. (createBitfieldMessage): Removed.
  10361. (createKeepAliveMessage): Removed.
  10362. (createHaveAllMessage): Removed.
  10363. (createHaveNoneMessage): Removed.
  10364. (createRejectMessage): Removed.
  10365. (createAllowedFastMessage): Removed.
  10366. * src/PieceMessage.h
  10367. (createRejectMessage): New function.
  10368. (PieceMessage): Rewritten.
  10369. (onChoked): New function.
  10370. (onCanceled): New function.
  10371. * src/PieceMessage.cc
  10372. (send): If invalidate is true then do nothing, just return.
  10373. (createRejectMessage): New function.
  10374. (onChoked): New function.
  10375. (onCanceled): New function.
  10376. * src/RequestMessage.h
  10377. (RequestMessage): Rewritten.
  10378. (onPush): New function.
  10379. (onAbortPiece): New function.
  10380. * src/RequestMessage.cc
  10381. (onPush): New function.
  10382. (onAbortPiece): New function.
  10383. Update fd_set when a socket is added or deleted in order to improve
  10384. performance:
  10385. * src/DownloadEngine.h
  10386. (rfdset): New variable.
  10387. (wfdset): New variable.
  10388. (updateFdSet): New function.
  10389. * src/DownloadEngine.cc
  10390. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10391. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10392. (waitData): Copy rfdset and wfdset.
  10393. (updateFdSet): New function.
  10394. (addSocket): Call updateFdSet.
  10395. (deleteSocket): Call updateFdSet.
  10396. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. To add the support for Metalink3.0 backward compatible links:
  10398. * src/Request.h
  10399. (SAFE_CHARS): Added '#'.
  10400. (METALINK_MARK): New definition.
  10401. * src/Request.cc
  10402. (parseUrl): Added the support for Metalink3.0 backward compatible
  10403. links.
  10404. etc
  10405. * src/PeerInteraction.cc
  10406. (MsgPushBack): Removed.
  10407. (sendMessages): Use STL copy and back_inserter.
  10408. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10409. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10410. * src/TorrentMan.h
  10411. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10412. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10413. * src/SharedHandle.h: New class.
  10414. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10415. * src/HttpResponseCommand.h
  10416. (HttpResponseCommand): Wrapped Socket.
  10417. * src/SocketCore.h
  10418. (operator==): New function.
  10419. (operator!=): New function.
  10420. (operator<): New function.
  10421. (getSockfd): New function.
  10422. (isOpen): New function.
  10423. (writeData): New function.
  10424. * src/SocketCore.cc
  10425. (operator==): New function.
  10426. (operator!=): New function.
  10427. (operator<): New function.
  10428. * src/AbstractCommand.h
  10429. (socket): Changed its type to SocketHandle.
  10430. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10431. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10432. (disableReadCheckSocket): New function.
  10433. (disableWriteCheckSocket): New function.
  10434. (readCheckTarget): Changed its type to SocketHandle.
  10435. (writeCheckTarget): Changed its type to SocketHandle.
  10436. (AbstractCommand): Replaced Socket with SocketHandle.
  10437. * src/AbstractCommand.cc
  10438. (AbstractCommand): Replaced Socket with SocketHandle.
  10439. (~AbstractCommand): Removed the deallocation for Socket object.
  10440. (disableReadCheckSocket): New function.
  10441. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10442. (disableWriteCheckSocket): New function.
  10443. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10444. * src/HttpDownloadCommand.cc
  10445. (DownloadCommand): Replaced Socket with SocketHandle.
  10446. * src/PeerAbstractCommand.h
  10447. (socket): Changed its type to SocketHandle.
  10448. (peer): Changed its type to PeerHandle.
  10449. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10450. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10451. (disableReadCheckSocket): New function.
  10452. (disableWriteCheckSocket): New function.
  10453. (readCheckTarget): Changed its type to SocketHandle.
  10454. (writeCheckTarget): Changed its type to SocketHandle.
  10455. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10456. Replaced Peer with PeerHandle.
  10457. * src/HttpRequestCommand.cc
  10458. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10459. Use disableReadCheckSocket.
  10460. * src/PeerInitiateConnectionCommand.h
  10461. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10462. * src/PeerChokeCommand.cc
  10463. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10464. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10465. (execute): Use PeerHandle.
  10466. * src/PeerConnection.h
  10467. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10468. (socket): Changed its type to SocketHandle.
  10469. (PeerConnection): Replaced Socket with SocketHandle.
  10470. * src/PeerConnection.cc
  10471. (PeerConnection): Replaced Socket with SocketHandle.
  10472. * src/PeerInteractionCommand.h
  10473. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10474. Replaced Peer with PeerHandle.
  10475. * src/PeerInteractionCommand.cc
  10476. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10477. Replaced Peer with PeerHandle.
  10478. (executeInternal): Use disableWriteCheckSocket.
  10479. Use HandshakeMessageHandle.
  10480. (receiveMessages): Use PeerMessageHandle.
  10481. (prepareForNextPeer): Use PeerHandle.
  10482. * src/HttpProxyRequestCommand.h
  10483. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10484. * src/HttpResponseCommand.cc
  10485. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10486. * src/TorrentMan.cc
  10487. (nullPeer): Added external reference.
  10488. (~TorrentMan): Removed the deallocation of the elements of peers.
  10489. (addPeer): Rewritten.
  10490. (isPeerAvailable): Use nullPeer.
  10491. (deleteOldpeers): Replaced with deleteErrorPeer.
  10492. (deleteErrorPeer): New function.
  10493. (getPeer): Use PeerHandle and nullPeer.
  10494. (hasMissingPiece): Replaced Peer with PeerHandle.
  10495. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10496. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10497. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10498. (getMissingPiece): Replaced Peer with PeerHandle.
  10499. * src/FtpNegotiateCommand.cc
  10500. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10501. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10502. (recvGreeting): Use disableWriteCheckSocket.
  10503. (recvPasv): Removed the allocation of Socket.
  10504. Use disableReadCheckSocket.
  10505. (sendRestPasv): Use disableWriteCheckSocket.
  10506. (recvRetr): Changed assertion.
  10507. * src/PeerInteraction.h
  10508. (SharedHandle.h): Included SharedHandle.h.
  10509. (PeerMessageHandle): New type definition.
  10510. (HandshakeMessageHandle): New type definition.
  10511. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10512. (peer): Changed its type to PeerHandle.
  10513. (createHandshakeMessage): Replaced HandshakeMessage with
  10514. HandshakeMessageHandle.
  10515. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10516. (PeerInteraction): Replaced Peer with PeerHandle.
  10517. Replaced Socket with SocketHandle.
  10518. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10519. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10520. (receiveHandshake): Replaced HandshakeMessage with
  10521. HandshakeMessageHandle.
  10522. * src/PeerInteraction.cc
  10523. (PeerInteraction): Replaced Peer with PeerHandle.
  10524. Replaced Socket with SocketHandle.
  10525. (~PeerInteraction): Removed the deallocation of the elements of
  10526. messageQueue.
  10527. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10528. (isSendingMessageInProgress): Replaced PeerMessage with
  10529. PeerMessageHandle.
  10530. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10531. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10532. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10533. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10534. (abortPiece): Use PeerMessageHandle.
  10535. (receiveHandshake): Replaced HandshakeMessage with
  10536. HandshakeMessageHandle. Removed try-catch block.
  10537. (createHandshakeMessage): Replaced HandshakeMessage with
  10538. HandshakeMessageHandle.
  10539. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10540. Removed try-catch block.
  10541. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10542. * src/HttpProxyResponseCommand.cc
  10543. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10544. * src/FtpTunnelResponseCommand.h
  10545. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10546. * src/HttpConnection.cc
  10547. (HttpConnection): Replaced Socket with SocketHandle.
  10548. * src/PeerAbstractCommand.cc
  10549. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10550. (~PeerAbstractCommand): Removed the deallocation of socket.
  10551. Use disableReadCheckSocket, disableWriteCheckSocket.
  10552. (disableReadCheckSocket): New function.
  10553. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10554. (disableWriteCheckSocket): New function.
  10555. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10556. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10557. * src/FtpTunnelRequestCommand.cc
  10558. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10559. (~FtpTunnelRequestCommand): Corrected indentation.
  10560. * src/DownloadCommand.h
  10561. (DownloadCommand): Replaced Socket with SocketHandle.
  10562. * src/PeerListenCommand.cc
  10563. (PeerListenCommand): Removed the initialization of socket.
  10564. (~PeerListenCommand): Removed the deallocation of socket.
  10565. (bindPort): Use SocketHandle.
  10566. (execute): Use SocketHandle and PeerHandle.
  10567. * src/FtpDowndloadCommand.cc
  10568. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10569. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10570. * src/main.cc
  10571. (main): Corrected indentation.
  10572. * src/HttpInitiateConnectionCommand.cc
  10573. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10574. (executeInternal): Removed the allocation of socket.
  10575. * src/HttpRequestCommand.h
  10576. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10577. * src/FtpNegotiationCommand.h
  10578. (dataSocket): Changed its type to SocketHandle.
  10579. (serverSocket): Changed its type to SocketHandle.
  10580. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10581. * src/TorrentMan.h
  10582. (MAX_PEER_UPDATE): Removed.
  10583. (MAX_PEERS): New definition.
  10584. (Peers): The element is now of type PeerHandle.
  10585. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10586. (getPeer): Replaced Peer with PeerHandle.
  10587. (deleteOldErrorPeers): Removed.
  10588. (deleteErrorPeer): New function.
  10589. (hasMissingPiece): Replaced Peer with PeerHandle.
  10590. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10591. (getMissingPiece): Replaced Peer with PeerHandle.
  10592. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10593. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10594. (addActivePeer): Replaced Peer with PeerHandle.
  10595. (deleteActivePeer): Replaced Peer with PeerHandle.
  10596. Added a check for the return value of find.
  10597. * src/FtpTunnelResponseCommand.cc
  10598. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10599. * src/FtpInitiateConnectionCommand.cc
  10600. (executeInternal): Removed the allocation of socket.
  10601. * src/DownloadEngine.h
  10602. (Sockets): An element is now of type SocketHandle.
  10603. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10604. (CommandUuids): New type definition.
  10605. (rsockets): Changed its type to SockCmdMap.
  10606. (wsockets): Changed its type to SockCmdMap.
  10607. (addSocket): Rewritten.
  10608. (deleteSocket): Rewritten.
  10609. (addSocketForReadCheck): Rewritten.
  10610. (deleteSocketForReadCheck): Rewritten.
  10611. (addSocketForWriteCheck): Rewritten.
  10612. (deleteSocketForWriteCheck): Rewritten.
  10613. (PairFind): New template class.
  10614. * src/HttpDownloadCommand.h
  10615. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10616. * src/FtpConnection.cc
  10617. (FtpConnection): Replaced Socket with SocketHandle.
  10618. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10619. block.
  10620. * src/InitiateConnectionCommandFactory.cc
  10621. (DlAbortEx.h): Included DlAbortEx.h.
  10622. (createInitiateConnectionCommand): Throw exception if the protocol of
  10623. requested URI is not supported.
  10624. * src/Peer.cc
  10625. (nullPeer): Changed its type to PeerHandle.
  10626. (operator==): New function.
  10627. (operator!=): New function.
  10628. * src/Peer.h
  10629. (SharedHandle.h): Included SharedHandle.h.
  10630. (operator==): New function.
  10631. (operator!=): New function.
  10632. (Peer): Added the default constructor.
  10633. Use resetStatus() to initialize member variables.
  10634. (nullPeer): Removed.
  10635. * src/TrackerUpdateCommand.cc
  10636. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10637. with MIN_PEERS.
  10638. * src/PeerListenCommand.h
  10639. (socket): Changed its type to SocketHandle.
  10640. * src/Command.h
  10641. (CommandUuid): New type definition.
  10642. (uuid): New variable.
  10643. (uuidGen): New variable.
  10644. (Command): Added the initialization of uuid.
  10645. (getUuid): New function.
  10646. * src/Socket.h
  10647. (Socket): Removed.
  10648. (SocketHandle): New type definition.
  10649. * src/DownloadEngine.h
  10650. (FindCommand): New function object.
  10651. (run): The portion of socket check was rewritten.
  10652. (SetDescriptor): New function object.
  10653. (AccumulateActiveCommandUuid): New function object.
  10654. (waitData): Rewritten.
  10655. (addSocket): Rewritten.
  10656. (deleteSocket): Rewritten.
  10657. (addSocketForReadCheck): Rewritten.
  10658. (addSocketForWriteCheck): Rewritten.
  10659. (deleteSocketForReadCheck): Rewritten.
  10660. (deleteSocketForWriteCheck): Rewritten.
  10661. * src/HttpProxyResponseCommand.h
  10662. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10663. * src/HttpConnection.h
  10664. (socket): Changed its type to SocketHandle.
  10665. (HttpConnection): Replaced Socket with SocketHandle.
  10666. * src/PeerInitiateConnectionCommand.cc
  10667. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10668. (executeInternal): Removed the allocation of socket.
  10669. (prepareForNextPeer): Use PeerHandle.
  10670. * src/PeerMessage.h
  10671. (peer): Changed its type to PeerHandle.
  10672. (getPeer): Replaced Peer with PeerHandle.
  10673. (setPeer): Replaced Peer with PeerHandle.
  10674. * src/DownloadCommand.cc
  10675. (DownloadCommand): Replaced Socket with SocketHandle.
  10676. * src/FtpConnection.h
  10677. (socket): Changed its type to SocketHandle.
  10678. (FtpConnection): Replaced Socket with SocketHandle.
  10679. (sendPort); Replaced Socket with SocketHandle.
  10680. * src/FtpDowndloadCommand.h
  10681. (ctrlSocket): Changed its type to SocketHandle.
  10682. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10683. * src/HttpProxyRequestCommand.cc
  10684. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10685. * src/FtpTunnelRequestCommand.h
  10686. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10687. etc
  10688. * src/PeerChokeCommand.h
  10689. (setAllPeerChoked): Removed.
  10690. (setAllPeerResetDelta): Removed.
  10691. * src/PeerChokeCommand.cc
  10692. (setAllPeerChoked): Removed.
  10693. (ChokePeer): New function object.
  10694. (setAllPeerResetDelta): Removed.
  10695. (ResetDelta): New function object.
  10696. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10697. (execute): Show download speed when the local node is a seeder.
  10698. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10699. using STL.
  10700. * src/TrackerWatcherCommand.h
  10701. (MIN_PEERS): Removed.
  10702. * src/TorrentMan.cc
  10703. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10704. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. To fix the bug that .aria2 file is not saved if downloading is stopped
  10706. by the errors:it results that aria2 can not resume downloading:
  10707. * src/main.cc
  10708. (normalDownload): Added the call to save().
  10709. (main): Added the deletion of the elements in 'reserved'.
  10710. To fix log:
  10711. * src/PeerInteraction.cc
  10712. (receiveHandshake): Fixed log.
  10713. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. To improve download performance in BitTorrent:
  10715. * src/TorrentMan.cc
  10716. (getPeer): Check the number of connections. Return nullPeer if
  10717. it is greater than MAX_PEER_UPDATE.
  10718. This code was originally here, but was removed in 0.5.1.
  10719. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. To improve the conditional compilation:
  10721. * src/MultiDiskWriter.h:
  10722. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10723. * src/MultiDiskWriter.cc:
  10724. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10725. * src/Util.h:
  10726. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10727. Added ENABLE_BITTORRENT around computeFastSet().
  10728. * src/Util.cc:
  10729. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10730. Added ENABLE_BITTORRENT around computeFastSet().
  10731. * src/messageDigest.h:
  10732. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10733. * src/ShaVisitor.h:
  10734. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10735. * src/ShaVisitor.cc:
  10736. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10737. * src/main.cc:
  10738. Added ENABLE_BITTORRENT around includes and blocks related to
  10739. BitTorrent.
  10740. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10741. digest support is not available.
  10742. * src/AbstractDiskWriter.h:
  10743. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10744. * src/AbstractDiskWriter.cc:
  10745. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10746. * src/MetalinkEntry.cc
  10747. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10748. support is not available.
  10749. To add command-line options for Metalink:
  10750. * src/main.cc:
  10751. Added metalink-version, metalink-language, metalink-os,
  10752. follow-metalink.
  10753. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10754. * src/main.cc: Use these definition.
  10755. * Release 0.6.0
  10756. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. To add Metalink support(http/ftp only):
  10758. * src/AbstractCommand.h
  10759. (tryReserved): New function.
  10760. * src/AbstractCommand.cc
  10761. (execute): Call tryReserved().
  10762. (tryReserved): New function.
  10763. * src/Request.h
  10764. (Requests): New type definition.
  10765. * src/SegmentMan.h
  10766. (reserved): New variable.
  10767. * src/Util.h
  10768. (fileChecksum): New function.
  10769. (toUpper): New function.
  10770. (toLower): New function.
  10771. * src/Util.cc
  10772. (messageDigest.h): Included.
  10773. (trim): Trim \r\n\t.
  10774. (fileChecksum): New function.
  10775. (toUpper): New function.
  10776. (toLower): New function.
  10777. * src/main.cc
  10778. (normalDownload): New function.
  10779. (main): Added 2 command-line options: metalink-file,
  10780. metalink-connection. Their usage has not been written yet.
  10781. * src/MetalinkProcessor.h: New class.
  10782. * src/Xml2MetalinkProcessor.h: New class.
  10783. * src/Xml2MetalinkProcessor.cc: New class.
  10784. * src/MetalinkEntry.h: New class.
  10785. * src/MetalinkEntry.cc: New class.
  10786. * src/MetalinkResource.h: New class.
  10787. * src/MetalinkResource.cc: New class.
  10788. To add md5 message digest checking:
  10789. * src/messageDigest.h: Rewritten.
  10790. * src/MultiDiskWriter.cc: Updated according to the changes in
  10791. messageDigest.h.
  10792. * src/ShaVisitor.cc: Updated according to the changes in
  10793. messageDigest.h.
  10794. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10795. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10796. messageDigest.h.
  10797. To fix a bug that causes segfault when the payload length in peer
  10798. message is less than 0:
  10799. * src/PeerConnection.cc:
  10800. (receiveMessage): Fixed the bug.
  10801. * src/PeerMessageUtil.cc
  10802. (checkLength): Throw an exception if length is less than or equals to
  10803. 0.
  10804. To add new interfaces to Base64 encoding/decoding:
  10805. * src/Base64.h
  10806. (part_encode): Changed the method signature.
  10807. (encode): New function(overload).
  10808. (decode): New function(overload).
  10809. * src/Base64.cc
  10810. (part_encode): Rewritten.
  10811. (encode): Rewritten.
  10812. (encode): New function(overload).
  10813. To prevent a peer to download same piece if there is an error in
  10814. checksum:
  10815. * src/PieceMessage.cc
  10816. (receivedAction): Call peerInteraction->abortPiece().
  10817. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. To fix the bug that causes same have message is sent many times to
  10819. a single peer.
  10820. * src/Time.cc
  10821. (isNewer): Use Util::difftv().
  10822. * src/Util.cc
  10823. (difftv): Added a cast to (long long int).
  10824. * src/TorrentMan.cc
  10825. (advertisePiece): Use push_front.
  10826. (getAdvertisedPieceIndexes): A performance improvement was made.
  10827. To fix the bug that sends tracker requests without a sleep interval
  10828. when the number of connections is less than 15.
  10829. * src/TrackerWatcherCommand.cc
  10830. (execute): Now the number of connections is not a factor to decide
  10831. whether or not a tracker request should be sent or not.
  10832. * src/Time.h
  10833. (setTimeInSec): New function.
  10834. * src/Time.cc
  10835. (setTimeInSec): New function.
  10836. etc.
  10837. * src/ChokeMessage.cc
  10838. (receivedAction): Removed peer->snubbing = false
  10839. * src/PeerConnection.h
  10840. (receiveHandshake): Updated doc.
  10841. * src/TorrentMan.h
  10842. (getAdvertisedPieceIndexes): Updated the method signature.
  10843. * src/TorrentMan.cc
  10844. (getAdvertisedPieceIndexes): Updated the method signature.
  10845. * src/Time.h
  10846. (getTimeInMicros): Added a cast to (long long int).
  10847. (getTimeInMillis): Added a cast to (long long int).
  10848. * Release 0.5.2
  10849. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10850. To make a listening socket non-block:
  10851. * src/SocketCore.h
  10852. (setNonBlockingMode): New function.
  10853. * src/SocketCore.cc
  10854. (setNonBlockingMode): New function.
  10855. (beginListen): Added a call to setNonBlockingMode().
  10856. (acceptConnection): Call setNonBlockingMode().
  10857. (setBlockingMode): Updated.
  10858. To handle tracker's NAT-checking:
  10859. * src/PeerConnection.cc
  10860. (receiveHandshake): 'msg' param is filled with received data and
  10861. its length is assigned to 'length' param, even if all handshake
  10862. message is not yet received.
  10863. * src/PeerInteractionCommand.cc
  10864. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10865. a new peer connects to localhost.
  10866. A call to peerInteraction->sendHandshake() was removed because
  10867. it is called from peerInteraction->receiveHandshake(true).
  10868. * src/PeerInteraction.h
  10869. (quickReplied): New variable.
  10870. (receiveHandshake): Added an argument.
  10871. * src/PeerInteraction.cc
  10872. (PeerInteraction): Added the initialization of quickReplied.
  10873. (receiveHandshake): Send handshake message as soon as the info hash
  10874. in a handshake message from a peer is correct.
  10875. To change the random part of peer id and key parameter:
  10876. * src/TorrentMan.h
  10877. (key): New variable.
  10878. * src/TorrentMan.cc
  10879. (setupInternal1): Use Util::randomAlpha() to generate random part
  10880. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10881. key is also generated by Util::randomAlpha() and it is now 8 character
  10882. long.
  10883. * src/Util.h
  10884. (randomAlpha): New function.
  10885. * src/Util.cc
  10886. (randomAlpha): New function.
  10887. * src/TrackerWatcherCommand.cc
  10888. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10889. Added no_peer_id=1.
  10890. Set snubbing flag to false when a choke message is received from a
  10891. snubbed peer.
  10892. * src/ChokeMessage.cc
  10893. (receivedAction): Set snubbing flag to false.
  10894. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10896. * src/SimpleLogger.h (writeHeader): New function.
  10897. * src/SimpleLogger.cc (writeHeader): New function.
  10898. (writeLog): Fixed the bug that causes segfaults if exception message
  10899. contains an unescaped "%" character.
  10900. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10901. when a tracker request fails.
  10902. * src/Request.cc (parseUrl): Query string is now handled properly.
  10903. * Release 0.5.1
  10904. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. To add Time class which represents a specific instant in time and
  10906. its precision is microseconds. Time checking procedures were rewritten
  10907. using this object.
  10908. * src/Time.h: New class.
  10909. * src/Time.cc: New class.
  10910. * src/AbstractCommand.h
  10911. (updateCheckPoint): Removed.
  10912. (isTimeoutDetected): Removed.
  10913. (checkPoint): Changed the type to Time.
  10914. (timeout): New variable.
  10915. (setTimeout): New function.
  10916. * src/AbstractCommand.cc
  10917. (AbstractCommand): Removed the initialization of checkPoint.
  10918. Added the initialization of timeout.
  10919. (updateCheckPoint): Removed.
  10920. (isTimeoutDetected): Removed.
  10921. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10922. * src/PeerChokeCommand.h
  10923. (checkPoint): Changed the type to Time.
  10924. * src/PeerChokeCommand.cc
  10925. (PeerChokeCommand): Removed the initialization of checkPoint.
  10926. (execute): Rewritten using Time object.
  10927. * src/TrackerWatcherCommand.h
  10928. (checkPoint): Changed the type to Time.
  10929. * src/TrackerWatcherCommand.cc
  10930. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10931. (execute): Rewritten.
  10932. * src/ConsoleDownloadEngine.h
  10933. (cp): Changed the type to Time.
  10934. (startup): Changed the type to Time.
  10935. * src/ConsoleDownloadEngine.cc
  10936. (initStatistics): Use cp.reset(), startup.reset().
  10937. (calculateStatistics): Rewritten using Time object.
  10938. * src/PeerAbstractCommand.h
  10939. (updateCheckPoint): Removed.
  10940. (isTimeoutDetected): Removed.
  10941. (checkPoint): Changed the type to Time.
  10942. * src/PeerAbstractCommand.cc
  10943. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10944. (updateCheckPoint): Removed.
  10945. (isTimeoutDetected): Removed.
  10946. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10947. * src/PeerInteractionCommand.cc
  10948. (PeerInteractionCommand): Removed the initializations of struct
  10949. timeval variables.
  10950. * src/PeerInteractionCommand.h
  10951. (keepAliveCheckPoint): Changed the type to Time.
  10952. (chokeCheckPoint): Changed the type to Time.
  10953. (freqCheckPoint): Changed the type to Time.
  10954. (haveCheckTime): Changed the type to Time.
  10955. * src/PeerInteractionCommand.cc
  10956. (executeInternal): Rewritten using Time object.
  10957. (detectMessageFlooding): Rewritten using Time object.
  10958. (checkLongTimePeerChoking): Rewritten using Time object.
  10959. (sendKeepAlive): Rewritten using Time object.
  10960. (checkHave): Rewritten using Time object.
  10961. * src/SleepCommand.h
  10962. (checkPoint): Changed the type to Time.
  10963. * src/SleepCommand.cc
  10964. (SleepCommand): Removed the initialization of checkPoint.
  10965. (execute): Rewritten using Time object.
  10966. * src/TorrentAutoSaveCommand.h
  10967. (checkPoint): Changed the type to Time.
  10968. * src/TorrentAutoSaveCommand.cc
  10969. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10970. (execute): Rewritten.
  10971. * src/DownloadCommand.h
  10972. (sw): Changed the type to Time.
  10973. * src/DownloadCommand.cc
  10974. (DownloadCommand): Removed the initialization of sw.
  10975. (executeInternal): Rewritten.
  10976. * src/RequestSlot.h
  10977. (dispatchedTime): Changed the type to Time.
  10978. * src/RequestSlot.cc
  10979. (RequestSlot): Removed the call to setDispatchedTime().
  10980. (setDispatchedTime): Rewirtten.
  10981. (isTimeout): Rewritten.
  10982. (getLatencyInMillis): Rewritten.
  10983. * src/TorrentDownloadEngine.h
  10984. (cp): Changed the type to Time[2].
  10985. (startup): Changed the type to Time.
  10986. * src/TorrentDownloadEngine.cc
  10987. (initStatistics): Rewritten.
  10988. (calculateStatistics): Rewritten.
  10989. * src/DownloadEngine.cc
  10990. (run): Rewritten.
  10991. To detect all attempts to connect to the tracker are failed:
  10992. * src/AbstractCommand.cc
  10993. (execute): Increment e->segmentMan->errors if a command aborted.
  10994. * src/SegmentMan.h
  10995. (errors): New variable.
  10996. * src/SegmentMan.cc
  10997. (SegmentMan): Added the initialization of errors.
  10998. (init): Added the initialization of errors.
  10999. * src/TrackerWatcherCommand.cc
  11000. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11001. request was failed.
  11002. To handle snubbed peers:
  11003. * src/PeerChokeCommand.cc
  11004. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11005. (execute): Snubbed peers don't get unchoked.
  11006. * src/PeerInteraction.h
  11007. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11008. * src/PeerInteraction.cc
  11009. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11010. back the requested 16k block in 60 seconds.
  11011. * src/PieceMessage.cc
  11012. (receivedAction): A peer's snubbed state is cleard if it sends
  11013. the requested 16k block in 60 seconds.
  11014. * src/Peer.h
  11015. (snubbing): New variable.
  11016. * src/Peer.cc
  11017. (resetStatus): Added snubbed = false.
  11018. To fix the bug that causes have message is not sent:
  11019. * src/PeerInteractionCommand.cc
  11020. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11021. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11022. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11023. * src/TorrentMan.h
  11024. (HaveEntry): New class.
  11025. (advertisePiece): Rewritten.
  11026. (getAdvertisedPieceIndexes): Rewritten.
  11027. (Haves): Changed the type.
  11028. (getAdvertisedPieceIndexes): Added an argument.
  11029. Others:
  11030. * src/TorrentMan.h
  11031. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11032. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11033. * src/TorrentMan.cc
  11034. (getPeer): Don't check the number of connections here.
  11035. (setupInternal1): Changed peerId.
  11036. * src/PeerInteractionCommand.h
  11037. (KEEP_ALIVE_INTERVAL): New definition.
  11038. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11039. * src/main.cc
  11040. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11041. * src/DownloadEngine.h: Removed unnecessary header includes.
  11042. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11043. To fix the bug that causes segfaults if a tracker returns a zero-length
  11044. list as "peers":
  11045. * src/TrackerUpdateCommand.cc
  11046. (execute): Added a check to see wether the type of peers is Data*.
  11047. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. * Release 0.5.0
  11049. To fix compile issue with gcc3:
  11050. * src/CancelMessage.h
  11051. (ID): Renamed as ID_t
  11052. (ID_t): New enum.
  11053. * src/RejectMessage.h
  11054. (ID): Renamed as ID_t
  11055. (ID_t): New enum.
  11056. * src/SuggestPieceMessage.h
  11057. (ID): Renamed as ID_t
  11058. (ID_t): New enum.
  11059. * src/AllowedFastMessage.h
  11060. (ID): Renamed as ID_t
  11061. (ID_t): New enum.
  11062. * src/PortMessage.h
  11063. (ID): Renamed as ID_t
  11064. (ID_t): New enum.
  11065. * src/HaveNoneMessage.h
  11066. (ID): Renamed as ID_t
  11067. (ID_t): New enum.
  11068. * src/KeepAliveMessage.h
  11069. (ID): Renamed as ID_t
  11070. (ID_t): New enum.
  11071. * src/HaveAllMessage.h
  11072. (ID): Renamed as ID_t
  11073. (ID_t): New enum.
  11074. * src/UnchokeMessage.h
  11075. (ID): Renamed as ID_t
  11076. (ID_t): New enum.
  11077. * src/BitfieldMessage.h
  11078. (ID): Renamed as ID_t
  11079. (ID_t): New enum.
  11080. * src/PieceMessage.h
  11081. (ID): Renamed as ID_t
  11082. (ID_t): New enum.
  11083. * src/RequestMessage.h
  11084. (ID): Renamed as ID_t
  11085. (ID_t): New enum.
  11086. * src/NotInterestedMessage.h
  11087. (ID): Renamed as ID_t
  11088. (ID_t): New enum.
  11089. * src/ChokeMessage.h
  11090. (ID): Renamed as ID_t
  11091. (ID_t): New enum.
  11092. * src/InterestedMessage.h
  11093. (ID): Renamed as ID_t
  11094. (ID_t): New enum.
  11095. * src/HaveMessage.h
  11096. (ID): Renamed as ID_t
  11097. (ID_t): New enum.
  11098. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. * src/PeerAbstractCommand.h
  11100. (beforeSocketCheck): Removed.
  11101. * src/PeerAbstractCommand.cc
  11102. Modified in order to call executeInternal() even if socket check
  11103. and upload limit check fail.
  11104. * src/PeerInteractionCommand.h
  11105. (keepAlive): Removed.
  11106. (sendKeepAlive): New function.
  11107. (checkHave): New function.
  11108. (beforeSocketCheck): Removed.
  11109. * src/PeerInteractionCommand.cc
  11110. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11111. calls to checkHave() and sendKeepAlive().
  11112. (keepAlive): Renamed to sendKeepAlive().
  11113. (sendKeepAlive): New function.
  11114. (beforeSocketCheck): Removed.
  11115. (checkHave): New function.
  11116. * src/BitfieldMan.cc
  11117. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11118. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11119. 0.
  11120. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11121. * src/TorrentMan.h
  11122. (UsedPieces): Removed.
  11123. (Pieces): New type definition.
  11124. * src/Piece.h: Updated doc.
  11125. * src/Peer.h
  11126. (totalLength): Removed.
  11127. * src/Peer.cc
  11128. (updateLatency): Fixed the latency calculation.
  11129. * src/TorrentMan.cc
  11130. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11131. than or equal to MAX_PEER_LIST_SIZE.
  11132. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11133. then return false.
  11134. (deleteOldErrorPeers): Rewritten.
  11135. (deleteUsedPiece): Fixed the miss use of STL remove.
  11136. * src/PeerInteraction.h
  11137. (Pieces): Removed.
  11138. (deleteTimeoutRequestSlot): Removed.
  11139. (deleteCompletedRequestSlot): Removed.
  11140. (checkRequestSlot): New function.
  11141. * src/PeerInteraction.cc
  11142. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11143. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11144. (checkRequestSlot): New function.
  11145. * src/DownloadEngine.cc
  11146. (run): Clear activeSockets before calling waitData().
  11147. (waitData): Removed a call to activeSockets.clear().
  11148. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. To attempt to handle EINTR:
  11150. * src/SocketCore.cc
  11151. (isReadable): Added EINTR handling.
  11152. (isWritable): Added EINTR handling.
  11153. To improve the performance:
  11154. * src/AbstractCommand.cc
  11155. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11156. * src/PeerInteractionCommand.h
  11157. (receiveMessage): Renamed as receiveMessages().
  11158. (receiveMessages): New function.
  11159. * src/PeerInteractionCommand.cc
  11160. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11161. () function. detectMessageFlooding() is moved here.
  11162. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11163. (). The flooding detection for have message is comment out.
  11164. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11165. Util::difftv().
  11166. (receiveMessage): Renamed as receiveMessages().
  11167. (receiveMessages): New function.
  11168. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11169. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11170. * src/SleepCommand.cc
  11171. (execute): Use Util::difftvsec() instead of Util::difftv().
  11172. * src/BitfieldMan.h
  11173. (getNthBitIndex): New function.
  11174. (hasMissingPiece): New function.
  11175. (getAllMissingIndexes): New function.
  11176. * src/BitfieldMan.cc
  11177. (countSetBit): Rewritten.
  11178. (getNthBitIndex): New function.
  11179. (getMissingIndexRandomly): Rewritten.
  11180. (hasMissingPiece): New function.
  11181. (getAllMissingIndexes): New function.
  11182. * src/TorrentMan.cc
  11183. (hasMissingPiece): New function.
  11184. (deleteUsedPiece): Rewritten using STL.
  11185. * src/PeerInteraction.cc
  11186. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11187. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11188. (addRequests): Updated the number of pending requests.
  11189. * src/PeerAbstractCommand.cc
  11190. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11191. (execute): Returns true if TorrentMan::isHalt() is true.
  11192. Corrected the condition of upload limit checking.
  11193. * src/Util.h
  11194. (countBit): New function.
  11195. * src/Util.cc
  11196. (nbits): New variable.
  11197. (countBit): New function.
  11198. * src/DownloadEngine.h
  11199. (SockCmdMap): New type definition.
  11200. (waitData): Added an argument.
  11201. (addSocket): Added an argument.
  11202. (addSocketForReadCheck): Added an argument.
  11203. (addSocketForWriteCheck): Added an argument.
  11204. * src/DownloadEngine.cc
  11205. (run): Executes only commands whose sockets are ready to read or write.
  11206. All commands are executed in every 1 second.
  11207. (waitData): Calls select() again if it returned
  11208. EINTR.
  11209. (addSocket): Saves socket and command object pair to the map.
  11210. (deleteSocket): Deletes socket and command object pair from the map.
  11211. (addSocketForReadCheck): Added an argument.
  11212. (addSocketForWriteCheck): Added an argument.
  11213. * src/DownloadCommand.cc
  11214. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11215. To send "event=stopped" to the tracker when the application finishes:
  11216. * src/PeerChokeCommand.h
  11217. (checkPoint): New variable.
  11218. * src/PeerChokeCommand.cc
  11219. (PeerChokeCommand): Added the initialization of checkPoint.
  11220. (execute): The interval check is now done by checkPoint, not
  11221. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11222. * src/TorrentMan.h
  11223. (halt): New function.
  11224. (hasMissingPiece): New function.
  11225. (isHalt): New function.
  11226. (setHalt): New function.
  11227. * src/TorrentMan.cc
  11228. (TorrentMan): Added the initialization of halt.
  11229. * src/TorrentAutoSaveCommand.h
  11230. (checkPoint): New variable.
  11231. * src/PeerListenCommand.cc
  11232. (execute): Returns true if TorrentMan::isHalt() is true.
  11233. * src/main.cc
  11234. (setSignalHander): Added flags argument.
  11235. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11236. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11237. Removed printDownloadAbortMessage() after torrent downloading loop.
  11238. * src/TorrentAutoSaveCommand.cc
  11239. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11240. (execute): Returns true if TorrentMan::isHalt() is true.
  11241. The interval check is now done by checkPoint, not SleepCommand.
  11242. * src/TrackerWatcherCommand.cc
  11243. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11244. event=stopped.
  11245. * src/TrackerUpdateCommand.cc
  11246. (prepareForRetry): Do not use SleepCommand here.
  11247. (execute): Returns true if TorrentMan::isHalt() is true.
  11248. Others:
  11249. * src/TorrentMan.cc
  11250. (getMissingPieceIndex): Updated log message.
  11251. * src/PeerInteraction.cc
  11252. (createPeerMessag): Updated log message.
  11253. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11254. To add the ability to download several pieces in mix in a command and
  11255. increase the number of request slots according to request-cancel
  11256. latency:
  11257. * src/PeerInteractionCommand.cc
  11258. (executeInternal): The number of messages to be received at a time
  11259. is increased from 10 to 50.
  11260. * src/LogFactory
  11261. (getInstance): Added NullLogger.
  11262. * src/NullLogger.h: New class.
  11263. * src/BitfieldMan.h
  11264. (getMissingIndex): New function.
  11265. * src/BitfieldMan.cc
  11266. (getMissingIndex): New function.
  11267. * src/TorrentMan.h
  11268. (checkOutPiece): New function.
  11269. (getMissingPieceIndex): New function.
  11270. (getMissingFastPieceIndex): New function.
  11271. (getMissingFastPiece): New function.
  11272. * src/TorrentMan.cc
  11273. (updatePiece): Rewritten using STL.
  11274. (syncPiece): Rewritten using STL.
  11275. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11276. checkOutPiece().
  11277. (getMissingPieceIndex): New function.
  11278. (getMissingFastPieceIndex): New function.
  11279. (getMissingFastPiece): New function.
  11280. (checkOutPiece): New function.
  11281. * src/PeerInteraction.h
  11282. (Pieces): New type definition.
  11283. (piece): Removed.
  11284. (pieces): New variable.
  11285. (getNewPieceAndSendInterest): Added the "piece" argument.
  11286. (abortPiece): Added the "piece" argument.
  11287. (abortAllPieces): New function.
  11288. (isInRequestSlot): New function.
  11289. (hasDownloadPiece): Added the "index" argument.
  11290. (setDownloadPiece): Removed.
  11291. (getDownloadPiece): Added the "index" argument.
  11292. (updatePiece): New function.
  11293. (createRequestMessage): Added the "index" argument.
  11294. * src/PeerInteraction.cc
  11295. (onChoked): Rewritten.
  11296. (abortPiece): Rewirtten.
  11297. (abortAllPieces): New function.
  11298. (deleteTimeoutRequestSlot): Rewritten.
  11299. Clarified code a little bit.
  11300. (deleteCompletedRequestSlot): Rewritten.
  11301. (isInRequestSlot): New function.
  11302. (syncPiece): Rewritten.
  11303. (updatePiece): New function.
  11304. (getNewPieceAndSendInterest): Rewritten.
  11305. (addRequests): Rewritten.
  11306. (getDownloadPiece): Rewritten.
  11307. (hasDownloadPiece): Rewritten.
  11308. (createRequestMessage): Added the "index" argument.
  11309. * src/common.h
  11310. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11311. (DIV_FLOOR): New definition.
  11312. * src/PieceMessage.cc
  11313. (receivedAction): Update request-piece latency here.
  11314. * src/RequestSlot.h
  11315. (getLatencyInMillis): New function.
  11316. * src/RequestSlot.cc
  11317. (isTimeout): Rewritten using getLatencyInMillis.
  11318. (getLatencyInMillis): New function.
  11319. * src/Piece.h
  11320. (operator==): New function.
  11321. (getMissingBlockIndex): New function.
  11322. * src/Piece.cc
  11323. (operator==): New function.
  11324. (getMissingBlockIndex): New function.
  11325. * src/Peer.h
  11326. (DEFAULT_LATENCY): New definition.
  11327. (latency): New variable.
  11328. (updateLatency): New function.
  11329. (getLatency): New function.
  11330. * src/Peer.cc
  11331. (resetStatus): Reset latecy.
  11332. (updateLatency): New function.
  11333. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. * src/SocketCore.cc
  11335. (isReadable): Added secure to the condition.
  11336. * src/HttpConnection.cc
  11337. (receiveResponse): Fixed a bug that causes no response header
  11338. exception.
  11339. * src/Peer.h
  11340. (getFastSet): Fixed the return value type.
  11341. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11342. To remove a wait from download loop:
  11343. * src/DownloadEngine.cc
  11344. (run): Comment out shortSleep.
  11345. To rewrite the message handling:
  11346. * src/SimplePeerMessage.h: New class.
  11347. * src/SimplePeerMessage.cc: New class.
  11348. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11349. (msg): New variable.
  11350. (create): New function.
  11351. (send): Removed.
  11352. (getMessage): New function.
  11353. (getMessageLength): New function.
  11354. * src/CancelMessage.cc
  11355. (create): New function.
  11356. (receivedAction): Replaced deleteRequestMessageInQueue with
  11357. rejectPieceMessageInQueue.
  11358. (send): Removed.
  11359. (getMessage): New function.
  11360. (getMessageLength): New function.
  11361. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11362. (msg): New variable.
  11363. (msgLength): New variable.
  11364. (~BitfieldMessage): Deleted msg.
  11365. (send): Removed.
  11366. (getMessage): New function.
  11367. (getMessageLength): New function.
  11368. * src/BitfieldMessage.cc
  11369. (create): New function.
  11370. (send): Removed.
  11371. (getMessage): New function.
  11372. (getMessageLength): New function.
  11373. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11374. (msg): New variable.
  11375. (sendPredicate): New function.
  11376. (onSendComplete): New function.
  11377. (send): Removed.
  11378. (getMessage): New function.
  11379. (getMessageLength): New function.
  11380. (create): New function.
  11381. * src/ChokeMessage.cc
  11382. (create): New function.
  11383. (send): Removed.
  11384. (sendPredicate): New function.
  11385. (getMessage): New function.
  11386. (getMessageLength): New function.
  11387. (onSendComplete): New function.
  11388. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11389. (msg): New variable.
  11390. (send): Removed.
  11391. (getMessage): New function.
  11392. (getMessageLength): New function.
  11393. * src/KeepAliveMessage.cc
  11394. (send): Removed.
  11395. (getMessage): New function.
  11396. (getMessageLength): New function.
  11397. * src/PortMessage.h
  11398. (create): New function.
  11399. (receivedAction): Updated log message.
  11400. * src/PortMessage.cc: New file.
  11401. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11402. (msg): New variable.
  11403. (sendPredicate): New function.
  11404. (onSendComplete): New function.
  11405. (create): New function.
  11406. (send): Removed.
  11407. (getMessage): New function.
  11408. (getMessageLength): New function.
  11409. * src/UnchokeMessage.cc
  11410. (create): New function.
  11411. (send): Removed.
  11412. (sendPredicate): New function.
  11413. (getMessage): New function.
  11414. (getMessageLength): New function.
  11415. (onSendComplete): New function.
  11416. * src/PieceMessage.h
  11417. (leftPieceDataLength): Removed.
  11418. (leftDataLength): New variable.
  11419. (headerSend): New variable.
  11420. (pendingCount): New variable.
  11421. (msgHeader): New variable.
  11422. (sendPieceData): New function.
  11423. (incrementPendingCount): New function.
  11424. (isPendingCountMax): New function.
  11425. (create): New function.
  11426. (getMessageHeader): New function.
  11427. (getMessageHeaderLength): New function.
  11428. * src/PieceMessage.cc
  11429. (create): New function.
  11430. (getMessageHeader): New function.
  11431. (getMessageHeaderLength): New function.
  11432. (send): Rewritten.
  11433. (sendPieceData): New function.
  11434. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11435. (msg): New variable.
  11436. (create): New function.
  11437. (getMessage): New function.
  11438. (getMessageLength): New function.
  11439. * src/HaveMessage.cc
  11440. (create): New function.
  11441. (send): Removed.
  11442. (sendPieceData): New function.
  11443. (getMessage): New function.
  11444. (getMessageLength): New function.
  11445. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11446. (msg): New variable.
  11447. (create): New function.
  11448. (send): Removed.
  11449. (getMessage): New function.
  11450. (getMessageLength): New function.
  11451. * src/RequestMessage.cc
  11452. (create): New function.
  11453. (receivedAction): Added the handling of fast extension.
  11454. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11455. (send): Removed.
  11456. (getMessage): New function.
  11457. (getMessageLength): New function.
  11458. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11459. (msg): New variable.
  11460. (sendPredicate): New function.
  11461. (onSendComplete): New function.
  11462. (create): New function.
  11463. (getMessage): New function.
  11464. (getMessageLength): New function.
  11465. * src/InterestedMessage.cc
  11466. (create): New function.
  11467. (send): Removed.
  11468. (sendPieceData): New function.
  11469. (getMessage): New function.
  11470. (getMessageLength): New function.
  11471. (onSendComplete): New function.
  11472. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11473. (msg): New variable.
  11474. (sendPieceData): New function.
  11475. (onSendComplete): New function.
  11476. (create): New function.
  11477. (send): Removed.
  11478. (getMessage): New function.
  11479. (getMessageLength): New function.
  11480. * src/NotInterestedMessage.cc
  11481. (create): New function.
  11482. (send): Removed.
  11483. (sendPredicate): New function.
  11484. (getMessage): New function.
  11485. (getMessageLength): New function.
  11486. (onSendComplete): New function.
  11487. * src/AllowedFastMessage.h: New class.
  11488. * src/AllowedFastMessage.cc: New class.
  11489. * src/RejectMessage.h: New class.
  11490. * src/RejectMessage.cc: New class.
  11491. * src/SuggestPieceMessage.h: New class.
  11492. * src/SuggestPieceMessage.cc: New class.
  11493. * src/HaveAllMessage.h: New class.
  11494. * src/HaveAllMessage.cc: New class.
  11495. * src/HaveNoneMessage.h: New class.
  11496. * src/HaveNoneMessage.cc: New class.
  11497. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11498. (msg): New variable.
  11499. (reserved): New variable.
  11500. (create): New function.
  11501. (getId): New function.
  11502. (receivedAction): New function.
  11503. (getMessage): New function.
  11504. (getMessageLength): New function.
  11505. (isFastExtensionSupported): New function.
  11506. * src/HandshakeMessage.cc
  11507. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11508. (create): New function.
  11509. (getMessage): New function.
  11510. (getMessageLength): New function.
  11511. (toString): Added the output of reserved field.
  11512. (check): Added const qualifier.
  11513. (isFastExtensionSupported): New function.
  11514. * src/PeerMessageUtil.h
  11515. (createChokeMessage): Removed.
  11516. (createUnchokeMessage): Removed.
  11517. (createInterestedMessage): Removed.
  11518. (createNotInterestedMessage): Removed.
  11519. (createHaveMessage): Removed.
  11520. (createBitfieldMessage): Removed.
  11521. (createRequestMessage): Removed.
  11522. (createCancelMessage): Removed.
  11523. (createPieceMessage): Removed.
  11524. (createPortMessage): Removed.
  11525. (createChokeMessage): Removed.
  11526. (createUnchokeMessage): Removed.
  11527. (createInterestedMessage): Removed.
  11528. (createNotInterestedMessage): Removed.
  11529. (createHaveMessage): Removed.
  11530. (createBitfieldMessage): Removed.
  11531. (createRequestMessage): Removed.
  11532. (createCancelMessage): Removed.
  11533. (createPieceMessage): Removed.
  11534. (createKeepAliveMessage): Removed.
  11535. (createHandshakeMessage): Removed.
  11536. (setIntParam): New function.
  11537. (createPeerMessageString): New function.
  11538. * src/PeerMessageUtil.cc
  11539. (createChokeMessage): Removed.
  11540. (createUnchokeMessage): Removed.
  11541. (createInterestedMessage): Removed.
  11542. (createNotInterestedMessage): Removed.
  11543. (createHaveMessage): Removed.
  11544. (createBitfieldMessage): Removed.
  11545. (createRequestMessage): Removed.
  11546. (createCancelMessage): Removed.
  11547. (createPieceMessage): Removed.
  11548. (createPortMessage): Removed.
  11549. (createRequestMessage): Removed.
  11550. (createCancelMessage): Removed.
  11551. (createPieceMessage): Removed.
  11552. (createHaveMessage): Removed.
  11553. (createChokeMessage): Removed.
  11554. (createUnchokeMessage): Removed.
  11555. (createInterestedMessage): Removed.
  11556. (createNotInterestedMessage): Removed.
  11557. (createBitfieldMessage): Removed.
  11558. (createKeepAliveMessage): Removed.
  11559. (createHandshakeMessage): Removed.
  11560. (setIntParam): New function.
  11561. (createPeerMessageString): New function.
  11562. * src/PeerConnection.h
  11563. (peer): Removed.
  11564. (torrentMan): Removed.
  11565. (createNLengthMessage): Removed.
  11566. (setIntParam): Removed.
  11567. (writeOutgoingMessageLog): Removed all overloaded functions.
  11568. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11569. (sendMessage): New function.
  11570. (sendHandshake): Removed.
  11571. (sendKeepAlive): Removed.
  11572. (sendChoke): Removed.
  11573. (sendUnchoke): Removed.
  11574. (sendInterested): Removed.
  11575. (sendNotInterested): Removed.
  11576. (sendHave): Removed.
  11577. (sendBitfield): Removed.
  11578. (sendRequest): Removed.
  11579. (sendPiece): Removed.
  11580. (sendPieceHeader): Removed.
  11581. (sendPieceData): Removed.
  11582. (sendCancel): Removed.
  11583. (getPeer): Removed.
  11584. * src/PeerConnection.cc
  11585. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11586. (sendHandshake): Removed.
  11587. (sendKeepAlive): Removed.
  11588. (createNLengthMessage): Removed.
  11589. (setIntParam): Removed.
  11590. (writeOutgoingMessageLog): Removed all overloaded functions.
  11591. (sendChoke): Removed.
  11592. (sendUnchoke): Removed.
  11593. (sendInterested): Removed.
  11594. (sendNotInterested): Removed.
  11595. (sendHave): Removed.
  11596. (sendBitfield): Removed.
  11597. (sendRequest): Removed.
  11598. (sendPiece): Removed.
  11599. (sendPieceHeader): Removed.
  11600. (sendPieceData): Removed.
  11601. (sendMessage): New function.
  11602. (sendCancel): Removed.
  11603. * src/PeerInteractionCommand.cc
  11604. (PeerInteractionCommand): Call setUploadLimit.
  11605. (executeInternal): Call setUploadLimit.
  11606. Added the handling of "inProgress" state of handshake message.
  11607. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11608. sendNow().
  11609. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11610. sendNow().
  11611. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11612. * src/TorrentMan.h
  11613. (PEER_ID_LENGTH): New definition.
  11614. (hasAllPieces): New function.
  11615. * src/TorrentMan.cc
  11616. (getMissingPiece): Added the handling of fast extension.
  11617. (cancelPiece): Call updatePiece().
  11618. (hasAllPieces): New function.
  11619. * src/PeerInteraction.h
  11620. (fastSet): New variable.
  11621. (getNewPieceAndSendInterest): Changed the return type to void.
  11622. (send): Renamed as sendMessages.
  11623. (deleteAllRequestSlot): Removed.
  11624. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11625. (cancelAllRequest): Removed all overloaded functions.
  11626. (deleteAllRequestSlot): Removed.
  11627. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11628. (rejectPieceMessageInQueue): New function.
  11629. (rejectAllPieceMessageInQueue): New function.
  11630. (onChoked): New function.
  11631. (isSendingMessageInProgress): New function.
  11632. (getCorrespondingRequestSlot): Changed its arguments.
  11633. (isInFastSet): New function.
  11634. (addFastSetIndex): New function.
  11635. (addRequests): New function.
  11636. (sendNow): Removed.
  11637. (trySendNow): Removed.
  11638. (sendBitfield): New function.
  11639. (sendAllowdFast): New function.
  11640. (createHaveAllMessage): New function.
  11641. (createHaveNoneMessage): New function.
  11642. (createRejectMessage): New function.
  11643. (createAllowedFastMessage): New function.
  11644. * src/PeerInteraction.cc
  11645. (send): Renamed as sendMessages.
  11646. (sendMessages): New function.
  11647. (MsgPushBack): New class.
  11648. (isSendingMessageInProgress): New function.
  11649. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11650. (rejectAllPieceMessageInQueue): New function.
  11651. Added the handling of fast extension.
  11652. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11653. (rejectPieceMessageInQueue): New function.
  11654. Added the handling of fast extension.
  11655. (deleteRequestSlot): Replaced for loop with std::find.
  11656. (onChoked): New function.
  11657. (deleteAllRequestSlot): Removed.
  11658. (abortPiece): Rewirtten.
  11659. (deleteTimeoutRequestSlot): Updated log messages.
  11660. (getCorrespondingRequestSlot): Changed its arguments.
  11661. (cancelAllRequest): Removed all overloaded functions.
  11662. (receiveHandshake): Added the check to see whether an incoming peer
  11663. supports fast extension.
  11664. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11665. PeerMessageUtil.
  11666. (createPeerMessage): Use create() of each message class instead of
  11667. PeerMessageUtil.
  11668. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11669. AllowedFastMessage were added.
  11670. (getNewPieceAndSendInterest): Changed its return value type to void.
  11671. Added the handling of fast extension.
  11672. (addRequests): New function.
  11673. (sendNow): Removed.
  11674. (sendHandshake): Rewritten.
  11675. (trySendNow): Removed.
  11676. (sendBitfield): New function.
  11677. (sendAllowdFast): New function.
  11678. (isInFastSet): New function.
  11679. (addFastSetIndex): New function.
  11680. (createRequestMessage): Use RequestMessage::create instead of
  11681. PeerMessageUtil.
  11682. (createCancelMessage): Use CancelMessage::create instead of
  11683. PeerMessageUtil.
  11684. (createPieceMessage): Use PieceMessage::create instead of
  11685. PeerMessageUtil.
  11686. (createHaveMessage): Use HaveMessage::create instead of
  11687. PeerMessageUtil.
  11688. (createChokeMessage): Use ChokeMessage::create instead of
  11689. PeerMessageUtil.
  11690. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11691. PeerMessageUtil.
  11692. (createInterestedMessage): Use InterestedMessage::create instead of
  11693. PeerMessageUtil.
  11694. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11695. of PeerMessageUtil.
  11696. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11697. PeerMessageUtil.
  11698. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11699. PeerMessageUtil.
  11700. (createHaveAllMessage): New function.
  11701. (createHaveNoneMessage): New function.
  11702. (createRejectMessage): New function.
  11703. (createAllowedFastMessage: New function.
  11704. * src/Util.h
  11705. (sha1Sum): New function.
  11706. (computeFastSet): New function.
  11707. * src/Util.cc
  11708. (sha1Sum): New function.
  11709. (computeFastSet): New function.
  11710. * src/Peer.h
  11711. (fastExtensionEnabled): New variable.
  11712. (fastSet): New variable.
  11713. (setAllBitfield): New function.
  11714. (setFastExtensionEnabled): New function.
  11715. (isFastExtensionEnabled): New function.
  11716. (addFastSetIndex): New function.
  11717. (getFastSet): New function.
  11718. (isInFastSet): New function.
  11719. (countFastSet): New function.
  11720. * src/Peer.cc
  11721. (isInFastSet): New function.
  11722. (addFastSetIndex): New function.
  11723. (setAllBitfield): New function.
  11724. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11725. sockets.
  11726. * src/PeerAbstractCommand.cc
  11727. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11728. and uploadLimit.
  11729. (execute): Changed the procedure of checking sockets. The upload speed
  11730. checking were added.
  11731. (setUploadLimit): New function.
  11732. (setUploadLimitCheck): New function.
  11733. * src/PeerAbstractCommand.h
  11734. (setUploadLimit): New function.
  11735. (setUploadLimitCheck): New function.
  11736. (uploadLimit): New variable.
  11737. (uploadLimitCheck): New variable.
  11738. To contact a tracker regularly:
  11739. * src/TrackerWatcherCommand.h (interval): New variable.
  11740. (checkPoint): New variable.
  11741. (TrackerWatcherCommand): Added interval argument.
  11742. * src/TrackerWatcherCommand.cc
  11743. (TrackerWatcherCommand): Initialized checkPoint.
  11744. (execute): Now a tracker is contacted in every specified period.
  11745. If peer list is not needed, send request with numwant=0.
  11746. * src/TrackerUpdateCommand.cc
  11747. (execute): Updated log messages.
  11748. * src/DownloadEngine.cc
  11749. (~DownloadEngine): Removed two asserts.
  11750. (waitData): Uncommented wfds. May be a bug fix.
  11751. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. * src/PeerInteractionCommand.h
  11753. (checkInactiveConnection): Removed.
  11754. * src/PeerInteractionCommand.cc
  11755. (executeInternal): Removed following function calls:
  11756. detectMessageFlooding(), checkLongTimePeerChoking and
  11757. checkInactiveConnection().
  11758. (checkInactiveConnection): Removed.
  11759. (detectMessageFlooding): Removed function call to
  11760. checkInactiveConnection().
  11761. * src/PeerMessageUtil.h
  11762. (createChokeMessage): New function. Overload.
  11763. (createUnchokeMessage): New function. Overload.
  11764. (createInterestedMessage): New function. Overload.
  11765. (createNotInterestedMessage): New function. Overload.
  11766. (createHaveMessage): New function. Overload.
  11767. (createBitfieldMessage): New function. Overload.
  11768. (createRequestMessage): New function. Overload.
  11769. (createCancelMessage): New function. Overload.
  11770. (createPieceMessage): New function. Overload.
  11771. (createKeepAliveMessage): New function. Overload.
  11772. * src/PeerMessageUtil.cc
  11773. (createChokeMessage): New function. Overload.
  11774. (createUnchokeMessage): New function. Overload.
  11775. (createInterestedMessage): New function. Overload.
  11776. (createNotInterestedMessage): New function. Overload.
  11777. (createHaveMessage): New function. Overload.
  11778. (createBitfieldMessage): New function. Overload.
  11779. (createRequestMessage): New function. Overload.
  11780. (createCancelMessage): New function. Overload.
  11781. (createPieceMessage): New function. Overload.
  11782. (createKeepAliveMessage): New function. Overload.
  11783. * src/SendMessageQueue.cc
  11784. (createRequestMessage): Use PeerMessageUtil.
  11785. (createCancelMessage): Use PeerMessageUtil.
  11786. (createPieceMessage): Use PeerMessageUtil.
  11787. (createHaveMessage): Use PeerMessageUtil.
  11788. (createChokeMessage): Use PeerMessageUtil.
  11789. (createUnchokeMessage): Use PeerMessageUtil.
  11790. (createInterestedMessage): Use PeerMessageUtil.
  11791. (createNotInterestedMessage): Use PeerMessageUtil.
  11792. (createBitfieldMessage): Use PeerMessageUtil.
  11793. (createKeepAliveMessage): Use PeerMessageUtil.
  11794. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11795. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11796. * src/PeerInteraction.h: New class.
  11797. * src/PeerInteraction.cc: New class.
  11798. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11799. Each peer message has its own class.
  11800. * src/PendingMessages.h: Removed.
  11801. * src/PendingMessages.cc: Removed. The sending process was moved to
  11802. each message class.
  11803. * src/RequestSlotMan.h: Removed.
  11804. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11805. SendMessageQueue.
  11806. * src/RequestMessage.h: New class.
  11807. * src/RequestMessage.cc: New class.
  11808. * src/CancelMessage.h: New class.
  11809. * src/CancelMessage.cc: New class.
  11810. * src/BitfieldMessage.h: New class.
  11811. * src/BitfieldMessage.cc: New class.
  11812. * src/ChokeMessage.h: New class.
  11813. * src/ChokeMessage.cc: New class.
  11814. * src/KeepAliveMessage.h: New class.
  11815. * src/KeepAliveMessage.cc: New class.
  11816. * src/PortMessage.h: New class.
  11817. * src/UnchokeMessage.h: New class.
  11818. * src/UnchokeMessage.cc: New class.
  11819. * src/PieceMessage.h: New class.
  11820. * src/PieceMessage.cc: New class.
  11821. * src/HaveMessage.h: New class.
  11822. * src/HaveMessage.cc: New class.
  11823. * src/BitfieldMessage.h: New class.
  11824. * src/BitfieldMessage.cc: New class.
  11825. * src/NotInterestedMessage.h: New class.
  11826. * src/NotInterestedMessage.cc: New class.
  11827. * src/InterestedMessage.h: New class.
  11828. * src/InterestedMessage.cc: New class.
  11829. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11830. (getSendMessageQueue): New function.
  11831. (setSendMessageQueue): New function.
  11832. * src/HandshakeMessage.cc: New class.
  11833. * src/PeerConnection.h (receiveMessage): Changed return value and
  11834. arguments.
  11835. (receiveHandshake): Changed return value and arguments.
  11836. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11837. here.
  11838. (receiveHandshake): Do not create handshake class here.
  11839. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11840. (piece): Removed.
  11841. (syncPiece): Removed.
  11842. (sendInterest): Removed.
  11843. (sendMessages): Removed.
  11844. (createRequestPendingMessage): Removed.
  11845. (checkPieceHash): Removed.
  11846. (erasePieceOnDisk): Removed.
  11847. (getNewPieceAndSendInterest): Removed.
  11848. (onGotNewPice): Removed.
  11849. (onGotWrongPiece): Removed.
  11850. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11851. Removed peerConnection, piece.
  11852. (~PeerInteractionCommand): Removed peerConnection.
  11853. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11854. (syncPiece): Moved to SendMessageQueue.
  11855. (decideChoking): Removed PendingMessage.
  11856. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11857. The action after receiving peer message was moved to each message
  11858. class.
  11859. (onGotNewPice): Moved to SendMessageQueue.
  11860. (onGotWrongPiece): Moved to SendMessageQueue.
  11861. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11862. (sendInterest): Moved to SendMessageQueue.
  11863. (createRequestPendingMessage): Removed.
  11864. (sendMessages): Moved to SendMessageQueue.
  11865. (onAbort): Use SendMessageQueue::abortPiece()
  11866. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11867. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11868. (checkPieceHash): Moved to SendMessageQueue.
  11869. (erasePieceOnDisk): Moved to SendMessageQueue.
  11870. * src/PeerMessageUtil.h
  11871. (createBitfieldMessage): Removed.
  11872. (createHaveMessage): Changed return value and arguments.
  11873. (createBitfieldMessage): Changed return value and arguments.
  11874. (createRequestCancelMessage): Removed.
  11875. (createPieceMessage): Changed return value and arguments.
  11876. (getShortIntParam): New function.
  11877. (checkIndex): Changed arguments.
  11878. (checkBegin): Changed arguments.
  11879. (checkLength): Changed arguments.
  11880. (checkPieceOffset): Removed.
  11881. (checkRange): New function.
  11882. (checkBitfield): Changed arguments.
  11883. (createPeerMessage): Removed.
  11884. (checkIntegrity): Removed.
  11885. (createHandshakeMessage): Changed arguments.
  11886. (createChokeMessage): New function.
  11887. (createUnchokeMessage): New function.
  11888. (createInterestedMessage): New function.
  11889. (createNotInterestedMessage): New function.
  11890. (createRequestMessage): New function.
  11891. (createCancelMessage): New function.
  11892. (createPortMessage): New function.
  11893. * src/PeerMessageUtil.cc
  11894. (createBitfieldMessage): Removed.
  11895. (createHaveMessage): Changed return value and arguments.
  11896. (createBitfieldMessage): Changed return value and arguments.
  11897. (createRequestCancelMessage): Removed.
  11898. (createPieceMessage): Changed return value and arguments.
  11899. (getShortIntParam): New function.
  11900. (checkIndex): Changed arguments.
  11901. (checkBegin): Changed arguments.
  11902. (checkLength): Changed arguments.
  11903. (checkPieceOffset): Removed.
  11904. (checkRange): New function.
  11905. (checkBitfield): Changed arguments.
  11906. (createPeerMessage): Removed.
  11907. (checkIntegrity): Removed.
  11908. (createHandshakeMessage): Changed arguments.
  11909. (createChokeMessage): New function.
  11910. (createUnchokeMessage): New function.
  11911. (createInterestedMessage): New function.
  11912. (createNotInterestedMessage): New function.
  11913. (createRequestMessage): New function.
  11914. (createCancelMessage): New function.
  11915. (createPortMessage): New function.
  11916. * src/PeerMessage.h
  11917. (id): Removed.
  11918. (index): Removed.
  11919. (begin): Removed.
  11920. (length): Removed.
  11921. (bitfield): Removed.
  11922. (bitfieldLength): Removed.
  11923. (block): Removed.
  11924. (blockLength): Removed.
  11925. (inProgress): New variable.
  11926. (cuid): New variable.
  11927. (peer): New variable.
  11928. (sendMessageQueue): New variable.
  11929. (logger): New variable.
  11930. (setBitfield): Removed.
  11931. (getBitfield): Removed.
  11932. (setBlock): Removed.
  11933. (getBlock): Removed.
  11934. (getBitfieldLength): Removed.
  11935. (getBlockLength): Removed.
  11936. (isInProgress): New function.
  11937. (toString): Made pure virtual.
  11938. (check): New function.
  11939. (send): New function.
  11940. (receivedAction): New function.
  11941. (getId): Made pure virtual.
  11942. (setId): Removed.
  11943. (getIndex): Removed.
  11944. (setIndex): Removed.
  11945. (getBegin): Removed.
  11946. (setBegin): Removed.
  11947. (getLength): Removed.
  11948. (setLength): Removed.
  11949. (getCuid): New function.
  11950. (setCuid): New function.
  11951. (getPeer): New function.
  11952. (setPeer): New function.
  11953. (getSendMessageQueue): New function.
  11954. (setSendMessageQueue): New function.
  11955. (ID): Removed.
  11956. * src/PeerMessage.cc
  11957. (setBitfield): Removed.
  11958. (setBlock): Removed.
  11959. (toString): Removed.
  11960. * src/TorrentMan.h
  11961. (getPieceLength): New function.
  11962. (getPieceLength): New function.
  11963. * src/SendMessageQueue.h
  11964. (REQUEST_TIME_OUT): New definition.
  11965. (RequestSlots): New definition.
  11966. (MessageQueue): New definition.
  11967. (requestSlotMan): Removed.
  11968. (pendingMessages): Removed.
  11969. (requestSlots): New variable.
  11970. (messageQueue): New variable.
  11971. (torrentMan): New variable.
  11972. (peerConnection): New variable.
  11973. (peer): New variable.
  11974. (piece): New variable.
  11975. (getNewPieceAndSendInterest): New function.
  11976. (createPeerMessage): New function.
  11977. (createHandshakeMessage): New function.
  11978. (send): Made private.
  11979. (setPeerMessageCommonProperty): New function.
  11980. (deleteAllRequestSlot): New function.
  11981. (deleteRequestMessageInQueue): New function.
  11982. (cancelAllRequest): Made private.
  11983. (cancelAllRequest): Made private.
  11984. (countRequestSlot): Made private.
  11985. (addPendingMessage): Removed.
  11986. (deletePendingPieceMessage): Removed.
  11987. (deletePendingRequestMessage): Removed.
  11988. (addMessage): New function.
  11989. (deletePieceMessageInQueue): New function.
  11990. (deleteTimeoutRequestSlot): Changed argument.
  11991. (deleteCompletedRequestSlot): Changed argument.
  11992. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  11993. (getCorrespondingRequestSlot): New function.
  11994. (countPendingMessage): Removed.
  11995. (countMessageInQueue): New function.
  11996. (getTorrentMan): New function.
  11997. (getPeerConnection): New function.
  11998. (hasDownloadPiece): New function.
  11999. (getDownloadPiece): New function.
  12000. (setDownloadPiece): New function.
  12001. (syncPiece): New function.
  12002. (sendMessages): New function.
  12003. (sendNow): New function.
  12004. (trySendNow): New function.
  12005. (abortPiece): New function.
  12006. (sendHandshake): New function.
  12007. (receiveMessage): New function.
  12008. (receiveHandshake): New function.
  12009. (createRequestMessage): New function.
  12010. (createCancelMessage): New function.
  12011. (createPieceMessage): New function.
  12012. (createHaveMessage): New function.
  12013. (createChokeMessage): New function.
  12014. (createUnchokeMessage): New function.
  12015. (createInterestedMessage): New function.
  12016. (createNotInterestedMessage): New function.
  12017. (createBitfieldMessage): New function.
  12018. (createKeepAliveMessage): New function.
  12019. * src/SendMessageQueue.cc
  12020. (SendMessageQueue): Removed requestSlotMan.
  12021. Instantiated peerConnection here.
  12022. (~SendMessageQueue): Removed requestSlotMan.
  12023. Added deletion of peerConnection and the contents of messageQueue.
  12024. (send): Updated according to the change of messageQueue.
  12025. (addPendingMessage): Renamed to addMessage.
  12026. (addMessage): New function.
  12027. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12028. (deletePieceMessageInQueue): New function.
  12029. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12030. (deleteRequestMessageInQueue): New function.
  12031. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12032. here.
  12033. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12034. (...) was moved here.
  12035. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12036. moved here.
  12037. (deleteCompletedRequestSlot):
  12038. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12039. (getCorrespondingRequestSlot):
  12040. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12041. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12042. (countPendingMessage): Renamed to countMessageInQueue.
  12043. (countMessageInQueue): New function.
  12044. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12045. (receiveHandshake): New function.
  12046. (createHandshakeMessage): New function.
  12047. (receiveMessage): New function.
  12048. (createPeerMessage): New function.
  12049. (syncPiece): New function.
  12050. (getNewPieceAndSendInterest): New function.
  12051. (sendMessages): New function.
  12052. (sendNow): New function.
  12053. (trySendNow): New function.
  12054. (sendHandshake): New function.
  12055. (abortPiece): New function.
  12056. (getDownloadPiece): New function.
  12057. (getPeerMessageCommonProperty): New function.
  12058. (createRequestMessage): New function.
  12059. (createCancelMessage): New function.
  12060. (createPieceMessage): New function.
  12061. (createHaveMessage): New function.
  12062. (createChokeMessage): New function.
  12063. (createUnchokeMessage): New function.
  12064. (createInterestedMessage): New function.
  12065. (createNotInterestedMessage): New function.
  12066. (createBitfieldMessage): New function.
  12067. (createKeepAliveMessage): New function.
  12068. To add simple Content-Disposition support:
  12069. * src/HttpResponseCommand.h (determinFilename): New function.
  12070. * src/HttpResponseCommand.cc (executeInternal):
  12071. Use determinFilename(headers) instead of req->getFile() when comparing
  12072. filename.
  12073. (determinFilename): New function.
  12074. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12075. req->getFile().
  12076. (handleOtherEncoding): Use determinFilename(headers) instead of
  12077. req->getFile().
  12078. * src/Util.h (getContentDispositionFilename): New function.
  12079. * src/Util.cc (getContentDispositionFilename): New function.
  12080. * src/LogFactory.h (release): New function.
  12081. * src/LogFactory.cc (release): New function.
  12082. To fix a bug that causes out-of-bound exception when HTTP status
  12083. line is wrong:
  12084. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12085. size.
  12086. * src/common.h (Deleter): New class.
  12087. * src/SegmentMan.cc
  12088. (~SegmentMan): Added deletion of splitter and diskWriter.
  12089. * src/DownloadEngine.h
  12090. (Commands): Use deque.
  12091. (clearQueue): New function.
  12092. * src/DownloadEngine.cc
  12093. (~DownloadEngine): Added deletion of segmentMan.
  12094. (cleanQueue): New function.
  12095. * src/TorrentDownloadEngine.h
  12096. (TorrentDownloadEngine): The implementation was moved to
  12097. TorrentDownloadEngine.cc.
  12098. (~TorrentDownloadEngine): The implementation was moved to
  12099. TorrentDownloadEngine.cc.
  12100. * src/TorrentDownloadEngine.cc
  12101. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12102. * src/main.cc
  12103. (clearRequest): Removed.
  12104. (handler): Added deletion of e.
  12105. (torrentHandler): Added deletion of te.
  12106. (main): Do not share splitter.
  12107. Use Deleter instead of clearRequest.
  12108. Deletion of classes were updated.
  12109. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12110. * src/main.cc (main): Fixed typo.
  12111. * src/message.h: Fixed typo.
  12112. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12113. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12114. To add --select-file command-line option:
  12115. * src/Util.cc
  12116. (unfoldRange): New function.
  12117. (getNum): New function.
  12118. (unfoldSubRange): New function
  12119. * src/main.cc
  12120. (showUsage): Added help message.
  12121. (main): Added --select-file command-line option. Updated the layout of
  12122. file listing.
  12123. * src/common.h
  12124. (Integers): New definition.
  12125. * src/SocketCore.cc
  12126. (writeData): Removed timeout argument.
  12127. (readData): Removed timeout argument.
  12128. (peekData): Removed timeout argument.
  12129. * src/Socket.cc
  12130. (writeData): Removed timeout argument.
  12131. (readData): Removed timeout argument.
  12132. (peekData): Removed timeout argument.
  12133. * Release 0.4.1
  12134. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12135. To deploy upload rate based choking algorithm:
  12136. * src/PeerInteractionCommand.cc
  12137. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12138. peer currently used.
  12139. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12140. download completes. Simplified.
  12141. (receiveMessage): Updated.
  12142. * src/TorrentMan.h
  12143. (activePeers): New variable.
  12144. (addActivePeer): New function.
  12145. (getActivePeers): New function.
  12146. (deleteActivePeer): New function.
  12147. * src/TorrentMan.cc
  12148. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12149. * src/PeerAbstractCommand.cc
  12150. (onAbort): Use peer->resetStatus().
  12151. * src/main.cc
  12152. (PeerChokeCommand.h): Included.
  12153. (main): Added the instance of ChokingCommand to the command queue.
  12154. * src/Peer.h
  12155. (amChoking): Renamed from amChocking
  12156. (chokingRequired): New variable.
  12157. (optUnchoking): New variable.
  12158. (deltaUpload): New variable.
  12159. (deltaDownload): New variable.
  12160. (addDeltaUpload): New function.
  12161. (resetDeltaUpload): New function.
  12162. (addDeltaDownload): New function.
  12163. (resetDeltaDownload): New function.
  12164. (addPeerUpload): Added a call to addDeltaUpload.
  12165. (addPeerDownload): Added a call to addDeltaDownload.
  12166. * src/Peer.cc
  12167. (shouldBeChoking): Renamed from shouldChoke.
  12168. (resetStatus): New function.
  12169. * src/PeerChokeCommand.h: New class.
  12170. * src/PeerChokeCommand.cc: New class.
  12171. To add lazy upload speed limiter:
  12172. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12173. statistics calculation to TorrentDownloadEngine.
  12174. * src/TorrentConsoleDownloadEngine.cc
  12175. (sendStatistics): Renamed from printStatistics.
  12176. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12177. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12178. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12179. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12180. calculation.
  12181. (sendStatistics): New function as pure virtual function.
  12182. (getUploadSpeed): New function.
  12183. * src/TorrentDownloadEngine.cc
  12184. (initStatistics): New function.
  12185. (calculateSpeed): New function.
  12186. (calculateStatistics): New function.
  12187. * src/SendMessageQueue.h
  12188. (uploadLength): New variable.
  12189. (send): Added an argument.
  12190. (setUploadLimit): New function.
  12191. (getUploadLimit): New function.
  12192. * src/SendMessageQueue.cc
  12193. (send): Added upload speed limiter.
  12194. * src/prefs.h
  12195. (PREF_UPLOAD_LIMIT): New definition.
  12196. * src/PeerInteractionCommand.cc
  12197. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12198. * src/main.cc
  12199. (main): Added --upload-limit option
  12200. For bug fixes:
  12201. * src/main.cc
  12202. (showUsage): Corrected --listen-port help
  12203. Other changes:
  12204. * src/TorrentMan.cc
  12205. (getPeer): Return nullPeer if connection is grather than
  12206. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12207. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12208. To add some useful information to the exception message:
  12209. * src/SocketCore.cc : Updated messages.
  12210. * src/SegmentMan.cc :
  12211. * src/TorrentMan.cc : Updated messages.
  12212. * src/MultiDiskWriter.cc : Updated messages.
  12213. * src/Util.cc : Updated messages.
  12214. * src/AbstractDiskWriter.cc : Updated messages.
  12215. * src/PreAllocationDiskWriter.cc : Updated messages.
  12216. * src/message.cc : Added new messages. Updated some messages.
  12217. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12218. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12219. Updated threshold from 30 to 15.
  12220. * src/AbstractDiskWriter.h (filename): New variable.
  12221. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12222. (createFile): Assigned filename.
  12223. * src/main.cc: Updated the help message for http-auth-scheme.
  12224. * Release 0.4.0
  12225. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12226. To add TrackerUpdateCommand with which replaces
  12227. CompactTrackerResponseProcessor:
  12228. * src/TrackerWatcherCommand.h (req): Removed.
  12229. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12230. if the number of peer connections are less than 30.
  12231. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12232. * src/SegmentMan.h (diskWriter): New function.
  12233. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12234. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12235. (main): Use TrackerUpdateCommand.
  12236. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12237. (req): New variable.
  12238. (setTrackerResponseProcessor): Removed.
  12239. (getTrackerResponseProcessor): Removed.
  12240. (processTrackerResponse): Removed.
  12241. * src/DownloadEngine.h (diskWriter): Removed.
  12242. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12243. to torrentMan->processTrackerResponse().
  12244. To add Util::expandBuffer:
  12245. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12246. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12247. * src/Util.h (expandBuffer): New function.
  12248. To fix the bug that causes segmentation fault when "-l ." is specified
  12249. in command-line option:
  12250. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12251. (openFile): New function.
  12252. (closeFile): New function.
  12253. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12254. (~SimpleLogger): Call closeFile();
  12255. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12256. * src/main.cc (main): Added a check to see logger is configured
  12257. properly.
  12258. To enable HTTP authentication without specifying "--http-auth-scheme"
  12259. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12260. * src/HttpConnection.cc (createRequest): Send Authorization header
  12261. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12262. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12263. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12264. * src/Peer.cc (shouldChoke): Updated algorithm.
  12265. * src/message.h (EX_AUTH_FAILED): New definition.
  12266. (EX_FILE_OPEN): New definition.
  12267. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12268. if status == 401.
  12269. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12270. if req->isTorrent == true.
  12271. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12272. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12273. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12274. (createFile): Updated message.
  12275. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. To add a readout of estimated remaining time to normal HTTP/FTP
  12277. downloads:
  12278. * src/ConsoleDownloadEngine.h (startup): New variable.
  12279. (startupLength): New variable.
  12280. (isStartupLengthSet): New variable.
  12281. (avgSpeed): New variable.
  12282. (eta): New variable.
  12283. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12284. estimated remaining time.
  12285. (initStatistics): Initialized newly added variables.
  12286. (calculateStatistics): Calculate average speed and estimated remaining
  12287. time.
  12288. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12289. * src/TrackerDownloadCommand.h: Removed.
  12290. * src/TrackerDownloadCommand.cc: Removed.
  12291. * src/TrackerInitCommand.h: Removed.
  12292. * src/TrackerInitCommand.cc: Removed.
  12293. * src/TrackerUpdateCommand.h: Removed.
  12294. * src/TrackerUpdateCommand.cc: Removed.
  12295. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12296. url written in TrackerInitCommand was moved here. Do not create
  12297. tracker request command if torrentMan->trackers != 0.
  12298. * src/CompactTrackerResponseProcessor.h: New class.
  12299. * src/CompactTrackerResponseProcessor.cc: New class.
  12300. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12301. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12302. Decoupled TorrentDownloadEngine from this.
  12303. * src/SegmentMan.h (init): New function.
  12304. * src/SegmentMan.cc (init): New function.
  12305. * src/TorrentMan.h (responseProcessor): New variable.
  12306. (trackers): New variable.
  12307. (setTrackerResponseProcessor): New function.
  12308. (getTrackerResponseProcessor): New function.
  12309. (processTrackerResponse): New function.
  12310. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12311. (processTrackerResponse): New function.
  12312. * src/main.cc (main): Use ByteArrayDiskWriter and
  12313. CompactTrackerResponseProcessor.
  12314. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12315. processTrackerResponse().
  12316. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12317. readout.
  12318. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12319. which indicates download has completed.
  12320. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12321. (closeFile): fd >= 0, not fd > 0
  12322. * src/main.cc (main): Added short cut for show-files.
  12323. Added short cut for torrent-file.
  12324. Added new command-line option listen-port.
  12325. Updated i18n messages.
  12326. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. To add LogFactory which creates singleton logger:
  12328. * src/LogFactory.h: New class.
  12329. * src/LogFactory.cc: New class.
  12330. * src/Command.h (logger): New variable.
  12331. (Constructor): Use LogFactory.
  12332. * src/AbstractCommand.cc: Use Command::logger
  12333. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12334. Use LogFactory.
  12335. * src/SegmentSplitter.h : Made logger protected.
  12336. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12337. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12338. * src/DownloadEngine.h : Made logger protected.
  12339. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12340. * src/PeerInteractionCommand.cc : Use Command::logger.
  12341. * src/HttpResponseCommand.cc : Use Command::logger.
  12342. * src/SegmentMan.h : Made logger private.
  12343. * src/TorrentMan.h : Made logger private.
  12344. * src/TorrentMan.cc : Use LogFactory.
  12345. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12346. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12347. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12348. Use LogFactory.
  12349. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12350. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12351. Use LogFactory.
  12352. * src/DownloadCommand.cc : Use Command::logger.
  12353. * src/PeerAbstractCommand.cc : Use Command::logger.
  12354. * src/PeerListenCommand.cc : Use Command::logger.
  12355. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12356. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12357. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12358. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12359. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12360. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12361. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12362. Use LogFactory.
  12363. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12364. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12365. Use LogFactory.
  12366. * src/main.cc (main): Use LogFactory.
  12367. * src/DiskAdaptor.h (logger): New variable.
  12368. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12369. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12370. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12372. parameter to a tracker request.
  12373. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12374. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12375. * src/main.cc (setSignalHander): New function.
  12376. (main): Added a handler for SIGTERM.
  12377. (handler): Updated message.
  12378. (torrentHandler): Updated message.
  12379. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12380. * src/TorrentConsoleDownloadEngine.cc
  12381. (onPartialDownloadingCompletes): Renamed as
  12382. onSelectiveDownloadingCompletes.
  12383. (onSelectiveDownloadingCompletes): Updated message.
  12384. To add DiskAdaptor which abstract DiskWriter family:
  12385. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12386. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12387. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12388. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12389. MultiDiskAdaptor.h.
  12390. (readFileEntry): Changed its arguments.
  12391. (setup): setupDiskWriter is merged into this function.
  12392. (setupDiskWriter): Removed.
  12393. (setFileFilter): New function.
  12394. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12395. made in readFileEntry.
  12396. (getFilePath): Removed.
  12397. (getTempFilePath): Removed.
  12398. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12399. (fixFilename): Removed.
  12400. (copySingleFile): Removed.
  12401. (splitMultiFile): Removed.
  12402. (deleteTempFile): Removed.
  12403. (setFileEntriesToDownload): Removed.
  12404. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12405. (isSelectiveDownloadingMode): New function.
  12406. (setAllMultiFileRequestedState): Removed.
  12407. (finishPartialDownloadingMode): Renamed as
  12408. finishSelectiveDownloadingMode.
  12409. (finishSelectiveDownloadingMode): New function.
  12410. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12411. (getSelectedTotalLength): New function.
  12412. (onDownloadComplete): Use diskAdaptor.
  12413. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12414. (Range): Removed.
  12415. (setMultiFileEntries): Renamed as setFileEntries.
  12416. (setFileEntries): New function.
  12417. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12418. (pieceLength): New variable.
  12419. * src/main.cc (printDownloadCompeleteMessage): New function.
  12420. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12421. (main): Renamed torrent-show-files to show-files.
  12422. Rewritten file contents listing.
  12423. * src/TorrentMan.h (FileEntry): Removed.
  12424. (multiFileTopDir): Removed.
  12425. (multiFileEntries): Removed.
  12426. (diskWriter): Removed.
  12427. (diskAdaptor): New variable.
  12428. * src/DefaultDiskWriter.h (totalLength): New variable.
  12429. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12430. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12431. diskWriter.
  12432. * src/TorrentConsoleDownloadEngine.h
  12433. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12434. (partialTotalLength): Renamed as selectedTotalLength.
  12435. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12436. openExistingFile, otherwise call initAndOpenFile.
  12437. (closeFile): fd > 0, not fd != 0.
  12438. * src/DirectDiskAdaptor.h: New class.
  12439. * src/DirectDiskAdaptor.cc: New class.
  12440. * src/MultiDiskAdaptor.h: New class.
  12441. * src/MultiDiskAdaptor.cc: New class.
  12442. * src/CopyDiskAdaptor.h: New class.
  12443. * src/CopyDiskAdaptor.cc: New class.
  12444. * src/DiskAdaptor.h: New class.
  12445. * src/DiskAdaptor.cc: New class.
  12446. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12447. (PREF_SHOW_FILES): New definition.
  12448. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12449. To add the ability to download multi torrent into respective files
  12450. directly:
  12451. * src/DiskWriter.h (openFile): New function.
  12452. (seek): Removed.
  12453. * src/MultiDiskWriter.h: New class.
  12454. * src/MultiDiskWriter.cc: New class.
  12455. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12456. protected.
  12457. (openFile): New function.
  12458. * src/AbstractDiskWriter.cc (openFile): New function.
  12459. * src/prefs.h (V_FALSE): New definition.
  12460. (PREF_DIRECT_FILE_MAPPING): New definition.
  12461. * src/TorrentMan.h (setupDiskWriter): New function.
  12462. (setAllMultiFileRequestedState): New function.
  12463. (onDownloadComplete): New function.
  12464. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12465. (setupDiskWriter): New function.
  12466. (getFilePath): Updated.
  12467. (getTempFilePath): Updated.
  12468. (getSegmentFilePath): Updated.
  12469. (fixFilename): Updated.
  12470. (deleteTempFile): Updated.
  12471. (setAllMultiFileRequestedState): New function.
  12472. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12473. (finishPartialDownloadingMode): Reset requested flags.
  12474. (onDownloadComplete): New function.
  12475. * src/main.cc: Added --direct-file-mapping option.
  12476. Use TorrentMan::setupDiskWriter().
  12477. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12478. onDownloadComplete().
  12479. To fix ETA bug:
  12480. * src/Util.h (difftvsec): New function.
  12481. * src/Util.cc (difftvsec): New function.
  12482. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12483. type of "elapsed" instead of long long int.
  12484. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12485. The updates of statistics takes place every 1 seconds.
  12486. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12487. (calculateSpeed): Changed its argument signature.
  12488. * src/PeerMessage.cc (toString): Fixed message.
  12489. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12490. To print ETA:
  12491. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12492. completion handling when dealing with
  12493. TorrentMan::isPartialDownloadingMode() == true.
  12494. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12495. New function.
  12496. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12497. (sessionDownloadLength): New variable.
  12498. (avgSpeed): New variable.
  12499. (eta): New variable.
  12500. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12501. new variables: eta, avgSpeed, startup.
  12502. (calculateSpeed): Calculate average speed and ETA.
  12503. (printStatistics): Added ETA.
  12504. * src/Util.h (secfmt): New function.
  12505. * src/Util.cc (secfmt): New function.
  12506. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12507. To detect "keep alive" flooding:
  12508. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12509. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12510. variable: keepAliveCount.
  12511. (detectMessageFlooding): Added "keep alive" flooding detection.
  12512. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12513. received.
  12514. To add the ability to download only specified files in multi-file
  12515. torrent:
  12516. * src/BitfieldMan.h (filterBitfield): New variable.
  12517. (filterEnabled): New variable.
  12518. (setFilterBit): New function.
  12519. (enableFilter): New function.
  12520. (disableFilter): New function.
  12521. (isFilterEnabled): New function.
  12522. (getFilteredTotalLength): New function.
  12523. (getCompletedLength): New function.
  12524. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12525. filterBitfield, filterEnabled.
  12526. (CopyConstructor): Added filterBitfield and filterEnabled.
  12527. (operator==): Added filterBitfield and filterEnabled.
  12528. (Destructor): Added filterBitfield.
  12529. (getMissingIndex): Use filterBitfield.
  12530. (getMissingUnusedIndex): Use filterBitfield.
  12531. (getFirstMissingUnusedIndex): Use filterBitfield.
  12532. (getFirstMissingUnusedIndex): Use filterBitfield.
  12533. (getAllMissingIndexes): Use filterBitfield.
  12534. (countMissingBlock): Use filterBitfield.
  12535. (countBlock): Use filterBitfield.
  12536. (setBitInternal): Added new argument on.
  12537. (setUseBit): Use setBitInternal.
  12538. (unsetUseBit): Use setBitInternal.
  12539. (setBit): Use setBitInternal.
  12540. (unsetBit): Use setBitInternal.
  12541. (isAllBitSet): Use filterBitfield.
  12542. (setFilterBit): New function.
  12543. (addFilter): New function.
  12544. (enableFilter): New function.
  12545. (disableFilter): New function.
  12546. (clearFilter): New function.
  12547. (isFilterEnabled): New function.
  12548. (getFilteredTotalLength): New function.
  12549. (getCompletedLength): New function.
  12550. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12551. Initalized newly added variables.
  12552. [FileEntry](offset): New variable.
  12553. [FileEntry](extracted): New variable.
  12554. [FileEntry](requested): New variable.
  12555. (readFileEntry): New function.
  12556. (option): New variable.
  12557. (splitMultiFile): Removed const qualifier.
  12558. (fixFilename): Removed const qualifier.
  12559. (readFileEntryFromMetaInfoFile): New function.
  12560. (finishPartialDownloadingMode): New function.
  12561. (isPartialDownloadingMode): New function.
  12562. (setFileEntriesToDownload): New function.
  12563. (getCompletedLength): New function.
  12564. (getPartialTotalLength): New function.
  12565. * src/TorrentMan.cc (readFileEntry): New function.
  12566. (setup): Use readFileEntry. If no-preallocation option is specified,
  12567. use DefaultDiskWriter.
  12568. (readFileEntryFromMetaInfoFile): New function.
  12569. (fixFilename): Removed const qualifier.
  12570. (splitMultiFile): Removed const qualifier.
  12571. (setFileEntriesToDownload): New function.
  12572. (isPartialDownloadingMode): New function.
  12573. (finishPartialDownloadingMode): New function.
  12574. (getCompletedLength): New function.
  12575. (getPartialTotalLength): New function.
  12576. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12577. New variable.
  12578. (partialTotalLength): New variable.
  12579. (downloadLength): New variable.
  12580. (totalLength): New variable.
  12581. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12582. Added log.
  12583. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12584. partialTotalLength, downloadLength, totalLength.
  12585. (calculate): Calculate downloadLength and totalLength.
  12586. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12587. * src/main.cc (addCommand): Changed argument signature.
  12588. (main): Added new variable: args. Added new option "torrent-show-files"
  12589. "no-preallocation". Usage is not updated yet.
  12590. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12591. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12592. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. Attempt to add the ability to listing file entries in a .torrent file.
  12594. This feature is not yet complete.
  12595. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12596. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12597. (getName): New function.
  12598. * src/TorrentMan.h (getMultiFileEntries): New function.
  12599. (getName): New function.
  12600. * src/main.cc (main): Use above 2 funtion.
  12601. * Release 0.3.2
  12602. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12603. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12604. (detectMessageFlooding): Updated threshold value.
  12605. (checkLongTimePeerChoking): Updated timeout value.
  12606. (getNewPieceAndSendInterest): Added debug log.
  12607. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12608. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12609. (getPeer): Updated.
  12610. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12611. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12612. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12613. is localhost.
  12614. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12615. * src/PendingMessage.cc (processMessage): Not to send piece message
  12616. if peer is not interested in the pieces localhost has.
  12617. * src/Peer.cc (shouldChoke): Updated.
  12618. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12619. * src/Util.cc (isPowerOf): New function.
  12620. * src/Util.h (isPowerOf): New function.
  12621. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12622. whether or not it is power of 2.
  12623. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12624. Added new class SendMessageQueue that includes PendingMessages and
  12625. RequestSlotMan.
  12626. * src/SendMessageQueue.h: New class.
  12627. * src/SendMessageQueue.cc: New class.
  12628. * src/PendingMessage.h: Added new member variable blockIndex and its
  12629. accessors.
  12630. (createRequestMessage): Updated.
  12631. * src/PendingMessage.cc (createRequestMessage): Updated.
  12632. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12633. SendMessageQueue.
  12634. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12635. (receiveMessage): Updated with SendMessageQueue.
  12636. (deletePendingPieceMessage): Removed.
  12637. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12638. (sendInterest): Updated with SendMessageQueue.
  12639. (createRequestPendingMessage): Updated with SendMessageQueue.
  12640. (sendMessages): Updated with SendMessageQueue.
  12641. (onAbort): Updated with SendMessageQueue.
  12642. (keepAlive): Updated with SendMessageQueue.
  12643. (beforeSocketCheck): Updated SendMessageQueue.
  12644. * src/PeerInteractionCommand (sendMessages): Shuffle
  12645. missingBLockIndexes before using it.
  12646. Added its own timeout for peer connection.
  12647. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12648. setter.
  12649. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12650. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12651. Added setTimeout() call.
  12652. (executeInternal): Added setTimeout() call.
  12653. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12654. Added timeout.
  12655. (isTimeoutDetected): Updated.
  12656. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12657. option.
  12658. Added *simple* message flooding checker.
  12659. * src/PeerInteractionCommand.cc (executeInternal):
  12660. Added detectMessageFlooding() call.
  12661. (detectMessageFlooding): New function.
  12662. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12663. (beforeSocketCheck): Added detectMessageFlooding() call.
  12664. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12665. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12666. Removed deletePendingPieceMessage(), getRequestSlot(),
  12667. deleteRequestSlot(), deleteAllRequestSlot().
  12668. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12669. Added checkLongTimePeerChoking() call.
  12670. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12671. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12672. if duplicate == false.
  12673. The parameter "uploaded" and "downloaded" in the tracker request are
  12674. the size since the client sent the "started" event to the tracker.
  12675. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12676. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12677. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12678. getSessionDownloadedSize(), getSessionUploadedSize().
  12679. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12680. getSessionUploadedSize() instead of getDownloadedSize(),
  12681. getUploadedSize().
  12682. * src/PendingMessage.cc (processMessage): Do not send request message
  12683. if the peer is choking the client.
  12684. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12685. less than interval.
  12686. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12687. * configure.in: Added gnutls support. Added several CPP macros.
  12688. * m4/openssl.m4: Added.
  12689. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12690. readData(), peekData(). Added gnutls support.
  12691. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12692. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12693. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12694. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12695. Instead, added a check for whether setup method has executed
  12696. successfully.
  12697. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12698. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12699. * src/Makefile.am: Updated.
  12700. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12701. using whether OpenSSL or gcrypt, depending on the result of configure
  12702. script.
  12703. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12704. messageDigest.h.
  12705. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12706. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12707. Fixed memory leak.
  12708. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12709. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12710. Removed instantiation of TrackerInitCommand. Instead,
  12711. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12712. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12713. ENABLE_SSL.
  12714. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12715. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12716. If a piece is already acquired by another command, delete the request
  12717. slots for the piece.
  12718. * src/TrackerUpdateCommand.cc (execute):
  12719. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12720. Added a check whether peer list is null.
  12721. Fixed the bug that causes sending completed event to the tracker
  12722. several times.
  12723. * src/TrackerInitCommand.cc (execute):
  12724. Fixed the bug that causes sending completed event to the tracker
  12725. several times.
  12726. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12727. by using messageDigest.h.
  12728. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12729. * PeerConnection.cc: Replaced log message "keep-alive" with
  12730. "keep alive".
  12731. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12732. localhost long time.
  12733. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12734. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12735. at most 100 failure entry from the list. If with duplicate = false,
  12736. MAX_PEER_LIST is not checked.
  12737. * PeerListenCommand.cc: Fixed the argument order of log message.
  12738. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12739. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12740. Added warn().
  12741. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12742. Implemented warn().
  12743. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12744. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12745. * Request.h: Added AFTER_COMPLETED event.
  12746. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12747. instead of downloaded size and progress(%) after download completes.
  12748. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12749. message to the peer if it is interested in what localhost has
  12750. downloaded.
  12751. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12752. destination instead of just renaming it.
  12753. * TorrentMan.cc: Added deleteTempFile().
  12754. * PeerAbstractCommand.cc: do not stop execution after download
  12755. completes. This makes localhost a seeder.
  12756. * Util.{h,cc}: Added fileCopy().
  12757. * PeerListenCommand.cc: do not stop execution after download completes.
  12758. This makes localhost a seeder.
  12759. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12760. Added TorrentMan::deleteTempFile() to torrentHandler.
  12761. Initialized the variable dir as ".".
  12762. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12763. Deleted renameSingleFile().
  12764. Added copySingleFile(), deleteTempFile().
  12765. * DownloadEngine.h: Added virtual function afterEachIteration().
  12766. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12767. in onEndOfRun() to afterEachIteration().
  12768. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12769. true.
  12770. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12771. In rangedFileCopy(), added try-catch block to properly close file
  12772. descriptors.
  12773. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12774. Added afterEachIteration(), isFilenameFixed().
  12775. * Peer.cc: Changed choking strategy.
  12776. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12777. * TrackerInitCommand.cc: Send completed event only once.
  12778. * DownloadEngine.cc: Added a call to afterEachIteration().
  12779. * TrackerUpdateCommand.cc: Do not stop execution after download
  12780. completes.
  12781. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12782. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12783. received from a tracker.
  12784. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12785. Decreased the number of failure peers to delete to 0(just comment out
  12786. the line).
  12787. * Release 0.3.1
  12788. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12789. * PeerInteractionCommand.cc: added a call to
  12790. TorrentMan::unadvertisePiece in Destructor.
  12791. * PeerInteractionCommand.cc: make have message sent immediately
  12792. if the size of pending message queue is zero.
  12793. * TorrentMan.cc: set the maximum size of peer list to 250.
  12794. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12795. to deque.
  12796. * Util.cc: fixed rangedFileCopy.
  12797. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12798. to Constructor. Also, moved digest cleanup to Destructor.
  12799. * MetaFileUtil.cc: fixed memory leak
  12800. * replaced std::vector with std::deque.
  12801. * AbstractCommand.cc: casted timeout value to long long int.
  12802. * ChunkedEncoding.cc: fixed memory leak.
  12803. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12804. * SleepCommand.cc: casted timeout value to long long int.
  12805. * Data.cc: fixed memory leak.
  12806. * Data.cc: fixed toLLInt().
  12807. * BitfieldMan.cc: fixed memory leak.
  12808. * TorrentMan.cc: initialized storeDir to ".".
  12809. * TorrentMan.cc: fixed memory leak.
  12810. * TorrentMan.cc: corrected file paths of splitted files.
  12811. * PeerAbstractCommand.cc: casted timeout to long long int.
  12812. * main.cc: added delete(req) and delete(te->diskWriter).
  12813. * RequestSlot.cc: casted timeout value to long long int.
  12814. * Request.cc: fixed memory leak.
  12815. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12816. have the piece.
  12817. * Peer.{h,cc}: added hasPiece(int index).
  12818. * main.cc: corrected addCommand.
  12819. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12820. * BitTorrent protocol support added.
  12821. * Release 0.3.0
  12822. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12823. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12824. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12825. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12826. decoding did not work properly.
  12827. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12828. * DownloadEngine.h: included sys/time.h
  12829. * DownloadEngine.cc: remove sys/time.h
  12830. * Makefile.am (SUBDIRS): Add intl.
  12831. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12832. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12833. * main.cc: correct help message for --http-auth-scheme.
  12834. * main.cc: changed e-mail address for bug reports.
  12835. * ja.po: added japanese translation.
  12836. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12837. * SimpleLogger.cc: flush log file instead of stdout.
  12838. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12839. * main.cc: Fixed command-line option: max-tries
  12840. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12841. does not equal to seg.sp.
  12842. * DownloadCommand.cc: If EOF is got from the server and the total size
  12843. of file is not zero, then throw DlRetryEx.
  12844. * main.cc: Set the minium value of min-segment-size to 1024.
  12845. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12846. fails because of a regression since 0.2.0 release.
  12847. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12848. * HttpConnection.cc:
  12849. * common.h: defined the user agent name as macro
  12850. * DownloadEngine.{h, cc}:
  12851. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12852. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12853. * main.cc: Download complete/abort message is now generated by main.
  12854. * Makefile.am (SUBDIRS): Add m4.
  12855. (ACLOCAL_AMFLAGS): New variable.
  12856. (EXTRA_DIST): New variable.
  12857. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12858. * gettext: added gettext functionality
  12859. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12860. * AbstractCommand.cc:
  12861. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12862. unregister its cuid from SegmentMan.
  12863. * DownloadEngine.cc: .aria2 file was written when a downloading
  12864. failed with errors.
  12865. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12866. Added "User-Agent" header to CONNECT proxy request.
  12867. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12868. properly.
  12869. * Logger.h:
  12870. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12871. * ChunkedEncoding.cc: Added #include directive for strings.h
  12872. * Release 0.2.1
  12873. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12874. * Util.{h,cc}: added startsWith().
  12875. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12876. Util::endsWith().
  12877. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12878. * common.h: added #include directive of limit.h.
  12879. * DownloadEngine.cc: added #include directive of sys/time.h and
  12880. algorithm.
  12881. * Exception.h: added #include directive of stdio.h.
  12882. * AbstractCommand.h: added #include directive of sys/time.h.
  12883. * DownloadCommand.h: added #include directive of sys/time.h.
  12884. * *.h: added #include directive of common.h to all base classes.
  12885. subclasses' one was removed.
  12886. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12887. does not define these macros.
  12888. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12889. * Release 0.2.0
  12890. * main.cc:
  12891. * HttpInitiateConnectionCommand.{h,cc}:
  12892. * prefs.h:
  12893. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12894. We can now use GET command in http proxy.
  12895. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12896. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12897. that splits slowest segment of SegmentMan::commands vector.
  12898. This is the default split algorithm of aria2.
  12899. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12900. that splits first segment of SegmentMan::commands vector.
  12901. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12902. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12903. * Segment.h:
  12904. * SegmentMan.cc: Added speed field to Segment.h
  12905. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12906. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12907. * message.h: Change file size related %d to %lld.
  12908. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12909. * FtpInitiateConnectionCommand.{h,cc}:
  12910. * FtpNegotiationCommand.{h,cc}:
  12911. * FtpDownloadCommand.{h,cc}:
  12912. * FtpConnection.{h,cc}: Added FTP support
  12913. * SimpleLogger.cc: Log message now includes time information.
  12914. * main.cc: The value of --http-auth-scheme option is chagned from
  12915. 'BASIC' to 'basic'
  12916. * main.cc: Added --timeout command-line option.
  12917. * main.cc: Added --min-segment-size command-line option.
  12918. * main.cc: Added --max-retries command-line option.
  12919. * prefs.h: option string constants are now defined in prefs.h
  12920. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12921. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12922. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12923. with version 0.1.0's one.
  12924. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12925. * configure.in: Added --enable-ssl option to configure script.
  12926. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12927. cannot permit absoluteURI as Request-URI.
  12928. * HttpConnection.cc: Added Referer support.
  12929. * main.cc: Added referer command-line option.
  12930. * main.cc: Added rety-wait command-line option.
  12931. * Exception.h: Fixed formating bug in Exception::setMsg()
  12932. * SocketCore.{h,cc}:
  12933. * Socket.{h, cc}:
  12934. * Request.cc:
  12935. * InitiateConnectionCommandFactory.cc:
  12936. * HttpRequestCommand.cc: Added HTTPS support.
  12937. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12938. for SocketCore.
  12939. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12940. size is wrong
  12941. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12942. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12943. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12944. * Release 0.1.0