ChangeLog 519 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372
  1. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Rewritten isInRange()
  3. * src/DHTBucket.cc
  4. * test/DHTBucketTest.cc
  5. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Fixed typo
  7. * doc/aria2c.1.txt
  8. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  10. malloc/realloc is not used.
  11. * src/configure.ac
  12. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. BitfieldMan::getMissingIndexes family functions now takes unsigned
  14. char* bitfield instead of stl container for efficiency.
  15. PieceSelector::select now takes this
  16. bitfield. RarestPieceSelector::select now also performs
  17. efficiently for this change. bitfield namespace is introduced and
  18. it has several helper functions to handle basic bitfield
  19. operations such as test, count set bits, etc.
  20. * src/BitfieldMan.cc
  21. * src/BitfieldMan.h
  22. * src/DefaultBtRequestFactory.cc
  23. * src/DefaultPieceStorage.cc
  24. * src/DefaultPieceStorage.h
  25. * src/LongestSequencePieceSelector.cc
  26. * src/LongestSequencePieceSelector.h
  27. * src/Makefile.am
  28. * src/Piece.cc
  29. * src/Piece.h
  30. * src/PieceSelector.h
  31. * src/RarestPieceSelector.cc
  32. * src/RarestPieceSelector.h
  33. * src/Util.cc
  34. * src/Util.h
  35. * src/bitfield.h
  36. * test/BitfieldManTest.cc
  37. * test/LongestSequencePieceSelectorTest.cc
  38. * test/Makefile.am
  39. * test/RarestPieceSelectorTest.cc
  40. * test/UtilTest.cc
  41. * test/bitfieldTest.cc
  42. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Made accepted socket non-block.
  44. * src/FtpNegotiationCommand.cc
  45. * src/HttpListenCommand.cc
  46. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Guarded #ifdef HAVE_POSIX_FALLOCATE
  48. * src/AbstractSingleDiskAdaptor.cc
  49. * src/DefaultPieceStorage.cc
  50. * src/DiskAdaptor.h
  51. * src/DiskAdaptor.h
  52. * src/MultiFileAllocationIterator.cc
  53. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Run
  55. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  56. in every 1 sec. The timeout of RequestSlot is 60s by default and
  57. it doesn't need to be called every time when
  58. DefaultBtInteractive::doInteractionProcessing() is called.
  59. * src/DefaultBtInteractive.cc
  60. * src/DefaultBtInteractive.h
  61. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Documented 'falloc' in man page.
  63. * doc/aria2c.1.txt
  64. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Updated doc
  66. * src/usage_text.h
  67. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Added 'falloc' parameter for --file-allocation option. 'falloc'
  69. allocation mode uses posix_fallocate() system call to allocate
  70. file on disk. If you are using newer file systems such as ext4
  71. (with extents support), btrfs or xfs, 'falloc' is your best
  72. choice. It allocates large(few GiB) files almost instantly. Don't
  73. use 'falloc' with legacy file systems such as ext3 because it
  74. takes almost same time as 'prealloc' and it blocks aria2 entirely
  75. until allocation finishes. 'falloc' may not be available if your
  76. system doesn't have posix_fallocate() system call.
  77. * configure.ac
  78. * src/AbstractDiskWriter.cc
  79. * src/AbstractDiskWriter.h
  80. * src/AbstractSingleDiskAdaptor.cc
  81. * src/BinaryStream.h
  82. * src/BtCheckIntegrityEntry.cc
  83. * src/ByteArrayDiskWriter.h
  84. * src/CheckIntegrityEntry.cc
  85. * src/CheckIntegrityEntry.h
  86. * src/DefaultPieceStorage.cc
  87. * src/DiskAdaptor.cc
  88. * src/DiskAdaptor.h
  89. * src/DiskWriter.h
  90. * src/FallocFileAllocationIterator.cc
  91. * src/FallocFileAllocationIterator.h
  92. * src/FileAllocationEntry.cc
  93. * src/FileAllocationEntry.h
  94. * src/Makefile.am
  95. * src/MultiFileAllocationIterator.cc
  96. * src/MultiFileAllocationIterator.h
  97. * src/OptionHandlerFactory.cc
  98. * src/RequestGroup.cc
  99. * src/StreamCheckIntegrityEntry.cc
  100. * src/prefs.cc
  101. * src/prefs.h
  102. * src/usage_text.h
  103. * test/FallocFileAllocationIteratorTest.cc
  104. * test/Makefile.am
  105. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Removed duplicate enableDirectIO() call.
  107. * src/MultiFileAllocationIterator.cc
  108. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  110. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  111. cost of std::rotate().
  112. * src/RarestPieceSelector.cc
  113. * src/RarestPieceSelector.h
  114. * test/RarestPieceSelectorTest.cc
  115. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Updated usage doc for --bt-tracker-interval option.
  117. * src/usage_text.h
  118. * doc/aria2c.1.txt
  119. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Documented --bt-tracker-interval option in man page.
  121. * doc/aria2c.1.txt
  122. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Added an option to specify the interval between tracker requests.
  124. If non-zero value is specified, aria2 uses it and ignores the
  125. interval value in the response of tracker. If zero is specified,
  126. aria2 determines the inteval value based on the tarcker response
  127. and download progress.
  128. * src/DefaultBtAnnounce.cc
  129. * src/DefaultBtAnnounce.h
  130. * src/OptionHandlerFactory.cc
  131. * src/RequestGroup.cc
  132. * src/prefs.cc
  133. * src/prefs.h
  134. * src/usage_text.h
  135. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Added operator+=, operator-=, operator-
  137. * src/TransferStat.cc
  138. * src/TransferStat.h
  139. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Refactored RarestPieceSelector to reduce CPU load, especially for
  141. addPieceStats.
  142. * src/RarestPieceSelector.cc
  143. * src/RarestPieceSelector.h
  144. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  146. getAllMissingBlockIndexes to reduce a call to
  147. array_function_base::operator[].
  148. * src/BitfieldMan.cc
  149. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Cached TransferStat/download speed to avoid to sum them up in each
  151. call.
  152. * src/DefaultPeerStorage.cc
  153. * src/DefaultPeerStorage.h
  154. * src/SegmentMan.cc
  155. * src/SegmentMan.h
  156. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Typedefed cuid_t as int32_t in Command.h
  158. * src/CUIDCounter.h
  159. * src/Command.cc
  160. * src/Command.h
  161. * src/DownloadEngine.cc
  162. * src/DownloadEngine.h
  163. * src/PeerStat.h
  164. * src/SegmentMan.cc
  165. * src/SegmentMan.h
  166. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Reduced the number of calls to PeerStorage::calculateStat() and
  168. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  169. transfer rate.
  170. * src/DefaultBtInteractive.cc
  171. * src/DefaultBtMessageDispatcher.cc
  172. * src/DefaultPeerStorage.cc
  173. * src/DefaultPeerStorage.h
  174. * src/DownloadCommand.cc
  175. * src/DownloadEngine.cc
  176. * src/PeerStorage.h
  177. * src/SegmentMan.cc
  178. * src/SegmentMan.h
  179. * test/MockPeerStorage.h
  180. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Prepended _dir+"/" after joining path elements in torrent file.
  182. * src/DefaultBtContext.cc
  183. * test/DefaultBtContextTest.cc
  184. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Added missing IndexBtMessageValidator.h
  186. * src/Makefile.am
  187. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  189. Chinese translations. Thank you for contributing our project.
  190. * po/id.po
  191. * po/it.po
  192. * po/ru.po
  193. * po/uk.po
  194. * po/zh_CN.po
  195. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Updated README
  197. * README
  198. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Bump up version number to 1.3.0
  200. * configure.ac
  201. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Updated doc
  203. * src/DefaultBtContext.h
  204. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Slice/joinPath for name of single torrent.
  206. * src/DefaultBtContext.cc
  207. * test/DefaultBtContextTest.cc
  208. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Updated man page: Documented --dry-run and --index-out
  210. options. Changed the default value of --uri-selector and
  211. --http-auth-challenge options. Removed --direct-file-mapping
  212. option. Added example for --index-out
  213. * doc/aria2c.1.txt
  214. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Updated TEXT_DRY_RUN
  216. * src/usage_text.h
  217. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Changed the default value of --uri-selector option from 'inorder'
  219. to 'feedback'
  220. * src/OptionHandlerFactory.cc
  221. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  222. Included current URI in exception message.
  223. * src/AbstractCommand.cc
  224. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Renamed ServerStatURISelector as FeedbackURISelector.
  226. * src/FeedbackURISelector.cc
  227. * src/FeedbackURISelector.h
  228. * src/Makefile.am
  229. * src/RequestGroupMan.cc
  230. * src/ServerStatURISelector.cc
  231. * src/ServerStatURISelector.h
  232. * test/FeedbackURISelectorTest.cc
  233. * test/Makefile.am
  234. * test/ServerStatURISelectorTest.cc
  235. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  237. all URIs are tested and their timeout is not reached.
  238. * src/AdaptiveURISelector.cc
  239. * src/AdaptiveURISelector.h
  240. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Changed the default value of --http-auth-challenge option to false.
  242. * src/OptionHandlerFactory.cc
  243. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Reuse URIs when all unused URIs run out.
  245. * src/OptionHandlerFactory.cc
  246. * src/RequestGroup.cc
  247. * src/prefs.cc
  248. * src/prefs.h
  249. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  251. and BtRejectMessage are derived from RangeBtMessage class.
  252. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  253. derived from IndexBtMessage class. BtChokeMessage,
  254. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  255. BtNotInterestedMessage and BtUnchokeMessage are derived from
  256. ZeroBtMessage class.
  257. * src/AbstractBtMessage.cc
  258. * src/AbstractBtMessage.h
  259. * src/BtAllowedFastMessage.cc
  260. * src/BtAllowedFastMessage.h
  261. * src/BtAllowedFastMessageValidator.h: Removed
  262. * src/BtBitfieldMessage.cc
  263. * src/BtBitfieldMessage.h
  264. * src/BtCancelMessage.cc
  265. * src/BtCancelMessage.h
  266. * src/BtCancelMessageValidator.h: Removed
  267. * src/BtChokeMessage.cc
  268. * src/BtChokeMessage.h
  269. * src/BtExtendedMessage.cc
  270. * src/BtExtendedMessage.h
  271. * src/BtHandshakeMessage.cc
  272. * src/BtHandshakeMessage.h
  273. * src/BtHaveAllMessage.cc
  274. * src/BtHaveAllMessage.h
  275. * src/BtHaveMessage.cc
  276. * src/BtHaveMessage.h
  277. * src/BtHaveMessageValidator.h: Removed
  278. * src/BtHaveNoneMessage.cc
  279. * src/BtHaveNoneMessage.h
  280. * src/BtInterestedMessage.cc
  281. * src/BtInterestedMessage.h
  282. * src/BtKeepAliveMessage.cc
  283. * src/BtKeepAliveMessage.h
  284. * src/BtNotInterestedMessage.cc
  285. * src/BtNotInterestedMessage.h
  286. * src/BtPieceMessage.cc
  287. * src/BtPieceMessage.h
  288. * src/BtPortMessage.cc
  289. * src/BtPortMessage.h
  290. * src/BtRejectMessage.cc
  291. * src/BtRejectMessage.h
  292. * src/BtRejectMessageValidator.h: Removed
  293. * src/BtRequestMessage.cc
  294. * src/BtRequestMessage.h
  295. * src/BtRequestMessageValidator.h: Removed
  296. * src/BtSuggestPieceMessage.cc
  297. * src/BtSuggestPieceMessage.h
  298. * src/BtSuggestPieceMessageValidator.h: Removed
  299. * src/BtUnchokeMessage.cc
  300. * src/BtUnchokeMessage.h
  301. * src/DefaultBtMessageFactory.cc
  302. * src/IndexBtMessage.cc
  303. * src/IndexBtMessage.h
  304. * src/IndexBtMessageValidator.h
  305. * src/Makefile.am
  306. * src/PeerMessageUtil.cc
  307. * src/PeerMessageUtil.h
  308. * src/RangeBtMessage.cc
  309. * src/RangeBtMessage.h
  310. * src/RangeBtMessageValidator.h
  311. * src/SimpleBtMessage.cc
  312. * src/SimpleBtMessage.h
  313. * src/ZeroBtMessage.cc
  314. * src/ZeroBtMessage.h
  315. * test/BtRequestMessageTest.cc
  316. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Reverted usage_text.h to r1093 to avoid to lose translated
  318. messages.
  319. * src/usage_text.h
  320. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  322. declared as non-const previously is now const and defined in class
  323. definition.
  324. * src/AbstractBtMessage.cc
  325. * src/AbstractBtMessage.h
  326. * src/BtAllowedFastMessage.cc
  327. * src/BtAllowedFastMessage.h
  328. * src/BtBitfieldMessage.h
  329. * src/BtCancelMessage.cc
  330. * src/BtCancelMessage.h
  331. * src/BtChokeMessage.cc
  332. * src/BtChokeMessage.h
  333. * src/BtExtendedMessage.cc
  334. * src/BtExtendedMessage.h
  335. * src/BtHandshakeMessage.cc
  336. * src/BtHandshakeMessage.h
  337. * src/BtHaveAllMessage.cc
  338. * src/BtHaveAllMessage.h
  339. * src/BtHaveMessage.cc
  340. * src/BtHaveMessage.h
  341. * src/BtHaveNoneMessage.cc
  342. * src/BtHaveNoneMessage.h
  343. * src/BtInterestedMessage.cc
  344. * src/BtInterestedMessage.h
  345. * src/BtKeepAliveMessage.cc
  346. * src/BtKeepAliveMessage.h
  347. * src/BtMessage.h
  348. * src/BtNotInterestedMessage.cc
  349. * src/BtNotInterestedMessage.h
  350. * src/BtPieceMessage.h
  351. * src/BtPortMessage.cc
  352. * src/BtPortMessage.h
  353. * src/BtRejectMessage.cc
  354. * src/BtRejectMessage.h
  355. * src/BtRequestMessage.cc
  356. * src/BtRequestMessage.h
  357. * src/BtSuggestPieceMessage.cc
  358. * src/BtSuggestPieceMessage.h
  359. * src/BtUnchokeMessage.cc
  360. * src/BtUnchokeMessage.h
  361. * src/SimpleBtMessage.cc
  362. * src/SimpleBtMessage.h
  363. * test/MockBtMessage.h
  364. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Use FileEntry::exists()
  366. * src/MultiDiskAdaptor.cc
  367. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Added exists()
  369. * src/FileEntry.cc
  370. * src/FileEntry.h
  371. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Added missing prefix dir.
  373. * src/download_helper.cc
  374. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Removed --direct-file-mapping option and CopyDiskAdaptor.
  376. * src/CopyDiskAdaptor.cc: Removed
  377. * src/CopyDiskAdaptor.h: Removed
  378. * src/DefaultPieceStorage.cc
  379. * src/Makefile.am
  380. * src/OptionHandlerFactory.cc
  381. * src/prefs.cc
  382. * src/prefs.h
  383. * src/usage_text.h
  384. * test/CopyDiskAdaptorTest.cc: Removed
  385. * test/Makefile.am
  386. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Rewritten isSameFileBeingDownloaded()
  388. * src/RequestGroupMan.cc
  389. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Removed getName() from DownloadContext. getName() is declared in
  391. BtContext.
  392. * src/BtContext.h
  393. * src/DownloadContext.h
  394. * src/SingleFileDownloadContext.cc
  395. * src/SingleFileDownloadContext.h
  396. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  397. in AbstractSingleDiskAdaptor.
  398. * src/AbstractSingleDiskAdaptor.h
  399. * src/DiskAdaptor.h
  400. * src/MultiDiskAdaptor.h
  401. * src/RequestGroup.cc
  402. Removed setTopDir() and getTopDir() and getTopDirPath() from
  403. MultiDiskAdaptor.
  404. * src/DefaultPieceStorage.cc
  405. * src/MultiDiskAdaptor.cc
  406. * src/MultiDiskAdaptor.h
  407. * test/MultiDiskAdaptorTest.cc
  408. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  409. FileEntry::getPath() contains store(top level) directory to
  410. simplify path handling operation. In the previous implementation,
  411. store directory is concatenated to FileEntry::getPath() in
  412. DownloadContext.
  413. * src/BtDependency.cc
  414. * src/BtPostDownloadHandler.cc
  415. * src/CopyDiskAdaptor.cc
  416. * src/DefaultBtContext.cc
  417. * src/DirectDiskAdaptor.cc
  418. * src/FileEntry.cc
  419. * src/FileEntry.h
  420. * src/FtpNegotiationCommand.cc
  421. * src/HttpResponse.cc
  422. * src/HttpResponseCommand.cc
  423. * src/Metalink2RequestGroup.cc
  424. * src/MultiDiskAdaptor.cc
  425. * src/MultiDiskAdaptor.h
  426. * src/MultiFileAllocationIterator.cc
  427. * src/RequestGroup.cc
  428. * src/SingleFileDownloadContext.cc
  429. * src/SingleFileDownloadContext.h
  430. * src/download_helper.cc
  431. * test/BtDependencyTest.cc
  432. * test/CopyDiskAdaptorTest.cc
  433. * test/DefaultBtContextTest.cc
  434. * test/DefaultBtProgressInfoFileTest.cc
  435. * test/DirectDiskAdaptorTest.cc
  436. * test/DownloadHelperTest.cc
  437. * test/FileEntryTest.cc
  438. * test/MultiDiskAdaptorTest.cc
  439. * test/MultiFileAllocationIteratorTest.cc
  440. * test/RequestGroupTest.cc
  441. * test/SingleFileDownloadContextTest.cc
  442. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Fixed compiler warning
  444. * src/download_helper.cc
  445. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Throw exception if same infohash torrent is now downloading.
  447. * src/RequestGroup.cc
  448. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Added --dry-run option. In this mode, aria2 just checks whether
  450. the remote file is available and doesn't download data. This
  451. option has effect on HTTP/FTP downloads and BitTorrent downloads
  452. are canceled in this mode.
  453. * src/FtpNegotiationCommand.cc
  454. * src/HttpResponseCommand.cc
  455. * src/HttpResponseCommand.h
  456. * src/OptionHandlerFactory.cc
  457. * src/RequestGroup.cc
  458. * src/RequestGroupMan.cc
  459. * src/prefs.cc
  460. * src/prefs.h
  461. * src/usage_text.h
  462. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Fixed compiler waring
  464. * test/UriListParserTest.cc
  465. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Parse options in -i list using OptionParser.
  467. * src/UriListParser.cc
  468. * src/UriListParser.h
  469. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Don't reset URI in retry to avoid additional round trips because
  471. of redirects.
  472. * src/AbstractCommand.cc
  473. * src/OptionHandlerFactory.cc
  474. * src/prefs.cc
  475. * src/prefs.h
  476. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Declared hide() in OptionHandler.
  478. * src/NameMatchOptionHandler.h
  479. * src/OptionHandler.h
  480. * src/OptionHandlerImpl.h
  481. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Updated doc
  483. * src/Peer.h
  484. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Added log message in setStatusInternal()
  486. * src/ServerStat.cc
  487. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Call ServerStat::setError() in AbstractCommand::onAbort() to
  489. effectively exclude failed server.
  490. * src/AbstractCommand.cc
  491. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Added --index-out option to specify each file path for torrent.
  493. Here index shown in --show-files option is used to specify which
  494. file path should be altered. For example, to change the file path
  495. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  496. option multiple times: --index-out=1=aria2.tar.bz2
  497. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  498. available. This option can be specified in -i list.
  499. * src/DefaultBtContext.cc
  500. * src/DefaultBtContext.h
  501. * src/MultiDiskAdaptor.cc
  502. * src/MultiDiskAdaptor.h
  503. * src/MultiFileAllocationIterator.cc
  504. * src/OptionHandlerFactory.cc
  505. * src/OptionHandlerImpl.h
  506. * src/Util.cc
  507. * src/Util.h
  508. * src/download_helper.cc
  509. * src/prefs.cc
  510. * src/prefs.h
  511. * src/usage_text.h
  512. * test/DefaultBtContextTest.cc
  513. * test/MultiDiskAdaptorTest.cc
  514. * test/MultiFileAllocationIteratorTest.cc
  515. * test/UtilTest.cc
  516. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Use Util::pathJoin()
  518. * src/MetalinkParserController.cc
  519. * test/test.xml
  520. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Use Util::pathJoin()
  522. * src/DefaultBtContext.cc
  523. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Added Util::pathJoin()
  525. * src/Util.h
  526. * test/UtilTest.cc
  527. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Applied basename function to remove directory element in
  529. content-disposition value.
  530. Return empty string if content-disposition value is ".." or ".".
  531. * src/Util.cc
  532. * test/UtilTest.cc
  533. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Added --max-overall-download-limit in man page.
  535. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  536. * doc/aria2c.1.txt
  537. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Added --max-overall-download-limit option. Now --max-upload-limit
  539. option is not ignored when --max-overall-upload-limit option has
  540. non-zero value. aria2 checks download(upload) speed in the order:
  541. first checks overall speed limit and if it is not exceeded, then
  542. checks speed limit per download. Thus you can specify both
  543. value. For example, set --max-overall-download-limit=1M and
  544. --max-download-limit=500K to prevent from one download from eating
  545. all overall speed limit.
  546. * src/DefaultBtInteractive.cc
  547. * src/DefaultBtInteractive.h
  548. * src/DefaultBtMessageDispatcher.cc
  549. * src/DefaultBtMessageDispatcher.h
  550. * src/DownloadCommand.cc
  551. * src/DownloadCommand.h
  552. * src/FtpNegotiationCommand.cc
  553. * src/HttpResponseCommand.cc
  554. * src/OptionHandlerFactory.cc
  555. * src/PeerInteractionCommand.cc
  556. * src/RequestGroup.cc
  557. * src/RequestGroup.h
  558. * src/RequestGroupMan.cc
  559. * src/RequestGroupMan.h
  560. * src/prefs.cc
  561. * src/prefs.h
  562. * src/usage_text.h
  563. * test/DefaultBtMessageDispatcherTest.cc
  564. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Documented select-file option in Input File section.
  566. Documented --http-auth-challenge option.
  567. * doc/aria2c.1.txt
  568. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Now select-file can be specified in the uri list(-i list).
  570. * src/BtContext.cc
  571. * src/BtContext.h
  572. * src/RequestGroup.cc
  573. * src/Sequence.h
  574. * src/download_helper.cc
  575. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Made the upper value of --max-concurrent-downloads options unlimited.
  577. * src/OptionHandlerFactory.cc
  578. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Fixed the bug that disk writer is not created even if it shares
  580. same piece with the preceding file if the length of previous file
  581. is 0.
  582. * src/MultiDiskAdaptor.cc
  583. * test/MultiDiskAdaptorTest.cc
  584. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. In BitTorrent, Open files in read-only mode for hash check. After
  586. that, re-open file in read/write mode only when the download is
  587. not finished.
  588. * src/AbstractDiskWriter.cc
  589. * src/AbstractDiskWriter.h
  590. * src/AbstractSingleDiskAdaptor.cc
  591. * src/AbstractSingleDiskAdaptor.h
  592. * src/BtCheckIntegrityEntry.cc
  593. * src/DiskAdaptor.h
  594. * src/DiskWriter.h
  595. * src/MultiDiskAdaptor.cc
  596. * src/MultiDiskAdaptor.h
  597. * src/RequestGroup.cc
  598. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Added --http-auth-challenge option. If it is set to true(by
  600. default), aria2 sends HTTP authorization header only when it is
  601. requested by the server. If false is set, then authorization
  602. header is always sent to the server. This is useful for servers
  603. that don't respond 401 code when authentication is required.
  604. There is an exception: if username and password are embedded in
  605. URI, authorization header is always sent to the server regardless
  606. of this option.
  607. * src/AuthConfigFactory.cc
  608. * src/HttpSkipResponseCommand.cc
  609. * src/OptionHandlerFactory.cc
  610. * src/prefs.cc
  611. * src/prefs.h
  612. * src/usage_text.h
  613. * test/AuthConfigFactoryTest.cc
  614. * test/HttpRequestTest.cc
  615. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. * Release 1.2.0
  617. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Updated Spanish, Ukrainian, Russian and Japanese translations.
  619. Thanks to all translators.
  620. * po/es.po
  621. * po/ja.po
  622. * po/ru.po
  623. * po/uk.po
  624. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Call deleteSocketForReadCheck() before socket is closed.
  626. * src/HttpListenCommand.cc
  627. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Defined virtual destructor for BObject.
  629. * src/bencode.h
  630. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Rewritten BDE to make it efficient.
  632. * src/bencode.cc
  633. * src/bencode.h
  634. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Removed function throw list.
  636. * src/bencode.cc
  637. * src/bencode.h
  638. * test/BencodeTest.cc
  639. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Enclosed all URLs in double quotes in command-line examples.
  641. * doc/aria2c.1.txt
  642. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Updated reference/see also section.
  644. * README
  645. * doc/aria2c.1.txt
  646. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Reorganized man page based on man man-pages.
  648. * doc/aria2c.1.txt
  649. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  651. because same documents are available in man page. Added
  652. References section.
  653. * README
  654. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  656. PERFORMANCE PROFILE section.
  657. * doc/aria2c.1.txt
  658. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Rewritten the section for configuration file.
  660. * README
  661. * doc/aria2c.1.txt
  662. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Fixed the segmentation fault during execution of choking algorithm
  664. in leecher state because of broken compare operator
  665. implementation.
  666. * src/BtLeecherStateChoke.cc
  667. * src/BtLeecherStateChoke.h
  668. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Open file in binary mode.
  670. * src/CookieStorage.cc
  671. * src/DHTSetup.cc
  672. * src/DHTUtil.cc
  673. * src/Netrc.cc
  674. * src/NsCookieParser.cc
  675. * src/ProtocolDetector.cc
  676. * src/RequestGroupMan.cc
  677. * src/Signature.cc
  678. * src/bencode.cc
  679. * src/download_helper.cc
  680. * src/option_processing.cc
  681. * test/CookieParserTest.cc
  682. * test/DefaultBtProgressInfoFileTest.cc
  683. * test/FileTest.cc
  684. * test/GZipDecoderTest.cc
  685. * test/RequestGroupManTest.cc
  686. * test/SignatureTest.cc
  687. * test/SingleFileAllocationIteratorTest.cc
  688. * test/UriListParserTest.cc
  689. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Removed operator[] because it is ambiguous with built-in []
  691. operator.
  692. * src/array_fun.h
  693. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Fixed compile error
  695. * src/OptionParser.cc
  696. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Added missing call to arrayWrapperConst
  698. * test/array_funTest.cc
  699. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Use array_wrapper instead of array_ptr.
  701. * src/DHTRoutingTableDeserializer.cc
  702. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  704. * src/array_fun.h
  705. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Added array_wrapper template.
  707. * src/array_fun.h
  708. * test/array_funTest.cc
  709. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Use operator T* of array_ptr.
  711. * src/OptionParser.cc
  712. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Use localhost instead of 127.0.0.1
  714. * test/FtpConnectionTest.cc
  715. * test/MSEHandshakeTest.cc
  716. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Added operator T*
  718. * src/array_fun.h
  719. * test/array_funTest.cc
  720. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Use dynamically allocated char array to detect memory access
  722. violation.
  723. * src/DHTRoutingTableDeserializer.cc
  724. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  726. defined.
  727. * src/PeerMessageUtil.cc
  728. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  730. * configure.ac
  731. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Added a check to see struct sockaddr_in has sin_len member.
  733. * configure.ac
  734. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Fixed buffer overrun.
  736. * src/DHTRoutingTableDeserializer.cc
  737. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Added LL for long long int constant.
  739. * test/FtpConnectionTest.cc
  740. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Casted to unsigned int to suppress compiler warning on netbsd.
  742. * src/BtRuntime.h
  743. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Assign the value of tv.tv_sec to time_t timesec instead of giving
  745. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  746. type time_t.
  747. * src/SimpleLogger.cc
  748. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Added test for FtpConnection::receiveSizeResponse().
  750. * test/FtpConnectionTest.cc
  751. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Fix epoll error on the old kernel 2.6.8 or ealier.
  753. * src/EpollEventPoll.cc
  754. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Use Util::parseLLInt instead of sscanf for portability. The
  756. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  757. * src/FtpConnection.cc
  758. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  760. block. It should not filter anything.
  761. * src/BitfieldMan.cc
  762. * src/ConsoleStatCalc.cc
  763. * test/BitfieldManTest.cc
  764. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Fixed the bug that the boolean options that don't take arguments
  766. don't work.
  767. * src/OptionHandlerImpl.h
  768. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Fixed broken selected file BitTorrent download.
  770. * src/MultiDiskAdaptor.cc
  771. * test/MultiDiskAdaptorTest.cc
  772. * test/MultiFileAllocationIteratorTest.cc
  773. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Fixed #define guard for EpollEventPoll
  775. * src/EpollEventPoll.h
  776. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. Wait 2 seconds. 1 second is sometimes not enough.
  778. * test/TimeSeedCriteriaTest.cc
  779. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Use localhost instead of 127.0.0.1.
  781. * test/DHTConnectionImplTest.cc
  782. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Suppressed compiler warning.
  784. * src/AdaptiveURISelector.cc
  785. * src/DefaultPieceStorage.cc
  786. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Defined virtual destructor.
  788. * src/MetalinkParserState.h
  789. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Give NULL for second argument of getaddrinfo instead of "0".
  791. * src/NameResolver.cc
  792. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  794. included strptime doesn't parse data for this format.
  795. * src/FtpConnection.cc
  796. * test/FtpConnectionTest.cc
  797. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Removed tests giving -1 for unsigned argument.
  799. * test/SingleFileDownloadContextTest.cc
  800. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Don't use sha256 in tests because it might not be supported by the
  802. SSL library.
  803. * test/MetalinkProcessorTest.cc
  804. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Removed tests giving -1 for unsigned argument.
  806. * test/AlphaNumberDecoratorTest
  807. * test/BitfieldManTest.cc
  808. * test/DefaultBtContextTest.cc
  809. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Fixed compile error without libcares when epoll is available.
  811. * src/EpollEventPoll.cc
  812. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Included fstream instead of iostream.
  814. * test/SignatureTest.cc
  815. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Removed #include <algorithm>
  817. * test/RequestGroupTest.cc
  818. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  820. using RequestGroup::extractURIResult().
  821. * src/AdaptiveURISelector.cc
  822. * src/RequestGroup.cc
  823. * src/RequestGroup.h
  824. * test/RequestGroupTest.cc
  825. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Added tests for array_ptr.
  827. * test/array_funTest.cc
  828. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Don't send ip parameter to a tracker if ip parameter is empty
  830. string.
  831. * src/DefaultBtAnnounce.cc
  832. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Adjusted line feed.
  834. * src/version_usage.cc
  835. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Print tags, possible values when OptionHandlerException is caught.
  837. * src/option_processing.cc
  838. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Changed the message for FatalException.
  840. * src/OptionParser.cc
  841. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Documented --bt-external-ip option in man page. Updated man pages
  843. for --proxy-method option.
  844. * doc/aria2c.1.txt
  845. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Use GET method for FTP via HTTP proxy.
  847. * src/FtpInitiateConnectionCommand.cc
  848. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Changed the default value of --proxy-method option from 'tunnel'
  850. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  851. option.
  852. * src/AbstractCommand.cc
  853. * src/AbstractCommand.h
  854. * src/FtpInitiateConnectionCommand.cc
  855. * src/HttpDownloadCommand.cc
  856. * src/HttpInitiateConnectionCommand.cc
  857. * src/HttpInitiateConnectionCommand.h
  858. * src/OptionHandlerFactory.cc
  859. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Initialized _logger
  861. * src/SelectEventPoll.cc
  862. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Defined a copy constructor for the same type.
  864. * src/SharedHandle.h
  865. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Added OptionParser::parseArg() which internally uses getopt_long
  867. to parse command-line options. All command-line options are now
  868. configured by OptionHandler. No manual editing of struct option*
  869. is required any more.
  870. * src/NameMatchOptionHandler.h
  871. * src/OptionHandler.h
  872. * src/OptionHandlerFactory.cc
  873. * src/OptionHandlerImpl.h
  874. * src/OptionParser.cc
  875. * src/OptionParser.h
  876. * src/array_fun.h
  877. * src/main.cc
  878. * src/option_processing.cc
  879. * test/OptionHandlerTest.cc
  880. * test/OptionParserTest.cc
  881. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  882. Fixed configure error with --disable-epoll
  883. * configure.ac
  884. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Fixed compile error when HAVE_EPOLL is not defined.
  886. Fixed linker error on bigendian systems.
  887. * src/SocketCore.cc
  888. * src/SocketCore.h
  889. * test/DefaultBtProgressInfoFileTest.cc
  890. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Added --bt-external-ip option. You can specify the external IP
  892. address to report to a BitTorrent tracker. Although this function
  893. is named 'external', it can accept any kind of IP addresses.
  894. * src/DefaultBtAnnounce.cc
  895. * src/OptionHandlerFactory.cc
  896. * src/option_processing.cc
  897. * src/prefs.cc
  898. * src/prefs.h
  899. * src/usage_text.h
  900. * test/DefaultBtAnnounceTest.cc
  901. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Extracted the algorithm to find the longest incremental sequence
  903. as max_sequence template.
  904. * src/LongestSequencePieceSelector.cc
  905. * src/a2algo.h
  906. * test/Makefile.am
  907. * test/a2algoTest.cc
  908. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  910. * src/usage_text.h
  911. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Updated doc for --uri-selector, --http-server-listen-port and
  913. --enable-http-server option. Documented --event-poll option.
  914. * doc/aria2c.1.txt
  915. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Updated doc for --enable-http-server.
  917. * src/usage_text.h
  918. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Documented --http-server-listen-port and --enable-http-server in
  920. man page.
  921. * doc/aria2c.1.txt
  922. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  924. translations. Thanks to all translators.
  925. * po/es.po
  926. * po/id.po
  927. * po/it.po
  928. * po/ru.po
  929. * po/uk.po
  930. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Bump up version number to 1.2.0
  932. * configure.ac
  933. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. BtContext::getAnnounceTiers() now returns const reference.
  935. * src/BtContext.h
  936. * src/DefaultBtContext.cc
  937. * src/DefaultBtContext.h
  938. * test/MockBtContext.h
  939. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Change the number of retries for tracker request based on the
  941. number of available tracker in a torrent file.
  942. * src/TrackerWatcherCommand.cc
  943. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Added _maxTries property to RequestGroup and assign the option
  945. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  946. RequestGroup::getMaxTries() instead of
  947. Option::getAsInt(PREF_MAX_TRIES).
  948. * src/AbstractCommand.cc
  949. * src/RequestGroup.cc
  950. * src/RequestGroup.h
  951. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  953. Mandriva. I modified the patch: make RequestGroup have the
  954. timeout value and AdaptiveURISelector directly modifies that
  955. value.
  956. * src/AbstractCommand.cc
  957. * src/AdaptiveURISelector.cc
  958. * src/AdaptiveURISelector.h
  959. * src/FtpNegotiationCommand.cc
  960. * src/RequestGroup.cc
  961. * src/RequestGroup.h
  962. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Fixed compiler warning
  964. * test/IteratableChecksumValidatorTest.cc
  965. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  967. integrated downloads. This PieceSelector subclass finds the
  968. longest continuous sequence in the available missing pieces and
  969. selects the last index of such sequence. This makes HTTP/FTP
  970. connections less interrupted by the pieces obtained by BitTorrent
  971. peers.
  972. * src/DefaultPieceStorage.cc
  973. * src/DefaultPieceStorage.h
  974. * src/LongestSequencePieceSelector.cc
  975. * src/LongestSequencePieceSelector.h
  976. * src/Makefile.am
  977. * src/PieceSelector.h
  978. * src/RarestPieceSelector.h
  979. * src/RequestGroup.cc
  980. * test/BtDependencyTest.cc
  981. * test/DefaultPieceStorageTest.cc
  982. * test/IteratableChecksumValidatorTest.cc
  983. * test/LongestSequencePieceSelectorTest.cc
  984. * test/Makefile.am
  985. * test/SegmentManTest.cc
  986. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Fixed the bug that the average speed is wrong in
  988. http/ftp/BitTorrent integrated download. Only the download bytes
  989. in BitTorrent were considered.
  990. * src/RequestGroup.cc
  991. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Choose port for BitTorrent/DHT randomly from the specified range.
  993. * src/DHTConnectionImpl.cc
  994. * src/PeerListenCommand.cc
  995. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Send HTTP Authorization header only if it is requested by the
  997. server(response 401). There are some exceptions. The authorization
  998. header for proxy is always sent if it is available without request
  999. by the server. If username/password is specified in the URI, it
  1000. is immediately sent to the server without request by the server.
  1001. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1002. SharedHandle<AuthConfig>().
  1003. NetrcAuthResolver::resolveAuthConfig() returns
  1004. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1005. * src/AbstractAuthResolver.cc
  1006. * src/AbstractProxyRequestCommand.cc
  1007. * src/AuthConfigFactory.cc
  1008. * src/AuthConfigFactory.h
  1009. * src/HttpConnection.cc
  1010. * src/HttpRequest.cc
  1011. * src/HttpRequest.h
  1012. * src/HttpResponse.cc
  1013. * src/HttpResponseCommand.cc
  1014. * src/HttpSkipResponseCommand.cc
  1015. * test/AuthConfigFactoryTest.cc
  1016. * test/HttpRequestTest.cc
  1017. * test/HttpResponseTest.cc
  1018. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Remove leading "--" from help keyword and a substring after "="
  1020. from help keyword, so that one can query options by '-h--max-' or
  1021. '-hmax-peers=10'.
  1022. * src/option_processing.cc
  1023. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Rewritten PStringVisitor and its implementation.
  1025. * src/PStringBuildVisitor.cc
  1026. * src/PStringBuildVisitor.h
  1027. * src/PStringDatum.h
  1028. * src/PStringNumLoop.h
  1029. * src/PStringSegment.cc
  1030. * src/PStringSegment.h
  1031. * src/PStringSelect.h
  1032. * src/PStringVisitor.h
  1033. * src/download_helper.cc
  1034. * test/PStringBuildVisitorTest.cc
  1035. * test/ParameterizedStringParserTest.cc
  1036. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Persist connection between the built-in HTTP server and a client
  1038. if a client supports keep-alive. Fixed the bug that aria2 exits
  1039. when the HTTP server receives EOF from a client.
  1040. * src/HttpServer.cc
  1041. * src/HttpServer.h
  1042. * src/HttpServerCommand.cc
  1043. * src/HttpServerCommand.h
  1044. * src/HttpServerResponseCommand.cc
  1045. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Added experimental built-in HTTP server. Currently, when a client
  1047. accesses to the server, it responds with the current download
  1048. progress. By default, it is disabled. To enable the server, give
  1049. --enable-http-server option. To change the default port number
  1050. for the server to listen to, use --http-server-listen-port option.
  1051. The response HTML is very simple and refreshes it self each 1
  1052. second. Because of this refresh, you see flicker in normal web
  1053. browser such as Firefox. I recommend to use console-based browser
  1054. such as elinks, w3m. To connect to the server, run 'elinks
  1055. http://localhost:6800/' while running aria2. Please replace port
  1056. number '6800'(which is default) with your preference.
  1057. * src/DownloadEngineFactory.cc
  1058. * src/HttpHeader.cc
  1059. * src/HttpHeader.h
  1060. * src/HttpHeaderProcessor.cc
  1061. * src/HttpHeaderProcessor.h
  1062. * src/HttpListenCommand.cc
  1063. * src/HttpListenCommand.h
  1064. * src/HttpServer.cc
  1065. * src/HttpServer.h
  1066. * src/HttpServerCommand.cc
  1067. * src/HttpServerCommand.h
  1068. * src/HttpServerResponseCommand.cc
  1069. * src/HttpServerResponseCommand.h
  1070. * src/Makefile.am
  1071. * src/OptionHandlerFactory.cc
  1072. * src/Util.cc
  1073. * src/Util.h
  1074. * src/help_tags.h
  1075. * src/option_processing.cc
  1076. * src/prefs.cc
  1077. * src/prefs.h
  1078. * src/usage_text.h
  1079. * test/HttpHeaderProcessorTest.cc
  1080. * test/UtilTest.cc
  1081. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Removed.
  1083. * src/CheckIntegrityMan.cc
  1084. * src/FileAllocationMan.cc
  1085. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Made (piece) hash check sequential for each RequestGroup because
  1087. simultaneous hash check is slower than sequential execution.
  1088. * src/CheckIntegrityCommand.cc
  1089. * src/CheckIntegrityDispatcherCommand.cc
  1090. * src/CheckIntegrityDispatcherCommand.h
  1091. * src/CheckIntegrityMan.h
  1092. * src/ConsoleStatCalc.cc
  1093. * src/DownloadCommand.cc
  1094. * src/DownloadEngine.cc
  1095. * src/DownloadEngine.h
  1096. * src/DownloadEngineFactory.cc
  1097. * src/Makefile.am
  1098. * src/Makefile.in
  1099. * src/RequestGroup.cc
  1100. * src/StatCalc.h
  1101. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1103. SequentialDispatcherCommand.
  1104. * src/FileAllocationDispatcherCommand.cc
  1105. * src/SequentialDispatcherCommand.h
  1106. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Rewritten FileAllocationDispatcherCommand using brand new
  1108. SequentialDispatcherCommand.
  1109. * src/DownloadEngineFactory.cc
  1110. * src/FileAllocationCommand.cc
  1111. * src/FileAllocationDispatcherCommand.cc
  1112. * src/FileAllocationDispatcherCommand.h
  1113. * src/Makefile.am
  1114. * src/SequentialDispatcherCommand.h
  1115. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Replaced FileAllocationMan with
  1117. SequentialPicker<FileAllocationEntry>.
  1118. * src/BtCheckIntegrityEntry.cc
  1119. * src/ConsoleStatCalc.cc
  1120. * src/DownloadEngine.cc
  1121. * src/DownloadEngine.h
  1122. * src/DownloadEngineFactory.cc
  1123. * src/FileAllocationCommand.cc
  1124. * src/FileAllocationDispatcherCommand.cc
  1125. * src/FileAllocationMan.h
  1126. * src/Makefile.am
  1127. * src/SequentialPicker.h
  1128. * src/StatCalc.h
  1129. * src/StreamCheckIntegrityEntry.cc
  1130. * test/Makefile.am
  1131. * test/SequentialPickerTest.cc
  1132. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Added doc for adaptive URI selector.
  1134. * doc/aria2c.1.txt
  1135. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Added doc for adaptive URI selector.
  1137. * src/usage_text.h
  1138. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Added doc for --bt-max-peers option.
  1140. * doc/aria2c.1.txt
  1141. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Added doc for --bt-hash-check-seed option.
  1143. * doc/aria2c.1.txt
  1144. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Documented exit codes.
  1146. * doc/aria2c.1.txt
  1147. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Added --bt-max-peers option to specify the maximum number of peers
  1149. per torrent. 0 means unlimited number of peers.
  1150. * src/ActivePeerConnectionCommand.cc
  1151. * src/BtRuntime.h
  1152. * src/DefaultPeerStorage.cc
  1153. * src/DefaultPeerStorage.h
  1154. * src/OptionHandlerFactory.cc
  1155. * src/RequestGroup.cc
  1156. * src/option_processing.cc
  1157. * src/prefs.cc
  1158. * src/prefs.h
  1159. * src/usage_text.h
  1160. * test/DefaultPeerStorageTest.cc
  1161. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Added --bt-hash-check-seed option. If true is given to this
  1163. option, after hash check using --check-integrity option and file
  1164. is complete, continue to seed file. If you want to check file and
  1165. download it only when it is damaged or incomplete, set this option
  1166. to false. This option has effect only on BitTorrent download.
  1167. The default value is true(This is the same behavior with the
  1168. previous release).
  1169. * src/BtCheckIntegrityEntry.cc
  1170. * src/OptionHandlerFactory.cc
  1171. * src/option_processing.cc
  1172. * src/prefs.cc
  1173. * src/prefs.h
  1174. * src/usage_text.h
  1175. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Updated copyright year.
  1177. * src/version_usage.cc
  1178. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1180. * doc/aria2c.1.txt
  1181. * src/usage_text.h
  1182. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Made the max value of split option unlimited.
  1184. * doc/aria2c.1.txt
  1185. * src/OptionHandlerFactory.cc
  1186. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Fixed compile warning/error.
  1188. * src/DownloadResult.h
  1189. * src/HttpDownloadCommand.cc
  1190. * src/ServerStat.cc
  1191. * test/RequestGroupTest.cc
  1192. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Added --event-poll option to select the method for polling events.
  1194. The available methods are "select" and "epoll". "epoll" is
  1195. available on Linux only. The earlier release has the compile
  1196. option to choose from these methods.
  1197. * configure.ac
  1198. * src/RequestGroupMan.cc
  1199. * src/OptionHandlerFactory.cc
  1200. * src/EpollEventPoll.h
  1201. * src/StreamFileAllocationEntry.cc
  1202. * src/a2io.h
  1203. * src/SelectEventPoll.h
  1204. * src/option_processing.cc
  1205. * src/prefs.h
  1206. * src/EpollEventPoll.cc
  1207. * src/EventPoll.h
  1208. * src/SocketCore.h
  1209. * src/Makefile.am
  1210. * src/main.cc
  1211. * src/DownloadEngine.h
  1212. * src/SelectEventPoll.cc
  1213. * src/DownloadEngine.cc
  1214. * src/SocketCore.cc
  1215. * src/DownloadEngineFactory.cc
  1216. * src/Makefile.in
  1217. * src/prefs.cc
  1218. * src/usage_text.h
  1219. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Included RecoverableException.h from main.cc
  1221. * src/main.cc
  1222. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1224. now returns last error encountered in the HTTP/FTP downloads as a
  1225. exit status value. If all downloads finished successfully, aria2
  1226. returns 0. The error code is defined in src/DownloadResult.h.
  1227. The error occurred in the download currently in progress is not
  1228. reported as a last error. If no error has encountered but there
  1229. are in progress or waiting downloads, aria2 returns 7.
  1230. * src/AbstractCommand.cc
  1231. * src/DlAbortEx.h
  1232. * src/DlRetryEx.h
  1233. * src/DownloadCommand.cc
  1234. * src/DownloadFailureException.h
  1235. * src/DownloadResult.h
  1236. * src/FtpNegotiationCommand.cc
  1237. * src/HttpSkipResponseCommand.cc
  1238. * src/Makefile.am
  1239. * src/MultiUrlRequestInfo.cc
  1240. * src/MultiUrlRequestInfo.h
  1241. * src/RecoverableException.h
  1242. * src/RequestGroup.cc
  1243. * src/RequestGroup.h
  1244. * src/RequestGroupMan.cc
  1245. * src/RequestGroupMan.h
  1246. * src/URIResult.cc
  1247. * src/URIResult.h
  1248. * src/main.cc
  1249. * src/option_processing.cc
  1250. * test/RequestGroupTest.cc
  1251. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1253. patch adds AdaptiveURISelector, which selects one of the bests
  1254. mirrors for first and reserved connections. For supplementary
  1255. ones, it returns mirrors which has not been tested yet, and if
  1256. each of them already tested, returns mirrors which has to be
  1257. tested again. Otherwise, it doesn't return anymore mirrors.
  1258. * src/AdaptiveURISelector.cc
  1259. * src/AdaptiveURISelector.h
  1260. * src/FtpNegotiationCommand.cc
  1261. * src/HttpResponseCommand.cc
  1262. * src/Makefile.am
  1263. * src/Makefile.in
  1264. * src/OptionHandlerFactory.cc
  1265. * src/RequestGroup.cc
  1266. * src/RequestGroup.h
  1267. * src/RequestGroupMan.cc
  1268. * src/ServerStat.cc
  1269. * src/ServerStat.h
  1270. * src/ServerStatMan.cc
  1271. * src/SpeedCalc.cc
  1272. * src/URISelector.h
  1273. * src/prefs.cc
  1274. * src/prefs.h
  1275. * test/RequestGroupManTest.cc
  1276. * test/ServerStatManTest.cc
  1277. * test/ServerStatTest.cc
  1278. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Fixed unit test error.
  1280. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1281. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. * Release 1.1.2
  1283. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Updated Russian translation. Thanks to the translators.
  1285. * po/ru.po
  1286. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Added the description of --use-head option to man page.
  1288. * doc/aria2c.1.txt
  1289. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Bump up version number to 1.1.2
  1291. * configure.ac
  1292. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added --use-head option to toggle whether HEAD method should be
  1294. used in the first HTTP request. By default aria2 uses HEAD method
  1295. as the first request. When the server doesn't recognize HEAD, then
  1296. give aria2 --use-head=false to force aria2 to use GET method
  1297. instead.
  1298. * src/OptionHandlerFactory.cc
  1299. * src/RequestGroupMan.cc
  1300. * src/option_processing.cc
  1301. * src/prefs.cc
  1302. * src/prefs.h
  1303. * src/usage_text.h
  1304. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1306. message is received before CHOKE message. The old implementation
  1307. doen't clear the use-bit of the piece when recieved REJECT
  1308. message.
  1309. * src/DefaultBtMessageDispatcher.cc
  1310. * test/DefaultBtMessageDispatcherTest.cc
  1311. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. * Release 1.1.1
  1313. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Bump up version number to 1.1.1.
  1315. * configure.ac
  1316. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1318. is printed repeatedly.
  1319. * src/ConsoleStatCalc.cc
  1320. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. * Release 1.1.0
  1322. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1323. Added ifdef clause for conditional compilation.
  1324. * src/main.cc
  1325. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1326. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1327. translations. Thanks to all translators.
  1328. * po/ja.po
  1329. * po/ru.po
  1330. * po/uk.po
  1331. * po/zh_CN.po
  1332. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Added the preceding ">>> " before the message "Printing the
  1334. contents of file..." to make the output more readable.
  1335. * src/main.cc
  1336. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Added try-catch block in the loop in showFiles() to continue the
  1338. operation even if the exception occurred in one file.
  1339. * src/main.cc (showFiles)
  1340. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Made messages in showFiles() translatable.
  1342. * po/aria2.pot
  1343. * src/main.cc
  1344. * src/message.h
  1345. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Print the contents of Torrent/Metalink files are printed without
  1347. -T/-M options.
  1348. * src/main.cc
  1349. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Escaped '--' with '\--'
  1351. * README
  1352. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Updated "How to build" section in README. Mentioned about
  1354. --with-ca-bundle compile option.
  1355. * README
  1356. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Bump up version number to 1.1.0.
  1358. * configure.ac
  1359. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Added a note for --dht-listen-port option.
  1361. * doc/aria2c.1.txt
  1362. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Update doc for --realtime-chunk-checksum option.
  1364. * doc/aria2c.1.txt
  1365. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Update doc for --realtime-chunk-checksum option.
  1367. * src/usage_text.h
  1368. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Updated French, Japanese, Russian and Ukrainian translations.
  1370. Thanks to all translators.
  1371. * po/fr.po
  1372. * po/ja.po
  1373. * po/ru.po
  1374. * po/uk.po
  1375. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Renamed aria2c.pot to aria2.pot
  1377. * po/aria2.pot
  1378. * po/aria2c.pot: Removed.
  1379. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Removed MetaEntry.h
  1381. * src/Makefile.am
  1382. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Rename file by appending digits if a local file exists and its
  1384. file size is larger than that of remote file with --continue
  1385. option. The old implementation just throws exception in such case.
  1386. * src/RequestGroup.cc
  1387. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Fixed the bug that download progress summary is not printed in the
  1389. interval specified by the option.
  1390. * src/ConsoleStatCalc.cc
  1391. * src/ConsoleStatCalc.h
  1392. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Fixed compiler warning
  1394. * src/Cookie.cc
  1395. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Fixed the cookie implementation based on RFC2965.
  1397. Now if a value in domain field is not started with dot, then
  1398. prepend dot. That means a cookie with domain=sf.net is sent to
  1399. wiki.sf.net.
  1400. * src/Cookie.cc
  1401. * test/CookieParserTest.cc
  1402. * test/CookieStorageTest.cc
  1403. * test/CookieTest.cc
  1404. * test/NsCookieParserTest.cc
  1405. * test/Sqlite3MozCookieParserTest.cc
  1406. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1408. is enabled and the server doesn't support keep-alive.
  1409. * src/AbstractCommand.cc
  1410. * src/DownloadCommand.cc
  1411. * src/HttpDownloadCommand.cc
  1412. * src/HttpDownloadCommand.h
  1413. * src/HttpResponseCommand.cc
  1414. * src/Request.cc
  1415. * src/Request.h
  1416. * test/RequestTest.cc
  1417. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Removed Dictionary/List/Data and its related classes.
  1419. * src/BencodeVisitor.cc: Removed.
  1420. * src/BencodeVisitor.h: Removed.
  1421. * src/Data.cc: Removed.
  1422. * src/Data.h: Removed.
  1423. * src/Dictionary.cc: Removed.
  1424. * src/Dictionary.h: Removed.
  1425. * src/List.cc: Removed.
  1426. * src/List.h: Removed.
  1427. * src/Makefile.am
  1428. * src/MetaEntry.h: Removed.
  1429. * src/MetaEntryVisitor.h: Removed.
  1430. * src/MetaFileUtil.cc: Removed.
  1431. * src/MetaFileUtil.h: Removed.
  1432. * test/BencodeVisitorTest.cc: Removed.
  1433. * test/DataTest.cc: Removed.
  1434. * test/DictionaryTest.cc: Removed.
  1435. * test/ListTest.cc: Removed.
  1436. * test/Makefile.am
  1437. * test/MetaFileUtilTest.cc: Removed.
  1438. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Removed include of MetaEntry.h
  1440. * test/DHTMessageTrackerEntryTest.cc
  1441. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Use BDE instead of Dictionary/List/Data.
  1443. * src/AnnounceList.cc
  1444. * src/AnnounceList.h
  1445. * test/AnnounceListTest.cc
  1446. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Use BDE instead of Dictionary/List/Data.
  1448. * src/DHTAbstractMessage.cc
  1449. * src/DHTAbstractMessage.h
  1450. * src/DHTAnnouncePeerMessage.cc
  1451. * src/DHTAnnouncePeerMessage.h
  1452. * src/DHTAnnouncePeerReplyMessage.cc
  1453. * src/DHTAnnouncePeerReplyMessage.h
  1454. * src/DHTFindNodeMessage.cc
  1455. * src/DHTFindNodeMessage.h
  1456. * src/DHTFindNodeReplyMessage.cc
  1457. * src/DHTFindNodeReplyMessage.h
  1458. * src/DHTGetPeersMessage.cc
  1459. * src/DHTGetPeersMessage.h
  1460. * src/DHTGetPeersReplyMessage.cc
  1461. * src/DHTGetPeersReplyMessage.h
  1462. * src/DHTMessageFactory.h
  1463. * src/DHTMessageFactoryImpl.cc
  1464. * src/DHTMessageFactoryImpl.h
  1465. * src/DHTMessageReceiver.cc
  1466. * src/DHTMessageTracker.cc
  1467. * src/DHTMessageTracker.h
  1468. * src/DHTPingMessage.cc
  1469. * src/DHTPingMessage.h
  1470. * src/DHTPingReplyMessage.cc
  1471. * src/DHTPingReplyMessage.h
  1472. * src/DHTQueryMessage.cc
  1473. * src/DHTQueryMessage.h
  1474. * src/DHTResponseMessage.cc
  1475. * src/DHTResponseMessage.h
  1476. * test/DHTAnnouncePeerMessageTest.cc
  1477. * test/DHTAnnouncePeerReplyMessageTest.cc
  1478. * test/DHTFindNodeMessageTest.cc
  1479. * test/DHTFindNodeReplyMessageTest.cc
  1480. * test/DHTGetPeersMessageTest.cc
  1481. * test/DHTGetPeersReplyMessageTest.cc
  1482. * test/DHTMessageFactoryImplTest.cc
  1483. * test/DHTMessageTrackerTest.cc
  1484. * test/DHTPingMessageTest.cc
  1485. * test/DHTPingReplyMessageTest.cc
  1486. * test/MockDHTMessageFactory.h
  1487. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Added tests the case where length < 0 is specified.
  1489. * test/BencodeTest.cc
  1490. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Fixed memory leak in decoderawstring()
  1492. * src/bencode.cc
  1493. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Added missing #ifdef guard. Added uc() function for String and
  1495. removeKey() for Dict.
  1496. * src/bencode.cc
  1497. * src/bencode.h
  1498. * test/BencodeTest.cc
  1499. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Use BDE instead of Dictionary/List/Data.
  1501. * src/HandshakeExtensionMessage.cc
  1502. * src/HandshakeExtensionMessage.h
  1503. * test/HandshakeExtensionMessageTest.cc
  1504. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Added --max-overall-upload-limit option. This option limits the
  1506. overall upload speed. Stated in help message that the existing
  1507. --max-upload-limit option limits the upload speed per each
  1508. torrent. Man page is also updated.
  1509. * doc/aria2c.1.txt
  1510. * src/DefaultBtMessageDispatcher.cc
  1511. * src/DefaultBtMessageDispatcher.h
  1512. * src/OptionHandlerFactory.cc
  1513. * src/PeerInteractionCommand.cc
  1514. * src/option_processing.cc
  1515. * src/prefs.cc
  1516. * src/prefs.h
  1517. * src/usage_text.h
  1518. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Use BDE instead of Dictionary/List/Data classes.
  1520. * src/CompactPeerListProcessor.cc
  1521. * src/CompactPeerListProcessor.h
  1522. * src/DefaultBtAnnounce.cc
  1523. * src/DefaultBtContext.cc
  1524. * src/DefaultBtContext.h
  1525. * src/DefaultPeerListProcessor.cc
  1526. * src/DefaultPeerListProcessor.h
  1527. * src/DelegatingPeerListProcessor.cc
  1528. * src/DelegatingPeerListProcessor.h
  1529. * src/PeerListProcessor.h
  1530. * src/UTPexExtensionMessage.cc
  1531. * src/Util.h
  1532. * src/message.h
  1533. * test/DefaultBtContextTest.cc
  1534. * test/DefaultPeerListProcessorTest.cc
  1535. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Added bencode helper functions and BDE class.
  1537. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1538. * src/Makefile.am
  1539. * src/bencode.cc
  1540. * src/bencode.h
  1541. * test/BencodeTest.cc
  1542. * test/Makefile.am
  1543. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Fixed the bug that bad URI is sent to the tracker when the announe
  1545. URI in torrent file includes query.
  1546. * src/DefaultBtAnnounce.cc
  1547. * test/DefaultBtAnnounceTest.cc
  1548. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Added Option::blank().
  1550. Use !Option::blank(name) instead of Option::defined(name) for
  1551. the options that take filename.
  1552. * src/MultiUrlRequestInfo.cc
  1553. * src/Option.cc
  1554. * src/Option.h
  1555. * src/main.cc
  1556. * src/option_processing.cc
  1557. * test/OptionTest.cc
  1558. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Documented the default value of --check-certificate option in man
  1560. page.
  1561. * doc/aria2c.1.txt
  1562. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Enabled --check-certificate by default. Added compile
  1564. time(configure) option --with-ca-bundle to specify CA bundle.
  1565. Warn if --check-certificate=true and --ca-certificate is not
  1566. specified or loading CA certificate is failed.
  1567. * configure.ac
  1568. * src/MultiUrlRequestInfo.cc
  1569. * src/OptionHandlerFactory.cc
  1570. * src/message.h
  1571. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Mentioned https tag in help option.
  1573. * doc/aria2c.1.txt
  1574. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Added `https' tag to help option category. Added https tag to
  1576. --ca-certificate, --certificate, --check-certificate and
  1577. --private-key option.
  1578. * src/OptionHandlerFactory.cc
  1579. * src/help_tags.h
  1580. * src/option_processing.cc
  1581. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Changed the package name from `aria2c' to `aria2' in order to fix
  1583. the packaging issue in Debian and Fedora. The name of the
  1584. executable is not changed.
  1585. * configure.ac
  1586. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Fixed typos
  1588. * src/usage_text.h
  1589. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Fixed typos and updated doc.
  1591. * README
  1592. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Fixed typos
  1594. * doc/aria2c.1.txt
  1595. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Fixed typos
  1597. * src/usage_text.h
  1598. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Print a message when no files to download.
  1600. * src/download_helper.cc
  1601. * src/main.cc
  1602. * src/message.h
  1603. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. RFC3986 complied Percent-Encoding(urlencode).
  1605. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1606. ones.
  1607. * src/Request.cc
  1608. * src/Util.cc
  1609. * src/Util.h
  1610. * test/BtHandshakeMessageTest.cc
  1611. * test/DefaultBtAnnounceTest.cc
  1612. * test/DefaultBtContextTest.cc
  1613. * test/RequestTest.cc
  1614. * test/UtilTest.cc
  1615. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Fixed the bug that prevents aria2 from downloading 0-length files
  1617. via HTTP/FTP.
  1618. * src/DefaultBtContext.cc
  1619. * src/DefaultBtContext.h
  1620. * src/DownloadContext.h
  1621. * src/FtpNegotiationCommand.cc
  1622. * src/HttpResponseCommand.cc
  1623. * src/HttpResponseCommand.h
  1624. * src/RequestGroup.cc
  1625. * src/SingleFileDownloadContext.cc
  1626. * src/SingleFileDownloadContext.h
  1627. * test/BtPostDownloadHandlerTest.cc
  1628. * test/MetalinkPostDownloadHandlerTest.cc
  1629. * test/MockBtContext.h
  1630. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1632. * src/option_processing.cc
  1633. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Applied aria2-1.0.1-mingw.patch.
  1635. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1636. mingw.
  1637. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1638. * src/SocketCore.cc
  1639. * src/a2netcompat.h
  1640. * test/SocketCoreTest.cc
  1641. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. * Release 1.0.1
  1643. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Updated Ukrainian and Norwegian Nynorsk translations.
  1645. Thanks to all translators.
  1646. * po/nn.po
  1647. * po/uk.po
  1648. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Don't show download result when -S option is used.
  1650. * src/main.cc
  1651. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Bump up version number to 1.0.1
  1653. * configure.ac
  1654. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Closed files after the test cases in MultiDiskWriterTest::
  1656. testResetDiskWriterEntries(). This will fix the unit test error
  1657. in mingw32 build.
  1658. * test/MultiDiskWriterTest.cc
  1659. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Use HEAD method to get file size from HTTP server for segmented
  1661. downloading.
  1662. The request to the BitTorrent Tracker always uses GET method because
  1663. the response of the tracker is small and it doesn't need segmented
  1664. download.
  1665. * src/FtpNegotiationCommand.cc
  1666. * src/HttpRequest.cc
  1667. * src/HttpResponseCommand.cc
  1668. * src/HttpSkipResponseCommand.cc
  1669. * src/RequestGroup.cc
  1670. * src/RequestGroup.h
  1671. * src/TrackerWatcherCommand.cc
  1672. * test/HttpRequestTest.cc
  1673. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Fixed the bug that causes floating exception when -T option is used and
  1675. no URIs are given.
  1676. * src/download_helper.cc
  1677. * test/DownloadHelperTest.cc
  1678. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1679. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1680. errors in MinGW:
  1681. Closed file after saving server stats (RequestGroupMan.cc)
  1682. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1683. Ignored case & handled 2-digit years (strptime.c)
  1684. Added missing suseconds_t definition (a2time.h)
  1685. Fixed socket CLOSE() define (SocketCore.cc)
  1686. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1687. Changed utime() test values from x000 to x00000 as MinGW failed on
  1688. values less than timezone offset from Unix epoch
  1689. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1690. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1691. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1692. handle negative dates (CookieParserTest.cc)
  1693. * src/a2time.h
  1694. * src/FtpConnection.cc
  1695. * src/RequestGroupMan.cc
  1696. * src/SocketCore.cc
  1697. * src/strptime.c
  1698. * test/CookieParserTest.cc
  1699. * test/CopyDiskAdaptorTest.cc
  1700. * test/FileTest.cc
  1701. * test/FtpConnectionTest.cc
  1702. * test/MultiDiskAdaptorTest.cc
  1703. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1705. * doc/aria2c.1.txt
  1706. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. * Release 1.0.0
  1708. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Added '~' to reserved characters.
  1710. * src/Util.cc
  1711. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Do not urlencode Request::url in setUrl() because we want unmodified
  1713. URL using Request::getUrl()
  1714. * src/Request.cc
  1715. * src/Request.h
  1716. * test/RequestTest.cc
  1717. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1719. Thanks to all translators.
  1720. * po/bg.po
  1721. * po/fr.po
  1722. * po/ja.po
  1723. * po/ru.po
  1724. * po/uk.po
  1725. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1726. Bump up version number to 1.0.0
  1727. * configure.ac
  1728. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Added nosqlite3 build to build_test.sh.
  1730. Renamed noxml as expat.
  1731. * build_test.sh
  1732. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Updated INPUT FILE section.
  1734. * doc/aria2c.1.txt
  1735. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1737. on big endian systems because test .aria2 files are made for little
  1738. endian systems.
  1739. * test/DefaultBtProgressInfoFileTest.cc
  1740. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Dropped ares support.
  1742. * README
  1743. * configure.ac
  1744. * m4/libares.m4: Removed.
  1745. * src/AsyncNameResolver.cc
  1746. * src/Makefile.am
  1747. * test/Makefile.am
  1748. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1749. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1750. Removed const qualifier from DiskWriter::size().
  1751. * src/AbstractDiskWriter.cc
  1752. * src/AbstractDiskWriter.h
  1753. * src/ByteArrayDiskWriter.cc
  1754. * src/ByteArrayDiskWriter.h
  1755. * src/DiskWriter.h
  1756. * test/ByteArrayDiskWriterTest.cc
  1757. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Fixed the bug that causes segmentation fault/bus error during executing
  1759. choking algorithm while seeding. This is caused by improper
  1760. implementation of compare function which returns inconsistent results
  1761. depending on the timing of last unchoke.
  1762. * src/BtSeederStateChoke.cc
  1763. * src/BtSeederStateChoke.h
  1764. * src/DefaultPeerStorage.cc
  1765. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Removed TODO
  1767. * TODO
  1768. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Added a section that explains how to pass argument to options that
  1770. takes optional arguments with its short form.
  1771. * doc/aria2c.1.txt
  1772. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Added -u for the short form of --max-upload-limit option.
  1774. * doc/aria2c.1.txt
  1775. * src/option_processing.cc
  1776. * src/usage_text.h
  1777. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Added -V for the short form of --check-integrity option.
  1779. Now the argument of --check-integrity option is optional:
  1780. if it is omitted, it is evaluated as true.
  1781. * doc/aria2c.1.txt
  1782. * src/option_processing.cc
  1783. * src/usage_text.h
  1784. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Made the default value of --ftp-pasv option set to true and it can take
  1786. true/false values.
  1787. * src/OptionHandlerFactory.cc
  1788. * src/option_processing.cc
  1789. * src/usage_text.h
  1790. * doc/aria2c.1.txt
  1791. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Given custom random number generator to std::random_shuffle.
  1793. * src/AnnounceList.cc
  1794. * src/BtLeecherStateChoke.cc
  1795. * src/BtSeederStateChoke.cc
  1796. * src/DefaultBtRequestFactory.cc
  1797. * src/MetalinkEntry.cc
  1798. * src/RarestPieceSelector.cc
  1799. * src/SimpleRandomizer.cc
  1800. * src/SimpleRandomizer.h
  1801. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Now the default value of --enable-direct-io is true.
  1803. * src/OptionHandlerFactory.cc
  1804. * doc/aria2c.1.txt
  1805. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Erase peer before executing onReturningPeer and onErasingPeer
  1807. because choking algorithm called from onReturningPeer doesn't
  1808. like erasing peer in the active peer list.
  1809. * src/DefaultPeerStorage.cc
  1810. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Instead of creating special filename in createDownloadResult() if
  1812. inMemoryDownload() is true, now it is done in getFilePath().
  1813. * src/RequestGroup.cc
  1814. * test/RequestGroupTest.cc
  1815. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1817. processed in memory. This is the fix for previous comment out.
  1818. * src/MemoryBufferPreDownloadHandler.cc
  1819. * src/RequestGroup.cc
  1820. * src/RequestGroup.h
  1821. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Commented out the code which sets virtual directory path "[MEMORY]"
  1823. propagate directory to store to following RequestGroup.
  1824. * src/MemoryBufferPreDownloadHandler.cc
  1825. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Bump up version number to 1.0.0b
  1827. * configure.ac
  1828. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Added input_uris.txt to EXTRA_DIST
  1830. * test/Makefile.am
  1831. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Removed PeerObject.h from Makefile.am
  1833. * src/Makefile.am
  1834. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Avoid slow seeding
  1836. * src/PeerInteractionCommand.cc
  1837. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Updated usage for -i option.
  1839. * src/usage_text.h (TEXT_INPUT_FILE)
  1840. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Added INPUT FILE section to man page.
  1842. Escaped fake URLs.
  1843. * doc/aria2c.1.txt
  1844. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Fixed wrong note position for -o option.
  1846. * doc/aria2c.1.txt
  1847. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Fixed compile error without SSL/XML library.
  1849. * src/DefaultBtProgressInfoFile.cc
  1850. * src/DefaultBtProgressInfoFile.h
  1851. * src/FileMetalinkParserState.cc
  1852. * src/RequestGroup.h
  1853. * src/SocketCore.cc
  1854. * src/SocketCore.h
  1855. * src/VerificationMetalinkParserState.cc
  1856. * src/download_helper.h
  1857. * src/main.cc
  1858. * test/DefaultBtProgressInfoFileTest.cc
  1859. * test/DownloadHelperTest.cc
  1860. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Rewritten URI handling functions. They are now provided as a testable
  1862. functions.
  1863. * src/Makefile.am
  1864. * src/RequestGroup.cc
  1865. * src/RequestGroup.h
  1866. * src/download_helper.cc
  1867. * src/download_helper.h
  1868. * src/main.cc
  1869. * test/DownloadHelperTest.cc
  1870. * test/Makefile.am
  1871. * test/input_uris.txt
  1872. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Quickly terminate commands when ctrl-c is pressed.
  1874. * src/DownloadEngine.cc
  1875. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Quickly terminate idle commands when download finished.
  1877. * src/AbstractCommand.cc
  1878. * src/DownloadCommand.cc
  1879. * src/DownloadEngine.cc
  1880. * src/DownloadEngine.h
  1881. * src/SleepCommand.cc
  1882. * src/SleepCommand.h
  1883. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Added the ability to specify output filename and directory in input
  1885. file.
  1886. Additional parameters are added in the following line of URIs
  1887. with proceeding white space(s), 1 parameter in 1 line.
  1888. The parameter names are the same with the command-line option name
  1889. without proceeding "--". Not all the options are available here:
  1890. at the moment, 'dir' and 'out' options are avialable.
  1891. Please note that out option has no effect against Metalink or BitTorrent
  1892. downloads.
  1893. Example input file:
  1894. http://host/foo-1.1.tar.bz2
  1895. out=foo.tar.bz2
  1896. dir=/tmp/downloads
  1897. http://host/thundermonkey-2.0.tar.bz2
  1898. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1899. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1900. thundermonkey-2.0.tar.bz2 is saved as
  1901. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1902. * src/BtPostDownloadHandler.cc
  1903. * src/Metalink2RequestGroup.cc
  1904. * src/Metalink2RequestGroup.h
  1905. * src/MetalinkPostDownloadHandler.cc
  1906. * src/UriListParser.cc
  1907. * src/UriListParser.h
  1908. * src/main.cc
  1909. * test/Metalink2RequestGroupTest.cc
  1910. * test/UriListParserTest.cc
  1911. * test/filelist1.txt
  1912. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Fixed error when SSL library is not found.
  1914. * configure.ac
  1915. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Cross referenced among -s, -C and -j options.
  1917. Updated usage of -C and -s options.
  1918. * src/usage_text.h
  1919. * doc/aria2c.1.txt
  1920. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Fixed bad cast in 32bit platforms.
  1922. * test/DefaultPieceStorageTest.cc
  1923. (DefaultPieceStorageTest::testGetCompletedLength)
  1924. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Fixed unit test fails on 32bit platforms.
  1926. * test/CookieParserTest.cc
  1927. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. Show an average download speed in Download results.
  1929. * src/BtFileAllocationEntry.cc
  1930. * src/DefaultPieceStorage.cc
  1931. * src/DownloadContext.cc
  1932. * src/DownloadContext.h
  1933. * src/DownloadResult.h
  1934. * src/RequestGroup.cc
  1935. * src/RequestGroupMan.cc
  1936. * src/StreamFileAllocationEntry.cc
  1937. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Fixed the bug that metalink file is not processed if Content-Type
  1939. field has a paramter.
  1940. * src/HttpResponse.cc
  1941. * src/HttpResponse.h
  1942. * test/HttpResponseTest.cc
  1943. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Removed unused code.
  1945. * src/DefaultBtAnnounce.cc
  1946. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1948. the value larger than DefaultPieceStorage::getTotalLength() when
  1949. in flight pieces are involved.
  1950. * src/DefaultPieceStorage.cc
  1951. * test/DefaultPieceStorageTest.cc
  1952. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Bump up version number to 1.0.0a.
  1954. * configure.ac
  1955. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Updated configure.ac
  1957. * configure.ac
  1958. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Added usege for proxy.
  1960. * doc/aria2c.1.txt
  1961. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Added usage for --ca-certificate, --certificate, --private-key and
  1963. --check-certificate options.
  1964. * doc/aria2c.1.txt
  1965. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. Updated man page
  1967. * doc/aria2c.1.txt
  1968. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Added --no-proxy option. It receives comman separated hostname or
  1970. domains to which proxy should not be used.
  1971. aria2 honors the environment variable no_proxy to override no-proxy
  1972. value in configuration file. The user can override the environment
  1973. variable no_proxy with --no-proxy command-line option.
  1974. * src/AbstractCommand.cc
  1975. * src/OptionHandlerFactory.cc
  1976. * src/option_processing.cc
  1977. * src/prefs.cc
  1978. * src/prefs.h
  1979. * src/usage_text.h
  1980. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1982. The CA certificates are specified in --ca-certificate option.
  1983. By default, the verification is disabled. Use --check-certificate
  1984. option to enable it.
  1985. * src/HttpRequestCommand.cc
  1986. * src/LibgnutlsTLSContext.cc
  1987. * src/LibgnutlsTLSContext.h
  1988. * src/LibsslTLSContext.cc
  1989. * src/LibsslTLSContext.h
  1990. * src/MultiUrlRequestInfo.cc
  1991. * src/OptionHandlerFactory.cc
  1992. * src/SocketCore.cc
  1993. * src/SocketCore.h
  1994. * src/a2functional.h
  1995. * src/message.h
  1996. * src/option_processing.cc
  1997. * src/prefs.cc
  1998. * src/prefs.h
  1999. * src/usage_text.h
  2000. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Added client certificate authentication for SSL/TLS.
  2002. Currently a private key must be decrypted for use with aria2.
  2003. If a user accidentally gives encrypted file to aria2 then following
  2004. thing happens:
  2005. If encrypted private key is given to aria2, it behaves differently
  2006. depending on the ssl library it uses. If aria2 built with openssl then
  2007. openssl prompts the user for password. If aria2 build with gnutls then
  2008. aria2 exists with error at start up.
  2009. * src/DownloadEngineFactory.cc
  2010. * src/MultiUrlRequestInfo.cc
  2011. * src/OptionHandlerFactory.cc
  2012. * src/option_processing.cc
  2013. * src/prefs.cc
  2014. * src/prefs.h
  2015. * src/usage_text.h
  2016. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Introduced TLSContext that holds TLS related data that can be shared
  2018. with multiple SSL connections.
  2019. * src/DownloadEngineFactory.cc
  2020. * src/LibgnutlsTLSContext.cc
  2021. * src/LibgnutlsTLSContext.h
  2022. * src/LibsslTLSContext.cc
  2023. * src/LibsslTLSContext.h
  2024. * src/Makefile.am
  2025. * src/SocketCore.cc
  2026. * src/SocketCore.h
  2027. * src/TLSContext.h
  2028. * src/message.h
  2029. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Fixed the bug that the DiskWriter of the first FileEntry whose
  2031. `needsFileAllocation' property is false is not created
  2032. even if it shares a piece with next FileEntry which `requested' property
  2033. is true.
  2034. Fixed the bug that zero-length file is not created if pre file
  2035. allocation is not done.
  2036. * src/MultiDiskAdaptor.cc
  2037. * src/MultiDiskAdaptor.h
  2038. * test/MultiDiskAdaptorTest.cc
  2039. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2040. Added the ability to pool proxy connection.
  2041. The conneciton in FTP with proxy-method=GET is not pooled.
  2042. Proxy-Connection header will not be sent when sending CONNECT method.
  2043. * src/DownloadEngine.cc
  2044. * src/DownloadEngine.h
  2045. * src/FtpFinishDownloadCommand.cc
  2046. * src/FtpInitiateConnectionCommand.cc
  2047. * src/FtpNegotiationCommand.cc
  2048. * src/HttpDownloadCommand.cc
  2049. * src/HttpInitiateConnectionCommand.cc
  2050. * src/HttpRequest.cc
  2051. * src/HttpRequest.h
  2052. * src/HttpResponse.cc
  2053. * src/HttpSkipResponseCommand.cc
  2054. * test/HttpRequestTest.cc
  2055. * test/HttpResponseTest.cc
  2056. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2057. Handle date before epoch.
  2058. To create *bad* Time object, call Time::null().
  2059. * src/CookieParser.cc
  2060. * src/FtpConnection.cc
  2061. * src/FtpConnection.h
  2062. * src/FtpNegotiationCommand.cc
  2063. * src/RequestGroup.cc
  2064. * src/TimeA2.cc
  2065. * src/TimeA2.h
  2066. * test/CookieParserTest.cc
  2067. * test/FtpConnectionTest.cc
  2068. * test/TimeTest.cc
  2069. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2070. Added support for following envrionment variables: http_proxy,
  2071. https_proxy, ftp_proxy and all_proxy.
  2072. Each variable is equivalent to the aria2 option whose name is the
  2073. variable name with '_' replaced with '-'.
  2074. They overrides options specified in aria2.conf file.
  2075. The envrionment variables can be overrode using command-line option.
  2076. * src/option_processing.cc
  2077. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2078. Renamed --http-proxy-method as --proxy-method.
  2079. * src/AbstractCommand.cc
  2080. * src/FtpInitiateConnectionCommand.cc
  2081. * src/HttpInitiateConnectionCommand.cc
  2082. * src/OptionHandlerFactory.cc
  2083. * src/option_processing.cc
  2084. * src/prefs.cc
  2085. * src/prefs.h
  2086. * src/usage_text.h
  2087. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2088. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2089. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2090. Above 3 options and --http-proxy option can handle proxy in URL format
  2091. like: http://user:passwd@host:port.
  2092. If a proxy requires user/password, they must be specified in a URL.
  2093. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2094. instead.
  2095. * src/AbstractCommand.cc
  2096. * src/AbstractCommand.h
  2097. * src/AbstractProxyRequestCommand.cc
  2098. * src/AbstractProxyRequestCommand.h
  2099. * src/AuthConfigFactory.cc
  2100. * src/AuthConfigFactory.h
  2101. * src/FtpFinishDownloadCommand.cc
  2102. * src/FtpInitiateConnectionCommand.cc
  2103. * src/FtpInitiateConnectionCommand.h
  2104. * src/FtpNegotiationCommand.cc
  2105. * src/FtpTunnelRequestCommand.cc
  2106. * src/FtpTunnelRequestCommand.h
  2107. * src/HttpDownloadCommand.cc
  2108. * src/HttpInitiateConnectionCommand.cc
  2109. * src/HttpInitiateConnectionCommand.h
  2110. * src/HttpProxyRequestCommand.cc
  2111. * src/HttpProxyRequestCommand.h
  2112. * src/HttpRequest.cc
  2113. * src/HttpRequest.h
  2114. * src/HttpRequestCommand.cc
  2115. * src/HttpRequestCommand.h
  2116. * src/HttpSkipResponseCommand.cc
  2117. * src/InitiateConnectionCommand.cc
  2118. * src/InitiateConnectionCommand.h
  2119. * src/OptionHandlerFactory.cc
  2120. * src/OptionHandlerImpl.h
  2121. * src/Request.cc
  2122. * src/option_processing.cc
  2123. * src/prefs.cc
  2124. * src/prefs.h
  2125. * src/usage_text.h
  2126. * test/AuthConfigFactoryTest.cc
  2127. * test/HttpRequestTest.cc
  2128. * test/OptionHandlerTest.cc
  2129. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2130. Execute choking algorithm when unchoked and interested peer is
  2131. disconected.
  2132. * src/DefaultPeerStorage.cc
  2133. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2134. Added testcase for BtNotInterestedMessage from unchoked peer.
  2135. * test/BtNotInterestedMessageTest.cc
  2136. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2137. Execute choking algorithm when BtInterestedMessage arrives from
  2138. unchoked peer.
  2139. * src/BtInterestedMessage.cc
  2140. * src/BtInterestedMessage.h
  2141. * src/DefaultBtMessageFactory.cc
  2142. * test/BtInterestedMessageTest.cc
  2143. * test/MockPeerStorage.h
  2144. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2145. AuthConfigFactory is now part of DownloadEngine.
  2146. * src/AbstractProxyRequestCommand.cc
  2147. * src/AuthConfigFactory.h
  2148. * src/DownloadEngine.cc
  2149. * src/DownloadEngine.h
  2150. * src/FtpConnection.cc
  2151. * src/FtpConnection.h
  2152. * src/FtpNegotiationCommand.cc
  2153. * src/HttpConnection.cc
  2154. * src/HttpRequest.cc
  2155. * src/HttpRequest.h
  2156. * src/HttpRequestCommand.cc
  2157. * src/HttpResponse.cc
  2158. * src/HttpResponseCommand.cc
  2159. * src/HttpSkipResponseCommand.cc
  2160. * src/MultiUrlRequestInfo.cc
  2161. * src/main.cc
  2162. * test/FtpConnectionTest.cc
  2163. * test/HttpRequestTest.cc
  2164. * test/HttpResponseTest.cc
  2165. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2166. Corrected catched exception type.
  2167. * src/ServerStatMan.cc
  2168. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2169. DNSCache is now part of DownloadEngine.
  2170. * src/DNSCache.h
  2171. * src/DownloadEngine.cc
  2172. * src/DownloadEngine.h
  2173. * src/InitiateConnectionCommand.cc
  2174. * src/MultiUrlRequestInfo.cc
  2175. * test/Makefile.am
  2176. * test/Makefile.in
  2177. * test/SimpleDNSCacheTest.cc
  2178. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2179. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2180. DownloadEngine.
  2181. * src/ActivePeerConnectionCommand.cc
  2182. * src/BtSetup.cc
  2183. * src/CUIDCounter.h
  2184. * src/DHTSetup.cc
  2185. * src/DownloadCommand.cc
  2186. * src/DownloadEngine.cc
  2187. * src/DownloadEngine.h
  2188. * src/DownloadEngineFactory.cc
  2189. * src/FileAllocationDispatcherCommand.cc
  2190. * src/InitiatorMSEHandshakeCommand.cc
  2191. * src/PeerInitiateConnectionCommand.cc
  2192. * src/PeerInteractionCommand.cc
  2193. * src/PeerListenCommand.cc
  2194. * src/RequestGroup.cc
  2195. * src/StreamFileAllocationEntry.cc
  2196. * src/TrackerWatcherCommand.cc
  2197. * src/main.cc
  2198. * test/RequestGroupManTest.cc
  2199. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2200. Implemented commented code in BtSeederStateChoke
  2201. * src/BtSeederStateChoke.cc
  2202. * src/Peer.cc
  2203. * src/Peer.h
  2204. * src/PeerInteractionCommand.cc
  2205. * src/PeerSessionResource.cc
  2206. * src/PeerSessionResource.h
  2207. * test/MockBtMessageDispatcher.h
  2208. * test/PeerSessionResourceTest.cc
  2209. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2210. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2211. its object.
  2212. * src/AbstractBtMessage.cc
  2213. * src/ActivePeerConnectionCommand.cc
  2214. * src/ActivePeerConnectionCommand.h
  2215. * src/BtContextAwareCommand.cc
  2216. * src/BtContextAwareCommand.h
  2217. * src/BtExtendedMessage.cc
  2218. * src/BtExtendedMessage.h
  2219. * src/BtInterestedMessage.cc
  2220. * src/BtInterestedMessage.h
  2221. * src/BtNotInterestedMessage.cc
  2222. * src/BtNotInterestedMessage.h
  2223. * src/BtRegistry.cc
  2224. * src/BtRegistry.h
  2225. * src/BtSeederStateChoke.cc
  2226. * src/BtSetup.cc
  2227. * src/DHTGetPeersCommand.cc
  2228. * src/DHTGetPeersCommand.h
  2229. * src/DHTPeerAnnounceEntry.cc
  2230. * src/DHTPeerAnnounceEntry.h
  2231. * src/DHTPeerAnnounceStorage.cc
  2232. * src/DHTPeerAnnounceStorage.h
  2233. * src/DHTPeerLookupTask.cc
  2234. * src/DHTPeerLookupTask.h
  2235. * src/DHTSetup.cc
  2236. * src/DHTSetup.h
  2237. * src/DHTTaskFactory.h
  2238. * src/DHTTaskFactoryImpl.cc
  2239. * src/DHTTaskFactoryImpl.h
  2240. * src/DefaultBtAnnounce.cc
  2241. * src/DefaultBtInteractive.cc
  2242. * src/DefaultBtInteractive.h
  2243. * src/DefaultBtMessageDispatcher.cc
  2244. * src/DefaultBtMessageDispatcher.h
  2245. * src/DefaultBtMessageFactory.cc
  2246. * src/DefaultBtMessageFactory.h
  2247. * src/DefaultBtMessageReceiver.cc
  2248. * src/DefaultBtProgressInfoFile.cc
  2249. * src/DefaultBtProgressInfoFile.h
  2250. * src/DefaultBtRequestFactory.cc
  2251. * src/DefaultBtRequestFactory.h
  2252. * src/DefaultExtensionMessageFactory.cc
  2253. * src/DefaultExtensionMessageFactory.h
  2254. * src/DefaultPeerStorage.cc
  2255. * src/DefaultPeerStorage.h
  2256. * src/DownloadEngine.cc
  2257. * src/DownloadEngine.h
  2258. * src/InitiatorMSEHandshakeCommand.cc
  2259. * src/InitiatorMSEHandshakeCommand.h
  2260. * src/MSEHandshake.cc
  2261. * src/MSEHandshake.h
  2262. * src/Makefile.am
  2263. * src/Makefile.in
  2264. * src/PeerChokeCommand.cc
  2265. * src/PeerChokeCommand.h
  2266. * src/PeerInitiateConnectionCommand.cc
  2267. * src/PeerInitiateConnectionCommand.h
  2268. * src/PeerInteractionCommand.cc
  2269. * src/PeerInteractionCommand.h
  2270. * src/PeerObject.h
  2271. * src/PeerReceiveHandshakeCommand.cc
  2272. * src/PeerReceiveHandshakeCommand.h
  2273. * src/ReceiverMSEHandshakeCommand.cc
  2274. * src/RequestGroup.cc
  2275. * src/RequestGroup.h
  2276. * src/RequestGroupMan.cc
  2277. * src/RequestGroupMan.h
  2278. * src/SeedCheckCommand.cc
  2279. * src/SeedCheckCommand.h
  2280. * src/ShareRatioSeedCriteria.h
  2281. * src/SimpleBtMessage.cc
  2282. * src/TrackerWatcherCommand.cc
  2283. * src/TrackerWatcherCommand.h
  2284. * src/UTPexExtensionMessage.cc
  2285. * src/UTPexExtensionMessage.h
  2286. * test/BtCancelMessageTest.cc
  2287. * test/BtChokeMessageTest.cc
  2288. * test/BtExtendedMessageTest.cc
  2289. * test/BtInterestedMessageTest.cc
  2290. * test/BtNotInterestedMessageTest.cc
  2291. * test/BtPieceMessageTest.cc
  2292. * test/BtPortMessageTest.cc
  2293. * test/BtRegistryTest.cc
  2294. * test/BtRejectMessageTest.cc
  2295. * test/BtRequestMessageTest.cc
  2296. * test/DHTPeerAnnounceEntryTest.cc
  2297. * test/DHTPeerAnnounceStorageTest.cc
  2298. * test/DefaultBtMessageDispatcherTest.cc
  2299. * test/DefaultBtMessageFactoryTest.cc
  2300. * test/DefaultBtProgressInfoFileTest.cc
  2301. * test/DefaultBtRequestFactoryTest.cc
  2302. * test/DefaultExtensionMessageFactoryTest.cc
  2303. * test/MSEHandshakeTest.cc
  2304. * test/MockDHTTaskFactory.h
  2305. * test/ShareRatioSeedCriteriaTest.cc
  2306. * test/UTPexExtensionMessageTest.cc
  2307. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2308. Fixed compiler warning.
  2309. * test/UtilTest.cc
  2310. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2311. Treat Cookie object as session cookie if expiry = 0 is given.
  2312. With this change, you can specify session scoped cookies in an external
  2313. file setting expiry value to 0.
  2314. * src/Cookie.cc
  2315. * src/Cookie.h
  2316. * test/CookieParserTest.cc
  2317. * test/CookieStorageTest.cc
  2318. * test/CookieTest.cc
  2319. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Changed signature of DHTMessageFactory::createResponseMessage().
  2321. Removed unused validateIDMatch.
  2322. * src/DHTMessageFactory.h
  2323. * src/DHTMessageFactoryImpl.cc
  2324. * src/DHTMessageFactoryImpl.h
  2325. * src/DHTMessageTracker.cc
  2326. * test/DHTMessageFactoryImplTest.cc
  2327. * test/MockDHTMessageFactory.h
  2328. Dropped DHT message coming from same ID of localhost.
  2329. * src/DHTMessageReceiver.cc
  2330. Rejected adding node whose ID is the same as localhost's.
  2331. * src/DHTRoutingTable.cc
  2332. * test/BtPortMessageTest.cc
  2333. * test/DHTRoutingTableTest.cc
  2334. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2335. Pool connection when redirection occurs with Content-Length = 0.
  2336. * src/HttpSkipResponseCommand.cc
  2337. * src/HttpSkipResponseCommand.h
  2338. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2339. Fixed the bug that causes time out when redirection occurs with
  2340. content-length 0.
  2341. * src/HttpResponseCommand.cc
  2342. * src/HttpSkipResponseCommand.cc
  2343. * src/HttpSkipResponseCommand.h
  2344. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2345. Now each status legends is shown only when it appears in Download
  2346. Result. If Download Result has no item, then status legend will not
  2347. be printed.
  2348. * src/RequestGroupMan.cc
  2349. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Removed duplicate creation of OptionHandlers.
  2351. * src/option_processing.cc
  2352. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2353. Fixed the bug that causes segmentation fault when accessing files which
  2354. don't exist or are not included in --select-file option while
  2355. validating chunk checksum.
  2356. * src/MultiDiskAdaptor.cc
  2357. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2358. Fixed compiler warning.
  2359. * test/UtilTest.cc
  2360. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2361. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2362. * src/IteratableChecksumValidator.cc
  2363. * src/IteratableChunkChecksumValidator.cc
  2364. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2365. * Release 0.16.2
  2366. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2367. Added Serbian translation. Updated Ukrainian translation.
  2368. Thanks to all translators.
  2369. * po/sr.po
  2370. * po/uk.po
  2371. * po/LINGUAS
  2372. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2373. Bump up version number to 0.16.2
  2374. * configure.ac
  2375. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2376. Added length equality test to operator== to drop a piece message
  2377. whose length does not match to the requested one.
  2378. * src/RequestSlot.cc
  2379. * test/DefaultBtMessageDispatcherTest.cc
  2380. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2381. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2382. recieved.
  2383. In this fix, if a request larger than 16KiB length is received, aria2
  2384. disconnects the peer.
  2385. * src/BtConstants.h
  2386. * src/PeerMessageUtil.cc
  2387. * src/PeerMessageUtil.h
  2388. * test/BtRequestMessageTest.cc
  2389. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2390. * Release 0.16.1
  2391. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2392. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2393. * doc/aria2c.1.txt
  2394. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2395. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2396. Updated French, Simplified Chinese and Japanese translations.
  2397. Thanks to all translators.
  2398. en@quot and en@boldquot are also added.
  2399. * po/LINGUAS
  2400. * po/fr.po
  2401. * po/ja.po
  2402. * po/uk.po
  2403. * po/vi.po
  2404. * po/zh_CN.po
  2405. * po/zh_TW.po
  2406. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Bump up version number to 0.16.1.
  2408. * configure.ac
  2409. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2410. Updated README.
  2411. * README
  2412. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2413. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2414. not to replace '--' with em dash character.
  2415. * doc/aria2c.1.txt
  2416. * doc/makeman
  2417. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2418. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2419. every SEC seconds.
  2420. * src/DownloadEngineFactory.cc
  2421. * src/OptionHandlerFactory.cc
  2422. * src/option_processing.cc
  2423. * src/usage_text.h
  2424. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Fixed compile warning on linux-amd64
  2426. * src/FtpConnection.cc
  2427. * src/IteratableChunkChecksumValidator.cc
  2428. * src/MultiDiskAdaptor.cc
  2429. Fixed the bug that unit test fails on linux-amd64
  2430. * test/UtilTest.cc
  2431. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2432. Added --dht-file-path option to change the path to dht.dat, which is a
  2433. serialized DHT routing table.
  2434. * src/OptionHandlerFactory.cc
  2435. * src/option_processing.cc
  2436. * src/usage_text.h
  2437. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2438. Fixed possible underflow.
  2439. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2440. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2441. Fixed the bug that last character in URI is not encoded.
  2442. * src/Request.cc
  2443. * test/RequestTest.cc
  2444. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2445. Fixed the bug that referer header field contains fragment.
  2446. Now Request class removes fragment part of URI and encodes it
  2447. in Request::setUri() and setReferer().
  2448. * src/Request.h
  2449. * src/Request.cc
  2450. * test/RequestTest.cc
  2451. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2452. Added missing m4 macros.
  2453. * m4/cppunit.m4
  2454. * m4/libgcrypt.m4
  2455. * m4/libgnutls-extra.m4
  2456. * m4/libgnutls.m4
  2457. * m4/libxml2.m4
  2458. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2459. Fixed compile error with gcc-4.4(snapshot)
  2460. * src/File.cc
  2461. * src/FtpConnection.cc
  2462. * src/OptionHandlerImpl.h
  2463. * src/Util.cc
  2464. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2465. Removed assert()
  2466. * src/SocketBuffer.cc (SocketBuffer::send)
  2467. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2468. Changed the type of _numNewConnection to unsigned int.
  2469. * src/ActivePeerConnectionCommand.cc
  2470. * src/ActivePeerConnectionCommand.h
  2471. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2472. * Release 0.16.0
  2473. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2474. Updated doc
  2475. * README
  2476. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2478. translations. Thanks to all translators.
  2479. * po/bg.po
  2480. * po/de.po
  2481. * po/fr.po
  2482. * po/ja.po
  2483. * po/zh_CN.po
  2484. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2485. Bump up version number to 0.16.0.
  2486. * configure.ac
  2487. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2488. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2489. int32_t.
  2490. Changed the type of count to int32_t.
  2491. * src/Metalink2RequestGroup.cc
  2492. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Added test for Time::elapsed(time_t).
  2494. * test/TimeTest.cc
  2495. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2496. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2497. Util::difftv() should be used instead.
  2498. * src/TimeA2.cc
  2499. * src/TimeA2.h
  2500. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2501. Made socket for dht connections non-blocking
  2502. * src/DHTAbstractMessage.cc
  2503. * src/DHTAbstractMessage.h
  2504. * src/DHTConnection.h
  2505. * src/DHTConnectionImpl.cc
  2506. * src/DHTConnectionImpl.h
  2507. * src/DHTMessage.h
  2508. * src/DHTMessageDispatcherImpl.cc
  2509. * src/DHTMessageDispatcherImpl.h
  2510. * src/DHTUnknownMessage.cc
  2511. * src/DHTUnknownMessage.h
  2512. * src/SocketCore.cc
  2513. * src/SocketCore.h
  2514. * test/MockDHTMessage.h
  2515. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2516. Changed the type of offset to int.
  2517. * src/ParameterizedStringParser.cc
  2518. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2519. Made getAsInt() return int32_t
  2520. * src/Option.h
  2521. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2522. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2523. build.
  2524. * configure.ac
  2525. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2526. Use sqlite3_open if sqlite3_open_v2 is not available.
  2527. * src/Sqlite3MozCookieParser.cc
  2528. * src/Sqlite3MozCookieParser.h
  2529. * m4/sqlite3.m4
  2530. * test/Sqlite3MozCookieParserTest.cc
  2531. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2532. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2533. * src/BtPieceMessage.cc
  2534. * src/DHTPeerAnnounceStorage.cc
  2535. * src/DefaultPieceStorage.cc
  2536. * src/DownloadCommand.cc
  2537. * src/DownloadEngine.cc
  2538. * src/FtpConnection.cc
  2539. * src/PeerConnection.cc
  2540. * src/PeerMessageUtil.cc
  2541. * src/RequestGroup.cc
  2542. * src/RequestGroupMan.cc
  2543. * src/SimpleBtMessage.cc
  2544. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2545. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2546. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2547. * src/AbstractDiskWriter.cc
  2548. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2549. Don't set Request::supportsPersistentConnection() in HttpConnection
  2550. since this code is also used in AbstractProxyResponseCommand.
  2551. Moved those code to HttpResponse.
  2552. * src/HttpResponse.cc
  2553. * src/HttpResponse.h
  2554. * src/HttpConnection.cc
  2555. * src/HttpConnection.h
  2556. * src/HttpResponseCommand.cc
  2557. * test/HttpResponseTest.cc
  2558. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2560. The configuration is minimum: no torrent, no metalink, so there may be
  2561. other compile error on their code.
  2562. * src/a2netcompat.h
  2563. * src/File.cc
  2564. * src/File.h
  2565. * src/SocketCore.cc
  2566. * src/SocketCore.h
  2567. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2568. Made a socket of incoming peer non-blocking.
  2569. * src/PeerListenCommand.cc
  2570. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2571. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2572. whole message data is not sent in one send() call.
  2573. * src/BtPieceMessage.cc
  2574. * src/BtPieceMessage.h
  2575. * src/PeerConnection.cc
  2576. * src/PeerConnection.h
  2577. * src/SimpleBtMessage.cc
  2578. * src/SimpleBtMessage.h
  2579. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2580. Fixed the bug that aria2 downloads faster than max-download-limit when
  2581. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2582. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2583. , instead of sum of them.
  2584. * src/ActivePeerConnectionCommand.cc
  2585. * src/DefaultBtInteractive.cc
  2586. * src/DownloadCommand.cc
  2587. * src/PeerInteractionCommand.cc
  2588. * src/PeerReceiveHandshakeCommand.cc
  2589. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2590. Fixed the bug that HTTPS download fails.
  2591. * src/AbstractCommand.cc
  2592. * src/AbstractCommand.h
  2593. * src/DownloadCommand.cc
  2594. * src/FtpConnection.cc
  2595. * src/HttpConnection.cc
  2596. * src/HttpRequestCommand.cc
  2597. * src/HttpResponseCommand.cc
  2598. * src/HttpSkipResponseCommand.cc
  2599. * src/MSEHandshake.cc
  2600. * src/PeerConnection.cc
  2601. * src/SocketCore.cc
  2602. * src/SocketCore.h
  2603. Fixed the bug that aria2 doesn't download whole content body and cannot
  2604. reuse connection if chunked transfer encoding and gzip content encoding
  2605. are set.
  2606. * src/DownloadCommand.cc
  2607. * src/HttpSkipResponseCommand.cc
  2608. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2609. Updated man page.
  2610. * doc/aria2c.1.txt
  2611. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2612. When error occurred while aria2 was parsing an .aria2.conf file, print
  2613. the usage of the option that caused error.
  2614. * src/option_processing.cc
  2615. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2616. Fixed compile error on OptionHandlerException
  2617. * src/Makefile.am
  2618. * src/OptionHandlerException.cc
  2619. * src/OptionHandlerException.h
  2620. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2621. Moved message of the error to OptionHandlerException.h
  2622. * src/NameMatchOptionHandler.h
  2623. * src/OptionHandlerException.h
  2624. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. When error occurs while aria2 is parsing an command-line option, print
  2626. the usage of the option.
  2627. * src/Makefile.am
  2628. * src/NameMatchOptionHandler.h
  2629. * src/OptionHandlerException.h
  2630. * src/option_processing.cc
  2631. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2632. Reverted previous change.
  2633. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2634. username is not in URI.
  2635. * src/HttpRequest.cc
  2636. * src/Request.cc
  2637. * test/HttpRequestTest.cc
  2638. * test/RequestTest.cc
  2639. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2640. Now colon is required for username and password in FTP URL, like:
  2641. ftp://username:password@host.
  2642. If colon is not there, aria2 don't parse it as a username. For example,
  2643. aria2 don't retrieve username from ftp://username@host.
  2644. This fix was made in order to login FTP server via non-transparent ftp
  2645. proxy.
  2646. * src/Request.cc
  2647. * test/RequestTest.cc
  2648. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2649. Use netrc for HTTP.
  2650. Now FTP user/password is sent in Authorization header when
  2651. --ftp-via-http-proxy=get is given.
  2652. * src/AuthConfigFactory.cc
  2653. * src/HttpRequest.cc
  2654. * src/HttpRequest.h
  2655. * src/NetrcAuthResolver.cc
  2656. * src/NetrcAuthResolver.h
  2657. * src/OptionHandlerFactory.cc
  2658. * src/option_processing.cc
  2659. * src/prefs.cc
  2660. * src/prefs.h
  2661. * test/AuthConfigFactoryTest.cc
  2662. * test/HttpRequestTest.cc
  2663. * test/NetrcAuthResolverTest.cc
  2664. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. Issue PWD command first and get working directory and use it as a prefix
  2666. for CWD command.
  2667. * src/DownloadEngine.cc
  2668. * src/DownloadEngine.h
  2669. * src/FtpConnection.cc
  2670. * src/FtpConnection.h
  2671. * src/FtpFinishDownloadCommand.cc
  2672. * src/FtpInitiateConnectionCommand.cc
  2673. * src/FtpNegotiationCommand.cc
  2674. * src/FtpNegotiationCommand.h
  2675. * test/FtpConnectionTest.cc
  2676. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Removed default user/pass for FTP user/pass, since it should not have
  2678. precedence over netrc configuration by default.
  2679. * src/OptionHandlerFactory.cc
  2680. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2681. Added debug log for socket event.
  2682. * src/AbstractCommand.cc
  2683. * src/PeerAbstractCommand.cc
  2684. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Log microseconds.
  2686. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2687. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Replaced HelpItem.cc with OptionHandler.cc.
  2689. * po/POTFILES.in
  2690. Updated po files with 'make update-po'
  2691. * po/aria2c.pot
  2692. * po/*.po
  2693. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Removed possible values from the text.
  2695. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2696. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2697. Removed unused preferences:
  2698. PREF_NO_PREALLOCATION
  2699. PREF_STDOUT_LOG
  2700. PREF_TRACKER_MAX_TRIES
  2701. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2702. PREF_MIN_SEGMENT_SIZE
  2703. * src/option_processing.cc
  2704. * src/prefs.cc
  2705. * src/prefs.h
  2706. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2707. Integrated HelpItem into OptionParser to ease the workload for adding
  2708. new options. Removed default value from usage text.
  2709. * src/HelpItem.cc: Removed.
  2710. * src/HelpItem.h: Removed.
  2711. * src/HelpItemFactory.cc: Removed.
  2712. * src/HelpItemFactory.h: Removed.
  2713. * src/Makefile.am
  2714. * src/Makefile.in
  2715. * src/NameMatchOptionHandler.h
  2716. * src/OptionHandler.cc
  2717. * src/OptionHandler.h
  2718. * src/OptionHandlerFactory.cc
  2719. * src/OptionHandlerImpl.h
  2720. * src/OptionParser.cc
  2721. * src/OptionParser.h
  2722. * src/TagContainer.cc: Removed.
  2723. * src/TagContainer.h: Removed.
  2724. * src/TaggedItem.cc: Removed.
  2725. * src/TaggedItem.h: Removed.
  2726. * src/main.cc
  2727. * src/option_processing.cc
  2728. * src/usage_text.h
  2729. * src/version_usage.cc
  2730. * test/HelpItemTest.cc: Removed.
  2731. * test/Makefile.am
  2732. * test/Makefile.in
  2733. * test/OptionHandlerTest.cc
  2734. * test/OptionParserTest.cc
  2735. * test/TagContainerTest.cc: Removed.
  2736. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2737. Moved `TransferStat stat = ...' to inside the `if' clause.
  2738. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2739. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2740. Fixed the bug that a block in a piece is requested when same block is
  2741. already requested to the same peer in end game mode.
  2742. * src/BtRequestFactory.h
  2743. * src/DefaultBtInteractive.cc
  2744. * src/DefaultBtRequestFactory.cc
  2745. * src/DefaultBtRequestFactory.h
  2746. * src/DefaultPieceStorage.cc
  2747. * src/DefaultPieceStorage.h
  2748. * src/PieceStorage.h
  2749. * src/UnknownLengthPieceStorage.cc
  2750. * src/UnknownLengthPieceStorage.h
  2751. * test/DefaultBtRequestFactoryTest.cc
  2752. * test/DefaultPieceStorageTest.cc
  2753. * test/MockBtRequestFactory.h
  2754. * test/MockPieceStorage.h
  2755. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2756. Removed _uploadLength and _downloadLength from PeerSessionResource
  2757. and use PeerStat::_sessionUploadLength and
  2758. PeerStat::_sessionDownloadLength.
  2759. * src/PeerSessionResource.cc
  2760. * src/PeerSessionResource.h
  2761. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2762. Fixed the bug that prefixLength of split bucket which doesn't include
  2763. local node ID is incremented.
  2764. * src/DHTBucket.cc
  2765. * src/DHTBucket.h
  2766. * test/DHTBucketTest.cc
  2767. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2768. Added cookies.sqlite to EXTRA_DIST
  2769. * test/Makefile.am
  2770. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2771. Added Turkish translation. Updated French, German, Russian and
  2772. Simplified Chinese translations. Thanks to all translators.
  2773. * po/LINGUAS
  2774. * po/de.po
  2775. * po/fr.po
  2776. * po/ru.po
  2777. * po/tr.po
  2778. * po/zh_CN.po
  2779. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2780. Added deliminating text to the beginning of the log so that one can find
  2781. where the log starts easily.
  2782. * src/main.cc
  2783. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2784. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2785. to fix compile error when async DNS is not enabled by configuration.
  2786. * src/AbstractCommand.cc
  2787. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. If establishing conneciton to a server is failed, then mark error on
  2789. its ServerStat.
  2790. Added the cause of error to log when error event occurred.
  2791. Moved message string to message.h for translation.
  2792. * src/AbstractCommand.cc
  2793. * src/AbstractCommand.h
  2794. * src/FtpNegotiationCommand.cc
  2795. * src/HttpRequestCommand.cc
  2796. * src/PeerAbstractCommand.cc
  2797. * src/message.h
  2798. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2799. Added the function to get error message from socket.
  2800. * src/SocketCore.cc
  2801. * src/SocketCore.h
  2802. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2804. * src/RequestGroupMan.cc
  2805. * src/RequestGroupMan.h
  2806. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2807. If error event is received in epoll, then abort download immediately.
  2808. * src/AbstractCommand.cc
  2809. * src/Command.cc
  2810. * src/Command.h
  2811. * src/DownloadEngine.cc
  2812. * src/PeerAbstractCommand.cc
  2813. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2814. Added usage message for --uri-selector, --server-stat-of,
  2815. --server-stat-in, --server-stat-timeout options.
  2816. * src/HelpItemFactory.cc
  2817. * src/usage_text.h
  2818. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. Added upper limit of FTP response buffer. The current implementation
  2820. uses 4096bytes as a limit.
  2821. * src/FtpConnection.cc
  2822. * src/FtpConnection.h
  2823. * test/FtpConnectionTest.cc
  2824. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Use non-blocking socket for TCP communication to avoid possible
  2826. blocking due to buffer full.
  2827. * src/AbstractProxyRequestCommand.cc
  2828. * src/FtpConnection.cc
  2829. * src/FtpConnection.h
  2830. * src/FtpNegotiationCommand.cc
  2831. * src/FtpNegotiationCommand.h
  2832. * src/HttpConnection.cc
  2833. * src/HttpConnection.h
  2834. * src/HttpRequestCommand.cc
  2835. * src/InitiatorMSEHandshakeCommand.cc
  2836. * src/InitiatorMSEHandshakeCommand.h
  2837. * src/MSEHandshake.cc
  2838. * src/MSEHandshake.h
  2839. * src/Makefile.am
  2840. * src/PeerConnection.cc
  2841. * src/PeerConnection.h
  2842. * src/PeerInteractionCommand.cc
  2843. * src/PeerListenCommand.cc
  2844. * src/ReceiverMSEHandshakeCommand.cc
  2845. * src/ReceiverMSEHandshakeCommand.h
  2846. * src/SocketBuffer.cc
  2847. * src/SocketBuffer.h
  2848. * src/SocketCore.cc
  2849. * src/SocketCore.h
  2850. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2851. Call setStatusRealtime() in constructor.
  2852. * src/RealtimeCommand.cc
  2853. * src/RealtimeCommand.h
  2854. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2855. Call Download::setNoWait(true) to execute newly created command without
  2856. a pause.
  2857. * src/AbstractCommand.cc
  2858. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2859. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2860. found' error from HTTP/FTP server NUM times without getting single
  2861. bytes of data, then force the download to fail.
  2862. Basically aria2 tris all URIs available. So if long list of URIs are
  2863. specified in Metalink, then aria2 will take a long time to fail
  2864. eventually if all URIs are outdated. This option eases this situation
  2865. to limit the number of servers to try.
  2866. * src/FtpNegotiationCommand.cc
  2867. * src/HelpItemFactory.cc
  2868. * src/HttpResponseCommand.cc
  2869. * src/OptionHandlerFactory.cc
  2870. * src/PeerStat.h
  2871. * src/RequestGroup.cc
  2872. * src/RequestGroup.h
  2873. * src/SegmentMan.cc
  2874. * src/SegmentMan.h
  2875. * src/option_processing.cc
  2876. * src/prefs.cc
  2877. * src/prefs.h
  2878. * src/usage_text.h
  2879. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2881. response even if more than one response is in it.
  2882. * src/FtpConnection.cc
  2883. * src/FtpConnection.h
  2884. * test/FtpConnectionTest.cc
  2885. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2886. Merged from stable-0.15
  2887. * m4/libcares.m4
  2888. Use pkg-config
  2889. * m4/sqlite3.m4
  2890. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2891. Removed unnecessary if statement.
  2892. * src/DefaultPieceStorage.cc (initPieceStorage)
  2893. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Added --connect-timeout option to specify connect timeout in seconds.
  2895. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2896. connecting to BitTorrent peer is not controlled by this option.
  2897. * src/AbstractProxyRequestCommand.cc
  2898. * src/FtpNegotiationCommand.cc
  2899. * src/HelpItemFactory.cc
  2900. * src/HttpRequestCommand.cc
  2901. * src/OptionHandlerFactory.cc
  2902. * src/option_processing.cc
  2903. * src/prefs.cc
  2904. * src/prefs.h
  2905. * src/usage_text.h
  2906. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2907. Added help message for -R option.
  2908. * src/HelpItemFactory.cc
  2909. * src/usage_text.h
  2910. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2911. Added the message that the time is in local time zone.
  2912. * src/RequestGroup.cc
  2913. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2914. Implemented the ability to get timestamp from remote FTP server using
  2915. MDTM command described in RFC3659.
  2916. * src/FtpConnection.cc
  2917. * src/FtpConnection.h
  2918. * src/FtpNegotiationCommand.cc
  2919. * src/FtpNegotiationCommand.h
  2920. * test/FtpConnectionTest.cc
  2921. * test/Makefile.am
  2922. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. Implemented the ability to get timestamp from remote HTTP server and
  2924. apply it to local file. To enable this feature, --remote-time option
  2925. is added. No usage text has been written yet.
  2926. If several servers returns difference timestamp, then aria2 uses latest
  2927. one.
  2928. * src/CopyDiskAdaptor.cc
  2929. * src/CopyDiskAdaptor.h
  2930. * src/DirectDiskAdaptor.cc
  2931. * src/DirectDiskAdaptor.h
  2932. * src/DiskAdaptor.h
  2933. * src/File.cc
  2934. * src/File.h
  2935. * src/HttpHeader.cc
  2936. * src/HttpHeader.h
  2937. * src/HttpResponse.cc
  2938. * src/HttpResponse.h
  2939. * src/HttpResponseCommand.cc
  2940. * src/HttpResponseCommand.h
  2941. * src/MultiDiskAdaptor.cc
  2942. * src/MultiDiskAdaptor.h
  2943. * src/OptionHandlerFactory.cc
  2944. * src/RequestGroup.cc
  2945. * src/RequestGroup.h
  2946. * src/RequestGroupMan.cc
  2947. * src/option_processing.cc
  2948. * src/prefs.cc
  2949. * src/prefs.h
  2950. * test/CopyDiskAdaptorTest.cc
  2951. * test/FileTest.cc
  2952. * test/Makefile.am
  2953. * test/Makefile.in
  2954. * test/MultiDiskAdaptorTest.cc
  2955. * test/TestUtil.cc
  2956. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2957. Fixed the bug that DiskWriterEntry is not created when its
  2958. FileEntry.isRequested() is false and it doesn't share a piece with
  2959. other FileEntries that are requested. This bug causes segmentation fault
  2960. in the end.
  2961. * src/MultiDiskAdaptor.cc
  2962. * src/MultiDiskAdaptor.h
  2963. * src/MultiFileAllocationIterator.cc
  2964. * test/MultiDiskAdaptorTest.cc
  2965. * test/MultiFileAllocationIteratorTest.cc
  2966. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2967. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2968. called if the number of file entries are greater than max open files.
  2969. * src/AbstractSingleDiskAdaptor.cc
  2970. * src/AbstractSingleDiskAdaptor.h
  2971. * src/DiskAdaptor.h
  2972. * src/MultiDiskAdaptor.cc
  2973. * src/MultiDiskAdaptor.h
  2974. * test/MultiDiskAdaptorTest.cc
  2975. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Added a constuctor that receives struct timeval.
  2977. Added operator<.
  2978. * src/TimeA2.cc
  2979. * src/TimeA2.h
  2980. * test/TimeTest.cc
  2981. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2982. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2983. * src/CookieParser.cc
  2984. * test/CookieParserTest.cc
  2985. * test/HttpResponseTest.cc
  2986. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Implmented the functions to parse date.
  2988. * src/TimeA2.cc
  2989. * src/TimeA2.h
  2990. * test/TimeTest.cc
  2991. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. Added "Firefox3 Cookie" feature to FeatureConfig
  2993. * src/FeatureConfig.cc
  2994. * src/FeatureConfig.h
  2995. * test/FeatureConfigTest.cc
  2996. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2997. Bump up version number to 0.16.0b
  2998. * configure.ac
  2999. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3000. Use pkg-config if is is available.
  3001. * m4/openssl.m4
  3002. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3003. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3004. * src/BtAnnounce.h
  3005. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. If an error occurred with a URI, remove identical URI from remaining
  3007. URI list because it is likely that same error occurred in the end and it
  3008. is waste of time.
  3009. * src/AbstractCommand.cc
  3010. * src/RequestGroup.cc
  3011. * src/RequestGroup.h
  3012. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Removed wrong comment.
  3014. * src/DefaultPeerStorage.cc
  3015. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3016. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3017. Added return value of getpid() to argument of srand() to achieve more
  3018. randomized value.
  3019. * src/SimpleRandomizer.cc
  3020. * src/SimpleRandomizer.h
  3021. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3022. Contact tracker frequently when the number of connections are 0 and
  3023. download is not finished yet.
  3024. * src/ActivePeerConnectionCommand.cc
  3025. * src/BtAnnounce.h
  3026. * src/DefaultBtAnnounce.cc
  3027. * src/DefaultBtAnnounce.h
  3028. * test/MockBtAnnounce.h
  3029. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Moved threshold values to UTPexExtensionMessage.
  3031. * src/DefaultBtInteractive.cc
  3032. * src/Peer.cc
  3033. * src/Peer.h
  3034. * src/UTPexExtensionMessage.cc
  3035. * src/UTPexExtensionMessage.h
  3036. * test/UTPexExtensionMessageTest.cc
  3037. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3038. Added _incoming member to Peer class and made it true if the peer
  3039. initiated connection. Don't add those peer to UTPex message.
  3040. If extended handshake is received, assign _incoming to false.
  3041. * src/DefaultBtInteractive.cc
  3042. * src/HandshakeExtensionMessage.cc
  3043. * src/Peer.cc
  3044. * src/Peer.h
  3045. * src/PeerListenCommand.cc
  3046. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3047. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3048. Encoding Decoder. Removed size threshold for turning off on the fly
  3049. inflation because resulting file may or may not be inflated depending
  3050. on the file size and I think it is not expected by users.
  3051. This change fixes segmentation fault when Metalink file contains gzipped
  3052. file and its filesize is provided.
  3053. * src/HttpResponseCommand.cc
  3054. * src/HttpResponseCommand.h
  3055. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Made Cookie immutable.
  3057. * src/Cookie.cc
  3058. * src/Cookie.h
  3059. * src/CookieParser.cc
  3060. * src/CookieParser.h
  3061. * src/CookieStorage.cc
  3062. * test/CookieParserTest.cc
  3063. * test/CookieStorageTest.cc
  3064. * test/NsCookieParserTest.cc
  3065. * test/Sqlite3MozCookieParserTest.cc
  3066. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3067. Removed CookieBox, CookieBoxFactory.
  3068. * src/CookieBox.cc
  3069. * src/CookieBox.h
  3070. * src/CookieBoxFactory.cc
  3071. * src/CookieBoxFactory.h
  3072. * src/Makefile.am
  3073. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. Use CookieStorage class instead of CookieBox class.
  3075. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3076. * src/AbstractProxyRequestCommand.cc
  3077. * src/CookieStorage.cc
  3078. * src/DownloadEngine.cc
  3079. * src/DownloadEngine.h
  3080. * src/HttpConnection.cc
  3081. * src/HttpConnection.h
  3082. * src/HttpRequest.cc
  3083. * src/HttpRequest.h
  3084. * src/HttpRequestCommand.cc
  3085. * src/HttpResponse.cc
  3086. * src/HttpResponseCommand.cc
  3087. * src/HttpSkipResponseCommand.cc
  3088. * src/Makefile.am
  3089. * src/MultiUrlRequestInfo.cc
  3090. * src/Request.cc
  3091. * src/Request.h
  3092. * src/main.cc
  3093. * test/AllTest.cc
  3094. * test/CookieStorageTest.cc
  3095. * test/CookieTest.cc
  3096. * test/HttpRequestTest.cc
  3097. * test/HttpResponseTest.cc
  3098. * test/Makefile.am
  3099. * test/NsCookieParserTest.cc
  3100. * test/Sqlite3MozCookieParserTest.cc
  3101. * test/nscookietest.txt
  3102. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3103. Updated
  3104. * test/Cookies.sqlite
  3105. * test/nscookietest.txt
  3106. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3107. Added tests for CookieStorage::load()
  3108. * test/CookieStorageTest.cc
  3109. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3110. Added CookieStorage class which is based on RFC2109 and manages cookies
  3111. more strictly than CookieBox and CookieBoxFactory class.
  3112. * src/CookieStorage.cc
  3113. * src/CookieStorage.h
  3114. * src/Cookie.cc
  3115. * src/Cookie.h
  3116. * test/CookieStorageTest.cc
  3117. * test/CookieTest.cc
  3118. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Fixed the bug that commands are created more than the number of pieces.
  3120. * src/RequestGroup.cc
  3121. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3122. Fixed infinite loop bug in FTP when SIZE command failed.
  3123. * src/FtpNegotiationCommand.cc
  3124. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Removed DirectDiskAdaptorTest.h
  3126. * test/Makefile.am
  3127. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Fixed chunk checksum validation cannot detect trailing garbage data.
  3129. BUG#2074141
  3130. * src/AbstractSingleDiskAdaptor.cc
  3131. * src/AbstractSingleDiskAdaptor.h
  3132. * src/CheckIntegrityEntry.cc
  3133. * src/CheckIntegrityEntry.h
  3134. * src/DiskAdaptor.h
  3135. * src/MultiDiskAdaptor.cc
  3136. * src/MultiDiskAdaptor.h
  3137. * src/RequestGroup.cc
  3138. * test/DirectDiskAdaptorTest.cc
  3139. * test/MultiDiskAdaptorTest.cc
  3140. * test/TestUtil.cc
  3141. * test/TestUtil.h
  3142. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Bump up version number of dht.dat file to 3. In version 3 format, time
  3144. is stored in 64bit, network byte order.
  3145. New build can load old format(version 2) but it saves the file in new
  3146. format. It means once you used new build, your dht.dat becomes
  3147. incompatible with older build.
  3148. * src/DHTRoutingTableDeserializer.cc
  3149. * src/DHTRoutingTableSerializer.cc
  3150. * test/DHTRoutingTableSerializerTest.cc
  3151. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3153. * test/Makefile.am
  3154. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3155. Bump up version number of .aria2 control file to 0001.
  3156. New aria2 can still load version 0000 file but it saves the file in
  3157. version 0001 format. It means that new aria2 can resume download
  3158. started by old aria2 but the opposite is not true.
  3159. * src/DefaultBtProgressInfoFile.cc
  3160. * src/DefaultBtProgressInfoFile.h
  3161. * test/DefaultBtProgressInfoFileTest.cc
  3162. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3163. Added ntoh64 and hton64 as inline functions.
  3164. * src/Util.cc
  3165. * test/UtilTest.cc
  3166. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3167. Added sqlite3 depenency and Firefox3 cookie support.
  3168. * README
  3169. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3170. State that firefox3 cookie is supported explicitly in the usage.
  3171. * src/usage_text.h
  3172. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Externalized message.
  3174. * src/RequestGroupMan.cc
  3175. * src/message.h
  3176. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3177. Save temporary file first and rename to the destination on success.
  3178. Added test cases.
  3179. * src/RequestGroupMan.cc
  3180. * test/RequestGroupManTest.cc
  3181. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Fixed the bug that the number of connected peer is exceeding the limit
  3183. (55 by default) in seeding mode.
  3184. Multiplied 0.8 to _maxUploadSpeedLimit.
  3185. * src/ActivePeerConnectionCommand.cc
  3186. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3187. Clear table item.
  3188. * src/Dictionary.cc
  3189. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3190. Fixed error handling of lseek.
  3191. * src/AbstractDiskWriter.cc
  3192. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3193. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3194. style cookie file.
  3195. * src/usage_text.h
  3196. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3197. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3198. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3199. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3200. * src/Util.cc
  3201. * src/Util.h
  3202. * src/CookieParser.cc
  3203. * test/UtilTest.cc
  3204. * test/CookieParserTest.cc
  3205. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Separate the implementation to load old mozilla format of cookie to
  3207. NsCookieParser class.
  3208. * src/CookieBoxFactory.cc
  3209. * src/CookieBoxFactory.h
  3210. * src/NsCookieParser.cc
  3211. * src/NsCookieParser.h
  3212. * test/NsCookieParserTest.cc
  3213. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3214. Made parse() const
  3215. * src/Sqlite3MozCookieParser.cc
  3216. * src/Sqlite3MozCookieParser.h
  3217. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Added firefox3 cookie support based on the patch submitted by
  3219. tizianomueller.
  3220. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3221. this functionality.
  3222. * configure.ac
  3223. * m4/sqlite3.m4
  3224. * src/CookieBoxFactory.cc
  3225. * src/CookieBoxFactory.h
  3226. * src/Makefile.am
  3227. * src/Makefile.in
  3228. * src/Sqlite3MozCookieParser.cc
  3229. * src/Sqlite3MozCookieParser.h
  3230. * src/main.cc
  3231. * test/CookieBoxFactoryTest.cc
  3232. * test/Makefile.am
  3233. * test/Makefile.in
  3234. * test/Sqlite3MozCookieParserTest.cc
  3235. * test/badcookies.sqlite
  3236. * test/cookies.sqlite
  3237. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Added Danish and Greek translations.
  3239. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3240. Great thanks to all translators.
  3241. * po/LINGUAS
  3242. * po/el.po
  3243. * po/da.po
  3244. * po/es.po
  3245. * po/ca.po
  3246. * po/nn.po
  3247. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Fixed man page: --follow-bittorrent should be --follow-torrent
  3249. * doc/aria2c.1.txt
  3250. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Fixed: numCommand is less than the value specified in -C option.
  3252. * src/RequestGroup.cc
  3253. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3254. Fixed occasional assertion failure in PieceSegment.
  3255. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3256. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3257. creation of duplicate segments and one of the segment was finished then
  3258. assertion failure was caused.
  3259. * src/SegmentMan.cc
  3260. * test/SegmentManTest.cc
  3261. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3262. Added options to load/save the server's performance/status to a file
  3263. and the timeout to drop their data.
  3264. --server-stat-of=FILE specifies the file to which performance data
  3265. is saved.
  3266. --server-stat-if=FILE specifies the file to read previously saved
  3267. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3268. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3269. TIMEOUT is specified in seconds and the default value is 24hours.
  3270. * src/MultiUrlRequestInfo.cc
  3271. * src/OptionHandlerFactory.cc
  3272. * src/RequestGroupMan.cc
  3273. * src/RequestGroupMan.h
  3274. * src/ServerStatMan.cc
  3275. * src/ServerStatMan.h
  3276. * src/option_processing.cc
  3277. * src/prefs.cc
  3278. * src/prefs.h
  3279. * test/ServerStatManTest.cc
  3280. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3281. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3282. * src/ServerStatMan.cc
  3283. * src/ServerStatMan.h
  3284. * test/ServerStatManTest.cc
  3285. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3286. Implemented ServerStatMan::load(...) function and its test case.
  3287. * src/ServerStat.cc
  3288. * src/ServerStat.h
  3289. * src/ServerStatMan.cc
  3290. * test/ServerStatManTest.cc
  3291. * test/ServerStatTest.cc
  3292. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Use time_t instead of int32_t. Use int64_t where milli second is
  3294. expected.
  3295. * src/TimeA2.cc
  3296. * src/TimeA2.h
  3297. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3298. Implemented ServerStatMan::save(...) function and its test case.
  3299. * src/ServerStat.cc
  3300. * src/ServerStat.h
  3301. * src/ServerStatMan.cc
  3302. * src/ServerStatMan.h
  3303. * test/ServerStatManTest.cc
  3304. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Now aria2 uses name attribute in Metalink as local filename in
  3306. BitTorrent downloads. BUG#2033999
  3307. * src/BtContext.h
  3308. * src/BtDependency.cc
  3309. * src/DefaultBtContext.cc
  3310. * src/DefaultBtContext.h
  3311. * src/SingleFileDownloadContext.cc
  3312. * src/SingleFileDownloadContext.h
  3313. * test/BtDependencyTest.cc
  3314. * test/DefaultBtContextTest.cc
  3315. * test/MockBtContext.h
  3316. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3317. Added AC_C_BIGENDIAN
  3318. * src/configure.ac
  3319. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3320. Limited numCommand less than or equal to the number of piece.
  3321. * src/RequestGroup.cc
  3322. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3324. directive.
  3325. * test/DefaultPieceStorageTest.cc
  3326. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Fixed memory leak in test code
  3328. * test/AnnounceListTest.cc
  3329. * test/DefaultPeerListProcessorTest.cc
  3330. * test/DefaultPeerStorageTest.cc
  3331. * test/MetaFileUtilTest.cc
  3332. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3334. * src/DefaultPieceStorage.cc
  3335. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. Initialized _directIOAllowed
  3337. * src/MultiDiskAdaptor.cc
  3338. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. Fixed memory leak
  3340. * src/GZipDecoder.cc
  3341. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3342. Fixed memory leak
  3343. * src/MetalinkParserStateMachine.cc
  3344. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3345. Fixed memory leak
  3346. * src/Dictionary.cc
  3347. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3348. Fixed memory leak
  3349. * src/IteratableChunkChecksumValidator.h
  3350. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3351. Fixed unmatched malloc/free.
  3352. * src/IteratableChunkChecksumValidator.cc
  3353. * src/IteratableChecksumValidator.cc
  3354. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Removed max chunk size check. This change fixes BUG#2040169
  3356. * src/ChunkedDecoder.cc
  3357. * src/ChunkedDecoder.h
  3358. * test/ChunkedDecoderTest.cc
  3359. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Implemented download speed based URI selection algorithm.
  3361. Introduced new option --uri-selector.
  3362. If --uri-selector=feedback is given, aria2 uses download speed observed
  3363. in the previous downloads and chooses fastest server in the URI list.
  3364. Currently at most 10 URIs are considered to introduce randomeness for
  3365. finding better servers. The speed is average download speed in the
  3366. downloads.
  3367. On the other hand, if --uri-selector=inorder is given, which is default,
  3368. URI is tried in order in URI list.
  3369. The usage text for the new option has not been written yet.
  3370. * src/AbstractCommand.cc
  3371. * src/DownloadCommand.cc
  3372. * src/DownloadEngine.cc
  3373. * src/DownloadEngineFactory.cc
  3374. * src/InOrderURISelector.cc
  3375. * src/InOrderURISelector.h
  3376. * src/OptionHandlerFactory.cc
  3377. * src/PeerStat.h
  3378. * src/RequestGroup.cc
  3379. * src/RequestGroup.h
  3380. * src/RequestGroupMan.cc
  3381. * src/RequestGroupMan.h
  3382. * src/SegmentMan.cc
  3383. * src/SegmentMan.h
  3384. * src/ServerStat.cc
  3385. * src/ServerStat.h
  3386. * src/ServerStatMan.cc
  3387. * src/ServerStatMan.h
  3388. * src/ServerStatURISelector.cc
  3389. * src/ServerStatURISelector.h
  3390. * src/URISelector.h
  3391. * src/option_processing.cc
  3392. * src/prefs.cc
  3393. * src/prefs.h
  3394. * test/InOrderURISelectorTest.cc
  3395. * test/RequestGroupManTest.cc
  3396. * test/ServerStatManTest.cc
  3397. * test/ServerStatURISelectorTest.cc
  3398. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3399. * Release 0.15.1+2
  3400. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Bump up version number to 0.15.1+2
  3402. * configure.ac
  3403. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3404. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3405. * m4/aria2_arg.m4
  3406. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3407. * Release 0.15.1+1
  3408. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Bump up version number to 0.15.1+1
  3410. * configure.ac
  3411. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3412. Fixed the bug that causes segmentaion fault when resuming download
  3413. using metalink without size tag. Reproducible only using HTTP URI.
  3414. * src/HttpResponseCommand.cc
  3415. * src/FtpNegotiationCommand.cc
  3416. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3417. * Release 0.15.1
  3418. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3419. Updated Bulgarian and French translations, thanks to all translators.
  3420. * po/bg.po
  3421. * po/fr.po
  3422. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3423. Bump up version number to 0.15.1
  3424. * configure.ac
  3425. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3426. Avoid repeated call of gettimeofday() when calculating speed.
  3427. * src/SpeedCalc.cc
  3428. * src/SpeedCalc.h
  3429. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3430. Removed writable check when socket's send buffer is full in BitTorrent
  3431. downloads to lower CPU usage.
  3432. * src/PeerInteractionCommand.cc
  3433. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3434. Fixed broken gzip inflation.
  3435. Turn off segmented downloading if gzip content is smaller than or equal
  3436. to 1MiB and inflate the data on the fly, because HTTP response header
  3437. doesn't contain the length of inflated file we can't determin where
  3438. the chunk of data should be written.
  3439. On the other hand, if gzip content is larger than 1MB, then turn off
  3440. on the fly inflation, because some servers returns "content-type: gzip"
  3441. for *.tgz, *.gz files.
  3442. * src/DownloadCommand.cc
  3443. * src/HttpResponseCommand.cc
  3444. * src/HttpResponseCommand.h
  3445. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Applied tizianomueller's patch to fix compile error.
  3447. * test/BitfieldManTest.cc
  3448. * test/BtRequestMessageTest.cc
  3449. * test/DefaultBtContextTest.cc
  3450. * test/DefaultDiskWriterTest.cc
  3451. * test/DefaultPieceStorageTest.cc
  3452. * test/HttpHeaderProcessorTest.cc
  3453. * test/HttpResponseTest.cc
  3454. * test/Metalink2RequestGroupTest.cc
  3455. * test/MetalinkParserControllerTest.cc
  3456. * test/MetalinkProcessorTest.cc
  3457. * test/PeerSessionResourceTest.cc
  3458. * test/UtilTest.cc
  3459. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3460. * Release 0.15.0
  3461. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3462. Reordered src files in POTFILES.in so that usage text appears first.
  3463. * po/POTFILES.in
  3464. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3465. Bump up version number to 0.15.0
  3466. * configure.ac
  3467. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Added Bulgarian translation.
  3469. Updated Catalan, Spanish, French and Japanese translations.
  3470. Thanks to all translators.
  3471. * po/LINGUAS
  3472. * po/bg.po
  3473. * po/ca.po
  3474. * po/es.po
  3475. * po/fr.po
  3476. * po/ja.po
  3477. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Updated feature list. Added libz for dependency section.
  3479. Added a description about unit testing using CppUnit.
  3480. * README
  3481. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3482. Added a test for libz. Quoted where it is necessary.
  3483. * build_test.sh
  3484. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3485. Added GZip to `Enabled Features' list.
  3486. * src/FeatureConfig.cc
  3487. * src/FeatureConfig.h
  3488. * test/FeatureConfigTest.cc
  3489. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3490. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3491. the transfer has not yet started.
  3492. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3493. * src/SegmentMan.cc
  3494. * src/SegmentMan.h
  3495. * test/SegmentManTest.cc
  3496. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3497. Cache last calculated average download/upload speed.
  3498. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3499. cached value.
  3500. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3501. * src/PeerStat.h
  3502. * src/SpeedCalc.cc
  3503. * src/SpeedCalc.h
  3504. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3505. Call parseUrl directly.
  3506. * src/Request.cc (resetUrl)
  3507. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Supported absolute/relative path in Location header field.
  3509. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3510. * src/HttpHeader.cc
  3511. * src/HttpHeader.h
  3512. * src/HttpResponse.cc
  3513. * src/HttpSkipResponseCommand.cc
  3514. * src/Request.cc
  3515. * test/HttpHeaderTest.cc
  3516. * test/HttpResponseTest.cc
  3517. * test/RequestTest.cc
  3518. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3519. Changed help text for --load-cookie option.
  3520. * doc/aria2c.1.txt
  3521. * src/usage_text.h
  3522. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Regenerated test/Makefile.in to remove stale ChangeLog.
  3524. * test/Makefile.in
  3525. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Updated po files.
  3527. * po/aria2c.pot
  3528. * po/*.po
  3529. * po/*.gmo
  3530. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3531. Bump up version number to 0.15.0b
  3532. * configure.ac
  3533. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3534. Externalize messages.
  3535. * src/RequestGroupMan.cc
  3536. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3537. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. Use File::exists() instead of File::isFile() to allow non-regular file
  3539. such as block special files.
  3540. * src/AbstractDiskWriter.cc
  3541. * src/MultiDiskWriter.cc
  3542. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3544. * src/gai_strerror.h
  3545. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3546. Fixed compile error. Thanks gknauf for the patch.
  3547. * src/asctime_r.c
  3548. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Included asctime_r.h from a2time.h.
  3550. * src/a2time.h
  3551. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Added a message "aria2 doesn't verify signature" to log message when
  3553. signature file is saved.
  3554. * src/RequestGroupMan.cc
  3555. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3556. Added the ability to save signature when download is completed if
  3557. signature is available. The filename of signature file is the path to
  3558. download file followed by ".sig". If it already exists, then signature
  3559. will not be saved.
  3560. * src/RequestGroupMan.cc
  3561. * src/Signature.cc
  3562. * test/SignatureTest.cc
  3563. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3564. Updated the descriptions for --bt-seed-unverified.
  3565. * doc/aria2c.1
  3566. * doc/aria2c.1.html
  3567. * doc/aria2c.1.txt
  3568. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3569. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3570. that this is not going to verify files using piece hashes.
  3571. * src/HelpItemFactory.cc
  3572. * src/OptionHandlerFactory.cc
  3573. * src/RequestGroup.cc
  3574. * src/option_processing.cc
  3575. * src/prefs.cc
  3576. * src/prefs.h
  3577. * src/usage_text.h
  3578. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Added the ability to retrieve signature from Metalink file.
  3580. A retrieved signature is stored in Signature class and it is held by
  3581. DownloadContext class. Note that aria2 doesn't verify signature.
  3582. * src/DownloadContext.cc
  3583. * src/DownloadContext.h
  3584. * src/Makefile.am
  3585. * src/Makefile.in
  3586. * src/Metalink2RequestGroup.cc
  3587. * src/MetalinkEntry.cc
  3588. * src/MetalinkEntry.h
  3589. * src/MetalinkParserController.cc
  3590. * src/MetalinkParserController.h
  3591. * src/MetalinkParserStateMachine.cc
  3592. * src/MetalinkParserStateMachine.h
  3593. * src/Signature.cc
  3594. * src/Signature.h
  3595. * src/SignatureMetalinkParserState.cc
  3596. * src/SignatureMetalinkParserState.h
  3597. * src/VerificationMetalinkParserState.cc
  3598. * src/VerificationMetalinkParserState.h
  3599. * test/Metalink2RequestGroupTest.cc
  3600. * test/MetalinkParserControllerTest.cc
  3601. * test/MetalinkProcessorTest.cc
  3602. * test/test.xml
  3603. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3604. Close DiskAdaptor after renaming file.
  3605. * src/RequestGroup.cc
  3606. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. Corrected indentation
  3608. * src/DefaultBtProgressInfoFile.cc
  3609. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3610. Moved the calls of std::ios::exceptions() inside of try-catch block
  3611. because if an error occurred in constructor of std::fstream, then
  3612. exception is thrown immediately when std::ios::exceptions() is called
  3613. which results unhandled exception and aria2c aborts.
  3614. * src/DefaultBtProgressInfoFile.cc
  3615. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3616. Added the test for the previous change in DefaultBtContext.cc
  3617. * test/DefaultBtContextTest.cc
  3618. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Fixed the bug that causes infinite loop when the number of pieces are
  3620. fewer than allowed fast set size which is 10 by default.
  3621. * src/DefaultBtContext.cc
  3622. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Updated the descriptions for -j, -s. Added --bt-seed.
  3624. * doc/aria2c.1
  3625. * doc/aria2c.1.html
  3626. * doc/aria2c.1.txt
  3627. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3628. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3629. aria2 seeds previously downloaded files without validating piece hashs.
  3630. * src/HelpItemFactory.cc
  3631. * src/OptionHandlerFactory.cc
  3632. * src/RequestGroup.cc
  3633. * src/option_processing.cc
  3634. * src/prefs.cc
  3635. * src/prefs.h
  3636. * src/usage_text.h
  3637. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3638. Updated DESCRIPTION of man page.
  3639. * doc/aria2c.1
  3640. * doc/aria2c.1.html
  3641. * doc/aria2c.1.txt
  3642. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3643. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3644. Don't define `struct addrinfo' when __sun is defined.
  3645. * src/getaddrinfo.h
  3646. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3648. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3649. second argument is of type `struct _stati64'. Otherwise it is defined as
  3650. `struct stat'.
  3651. * src/AbstractDiskWriter.cc
  3652. * src/File.cc
  3653. * src/File.h
  3654. * src/a2io.h
  3655. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3656. Fixed the compile error in hurd-i386
  3657. See the original bug report:
  3658. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3659. * src/a2io.h
  3660. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Code cleanup.
  3662. * src/PeerAbstractCommand.cc
  3663. * src/PeerAbstractCommand.h
  3664. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3665. Removed TransferEncoding.
  3666. * src/DownloadCommand.cc
  3667. * src/DownloadCommand.h
  3668. * src/HttpResponseCommand.cc
  3669. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Updated po files.
  3671. * po/aria2c.pot
  3672. * po/*.po
  3673. * po/*.gmo
  3674. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3675. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3676. * src/A2STR.cc
  3677. * src/A2STR.h
  3678. * src/ChunkedDecoder.cc
  3679. * src/ChunkedDecoder.h
  3680. * src/ChunkedEncoding.cc: Removed
  3681. * src/ChunkedEncoding.h: Removed
  3682. * src/DownloadCommand.cc
  3683. * src/DownloadCommand.h
  3684. * src/HttpDownloadCommand.cc
  3685. * src/HttpResponse.cc
  3686. * src/HttpResponse.h
  3687. * src/HttpResponseCommand.cc
  3688. * src/HttpSkipResponseCommand.cc
  3689. * src/HttpSkipResponseCommand.h
  3690. * src/Makefile.am
  3691. * src/TransferEncoding.h: Removed
  3692. * test/ChunkedDecoderTest.cc
  3693. * test/ChunkedEncodingTest.cc: Removed
  3694. * test/HttpResponseTest.cc
  3695. * test/Makefile.am
  3696. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Use append instead of insert.
  3698. * src/GZipDecoder.cc
  3699. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Updated doc
  3701. * src/Decoder.h
  3702. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3703. Updated usage text for -s option.
  3704. * src/usage_text.h
  3705. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3707. * src/Request.cc
  3708. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Cleaned up configure.ac.
  3710. * configure.ac
  3711. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3713. AC_ARG_ENABLE.
  3714. * configure.ac
  3715. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3716. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3717. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3718. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3719. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3720. fly and writes decoded data to a local disk.
  3721. * README
  3722. * README.html
  3723. * configure.ac
  3724. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3725. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3726. * m4/libz.m4
  3727. * src/Decoder.h
  3728. * src/DownloadCommand.cc
  3729. * src/DownloadCommand.h
  3730. * src/Exception.h
  3731. * src/GZipDecoder.cc
  3732. * src/GZipDecoder.h
  3733. * src/HttpHeader.cc
  3734. * src/HttpHeader.h
  3735. * src/HttpRequest.cc
  3736. * src/HttpRequest.h
  3737. * src/HttpResponse.cc
  3738. * src/HttpResponse.h
  3739. * src/HttpResponseCommand.cc
  3740. * src/Makefile.am
  3741. * test/GZipDecoderTest.cc
  3742. * test/HttpRequestTest.cc
  3743. * test/HttpResponseTest.cc
  3744. * test/Makefile.am
  3745. * test/Makefile.in
  3746. * test/gzip_decode_test.gz
  3747. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3748. Clarified usage of -j option.
  3749. * src/usage_text.h
  3750. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3751. Disabled getting size from the response of RETR.
  3752. If SIZE command failed, then disable resuming and segmented downloading.
  3753. * src/FtpConnection.cc
  3754. * src/FtpConnection.h
  3755. * src/FtpNegotiationCommand.cc
  3756. * src/FtpNegotiationCommand.h
  3757. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Use digits to find first byte of file size, which makes the intention
  3759. of the code clearer.
  3760. * src/FtpConnection.cc
  3761. Don't call validateTotalLength() when size is 0.
  3762. * src/FtpNegotiationCommand.cc
  3763. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3764. Updated po files.
  3765. * po/aria2c.pot
  3766. * po/*.gmo
  3767. * po/*.po
  3768. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3769. Clarified usage text for --split option.
  3770. * src/usage_text.h
  3771. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3772. Bump up version number to 0.15.0dev. "dev" means "development"
  3773. version, which means I started the development of the next release!
  3774. * src/configure.ac
  3775. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. If FTP server returns negative response with REST raw command and
  3777. requested range is not 0, throw exception. If requested range is 0,
  3778. continue download a file from 0 byte.
  3779. * src/FtpNegotiationCommand.cc
  3780. * src/FtpNegotiationCommand.h
  3781. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3782. Supported FTP server which don't recognize SIZE raw command.
  3783. If SIZE raw command is failed, aria2 will try to get file size
  3784. from the response of RETR raw command. If both attempts are failed,
  3785. then resuming and segmented downloading are disabled.
  3786. * src/FtpConnection.cc
  3787. * src/FtpConnection.h
  3788. * src/FtpNegotiationCommand.cc
  3789. * src/FtpNegotiationCommand.h
  3790. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. * Release 0.14.0+1
  3792. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3793. Bump up version number to 0.14.0+1
  3794. * src/configure.ac
  3795. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3796. Fixed the code that refers static member variable from non-static
  3797. context.
  3798. * src/DefaultPeerStorage.cc
  3799. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. * Release 0.14.0
  3801. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Added build test script
  3803. * build_test.sh
  3804. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Updated ja.po
  3806. * src/ja.po
  3807. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Bump up version number to 0.14.0
  3809. * src/configure.ac
  3810. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Updated ja.po and fr.po. Great thanks for french translators and
  3812. Sebastien WILLEMIJNS.
  3813. * po/fr.po
  3814. * po/ja.po
  3815. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Added configure option to enable/disable epoll support.
  3817. * configure.ac
  3818. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Updated man page.
  3820. * doc/aria2c.1.txt
  3821. * doc/aria2c.1
  3822. * doc/aria2c.1.html
  3823. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. Added missing default value '5' to the usage of --split option.
  3825. * src/HelpItemFactory.cc
  3826. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Filled up pieces based on the number of missing blocks, rather than
  3828. simplay the number of piece * block length.
  3829. * src/BtRequestFactory.h
  3830. * src/DefaultBtInteractive.cc
  3831. * src/DefaultBtInteractive.h
  3832. * src/DefaultBtRequestFactory.cc
  3833. * src/DefaultBtRequestFactory.h
  3834. * src/Piece.cc
  3835. * src/Piece.h
  3836. * test/BitfieldManTest.cc
  3837. * test/DefaultBtRequestFactoryTest.cc
  3838. * test/MockBtRequestFactory.h
  3839. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Made _epEvents a member variable.
  3841. * src/DownloadEngine.cc
  3842. * src/DownloadEngine.h
  3843. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Cancel download if http redirect is bounded more than 20 times.
  3845. * src/AbstractCommand.cc
  3846. * src/HttpSkipResponseCommand.cc
  3847. * src/Request.cc
  3848. * src/Request.h
  3849. * test/RequestTest.cc
  3850. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Fixed unhandled exception(removed keyword `new').
  3852. * src/SocketCore.cc (initEPOLL)
  3853. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Removed visit(const MetaEntry*)
  3855. * src/MetaEntryVisitor.h:
  3856. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3857. and made them virtual.
  3858. * src/BencodeVisitor.h
  3859. * src/BencodeVisitor.cc
  3860. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3861. Updated po files.
  3862. * po/aria2c.pot
  3863. * po/*.po
  3864. * po/*.gmo
  3865. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3867. the number of socket to watch out.
  3868. * src/PeerInteractionCommand.cc
  3869. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. When there is not enough space in disk when writing a chunk of data,
  3871. aria2 now prints the message to the console to warn user and aborts
  3872. its download. Not all downloads are canceled because some downloads
  3873. may use another disk or partition. BUG#1640332
  3874. * src/AbstractDiskWriter.cc
  3875. * src/PeerAbstractCommand.cc
  3876. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3877. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3878. setHaltRequested(true) to cancel download.
  3879. * src/PeerInteractionCommand.h
  3880. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3882. socket from int to sock_t as sockets are unsigned in Windows.
  3883. For AsyncNameResolver, DownloadEngine, I did additional modification
  3884. for the portion of the code changed according to epoll support.
  3885. I defined sock_t in a2netcompat.h to use sock_t without including
  3886. SocketCore.h.
  3887. * src/AsyncNameResolver.cc
  3888. * src/AsyncNameResolver.h
  3889. * src/DownloadEngine.cc
  3890. * src/DownloadEngine.h
  3891. * src/SocketCore.cc
  3892. * src/SocketCore.h
  3893. * src/a2netcompat.h
  3894. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3896. changes in the patch were applied.
  3897. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3898. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3899. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3900. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3902. a2io.h and common.h were modified.
  3903. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3904. MinGW.
  3905. * src/common.h: Changed off_t to 64 bit in MinGW.
  3906. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3907. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3908. only a2netcompat.h is modified.
  3909. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3910. directives.
  3911. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3912. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3913. only gai_strerror.h is modified.
  3914. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3915. winsock errors in MinGW.
  3916. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3917. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3918. follow sources are applied.
  3919. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3920. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3921. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3922. I included locale.h from Platform.cc.
  3923. * src/main.cc: Moved common setup/teardown code to Platform class.
  3924. * test/AllTest.cc: Use Platform class.
  3925. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3926. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3928. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3929. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3930. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3931. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3932. aria2-0.13.2+1-mingw-2.patch.
  3933. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3934. systems which don't have termious.h. I moved the directive inside of
  3935. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3936. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3937. anyway.
  3938. * src/asctime_r.h
  3939. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3940. I added 2nd argument to the prototype declaration.
  3941. * src/StringFormat.cc: Get rid of vasprintf.
  3942. * src/getaddrinfo.h: Fixed constants.
  3943. * configure.ac: Added the check for asctime_r function.
  3944. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3945. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. Added writable test for Socket when the sending message is in progress.
  3947. Usually the sending message is piece message. Without wriable check,
  3948. upload latency is dropped to more than 1sec.
  3949. * src/PeerInteractionCommand.cc
  3950. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Create only requested files and files which shares a piece with
  3952. requested file in multi-torrent downloads. Directory structures are
  3953. also created in the same rule.
  3954. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3955. DiskWriterEntry as in the previous implementation.
  3956. * src/MultiDiskWriter.cc
  3957. * src/MultiFileAllocationIterator.cc
  3958. * src/MultiFileAllocationIterator.h
  3959. * test/MultiFileAllocationIteratorTest.cc
  3960. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Commented out -lprofiler
  3962. * src/Makefile.am
  3963. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Bump up version number to 0.14.0b.
  3965. * src/configure.ac
  3966. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3967. Actively establish connection to peers in seeding, when peer cache
  3968. is not full and max upload speed limit is not reached.
  3969. * src/ActivePeerConnectionCommand.cc
  3970. * src/ActivePeerConnectionCommand.h
  3971. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3972. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3973. to make room more fleshy, recently found peers.
  3974. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3975. it.
  3976. * src/DefaultPeerStorage.cc
  3977. * test/DefaultPeerStorageTest.cc
  3978. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Returns cached data only when the previous receiveHandshake() is called
  3980. with peek = true.
  3981. * src/PeerConnection.cc (receiveHandshake)
  3982. * src/PeerConnection.h (receiveHandshake)
  3983. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Changed default value of -s option from 1 to 5.
  3985. Also max value of -s option is changed from 5 to 16.
  3986. * src/HelpItemFactory.cc
  3987. * src/OptionHandlerFactory.cc
  3988. * src/option_processing.cc
  3989. * src/usage_text.h
  3990. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Changed -s options behavior. Now it means the number of connections
  3992. made simultaneously in each http/ftp download.
  3993. If 1 URL is specified, the behavior is the same with old implementation.
  3994. If -s N is given and more than N URLs are specified, first N URLs are
  3995. used and remaining URLs are used for backup. If less than N URLs are
  3996. specified, some of URLs are used more than once so that totally N
  3997. connections are made simultaneously.
  3998. * src/main.cc
  3999. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Included missing iosfwd or ostream header.
  4001. * src/RequestGroupMan.cc
  4002. * src/TaggedItem.cc
  4003. * src/TaggedItem.h
  4004. * src/Util.cc
  4005. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4007. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4008. * src/HttpConnection.cc: Included missing sstream.
  4009. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Added --bt-max-open-files option.
  4011. * src/DefaultPieceStorage.cc
  4012. * src/HelpItemFactory.cc
  4013. * src/MultiDiskAdaptor.cc
  4014. * src/MultiDiskAdaptor.h
  4015. * src/OptionHandlerFactory.cc
  4016. * src/option_processing.cc
  4017. * src/prefs.cc
  4018. * src/prefs.h
  4019. * src/usage_text.h
  4020. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Fixed the bug that aria2 aborts when a path to a directory is given
  4022. in command-line.
  4023. * src/ProtocolDetector.cc
  4024. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Limited the number files opened in each BitTorrent download. The default
  4026. value is 100. The option to change this value will be added.
  4027. * src/MultiDiskAdaptor.cc
  4028. * src/MultiDiskAdaptor.h
  4029. * src/MultiFileAllocationIterator.cc
  4030. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4031. Fixed the bug that HTTP downloads don't start with old libraries.
  4032. * src/HttpHeaderProcessor.cc
  4033. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4034. Use empty() instead of size() > 0.
  4035. * src/HttpConnection.cc
  4036. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4037. Drop connection if the incoming peer ID is the same with localhost's
  4038. one. The previous implementation drops connection when incoming peer's
  4039. IP address is the same with localhost's one.
  4040. * src/PeerListenCommand.cc
  4041. * src/DefaultBtInteractive.cc
  4042. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Returns cached data without checking whether socket is readable
  4044. if the cache is available.
  4045. * src/PeerConnection.cc (receiveHandshake)
  4046. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4047. Included stdint.h
  4048. * src/common.h
  4049. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Removed duplicate HAVE_GETTIMEOFDAY
  4051. * src/Makefile.am
  4052. * src/Makefile.in
  4053. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Use interval as a minInterval when minInterval is not supplied.
  4055. * src/DefaultBtAnnounce.cc
  4056. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4058. attempt is failed, then 2nd attempt get kicked out more quickly.
  4059. And it is now static const member of DefaultBtAnnounce.
  4060. * src/DefaultBtAnnounce.h
  4061. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4063. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4064. * src/ActivePeerConnectionCommand.cc
  4065. * src/BtConstants.h
  4066. * src/BtRuntime.h
  4067. * src/DHTGetPeersCommand.cc
  4068. * src/DefaultBtAnnounce.cc
  4069. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4070. BtRuntime::MAX_PEERS.
  4071. * src/DefaultPeerStorage.h
  4072. * src/InitiatorMSEHandshakeCommand.cc
  4073. * src/PeerInitiateConnectionCommand.cc
  4074. * src/PeerInteractionCommand.cc
  4075. * src/PeerReceiveHandshakeCommand.cc
  4076. * src/TrackerWatcherCommand.cc
  4077. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. Always Connect to _numNewConnection
  4079. * src/ActivePeerConnectionCommand.cc
  4080. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4081. Made `begin' unsigned int.
  4082. * src/GrowSegment.h
  4083. * src/Piece.cc
  4084. * src/Piece.h
  4085. * src/PiecedSegment.cc
  4086. * src/PiecedSegment.h
  4087. * src/Segment.h
  4088. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Calculate piece hash when data is arrived if the data is arrived in
  4090. order. This removes additional read operation for hash calculation.
  4091. If the data is arrived in out of order, the hash is calucated when the
  4092. piece is completed. This is the same behavior as the old implementation.
  4093. * src/BtPieceMessage.cc
  4094. * src/DefaultBtProgressInfoFile.cc
  4095. * src/DefaultPieceStorage.cc
  4096. * src/DownloadCommand.cc
  4097. * src/DownloadCommand.h
  4098. * src/DownloadEngine.cc
  4099. * src/GrowSegment.cc
  4100. * src/GrowSegment.h
  4101. * src/Piece.cc
  4102. * src/Piece.h
  4103. * src/PiecedSegment.cc
  4104. * src/PiecedSegment.h
  4105. * src/Segment.h
  4106. * test/PieceTest.cc
  4107. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Try to keep the ordering of outgoing piece message.
  4109. * src/DefaultBtMessageDispatcher.cc
  4110. (DefaultBtMessageDispatcher::sendMessages)
  4111. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4112. Fixed busy loop when error/hup epoll events occur.
  4113. * src/AbstractCommand.cc
  4114. * src/PeerAbstractCommand.cc
  4115. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Added --bt-request-peer-speed-limit option, which was a constant
  4117. SLOW_SPEED_THRESHOLD.
  4118. * src/ActivePeerConnectionCommand.cc
  4119. * src/ActivePeerConnectionCommand.h
  4120. * src/BtConstants.h
  4121. * src/HelpItemFactory.cc
  4122. * src/OptionHandlerFactory.cc
  4123. * src/PeerReceiveHandshakeCommand.cc
  4124. * src/option_processing.cc
  4125. * src/prefs.cc
  4126. * src/prefs.h
  4127. * src/usage_text.h
  4128. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4129. Removed repeated call of getTopDirPath(). Instead, call it once and
  4130. cache the result.
  4131. * src/MultiDiskAdaptor.cc
  4132. * src/MultiDiskAdaptor.h
  4133. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4134. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Fixed compile error on debian etch.
  4136. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4137. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4138. it is undefined.
  4139. * src/Util.cc (ULLONG_MAX)
  4140. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Added epoll support. Use epoll if it is available. If not, use select.
  4142. When async dns is enabled in compile time, epoll support is enabled
  4143. only when aria2 is built with c-ares. This condition statement is
  4144. defined in a2io.h.
  4145. Currently aria2 supports both c-ares and ares, but ares is maintained
  4146. for quite a while and debian already has c-ares package, ares support
  4147. will be dropped in the future version.
  4148. * configure.ac
  4149. * src/AbstractCommand.cc
  4150. * src/AsyncNameResolver.cc
  4151. * src/AsyncNameResolver.h
  4152. * src/Command.cc
  4153. * src/Command.h
  4154. * src/DownloadEngine.cc
  4155. * src/DownloadEngine.h
  4156. * src/PeerAbstractCommand.cc
  4157. * src/SocketCore.cc
  4158. * src/SocketCore.h
  4159. * src/a2io.h
  4160. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4161. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4162. directive.
  4163. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Do not do write operation to /dev/null file.
  4165. * src/LogFactory.cc
  4166. * src/SimpleLogger.cc
  4167. Replaced vasprintf with vsnprintf
  4168. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4169. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4170. * src/BtRequestMessage.cc
  4171. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4172. for segmentation fault caused by previous commit.
  4173. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. Reduced the usage of gettimeofday().
  4175. * src/DefaultBtMessageDispatcher.cc
  4176. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4177. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4178. * src/RequestSlot.cc
  4179. * src/RequestSlot.h
  4180. (RequestSlot::isTimeout)
  4181. Made RequestSlot have a reference to Piece object to avoid find
  4182. Piece repeatedly.
  4183. * src/DefaultBtMessageDispatcher.cc
  4184. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4185. * src/RequestSlot.cc
  4186. * src/RequestSlot.h
  4187. (RequestSlot::getPiece)
  4188. * test/DefaultBtMessageDispatcherTest.cc
  4189. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. * src/TimeA2.cc
  4191. * src/TimeA2.h
  4192. (Time::difference): New function.
  4193. (Time::elapsed): Done optimization.
  4194. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4196. directive.
  4197. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. * src/option_processing.cc: Added missing `defined' keyword to #if
  4199. directive.
  4200. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Bump up version number to 0.13.2+1
  4202. * src/configure.ac
  4203. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Refactored broken outstanding piece handling.
  4205. * src/DefaultPieceStorage.cc
  4206. * src/DefaultPieceStorage.h
  4207. * src/Piece.cc
  4208. * src/Piece.h
  4209. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4211. name collision of static variable and predefined macro.
  4212. * src/BtContext.cc
  4213. * src/BtContext.h
  4214. * src/CookieBoxFactory.cc
  4215. * src/CookieBoxFactory.h
  4216. * src/CookieParser.cc
  4217. * src/CookieParser.h
  4218. * src/DefaultBtContext.cc
  4219. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4220. * src/RequestGroup.cc
  4221. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4222. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. * Release 0.13.2
  4224. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4225. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4226. * po/fr.po
  4227. * po/ja.po
  4228. * po/aria2c.pot
  4229. * po/*.po
  4230. * po/*.gmo
  4231. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4232. Bump up version number to 0.13.2
  4233. * src/configure.ac
  4234. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4235. Refactord.
  4236. * src/RequestGroupMan.cc
  4237. (removeStoppedGroup)
  4238. (fillRequestGroupFromReserver)
  4239. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Fixed compile error on Ubuntu.
  4241. * src/BtPieceMessage.cc
  4242. * src/MessageDigestHelper.cc
  4243. * src/Util.cc
  4244. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Fixed compile error when configured with --disable-bittorrent
  4246. * test/DownloadHandlerFactoryTest.cc
  4247. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Done make update-po
  4249. * po/aria2c.pot
  4250. * po/*.po
  4251. * po/*.gmo
  4252. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Bump up version number to 0.13.2rc.
  4254. * src/configure.ac
  4255. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4256. Made option name bold. Updated SYNOPSIS to make it more readable.
  4257. * doc/aria2c.1.txt
  4258. * doc/aria2c.1
  4259. * doc/aria2c.1.html
  4260. * src/version_usage.cc
  4261. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Refactored. Use std::string instead of size and char*.
  4263. * Data.cc
  4264. * Data.h
  4265. * test/Data.cc
  4266. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Added trimSelf(). Rewritten trim() to use trimSelf().
  4268. * Util.cc
  4269. * Util.h
  4270. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4271. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4272. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. Fixed compile error when configured with --disable-metalink.
  4274. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4275. * test/FeatureConfigTest.cc
  4276. * test/DownloadHandlerFactoryTest.cc
  4277. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Fixed compile error when configured with --without-gnutls
  4279. --without-openssl
  4280. * src/main.cc
  4281. * test/DefaultBtProgressInfoFileTest.cc
  4282. * test/SegmentManTest.cc
  4283. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4284. Fixed compile error with OpenSSL.
  4285. * src/IteratableChunkChecksumValidator.cc
  4286. * src/LibsslDHKeyExchange.h
  4287. * src/MessageDigestHelper.cc
  4288. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Revert the default value of --max-concurrent-downloads to 5.
  4290. Revert the default value of --metalink-servers to 5.
  4291. Man pages was also updated.
  4292. * src/option_processing.cc
  4293. * doc/aria2c.1.txt
  4294. * doc/aria2c.1.html
  4295. * doc/aria2c.1
  4296. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Returns const reference:
  4298. DownloadContext::getPieceHash, DownloadContext::getName,
  4299. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4300. BtContext::getInfoHashAsString,
  4301. * src/BtContext.h
  4302. * src/DefaultBtContext.cc
  4303. * src/DefaultBtContext.h
  4304. * src/DownloadContext.h
  4305. * src/SingleFileDownloadContext.h
  4306. * test/MockBtContext.h
  4307. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4308. * src/RequestGroup.h (getDir): Removed.
  4309. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Returns const reference. The internal urlencode function was optimized
  4311. a little bit.
  4312. * src/Request.cc
  4313. * src/Request.h
  4314. * src/HttpRequest.cc
  4315. * src/HttpRequest.h
  4316. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Defined option name and possible values as std::string to reduce
  4318. temporary string object creation in runtime.
  4319. * src/HelpItemFactory.cc
  4320. * src/LogFactory.cc
  4321. * src/Option.cc
  4322. * src/OptionHandlerFactory.cc
  4323. * src/option_processing.cc
  4324. * src/prefs.cc
  4325. * src/prefs.h
  4326. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Return const reference.
  4328. * src/DownloadHandlerConstants.cc
  4329. * src/DownloadHandlerConstants.h
  4330. (getMetalinkExtensions)
  4331. (getMetalinkContentTypes)
  4332. (getBtExtensions)
  4333. (getBtContentTypes)
  4334. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. * src/HttpHeader.cc (get): Rewritten.
  4336. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4337. Make HttpHeader::getFirst(...) return const reference.
  4338. * src/HttpHeader.cc
  4339. * src/HttpHeader.h
  4340. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4342. it with V_TRUE.
  4343. * src/DefaultPieceStorage.cc
  4344. * src/DownloadCommand.cc
  4345. * src/FtpNegotiationCommand.cc
  4346. * src/HttpRequest.cc
  4347. * src/InitiateConnectionCommand.cc
  4348. * src/RequestGroup.cc
  4349. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Made Option::get(...) return const reference of std::string.
  4351. * src/Option.cc
  4352. * src/Option.h
  4353. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4354. Replaced std:copy with insert.
  4355. * src/DefaultBtMessageDispatcher.cc
  4356. * src/DefaultPieceStorage.cc
  4357. * src/DownloadEngineFactory.cc
  4358. * src/RequestGroup.cc
  4359. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. Included SocketCore.h to fix compiler warning.
  4361. * src/InitiateConnectionCommand.cc
  4362. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4363. Put piece selection strategy algorithm to RarestPieceSelector class,
  4364. Added a switch to choose whether randomized selection so that unit
  4365. tests emit same results in, possibly, win32.
  4366. * src/DefaultPieceStorage.cc
  4367. * src/DefaultPieceStorage.h
  4368. * src/RarestPieceSelector.cc
  4369. * src/RarestPieceSelector.h
  4370. * test/DefaultPieceStorageTest.cc
  4371. * test/RarestPieceSelectorTest.cc
  4372. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4373. Don't pool connection if HTTP proxy is enabled.
  4374. * src/FtpFinishDownloadCommand.cc
  4375. * src/FtpNegotiationCommand.cc
  4376. * src/HttpSkipResponseCommand.cc
  4377. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4378. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4379. * src/AbstractCommand.cc
  4380. * src/AbstractCommand.h
  4381. * src/ActivePeerConnectionCommand.cc
  4382. * src/FtpInitiateConnectionCommand.cc
  4383. * src/HttpInitiateConnectionCommand.cc
  4384. * src/InitiateConnectionCommandFactory.cc
  4385. * src/PeerAbstractCommand.cc
  4386. * src/PeerAbstractCommand.h
  4387. * src/PeerInitiateConnectionCommand.cc
  4388. * src/TrackerWatcherCommand.cc
  4389. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Sort RequestSlot in ascending order and manipulate them using
  4391. lower_bound.
  4392. * src/DefaultBtMessageDispatcher.cc
  4393. * src/DefaultBtMessageDispatcher.h
  4394. (getMessageQueue): Added const qualifier.
  4395. (getRequestSlots): Added const qualifier.
  4396. (sendMessages): Use empty() instead of size().
  4397. (doCancelSendingPieceAction): Use HandleEvent object.
  4398. (doAbortOutstandingRequestAction): Rewritten.
  4399. (doChokedAction): Rewritten.
  4400. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4401. (isOutstandingRequest): Rewritten.
  4402. (getOutstandingRequest): Rewritten.
  4403. (removeOutstandingRequest): Rewritten.
  4404. (addOutstandingRequest): Rewritten.
  4405. * src/RequestSlot.cc
  4406. * src/RequestSlot.h
  4407. (operator=): Rewritten.
  4408. (operator!=): New function.
  4409. (operator<): New function.
  4410. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. * src/DefaultBtRequestFactory.cc
  4412. (doChokedAction): Rewritten.
  4413. (removeCompletedPiece): Rewritten.
  4414. (removeTargetPiece): Rewritten.
  4415. (createRequestMessages): Added the debug log.
  4416. (createRequestMessagesOnEndGame: Added the debug log.
  4417. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Added the debug log message.
  4419. * src/BtPieceMessage.cc (doReceivedAction)
  4420. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4422. used lower_bound to process them rather than linear search.
  4423. * src/DHTPeerAnnounceStorage.cc
  4424. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4426. peer has at least one completed piece.
  4427. * src/Peer.cc
  4428. * src/Peer.h
  4429. * src/PeerInteractionCommand.cc
  4430. * src/PeerSessionResource.cc
  4431. * src/PeerSessionResource.h
  4432. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4433. Removed unnecessary sorting
  4434. * src/DefaultPieceStorage (DefaultPieceStorage)
  4435. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Rewritten the portion of the code that mangaes allowed fast indexes.
  4437. * src/PeerSessionResource.cc
  4438. * src/PeerSessionResource.h
  4439. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Removed the invalid string including '\r' from ru.po and
  4441. did make update-po.
  4442. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Added --log-level and --summary-interval to man page.
  4444. * doc/aria2c.1.txt
  4445. * doc/aria2c.1.html
  4446. * doc/aria2c.1
  4447. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4448. Added --log-level option to specify log level. Log messages under
  4449. the specified level are not output. Default value is `debug'.
  4450. * src/HelpItemFactory.cc
  4451. * src/LogFactory.cc
  4452. * src/LogFactory.h
  4453. * src/Logger.h
  4454. * src/OptionHandlerFactory.cc
  4455. * src/SimpleLogger.cc
  4456. * src/SimpleLogger.h
  4457. * src/main.cc
  4458. * src/option_processing.cc
  4459. * src/prefs.h
  4460. * src/usage_text.h
  4461. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Print download progress summary of all parallel downloads in specified
  4463. interval, default 60 secs. While aria2 could download several files
  4464. in parallel (see -j option), it displayed just first download progress,
  4465. and the other downloads are hidden from the users. This new feature
  4466. prints all downloads currently in-progress to the console so that you
  4467. can check the status of all downloads. The interval can be adjusted
  4468. by --summary-interval option.
  4469. The progress readout is now cut so that all fits in the one line of
  4470. console.
  4471. * src/ConsoleStatCalc.cc
  4472. * src/ConsoleStatCalc.h
  4473. * src/HelpItemFactory.cc
  4474. * src/OptionHandlerFactory.cc
  4475. * src/RequestGroupMan.cc
  4476. * src/RequestGroupMan.h
  4477. * src/main.cc
  4478. * src/option_processing.cc
  4479. * src/prefs.h
  4480. * src/usage_text.h
  4481. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4482. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4483. * src/DownloadEngine.cc (DownloadEngine)
  4484. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4486. defined.
  4487. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4488. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Use erase+lower_bound+insert instead of sort.
  4490. * src/DefaultPieceStorage.cc (addPieceStats)
  4491. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4492. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4493. * src/A2STR.cc
  4494. * src/A2STR.h
  4495. * src/OptionParser.cc (parse)
  4496. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Defined fake filename `[tracker.announce]' as static const std::string.
  4498. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4499. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Defined default filename `index.html' as static const std::string
  4501. * src/SingleFileDownloadContext.cc
  4502. * src/SingleFileDownloadContext.h
  4503. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. Defined "[MEMORY]" as static const std::string.
  4505. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4506. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4507. Defined control file's version number as static const std::string.
  4508. * src/DefaultBtProgressInfoFile.cc
  4509. * src/DefaultBtProgressInfoFile.h
  4510. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Use Request::METHOD_GET
  4512. * src/RequestGroup.cc (createNextCommandWithAdj)
  4513. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Defined "OK", "ERR", "INPR" as static const std::string
  4515. * src/RequestGroupMan.cc (showDownloadResults)
  4516. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Defined default client used in extended handshake as static const
  4518. std::string
  4519. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4520. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4521. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4522. * src/HttpConnection.cc (eraseConfidentialInfo)
  4523. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Defined default ftp user and password as static const std::string
  4525. * src/AuthConfigFactory.cc
  4526. * src/AuthConfigFactory.h
  4527. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4528. Defined strings used in netrc as static const std::string
  4529. * src/Netrc.cc
  4530. * src/Netrc.h
  4531. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4532. Defined HTTP status as static const std::string
  4533. * src/AbstractProxyResponseCommand.cc
  4534. * src/HttpHeader.cc
  4535. * src/HttpHeader.h
  4536. * src/HttpResponse.cc
  4537. * src/HttpResponseCommand.cc
  4538. * src/HttpSkipResponseCommand.cc
  4539. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4540. Defined "\r\n", "A", "I" as static const std::string
  4541. * src/A2STR.cc
  4542. * src/A2STR.h
  4543. * src/FtpConnection.cc
  4544. * src/FtpConnection.h
  4545. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. Added COLON_C(".") and used it in Request::parseUrl()
  4547. * src/A2STR.cc
  4548. * src/A2STR.h
  4549. * src/Request.cc (parseUrl)
  4550. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Changed the type of padName from `const std::string&' to `const char*'.
  4552. * src/MSEHandshake.cc (verifyPadLength)
  4553. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Defined "sha1" as static const std::string.
  4555. * src/MetalinkParserController.cc
  4556. * src/MetalinkParserController.h
  4557. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Defined message digest algorithm name as static const std::string
  4559. * src/DHTTokenTracker.cc
  4560. * src/DHTUtil.cc
  4561. * src/DefaultBtContext.cc
  4562. * src/MSEHandshake.cc
  4563. * src/MessageDigestHelper.cc
  4564. * src/Peer.cc
  4565. * src/messageDigest.cc
  4566. * src/messageDigest.h
  4567. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4568. Made string literals used in SAX parser static const std::string.
  4569. * src/FileMetalinkParserState.cc
  4570. * src/FileMetalinkParserState.h
  4571. * src/FilesMetalinkParserState.cc
  4572. * src/FilesMetalinkParserState.h
  4573. * src/InitialMetalinkParserState.cc
  4574. * src/InitialMetalinkParserState.h
  4575. * src/MetalinkMetalinkParserState.cc
  4576. * src/MetalinkMetalinkParserState.h
  4577. * src/PiecesMetalinkParserState.cc
  4578. * src/PiecesMetalinkParserState.h
  4579. * src/ResourcesMetalinkParserState.cc
  4580. * src/ResourcesMetalinkParserState.h
  4581. * src/VerificationMetalinkParserState.cc
  4582. * src/VerificationMetalinkParserState.h
  4583. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4584. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4585. * src/A2STR.cc
  4586. * src/A2STR.h
  4587. * src/File.cc
  4588. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Defined static const std::string IP("ip"), PORT("port") and use them
  4590. instead of string literals.
  4591. * src/DefaultPeerListProcessor.cc
  4592. * src/DefaultPeerListProcessor.h
  4593. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Made string literals for torrent file processing static const
  4595. std::string.
  4596. * src/BtContext.cc
  4597. * src/BtContext.h
  4598. * src/DefaultBtContext.cc
  4599. * src/DefaultBtContext.h
  4600. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Made string literal for tracker response static const std::string
  4602. * src/BtAnnounce.cc
  4603. * src/BtAnnounce.h
  4604. * src/DefaultBtAnnounce.cc
  4605. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Use DHTMessage::T instead of "t".
  4607. * src/DHTMessageTracker.cc (messageArrived)
  4608. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Made keyName static const. Made trimmed charset static const
  4610. std::string.
  4611. * src/Util.cc (getContentDispositionFilename)
  4612. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Made USER_AGENT const. Made "/" static const std::string.
  4614. * src/A2STR.cc
  4615. * src/A2STR.h
  4616. * src/HttpRequest.cc
  4617. * src/HttpRequest.h
  4618. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Made string listeral to static const std::string:
  4620. "Content-Range", "Content-Length"
  4621. * src/HttpHeader.cc
  4622. * src/HttpHeader.h
  4623. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Made string listeral to static const std::string.
  4625. * src/HttpConnection.cc
  4626. * src/HttpHeader.cc
  4627. * src/HttpHeader.h
  4628. * src/HttpResponse.cc
  4629. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Made string listeral to static const std::string.
  4631. * src/A2STR.cc
  4632. * src/A2STR.h
  4633. * src/SimpleLogger.cc
  4634. * src/SimpleLogger.h
  4635. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4636. Made string literal to static const std::string.
  4637. Rewritten CookieParser::setField.
  4638. * src/A2STR.cc
  4639. * src/A2STR.h
  4640. * src/CookieBoxFactory.cc
  4641. * src/CookieBoxFactory.h
  4642. * src/CookieParser.cc
  4643. * src/CookieParser.h
  4644. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Made string literal to static const std::string
  4646. * src/DHTAbstractMessage.cc
  4647. * src/DHTAnnouncePeerMessage.cc
  4648. * src/DHTAnnouncePeerMessage.h
  4649. * src/DHTAnnouncePeerReplyMessage.cc
  4650. * src/DHTAnnouncePeerReplyMessage.h
  4651. * src/DHTFindNodeMessage.cc
  4652. * src/DHTFindNodeMessage.h
  4653. * src/DHTFindNodeReplyMessage.cc
  4654. * src/DHTFindNodeReplyMessage.h
  4655. * src/DHTGetPeersMessage.cc
  4656. * src/DHTGetPeersMessage.h
  4657. * src/DHTGetPeersReplyMessage.cc
  4658. * src/DHTGetPeersReplyMessage.h
  4659. * src/DHTMessage.cc
  4660. * src/DHTMessage.h
  4661. * src/DHTMessageFactoryImpl.cc
  4662. * src/DHTMessageReceiver.cc
  4663. * src/DHTPingMessage.cc
  4664. * src/DHTPingMessage.h
  4665. * src/DHTPingReplyMessage.cc
  4666. * src/DHTPingReplyMessage.h
  4667. * src/DHTQueryMessage.cc
  4668. * src/DHTQueryMessage.h
  4669. * src/DHTResponseMessage.cc
  4670. * src/DHTResponseMessage.h
  4671. * src/DHTUnknownMessage.cc
  4672. * src/DHTUnknownMessage.h
  4673. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Made string literal to static const std::string
  4675. * src/BtChokeMessage.cc (toString)
  4676. * src/BtHaveAllMessage.cc (toString)
  4677. * src/BtHaveNoneMessage.cc (toString)
  4678. * src/BtInterestedMessage.cc (toString)
  4679. * src/BtNotInterestedMessage.cc (toString)
  4680. * src/BtUnchokeMessage.cc (toString)
  4681. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4682. Replaced "" with static const variable A2STR::NIL.
  4683. Replaced string comparison against "" with std::string::empty().
  4684. Added PROTO_* to Request class and use them as a protocol string
  4685. constant.
  4686. Made "started", "stopped", "completed" static const variable in
  4687. AnnounceList class.
  4688. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Updated translations. Great thanks to translators.
  4690. * po/ca.po
  4691. * po/de.po
  4692. * po/fr.po
  4693. * po/it.po
  4694. * po/ja.po
  4695. * po/ru.po
  4696. * po/zh_CN.po
  4697. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Updated man page; categorized options and fixed typo.
  4699. * doc/aria2c.1.txt
  4700. * doc/aria2c.1.html
  4701. * doc/aria2c.1
  4702. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Removed const ref
  4704. * src/MetalinkEntry.cc (AddProtocolPreference)
  4705. * src/RequestGroup.cc (FindServerHostByHostname)
  4706. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4707. Rewritten Accept-Features handling.
  4708. * src/HttpRequestCommand.cc (createHttpRequest)
  4709. * src/a2functional.h
  4710. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4711. Changed method signature:
  4712. DHTAbstractNodeLookupTask::toEntries
  4713. * src/DHTAbstractNodeLookupTask.cc
  4714. * src/DHTAbstractNodeLookupTask.h
  4715. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Changed method signature:
  4717. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4718. * src/BtContext.h
  4719. * src/DefaultBtContext.cc
  4720. * src/DefaultBtContext.h
  4721. * src/DefaultBtInteractive.cc
  4722. * test/DefaultBtContextTest.cc
  4723. * test/MockBtContext.h
  4724. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. Changed method signature:
  4726. MultiFileAllocationIterator::makeDiskWriterEntries
  4727. * src/MultiFileAllocationIterator.cc
  4728. * src/MultiFileAllocationIterator.h
  4729. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. Changed method sinature:
  4731. MetalinkEntry::toFileEntry,
  4732. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4733. Metalinker::queryEntry
  4734. * src/Metalink2RequestGroup.cc
  4735. * src/MetalinkEntry.cc
  4736. * src/MetalinkEntry.h
  4737. * src/MetalinkHelper.cc
  4738. * src/MetalinkHelper.h
  4739. * src/Metalinker.cc
  4740. * src/Metalinker.h
  4741. * src/main.cc
  4742. * test/MetalinkHelperTest.cc
  4743. * test/MetalinkerTest.cc
  4744. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4745. Changed method sinature:
  4746. RequestGroup::getURIs
  4747. * src/RequestGroup.cc
  4748. * src/RequestGroup.h
  4749. * test/Metalink2RequestGroupTest.cc
  4750. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Changed method signature:
  4752. PeerListProcessor::extractPeer
  4753. * src/CompactPeerListProcessor.cc
  4754. * src/CompactPeerListProcessor.h
  4755. * src/DefaultBtAnnounce.cc
  4756. * src/DefaultPeerListProcessor.cc
  4757. * src/DefaultPeerListProcessor.h
  4758. * src/DelegatingPeerListProcessor.cc
  4759. * src/DelegatingPeerListProcessor.h
  4760. * src/PeerListProcessor.h
  4761. * src/UTPexExtensionMessage.cc
  4762. * test/DefaultPeerListProcessorTest.cc
  4763. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Changed method signature:
  4765. BtRequestFactory::createRequestMessages,
  4766. BtRequestFactory::createRequestMessagesOnEndGame
  4767. * src/BtRequestFactory.h
  4768. * src/DefaultBtInteractive.cc
  4769. * src/DefaultBtRequestFactory.cc
  4770. * src/DefaultBtRequestFactory.h
  4771. * test/DefaultBtRequestFactoryTest.cc
  4772. * test/MockBtRequestFactory.h
  4773. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Changed method signature:
  4775. PieceStorage::getInFlightPieces
  4776. * src/DefaultBtProgressInfoFile.cc
  4777. * src/DefaultPieceStorage.cc
  4778. * src/DefaultPieceStorage.h
  4779. * src/PieceStorage.h
  4780. * src/UnknownLengthPieceStorage.cc
  4781. * src/UnknownLengthPieceStorage.h
  4782. * test/DefaultBtProgressInfoFileTest.cc
  4783. * test/MockPieceStorage.h
  4784. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Changed method signature:
  4786. PostDownloadHandler::getNextRequestGroups
  4787. Metalink2RequestGroup::generate
  4788. RequestGroup::postDownloadProcessing
  4789. * src/BtPostDownloadHandler.cc
  4790. * src/BtPostDownloadHandler.h
  4791. * src/Metalink2RequestGroup.cc
  4792. * src/Metalink2RequestGroup.h
  4793. * src/MetalinkPostDownloadHandler.cc
  4794. * src/MetalinkPostDownloadHandler.h
  4795. * src/PostDownloadHandler.h
  4796. * src/RequestGroup.cc
  4797. * src/RequestGroup.h
  4798. * src/RequestGroupMan.cc
  4799. * src/main.cc
  4800. * test/BtPostDownloadHandlerTest.cc
  4801. * test/Metalink2RequestGroupTest.cc
  4802. * test/MetalinkPostDownloadHandlerTest.cc
  4803. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Rewritten AccRequestGroup
  4805. * src/main.cc
  4806. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4807. Rewritten.
  4808. * src/TaggedItem.cc (toTagString)
  4809. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. Rewritten Accept-Features handling.
  4811. * src/HttpRequestCommand.cc (createHttpRequest)
  4812. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4813. Rewritten accept types handling.
  4814. * HttpRequest.cc (createRequest)
  4815. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4816. Rewritten
  4817. * src/FeatureConfig.cc (featureSummary)
  4818. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Changed method signature:
  4820. PeerStorage::getActivePeers
  4821. * src/DHTPeerAnnounceEntry.cc
  4822. * src/DefaultPeerStorage.cc
  4823. * src/DefaultPeerStorage.h
  4824. * src/PeerStorage.h
  4825. * test/DefaultPeerStorageTest.cc
  4826. * test/MockPeerStorage.h
  4827. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Changed method signature:
  4829. DHTPeerAnnounceStorage::getPeers,
  4830. DHTPeerAnnounceEntry::getPeers
  4831. * src/DHTGetPeersMessage.cc
  4832. * src/DHTPeerAnnounceEntry.cc
  4833. * src/DHTPeerAnnounceEntry.h
  4834. * src/DHTPeerAnnounceStorage.cc
  4835. * src/DHTPeerAnnounceStorage.h
  4836. * test/DHTAnnouncePeerMessageTest.cc
  4837. * test/DHTPeerAnnounceEntryTest.cc
  4838. * test/DHTPeerAnnounceStorageTest.cc
  4839. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4840. Changed method signature:
  4841. NameResolver::resolve
  4842. * src/DHTEntryPointNameResolveCommand.cc
  4843. * src/InitiateConnectionCommand.cc
  4844. * src/NameResolver.cc
  4845. * src/NameResolver.h
  4846. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4847. Changed method signature:
  4848. PieceStorage::getAdvertisedPieceIndexes
  4849. * src/DefaultBtInteractive.cc
  4850. * src/DefaultPieceStorage.cc
  4851. * src/DefaultPieceStorage.h
  4852. * src/PieceStorage.h
  4853. * src/UnknownLengthPieceStorage.h
  4854. * test/MockPieceStorage.h
  4855. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4856. Changed method signature:
  4857. SegmentMan::getInFlightSegment
  4858. * src/AbstractCommand.cc
  4859. * src/SegmentMan.cc
  4860. * src/SegmentMan.h
  4861. * test/SegmentManTest.cc
  4862. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4863. Changed method signature:
  4864. DHTAbstractNodeLookupTask::getNodesFromMessage
  4865. * src/DHTAbstractNodeLookupTask.cc
  4866. * src/DHTAbstractNodeLookupTask.h
  4867. * src/DHTNodeLookupTask.cc
  4868. * src/DHTNodeLookupTask.h
  4869. * src/DHTPeerLookupTask.cc
  4870. * src/DHTPeerLookupTask.h
  4871. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4873. * src/AbstractCommand.cc
  4874. * src/BtCheckIntegrityEntry.cc
  4875. * src/BtCheckIntegrityEntry.h
  4876. * src/BtFileAllocationEntry.cc
  4877. * src/BtFileAllocationEntry.h
  4878. * src/BtSetup.cc
  4879. * src/BtSetup.h
  4880. * src/CheckIntegrityCommand.cc
  4881. * src/CheckIntegrityEntry.h
  4882. * src/ChecksumCheckIntegrityEntry.cc
  4883. * src/ChecksumCheckIntegrityEntry.h
  4884. * src/DHTSetup.cc
  4885. * src/DHTSetup.h
  4886. * src/DownloadEngine.cc
  4887. * src/FileAllocationCommand.cc
  4888. * src/FileAllocationEntry.h
  4889. * src/RequestGroup.cc
  4890. * src/RequestGroup.h
  4891. * src/RequestGroupMan.cc
  4892. * src/RequestGroupMan.h
  4893. * src/StreamCheckIntegrityEntry.cc
  4894. * src/StreamCheckIntegrityEntry.h
  4895. * src/StreamFileAllocationEntry.cc
  4896. * src/StreamFileAllocationEntry.h
  4897. * src/TrackerWatcherCommand.cc
  4898. * src/a2functional.h
  4899. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Changed method signature:
  4901. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4902. DHTBucket::getGoodNodes,
  4903. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4904. * src/BNode.cc
  4905. * src/BNode.h
  4906. * src/DHTAbstractNodeLookupTask.cc
  4907. * src/DHTAutoSaveCommand.cc
  4908. * src/DHTBucket.cc
  4909. * src/DHTBucket.h
  4910. * src/DHTBucketRefreshTask.cc
  4911. * src/DHTFindNodeMessage.cc
  4912. * src/DHTGetPeersMessage.cc
  4913. * src/DHTRoutingTable.cc
  4914. * src/DHTRoutingTable.h
  4915. * test/BNodeTest.cc
  4916. * test/DHTBucketTest.cc
  4917. * test/DHTRoutingTableTest.cc
  4918. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. In piece selection functions, Pass std::deque<...> by reference rather
  4920. than returning it.
  4921. * src/BitfieldMan.cc
  4922. * src/BitfieldMan.h
  4923. * src/DefaultBtRequestFactory.cc
  4924. * src/DefaultPieceStorage.cc
  4925. * src/Piece.cc
  4926. * src/Piece.h
  4927. * test/BitfieldManTest.cc
  4928. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Implemented rarest piece first piece selection strategy.
  4930. * src/AbstractBtMessage.cc
  4931. * src/AbstractBtMessage.h
  4932. * src/BitfieldMan.cc
  4933. * src/BitfieldMan.h
  4934. * src/BtBitfieldMessage.cc
  4935. * src/BtHaveAllMessage.cc
  4936. * src/BtHaveMessage.cc
  4937. * src/DefaultPieceStorage.cc
  4938. * src/DefaultPieceStorage.h
  4939. * src/PeerInteractionCommand.cc
  4940. * src/PieceStorage.h
  4941. * src/UnknownLengthPieceStorage.h
  4942. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Rewritten readData and writeData.
  4944. * src/MultiDiskAdaptor.cc
  4945. * src/MultiDiskAdaptor.h
  4946. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Move \n out of the message "Usage: ...".
  4948. * src/version_usage.cc
  4949. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Bump up version number to 0.13.2b.
  4951. * configure.ac
  4952. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Added const qualifier to argument Exception& e.
  4954. * src/Logger.h
  4955. * src/SimpleLogger.cc
  4956. * src/SimpleLogger.h
  4957. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4958. Pool connection when CWD, SIZE command fails.
  4959. * src/FtpNegotiationCommand.cc
  4960. * src/FtpNegotiationCommand.h
  4961. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4962. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4963. * src/HttpResponseCommand.cc
  4964. * src/HttpSkipResponseCommand.cc
  4965. * src/HttpSkipResponseCommand.h
  4966. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Pool connection when a server returns 4xx, 5xx responses.
  4968. * src/HttpNullDownloadCommand.cc
  4969. * src/HttpNullDownloadCommand.h
  4970. * src/HttpResponse.cc
  4971. * src/HttpResponse.h
  4972. * src/HttpResponseCommand.cc
  4973. * src/HttpResponseCommand.h
  4974. * test/HttpResponseTest.cc
  4975. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Print usage when no URL is specifed or bad command-line option is
  4977. specified.
  4978. * src/HelpItemFactory.cc
  4979. * src/help_tags.h
  4980. * src/option_processing.cc
  4981. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Removed duplicate log message.
  4983. * src/AbstractCommand.cc (asyncResolveHostname)
  4984. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4986. Changed -j option's default value from 5 to 1.
  4987. Added new examples using protocol auto detection feature.
  4988. Removed -T, -M usage where it can be omitted.
  4989. * doc/aria2c.1.txt
  4990. * doc/aria2c.1.html
  4991. * doc/aria2c.1.txt
  4992. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Updated command-line usage text, so that it tells users that they
  4994. can specify any number of torrent files and metalink files in
  4995. command-line.
  4996. * src/version_usage.cc
  4997. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Changed the default value of -j option to 1.
  4999. * src/HelpItemFactory.cc
  5000. * src/option_processing.cc
  5001. * src/usage_text.h
  5002. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Added the ability to reuse connection in FTP and it is enabled by
  5004. default. It can be disabled by --ftp-reuse-connection=false option.
  5005. * src/Command.cc
  5006. * src/DownloadCommand.cc
  5007. * src/FtpDownloadCommand.cc
  5008. * src/FtpDownloadCommand.h
  5009. * src/FtpFinishDownloadCommand.cc
  5010. * src/FtpFinishDownloadCommand.h
  5011. * src/FtpInitiateConnectionCommand.cc
  5012. * src/FtpNegotiationCommand.cc
  5013. * src/FtpNegotiationCommand.h
  5014. * src/HelpItemFactory.cc
  5015. * src/Makefile.am
  5016. * src/Makefile.in
  5017. * src/OptionHandlerFactory.cc
  5018. * src/option_processing.cc
  5019. * src/prefs.h
  5020. * src/usage_text.h
  5021. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Call Command::transitStatus() before calling Command::execute(),
  5023. so that the status change made in execute() is not cleared.
  5024. * src/DownloadEngine.cc
  5025. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Removed forward declaration of SocketCore class.
  5027. * src/HttpDownloadCommand.h
  5028. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5030. in InitiateConnectionCommandFactory. They should be set only when
  5031. the protocol is HTTP or HTTPS.
  5032. * src/InitiateConnectionCommandFactory.cc
  5033. * src/RequestGroup.cc
  5034. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5035. Fixed infinite loop in checksum checking.
  5036. * src/IteratableChecksumValidator.cc
  5037. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Set _supportsPersistentConnection to true by default.
  5039. * src/Request.cc
  5040. * src/RequestGroup.cc
  5041. * test/HttpRequestTest.cc
  5042. * test/RequestTest.cc
  5043. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Added timeout to socket pool. The default timeout is 15 seconds,
  5045. which is the same value Apache uses.
  5046. * src/DownloadEngine.cc
  5047. * src/DownloadEngine.h
  5048. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Fixed misuse of multimap::find()
  5050. * src/HttpHeader.cc
  5051. * test/HttpHeaderTest.cc
  5052. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5054. option.
  5055. The asynchronous DNS is not capable of IPv6 yet.
  5056. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5057. least for HTTP download.
  5058. * src/AbstractCommand.cc
  5059. * src/AbstractCommand.h
  5060. * src/AsyncNameResolver.cc
  5061. * src/AsyncNameResolver.h
  5062. * src/DHTEntryPointNameResolveCommand.cc
  5063. * src/DHTEntryPointNameResolveCommand.h
  5064. * src/DownloadEngine.cc
  5065. * src/DownloadEngine.h
  5066. * src/FtpInitiateConnectionCommand.cc
  5067. * src/FtpInitiateConnectionCommand.h
  5068. * src/HelpItemFactory.cc
  5069. * src/HttpInitiateConnectionCommand.cc
  5070. * src/HttpInitiateConnectionCommand.h
  5071. * src/InitiateConnectionCommand.cc
  5072. * src/InitiateConnectionCommand.h
  5073. * src/Makefile.am
  5074. * src/Makefile.in
  5075. * src/NameResolver.cc
  5076. * src/NameResolver.h
  5077. * src/OptionHandlerFactory.cc
  5078. * src/SocketCore.cc
  5079. * src/SocketCore.h
  5080. * src/Util.cc
  5081. * src/Util.h
  5082. * src/option_processing.cc
  5083. * src/prefs.h
  5084. * src/usage_text.h
  5085. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Updated man page: --quiet, --header were added.
  5087. --metalink-servers and --enable-http-keep-alive option were updated.
  5088. * doc/aria2c.1
  5089. * doc/aria2c.1.html
  5090. * doc/aria2c.1.txt
  5091. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Enable HTTP keep-alive by default.
  5093. * src/HelpItemFactory.cc
  5094. * src/option_processing.cc
  5095. * src/usage_text.h
  5096. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Disable http keep-alive if the remote server is not HTTP/1.1.
  5098. * src/HttpConnection.cc
  5099. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Receive content body of 302 response so that the connection can be
  5101. reused later when http keep-alive is enabled.
  5102. * src/HttpNullDownloadCommand.cc
  5103. * src/HttpNullDownloadCommand.h
  5104. * src/HttpResponseCommand.cc
  5105. * src/HttpResponseCommand.h
  5106. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5107. const SharedHandle<Request> -> const SharedHandle<Request>&
  5108. * src/FtpDowndloadCommand.cc
  5109. * src/FtpDowndloadCommand.h
  5110. * src/HttpDownloadCommand.cc
  5111. * src/HttpDownloadCommand.h
  5112. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. Fixed the bug that the control file(.aria2 file) is not renamed
  5114. according to tryAutoFileRenaming().
  5115. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5116. its control file exist, use them and continue download.
  5117. The old implementation didn't take into account of control file's
  5118. existence, so basically you couldn't continue download of renamed file.
  5119. * src/BtProgressInfoFile.h
  5120. * src/DefaultBtProgressInfoFile.cc
  5121. * src/DefaultBtProgressInfoFile.h
  5122. * src/NullProgressInfoFile.h
  5123. * src/RequestGroup.cc
  5124. * test/DefaultBtProgressInfoFileTest.cc
  5125. * test/MockBtProgressInfoFile.h
  5126. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Change the default value of --metalink-servers option from `5' to `1'.
  5128. * src/HelpItemFactory.cc
  5129. * src/option_processing.cc
  5130. * src/usage_text.h
  5131. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Reimplemented transparent metalink using Accept request header.
  5133. * src/HttpRequest.cc
  5134. * src/HttpRequest.h
  5135. * src/HttpRequestCommand.cc
  5136. * src/Metalink2RequestGroup.cc
  5137. * src/RequestGroup.cc
  5138. * src/RequestGroup.h
  5139. * test/HttpRequestTest.cc
  5140. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Bump up version number to 0.13.2a
  5142. * configure.ac
  5143. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Updated configure.ac using the result of autoscan.
  5145. * configure.ac
  5146. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Fixed compilation error without gcrypt/openssl.
  5148. * src/DownloadCommand.cc
  5149. * src/DownloadCommand.h
  5150. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Reorganized version information so that it can be displayed in a
  5152. standard terminal screen without scrolling.
  5153. Removed http, ftp from Configuration section, because they are always
  5154. enabled.
  5155. * src/FeatureConfig.cc
  5156. * src/FeatureConfig.h
  5157. * src/main.cc
  5158. * src/messageDigest.cc
  5159. * src/messageDigest.h
  5160. * src/version_usage.cc
  5161. * test/FeatureConfigTest.cc
  5162. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Masked user ID in log.
  5164. * src/FtpConnection.cc (sendUser)
  5165. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Removed query part from filename in HTTP download. The query part means
  5167. the substring after "?" in URL. Firefox seems do the same thing.
  5168. A query part is sometimes very long and not suitable to filename,
  5169. so I think it is better to remove it from filename.
  5170. * src/HttpRequest.cc
  5171. * src/HttpRequest.h
  5172. * src/Request.cc
  5173. * src/Request.h
  5174. * test/HttpRequestTest.cc
  5175. * test/RequestTest.cc
  5176. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Rewritten Exception class. Throw exception object, not its pointer and
  5178. catch by reference, so that remove problematic delete operator for
  5179. catched exception.
  5180. * src/Exception.cc
  5181. * src/Exception.h
  5182. * test/ExceptionTest.cc
  5183. * src/*: All files throwing/catching exception.
  5184. * test/*: All files throwing/catching exception.
  5185. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Now auto protocol detection is enabled without -Z option.
  5187. But there is a important difference between with/without -Z optoin.
  5188. For example, if you type:
  5189. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5190. then, aria2 interprets there are 3 request groups:
  5191. (1) http://host/file, http://mirror/file <-- multi-source download
  5192. (2) file1.torrent
  5193. (3) file2.metalink
  5194. On the other hand, if you invoke above command with -Z option, it is
  5195. interpreted as 4 request groups:
  5196. (1) http://host/file
  5197. (2) file1.torrent
  5198. (3) file2.metalink
  5199. (4) http://mirror/file
  5200. I think usually user don't mix multi-source URLs and torrent files, so
  5201. there is no big problem here.
  5202. * src/main.cc
  5203. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Fixed the bug that causes segmentaion fault when reading XML containing
  5205. unescapsed character like '&'.
  5206. Also a modification was made which avoids adding unnecessary
  5207. characters stack and appending unused string.
  5208. * src/ExpatMetalinkProcessor.cc
  5209. * src/FileMetalinkParserState.h
  5210. * src/FilesMetalinkParserState.h
  5211. * src/FinMetalinkParserState.h
  5212. * src/HashMetalinkParserState.h
  5213. * src/InitialMetalinkParserState.h
  5214. * src/LanguageMetalinkParserState.h
  5215. * src/MetalinkMetalinkParserState.h
  5216. * src/MetalinkParserState.h
  5217. * src/MetalinkParserStateMachine.cc
  5218. * src/MetalinkParserStateMachine.h
  5219. * src/OSMetalinkParserState.h
  5220. * src/PieceHashMetalinkParserState.h
  5221. * src/PiecesMetalinkParserState.h
  5222. * src/ResourcesMetalinkParserState.h
  5223. * src/SizeMetalinkParserState.h
  5224. * src/SkipTagMetalinkParserState.h
  5225. * src/URLMetalinkParserState.h
  5226. * src/VerificationMetalinkParserState.h
  5227. * src/VersionMetalinkParserState.h
  5228. * src/XML2SAXMetalinkProcessor.cc
  5229. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. Added StringFormat class, which internally calls vasprintf.
  5231. operator<< is defined for this class, so it can be used with iostream
  5232. classes nicely. SimpleLogger and following functions are rewritten
  5233. using StringFormat class.
  5234. Besides, now Logger class's methods are non-const, many classes
  5235. that has a const Logger* as a member variable are modified to remove
  5236. const qualifier from the variable declaration.
  5237. * src/HelpItemFactory.cc
  5238. * src/Request.cc
  5239. * src/SimpleLogger.cc
  5240. * src/StringFormat.cc
  5241. * src/StringFormat.h
  5242. * src/Util.cc
  5243. * src/option_processing.cc
  5244. * src/version_usage.cc
  5245. * test/StringFormatTest.cc
  5246. * src/*.h: The classes that has const Logger* as a member variable.
  5247. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5249. failed. Also fixed memory link when exception is thrown there.
  5250. * src/main.cc (AccRequestGroup)
  5251. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Added build-in "Accept-Features" support. For now only "metalink" is
  5253. used in this header field.
  5254. This "metalink" value is removed from the list when connecting URLs
  5255. fed by metalink file to avoid loop in "transparent" metlaink.
  5256. * src/HttpRequest.cc
  5257. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5258. header is also held in this variable. Also renamed setUserHeaders as
  5259. addHeader and it was rewritten to add header not just to clear the old
  5260. value.
  5261. * src/HttpRequestCommand.cc
  5262. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5263. from "Accept-Features" list.
  5264. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5265. default.
  5266. * src/RequestGroup.h
  5267. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5268. * src/a2functional.h: Included <string> because Concat class depends on
  5269. it.
  5270. * test/HttpRequestTest.cc
  5271. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Added comment
  5273. * src/RequestGroup.cc (createNextCommand)
  5274. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Capitalized METHOD_GET and METHOD_HEAD
  5276. * src/Request.cc
  5277. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Added getDownloadResults() method
  5279. * src/RequestGroupMan.cc
  5280. * src/RequestGroupMan.h
  5281. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Fixed the bug that aria2 exits when commands is empty() but
  5283. _routineCommands are not.
  5284. * src/DownloadEngine.cc
  5285. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5286. Use the default value pulled from Option object in HelpItemFactory.
  5287. except options whose defualt value is embedded in a usage text.
  5288. * src/HelpItemFactory.cc
  5289. * src/HelpItemFactory.h
  5290. * src/option_processing.cc
  5291. * src/version_usage.cc
  5292. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Added --quiet option to make aria2 quiet (no console output).
  5294. --quiet option is tagged with ADVANCED.
  5295. * src/HelpItemFactory.cc
  5296. * src/LogFactory.cc
  5297. * src/LogFactory.h
  5298. * src/MultiUrlRequestInfo.cc
  5299. * src/MultiUrlRequestInfo.h
  5300. * src/NullStatCalc.h: New class. This class prints nothing.
  5301. * src/OptionHandlerFactory.cc
  5302. * src/main.cc
  5303. * src/option_processing.cc
  5304. * src/prefs.h
  5305. * src/usage_text.h
  5306. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5308. * src/HelpItemFactory.cc (createHelpItems):
  5309. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. Fixed compilation error in ExpatMetalinkProcessor.cc
  5311. * src/ExpatMetalinkProcessor.cc
  5312. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Reuse socket if the origin server supports HTTP keep-alive and
  5314. --enable-http-keep-alive or --enable-http-pipelining is given.
  5315. The current implementation doesn't reuse the connections established
  5316. against proxy server.
  5317. * src/AbstractCommand.cc
  5318. * src/DownloadEngine.cc
  5319. * src/DownloadEngine.h
  5320. * src/HttpDownloadCommand.cc
  5321. * src/HttpInitiateConnectionCommand.cc
  5322. * src/HttpResponseCommand.cc
  5323. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Rewritten HTTP keep-alive and pipelining routine.
  5325. * src/AbstractCommand.cc
  5326. * src/HttpConnection.cc
  5327. * src/HttpDownloadCommand.cc
  5328. * src/HttpRequest.cc
  5329. * src/HttpRequestCommand.cc
  5330. * src/HttpResponseCommand.cc
  5331. * src/Request.cc
  5332. * src/Request.h
  5333. * src/RequestGroup.cc
  5334. * test/HttpRequestTest.cc
  5335. * test/HttpResponseTest.cc
  5336. * test/RequestTest.cc
  5337. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. Added missing setUserHeaders call
  5339. * src/HttpRequestCommand.cc
  5340. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5342. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5343. waste of time because it is more likey false.
  5344. * src/FileAllocationDispatcherCommand.cc (execute)
  5345. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Now HTTP status and version are a member variable of HttpHeader.
  5347. HTTP status is processed as a string, not integer.
  5348. * src/AbstractProxyResponseCommand.cc
  5349. * src/HttpConnection.cc
  5350. * src/HttpHeader.cc
  5351. * src/HttpHeader.h
  5352. * src/HttpHeaderProcessor.cc
  5353. * src/HttpHeaderProcessor.h
  5354. * src/HttpResponse.cc
  5355. * src/HttpResponse.h
  5356. * test/HttpHeaderProcessorTest.cc
  5357. * test/HttpResponseTest.cc
  5358. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Added --header option. You can specify any number of additional HTTP headers
  5360. like:
  5361. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5362. Unlike other commad-line option, you can use --header option multiple times.
  5363. * src/HelpItemFactory.cc
  5364. * src/HttpRequest.{cc, h}
  5365. * src/HttpRequestCommand.cc
  5366. * src/OptionHandlerFactory.cc
  5367. * src/OptionHandlerImpl.h
  5368. * src/option_processing.cc
  5369. * src/prefs.h
  5370. * src/usage_text.h
  5371. * test/HttpRequestTest.cc (testUserHeaders)
  5372. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Eliminates the time lag between sequential downloads and commands in
  5374. the same RequestGroup.
  5375. In old implementation, aria2 occasionally waits 1 seconds before
  5376. executing next command or RequestGroup.
  5377. This is really a waste of time, and new implementation eliminates
  5378. this unnecessary time lag.
  5379. * src/AbstractCommand.cc
  5380. * src/AutoSaveCommand.cc
  5381. * src/CheckIntegrityCommand.cc
  5382. * src/Command.{cc, h}
  5383. * src/DownloadEngine.{cc, h}
  5384. * src/DownloadEngineFactory.cc
  5385. * src/FileAllocationCommand.cc
  5386. * src/FileAllocationDispatcherCommand.cc
  5387. * src/FillRequestGroupCommand.cc
  5388. * src/FtpInitiateConnectionCommand.cc
  5389. * src/HaveEraseCommand.cc
  5390. * src/HttpInitiateConnectionCommand.cc
  5391. * src/HttpResponseCommand.cc
  5392. * src/RealtimeCommand.cc
  5393. * src/RequestGroup.cc
  5394. * src/RequestGroupMan.cc
  5395. * src/StreamFileAllocationEntry.cc
  5396. * src/TimeBasedCommand.{cc, h}
  5397. * src/TimedHaltCommand.cc
  5398. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5400. keyword explicit and SharedHandle's default constructor initializes
  5401. its internal obj to null, old implementation initializes it using
  5402. obj's default constructor.
  5403. To assign null, write SharedHandle<T> x(...); x.reset();
  5404. TODO: test/SharedHandleTest.cc needs more tests.
  5405. * src/SharedHandle.h
  5406. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5407. Fixed type in man page.
  5408. * doc/aria2c.1.txt
  5409. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5411. * src/SimpleLogger.{cc, h}
  5412. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Implemented auto protocol detection.
  5414. Now you can do:
  5415. aria2c -Z http://host/file file1.torrent file2.metalink
  5416. (Note: -Z option is required for auto protcol detection.)
  5417. Then aria2c downloads 3 files simultaneously:
  5418. 1. http://host/file
  5419. 2. file1.torrent <-- read local torrent file
  5420. 3. file2.metalink <-- read local Metalink file.
  5421. Same thing goes with -i option. Assume your uris.txt contans:
  5422. http://host/file
  5423. file1.torrent
  5424. file2.metalink
  5425. Then you can do: aria2c -i uris.txt
  5426. (Note: -Z option is not needed if -i option is given.)
  5427. * src/main.cc
  5428. * src/ProtocolDetector.{cc, h}
  5429. * test/ProtocolDetectorTest.cc
  5430. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5432. installed
  5433. * src/ARC4Encryptor.h
  5434. * src/ARC4Decryptor.h
  5435. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5436. Renamed argument from 'errno' to 'err', since errno is confused with
  5437. errno defined in errno.h.
  5438. * src/LibgcryptARC4Decryptor.h
  5439. * src/LibgcryptARC4Context.h
  5440. * src/LibgcryptDHKeyExchange.h
  5441. * src/LibgcryptARC4Encryptor.h
  5442. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Rewritten choking algorithm.
  5444. * src/PeerChokeCommand.{cc, h}
  5445. * src/BtInterestedMessage.cc
  5446. * src/PeerSessionResource.{cc, h}
  5447. * src/DefaultPeerStorage.{cc, h}
  5448. * src/BtNotInterestedMessage.cc
  5449. * src/DefaultBtMessageDispatcher.{cc, h}
  5450. * src/BtMessageDispatcher.h
  5451. * src/Peer.{cc, h}
  5452. * src/BtLeecherStateChoke.{cc, h}
  5453. * src/BtSetup.cc
  5454. * src/BtSeederStateChoke.{cc, h}
  5455. * src/PeerStorage.h
  5456. * test/MockPeerStorage.h
  5457. * test/MockBtMessageDispatcher.h
  5458. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. Fixed compilation error on x84-64 platform.
  5460. * src/AuthConfig.cc: Included ostream.
  5461. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. Rewritten getBasename() and getDirname(), without standard library
  5463. basename(), dirname().
  5464. * src/File.cc
  5465. * test/FileTest.cc
  5466. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Added Simplified Chinese translation. Also updated the following
  5468. translations: Polish, Dutch, German. Great thanks to all translators.
  5469. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Suppress content-range error when 'Content-Range' response header
  5471. doesn't contains bytes-unit specifier 'bytes'
  5472. * src/HttpHeader.cc (getRange)
  5473. * test/HttpHeaderTest.cc
  5474. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Fixed compilation error with g++-4.3
  5476. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Added missing include files for MinGW
  5478. * test/HttpHeaderProcessorTest.cc
  5479. * test/DHTRoutingTableSerializerTest.cc
  5480. * test/DHTRoutingTableDeserializerTest.cc
  5481. * test/UriListParserTest.cc
  5482. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Now download line is printed nicely with no garbage at the end of
  5484. line. I use ioctl to get the columns of terminal.
  5485. If stdout is redirected to another device, instead of carriage return,
  5486. end of line '\n' character is used. This is feature request#1909659
  5487. * src/ConsoleStatCalc.cc (calculateStat)
  5488. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Included a2time.h
  5490. * src/DHTMessageDispatcher.h
  5491. * src/DHTMessageEntry.h
  5492. * src/DHTReplaceNodeTask.h
  5493. * src/DHTMessageTracker.h
  5494. * src/Util.h
  5495. * src/CookieBox.h
  5496. * src/SocketCore.h
  5497. * src/DefaultBtMessageDispatcher.h
  5498. * src/SocketCore.cc
  5499. * src/Util.cc
  5500. * src/DHTPingTask.h
  5501. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Fixed high memory footprint when DHT is enabled.
  5503. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5504. queued than it is processed and the queue is getting longer. As a
  5505. consequence, momory usage is increased.
  5506. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5507. replacement cache in DHTBucket which is described in Kademlia paper.
  5508. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5509. DHTReplaceNodeTask.
  5510. * src/DHTBucket.{h, cc}
  5511. (cacheNode): New function.
  5512. (getCachedNodes): New function.
  5513. (dropNode): Push back cached node to _nodes.
  5514. * test/DHTBucketTest.cc
  5515. (testCacheNode): New test
  5516. (testDropNode): New test
  5517. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5518. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5519. the unused 4KB memory when ssl is not used.
  5520. * src/SocketCore.cc
  5521. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Added summary log for peer announce storage.
  5523. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5524. Removed cast
  5525. * src/DefaultPeerStorage.cc (addPeer)
  5526. Log exception message
  5527. * src/DHTMessageTracker.cc (handleTimeout)
  5528. Fixed casting
  5529. * test/HttpRequestTest.cc
  5530. * test/MetalinkProcessorTest.cc
  5531. * test/PieceTest.cc
  5532. * test/MetalinkEntryTest.cc
  5533. * test/SequenceTest.cc
  5534. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. * src/ParameterizedStringParser.cc (createLoop):
  5536. Removed unused variable sstep.
  5537. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5538. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5539. * src/Util.{h, cc}
  5540. (parseUInt): New function.
  5541. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5542. The actual range is uint32_t.
  5543. * test/UtilTest.cc
  5544. * src/ParameterizedStringParser.cc:
  5545. Use Util::parseUInt() for loop variables.
  5546. * test/ParameterizedStringParserTest.cc
  5547. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5548. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. Rewritten the functions for binding port.
  5550. * src/DHTConnectionImpl.{h, cc}
  5551. * src/PeerListenCommand.{h, cc}
  5552. * src/DHTSetup.cc
  5553. * src/BtSetup.cc
  5554. * test/DHTConnectionImplTest.cc
  5555. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. type cleanup for allmost all remaining files.
  5557. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Type clarification
  5559. * src/PeerSessionResource.{h, cc}
  5560. * src/DefaultPieceStorage.{h, cc}
  5561. * src/Peer.{h, cc}
  5562. * test/PeerSessionResourceTest.cc
  5563. Use div function
  5564. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5565. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5566. Type clarification
  5567. * src/DefaultPeerStorage.{h, cc}
  5568. * test/DefaultPeerStorageTest.cc
  5569. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Type clarification: size_t for length or size, uint64_t for file
  5571. length, off_t for file offset.
  5572. * src/DefaultBtProgressInfoFile.cc
  5573. * src/DefaultBtContext.{h, cc}
  5574. * src/DefaultBtInteractive.cc
  5575. * src/DownloadCommand.{h, cc}
  5576. * src/IteratableChunkChecksumValidator.{h, cc}
  5577. * src/SegmentMan.{h, cc}
  5578. * src/SingleFileDownloadContext.{h, cc}
  5579. * src/IteratableChecksumValidator.{h, cc}
  5580. * src/BtContext.h
  5581. * src/IteratableValidator.h
  5582. * src/DownloadContext.h
  5583. * test/SingleFileDownloadContextTest.cc
  5584. * test/DefaultBtContextTest.cc
  5585. * test/MockBtContext.h
  5586. * test/Metalink2RequestGroupTest.cc
  5587. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Type clarification: size_t for length or size, uint64_t for file
  5589. length, off_t for file offset.
  5590. * src/PiecedSegment.cc
  5591. * src/GrowSegment.h
  5592. * src/DefaultBtRequestFactory.h
  5593. * src/DefaultBtProgressInfoFile.cc
  5594. * src/UnknownLengthPieceStorage.h
  5595. * src/DefaultPieceStorage.cc
  5596. * src/UnknownLengthPieceStorage.cc
  5597. * src/DefaultBtInteractive.cc
  5598. * src/GrowSegment.cc
  5599. * src/BitfieldMan.h
  5600. * src/DownloadCommand.cc
  5601. * src/BtRequestFactory.h
  5602. * src/PiecedSegment.h
  5603. * src/DefaultPieceStorage.h
  5604. * src/Piece.cc
  5605. * src/DefaultBtRequestFactory.cc
  5606. * src/PieceStorage.h
  5607. * src/Segment.h
  5608. * src/Piece.h
  5609. * src/BitfieldMan.cc
  5610. * src/Util.cc
  5611. * test/DefaultBtProgressInfoFileTest.cc
  5612. * test/DefaultPieceStorageTest.cc
  5613. * test/MockPieceStorage.h
  5614. * test/BtRequestMessageTest.cc
  5615. * test/DefaultBtMessageDispatcherTest.cc
  5616. * test/BitfieldManTest.cc
  5617. * test/GrowSegmentTest.cc
  5618. * test/PieceTest.cc
  5619. * test/SegmentTest.cc
  5620. * test/SegmentManTest.cc
  5621. * test/DefaultBtRequestFactoryTest.cc
  5622. * test/MockBtRequestFactory.h
  5623. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Fixed compilation error with --disable-nls
  5625. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5626. in gettext.h causes the problem.
  5627. * src/common.h
  5628. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. Removed subPiece related functions.
  5630. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5631. * src/DefaultPieceStorage.{h, cc}
  5632. * test/PieceTest.cc
  5633. * test/DefaultPieceStorageTest.cc
  5634. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Use unsigned char for data store.
  5636. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Bump up version number to 0.13.0+1
  5638. * configure.ac
  5639. * Release 0.13.0+1
  5640. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5641. Changed inactive connection timeout to 120.
  5642. To accept more mulually interested peers, disconnect peer when there
  5643. is no interest between us after certain time passed.
  5644. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5645. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5647. when compiled with async DNS support.
  5648. * src/DownloadEngine.cc
  5649. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5650. value '10' will be a little bit short when some DNS servers are
  5651. offline and several DNS servers are tried. It should be configured
  5652. by command-line option.
  5653. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Merged Ross's mingw patch.
  5655. * src/DHTRoutingTableDeserializer.cc
  5656. * src/DHTRoutingTableSerializer.cc
  5657. * src/Platform.{h, cc}
  5658. * src/timegm.h
  5659. * src/gettimeofday.h
  5660. * src/getaddrinfo.h
  5661. * src/SocketCore.h
  5662. * src/common.h
  5663. * src/inet_aton.h
  5664. * src/DownloadEngine.h
  5665. * src/gai_strerror.h
  5666. * src/a2netcompat.h
  5667. * configure.ac
  5668. * configure
  5669. * aclocal.m4
  5670. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Included missing iostream.
  5672. * test/AllTest.cc
  5673. * test/BtDependencyTest.cc
  5674. * test/BtExtendedMessageTest.cc
  5675. * test/DHTConnectionImplTest.cc
  5676. * test/DHTMessageFactoryImplTest.cc
  5677. * test/DHTMessageTrackerEntryTest.cc
  5678. * test/DHTNodeTest.cc
  5679. * test/DHTRoutingTableSerializerTest.cc
  5680. * test/DefaultBtAnnounceTest.cc
  5681. * test/DefaultBtContextTest.cc
  5682. * test/DefaultBtMessageFactoryTest.cc
  5683. * test/DefaultExtensionMessageFactoryTest.cc
  5684. * test/HandshakeExtensionMessageTest.cc
  5685. * test/HttpResponseTest.cc
  5686. * test/MetalinkProcessorTest.cc
  5687. * test/MultiFileAllocationIteratorTest.cc
  5688. * test/SocketCoreTest.cc
  5689. * test/UTPexExtensionMessageTest.cc
  5690. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Reorganized includes.
  5692. * src/NameResolver.cc
  5693. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Fixed compilation error without ares/c-ares
  5695. * src/NameResolver.h:
  5696. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Added a test for large file.
  5698. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5699. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Fixed the bug that file size is ignored if size > INT32_MAX
  5701. * src/SizeMetalinkParserState.cc (endElement):
  5702. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Bump up version number to 0.13.0
  5704. * configure.ac
  5705. * Release 0.13.0
  5706. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Updated Makfefile.am to make 'make dist' work.
  5708. Now packaged filename is aria2c-VERSION.tar.bz2.
  5709. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5710. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5711. Large file support is now configured by configure script.
  5712. * configure.ac
  5713. Removed unsused source files
  5714. * src/
  5715. * test/
  5716. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5717. Peer.h and BtContext.h respectively.
  5718. * src/Peer.h
  5719. * src/BtContext.h
  5720. Updated translations.
  5721. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5722. translations. Great thanks to all translators!;)
  5723. * po/*.{po, gmo}
  5724. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5726. statically declared sha1 MessageDigestContext.
  5727. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5728. initialization of short-lived MessageDigestContext.
  5729. * src/MessageDigestHelper.{h, cc}
  5730. * src/main.cc
  5731. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5732. the initialization of MessageDigestContext every time in validating
  5733. chunk checksum.
  5734. * src/DownloadCommand.{h, cc}
  5735. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Add a file descriptor which connected to fast peer(latency<1500) to
  5737. select(). This change reduced CPU load.
  5738. * src/PeerInteractionCommand.cc
  5739. * src/DefaultBtInteractive.{h, cc}
  5740. * src/BtInteractive.h
  5741. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Fixed the previous insufficient fix for possible busy loop.
  5743. * src/MSEHandshake.cc (identifyHandshakeType)
  5744. Removed unused functions.
  5745. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5746. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Fixed possible busy loop if first 20 bytes are not received for a few
  5748. minutes.
  5749. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5750. * src/ReceiverMSEHandshakeCommand.cc
  5751. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5752. Fixed compilation error
  5753. * src/ExpatMetalinkProcessor.cc
  5754. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5756. * src/DHTBucket.cc
  5757. Removed unnecessary cast.
  5758. * src/HandshakeExtensionMessage.cc
  5759. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5761. is missing.
  5762. * src/OptionHandlerFactory.cc
  5763. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5764. Fixed the bug that HAVE message is not sent for a piece they are
  5765. downloaded fom http/ftp server before any BitTorrent handshake is done
  5766. with peers.
  5767. * src/DefaultBtInteractive.cc
  5768. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5770. * src/Makefile.am
  5771. * src/Makefile.in
  5772. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Updated README. Added html version of README and man page.
  5774. * README
  5775. * README.html
  5776. * readme2html: Shell script to generate README.html from README using
  5777. asciidoc.
  5778. * doc/aria2c.1.html
  5779. * doc/makeman: Added the line to generate aria2c.1.html
  5780. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Fixed offset calculation.
  5782. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5783. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Rewritten itos and uitos using template. llitos and ullitos are
  5785. replaced with itos and uitos respectively.
  5786. * src/Util.{h, cc}
  5787. * test/UtilTest.cc
  5788. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5790. of the number of bytes required for storing public key and shared
  5791. secret.
  5792. * src/LibgcryptDHKeyExchange.h
  5793. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5794. * src/MSEHandshake.cc
  5795. * test/DHKeyExchangeTest.cc
  5796. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Removed since they are not used.
  5798. * src/Xml2MetalinkProcessor.{h, cc}
  5799. * src/Socket.cc
  5800. * src/SegmentSplitter.{h, cc}
  5801. * test/Xml2MetalinkProcessorTest.cc
  5802. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Fixed the bug that prevents aria2 from stopping other than by pressing
  5804. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5805. option. aria2 doesn't stop even after --seed-time is satisfied and
  5806. continues to output blank lines in the console.
  5807. * src/ReceiverMSEHandshakeCommand.cc
  5808. * src/PeerReceiveHandshakeCommand.cc
  5809. * src/PeerListenCommand.cc
  5810. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Bump up version number to 0.13.0rc
  5812. * configure.ac
  5813. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Updated man page and some usage text.
  5815. * doc/aria2c.1.txt
  5816. * src/usage_text.h
  5817. * po/*.{po, gmo}
  5818. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. Updated translations. Added Finnish and Hebrew translations.
  5820. Great thanks to all translators!
  5821. * po/*.{po, gmo}
  5822. * po/LINGUAS
  5823. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Log more detailed information about each message.
  5825. * src/DHTQueryMessage.{h, cc}
  5826. * src/DHTGetPeersMessage.{h, cc}
  5827. * src/DHTFindNodeReplyMessage.{h, cc}
  5828. * src/DHTGetPeersReplyMessage.{h, cc}
  5829. * src/DHTAnnouncePeerMessage.{h, cc}
  5830. * src/DHTResponseMessage.{h, cc}
  5831. * src/DHTFindNodeMessage.{h, cc}
  5832. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5833. Use constants defined in prefs.h
  5834. * src/option_processing.cc
  5835. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5837. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Make room for future enchancements for IPv6 addresses.
  5839. Bump up version number of dht.dat file format to 2.
  5840. Not compatible with previous version.
  5841. * src/DHTRoutingTableSerializer.cc
  5842. * src/DHTRoutingTableDeserializer.cc
  5843. * test/DHTRoutingTableSerializerTest.cc
  5844. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Added handling for the return values from
  5846. PeerMessageUtil::createcompact().
  5847. * src/DefaultBtContext.cc (computeFastSet):
  5848. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. Fixed abort when peer's ip address is IPv4-mapped address.
  5850. * src/DefaultBtContext.cc (computeFastSet)
  5851. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5852. cannot handle IPv4-mapped addresses.
  5853. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5854. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Proper return value handling for OpenSSL functions.
  5856. * src/LibsslDHKeyExchange.h
  5857. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Random bytes generation using libgcrypt and OpenSSL.
  5859. * src/DHTUtil.{h, cc}
  5860. * test/DHTUtilTest.cc
  5861. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5863. received.
  5864. * src/DHTMessageReceiver.cc (receiveMessage)
  5865. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Fixed the bug that a return code is always 0. BUG#1897704
  5867. If error occurred during the download or there exist unfinished
  5868. downloads, aria2 returns with code 1.
  5869. * src/RequestGroupMan.{h, cc}
  5870. * src/MultiUrlRequestInfo.{h, cc}
  5871. * src/main.cc
  5872. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. IPv6 support for SocketCore class.
  5874. TODO: In SocketCore::establishConnection(), this is insufficient to
  5875. determin the failure of connect() here because the socket is
  5876. non-blocking state. The next addresses should be tried after select().
  5877. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5878. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5879. instead which address family independent.
  5880. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5881. information in a compact peer format which is for IPv4 only.
  5882. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5883. this is a spec of BitTorrent protocol.
  5884. * src/SocketCore.{h, cc}
  5885. * src/PeerMessageUtil.cc
  5886. * test/SocketCoreTest.cc
  5887. * test/PeerMessageUtilTest.cc
  5888. * test/DHTConnectionImplTest.cc
  5889. Handle IPv4-mapped addresses.
  5890. * src/DHTNode.cc: Now identity is determined by node id.
  5891. * src/DHTMessageTrackerEntry.cc
  5892. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5893. should handle it.
  5894. * src/DHTRoutingTableDeserializer.cc
  5895. * src/DHTMessageFactoryImpl.cc
  5896. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Change the unit of --stop option from a minute to a second.
  5898. * src/usage_text.h
  5899. * src/DownloadEngineFactory.cc
  5900. * src/OptionHandlerFactory.cc
  5901. * src/message.h
  5902. * src/TimedHaltCommand.cc
  5903. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5904. Make listening socket non-block mode.
  5905. * src/FtpConnection.cc
  5906. * src/FtpNegotiationCommand.{h, cc}
  5907. * src/PeerListenCommand.cc
  5908. Fixed the bug that cause slow ftp negotiation.
  5909. * src/FtpNegotiationCommand.{h, cc}
  5910. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Added basic tag to --enable-dht, --dht-listen-port option.
  5912. * src/HelpItemFactory.cc (createHelpItems)
  5913. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Updated text.
  5915. * src/usage_text.h
  5916. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5918. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Determin _threadtholdSpeed in each constructor for
  5920. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5921. * src/ActivePeerConnectionCommand.{h, cc}
  5922. * src/PeerReceiveHandshakeCommand.{h, cc}
  5923. * src/BtSetup.cc
  5924. * src/BtConstants.h
  5925. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Added --bt-min-crypto-level and --bt-require-crypto options.
  5927. * src/OptionHandlerFactory.cc
  5928. * src/MSEHandshake.cc
  5929. * src/HelpItemFactory.cc
  5930. * src/option_processing.cc
  5931. * src/ReceiverMSEHandshakeCommand.cc
  5932. * src/prefs.h
  5933. * src/DefaultBtAnnounce.cc
  5934. * src/InitiatorMSEHandshakeCommand.cc
  5935. * src/usage_text.h
  5936. * test/MSEHandshakeTest.cc
  5937. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Bump version number to 0.13.0b
  5939. * configure.ac
  5940. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Updated doc.
  5942. * src/MessageDigestHelper.h:
  5943. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Use raw message digest as a token instead of its hexadecimal
  5945. representation.
  5946. * src/DHTTokenTracker.cc (generateToken)
  5947. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Added Message Stream Encryption(MSE) support.
  5949. Currently, aria2 accepts incoming connections with Obfuscation Header
  5950. and legacy BitTorrent Header and establishes connections with
  5951. Obfuscation Header first and if failed then retry with legacy
  5952. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5953. choose ARC4. The new option to change the default behavior is planned.
  5954. For tracker extension, "supportcrypto=1" is added statically.
  5955. * src/PeerInitiateConnectionCommand.{h, cc}
  5956. * src/PeerConnection.{h, cc}
  5957. * src/HandleRegistry.h
  5958. * src/SocketCore.h
  5959. * src/PeerReceiveHandshakeCommand.{h, cc}
  5960. * src/BtRegistry.{h, cc}
  5961. * src/PeerListenCommand.cc
  5962. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5963. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5964. * src/MSEHandshake.{h, cc}
  5965. * src/ARC4Encryptor.h
  5966. * src/ARC4Decryptor.h
  5967. * src/LibgcryptARC4Encryptor.h
  5968. * src/LibgcryptARC4Decryptor.h
  5969. * src/LibgcryptARC4Context.h
  5970. * src/LibsslARC4Encryptor.h
  5971. * src/LibsslARC4Decryptor.h
  5972. * src/LibsslARC4Context.h
  5973. * src/DHKeyExchange.h
  5974. * src/LibgcryptDHKeyExchange.h
  5975. * src/LibsslDHKeyExchange.h
  5976. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5977. * test/DefaultBtAnnounceTest.cc
  5978. * test/ARC4Test.cc
  5979. * test/DHKeyExchangeTest.cc
  5980. Removed prepareForRetry() because it is not used.
  5981. * src/PeerAbstractCommand.{h, cc}
  5982. * src/PeerInteractionCommand.{h, cc}
  5983. * src/PeerInitiateConnectionCommand.{h, cc}
  5984. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Added the ability to load nodes from torrent file. These nodes are
  5986. added to the routing table when downloading that torrent.
  5987. * src/BtContext.h
  5988. * src/DefaultBtContext.{h, cc}
  5989. * src/DHTSetup.cc
  5990. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5991. hostname and port pair, and resolves all of them.
  5992. * src/NameResolver.{h, cc}: Added reset().
  5993. * src/RequestGroup.cc
  5994. * test/DefaultBtContextTest.cc
  5995. * test/MockBtContext.h
  5996. Removed assert() from DefaultBtContext and throw exception instead.
  5997. * src/DefaultBtContext.cc
  5998. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Fixed segmentation fault bug when exiting if dht is disabled.
  6000. * src/RequestGroup.cc
  6001. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. Fixed typo in log message and define the message in message.h
  6003. * src/TimedHaltCommand.cc
  6004. * src/message.h
  6005. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Included RecoverableException.h to fix compilation error.
  6007. * test/DHTMessageFactoryImplTest.cc
  6008. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6010. * test/DHTPingMessageTest.cc
  6011. * test/DHTGetPeersMessageTest.cc
  6012. * test/DHTFindNodeMessageTest.cc
  6013. * test/DHTAnnouncePeerMessageTest.cc
  6014. * test/MockDHTMessage.h
  6015. * test/MockDHTMessageFactory.h
  6016. * test/MockDHTMessageDispatcher.h: New class.
  6017. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6019. virtual.
  6020. * src/DHTMessageDispatcher.h
  6021. * src/DHTMessageDispatcherImpl.{h, cc}
  6022. * src/DHTSetup.cc
  6023. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Adding handling of DHT error message. Just log error message and
  6025. throw exception.
  6026. * src/DHTMessageFactoryImpl.cc
  6027. * test/DHTMessageFactoryImplTest.cc
  6028. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Added handling of dynamic cast failure.
  6030. * src/DHTNodeLookupTask.cc
  6031. * src/DHTPeerLookupTask.cc
  6032. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6033. Added the ability to stop aria2 itself when given time has passed
  6034. from start. Use --stop option to specify time in minutes.
  6035. When 0 is given, this feature is disabled.
  6036. * src/OptionHandlerFactory.cc
  6037. * src/TimeBasedCommand.h: Make _interval protected scope.
  6038. * src/HelpItemFactory.cc
  6039. * src/option_processing.cc
  6040. * src/prefs.h
  6041. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6042. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6043. Without this modification, the result list shows "ERR" when aria2 is
  6044. stopped by --stop option. It should be "INPR".
  6045. * src/DownloadEngine.{h, cc}
  6046. * src/DownloadEngineFactory.cc
  6047. * src/usage_text.h
  6048. * src/TimedHaltCommand.{h, cc}: New class.
  6049. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Bootstrap through node added by port message.
  6051. Currently bootstrap is executed if the number of buckets in routing
  6052. table is 1.
  6053. * src/BtPortMessage.{h, cc}
  6054. * src/DefaultBtMessageFactory.{h, cc}
  6055. * src/PeerInteractionCommand.cc
  6056. * test/BtPortMessageTest.cc
  6057. * test/MockDHTTask.h
  6058. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Extract the Peer class's member variables, which are only needed after
  6060. PeerInteractionCommand, into PeerSessionResource class.
  6061. This class is instantiated in PeerInteractionCommand class's ctor and
  6062. released in its dtor.
  6063. This will make Peer class lightweight and uses less memory for peers
  6064. which are not connected and wait in the queue.
  6065. * src/PeerChokeCommand.cc
  6066. * src/PeerSessionResource.{h, cc}
  6067. * src/PeerInteractionCommand.cc
  6068. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6069. * src/DefaultBtInteractive.cc
  6070. * src/BtPieceMessage.cc
  6071. * src/BtInterestedMessage.cc
  6072. * src/BtUnchokeMessage.cc
  6073. * src/DefaultPeerStorage.{h, cc}
  6074. * src/PeerInitiateConnectionCommand.cc
  6075. * src/ActivePeerConnectionCommand.cc
  6076. * src/BtNotInterestedMessage.cc
  6077. * src/DefaultBtMessageDispatcher.cc
  6078. * src/BtChokeMessage.cc
  6079. * src/BtRequestMessage.cc
  6080. * src/Peer.{h, cc}
  6081. * src/BtRegistry.h
  6082. * src/TrackerWatcherCommand.cc
  6083. * src/PeerReceiveHandshakeCommand.cc
  6084. * test/BtExtendedMessageTest.cc
  6085. * test/BtAllowedFastMessageTest.cc
  6086. * test/BtCancelMessageTest.cc
  6087. * test/DefaultPieceStorageTest.cc
  6088. * test/BtBitfieldMessageTest.cc
  6089. * test/BtHaveMessageTest.cc
  6090. * test/BtNotInterestedMessageTest.cc
  6091. * test/BtRequestMessageTest.cc
  6092. * test/PeerSessionResourceTest.cc
  6093. * test/DefaultBtMessageDispatcherTest.cc
  6094. * test/PeerTest.cc
  6095. * test/BtInterestedMessageTest.cc
  6096. * test/BtRejectMessageTest.cc
  6097. * test/BtChokeMessageTest.cc
  6098. * test/DefaultPeerStorageTest.cc
  6099. * test/BtHaveNoneMessageTest.cc
  6100. * test/BtHaveAllMessageTest.cc
  6101. * test/DefaultExtensionMessageFactoryTest.cc
  6102. * test/BtUnchokeMessageTest.cc
  6103. * test/DefaultBtMessageFactoryTest.cc
  6104. * test/HandshakeExtensionMessageTest.cc
  6105. * test/UTPexExtensionMessageTest.cc
  6106. * test/DefaultBtRequestFactoryTest.cc
  6107. * test/BtPieceMessageTest.cc
  6108. Removed typedef PeerStats.
  6109. * src/PeerStat.h
  6110. * src/SegmentMan.cc
  6111. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Added std namespace to copy, remove_copy, back_inserter,
  6113. front_inserter.
  6114. * src/RequestGroupMan.cc
  6115. * src/DefaultPieceStorage.cc
  6116. * src/StreamFileAllocationEntry.cc
  6117. * src/BtFileAllocationEntry.cc
  6118. * src/RequestGroup.cc
  6119. * src/MetalinkEntry.cc
  6120. * src/DelegatingPeerListProcessor.cc
  6121. * src/DefaultBtRequestFactory.cc
  6122. * src/DefaultBtMessageDispatcher.cc
  6123. * src/version_usage.cc: Included <algorithm>
  6124. * src/main.cc
  6125. * src/MetalinkParserController.cc
  6126. * src/DefaultBtContext.cc
  6127. * src/DownloadEngineFactory.cc
  6128. * src/a2algo.h
  6129. Removed.
  6130. * test/StreamUriListParserTest.cc
  6131. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6133. ActivePeerConnectionCommand when it is given and
  6134. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6135. * src/ActivePeerConnectionCommand.{h, cc}
  6136. * src/BtSetup.cc
  6137. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Only add socket to DownloadEngine's select routine when peer or
  6139. localhost is unchoked and interested. This lowers CPU usage a
  6140. little bit.
  6141. * src/PeerInteractionCommand.cc
  6142. * src/PeerAbstractCommand.{h, cc}
  6143. * src/BtInteractive.h
  6144. * src/DefaultBtInteractive.{h, cc}
  6145. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Revert previous change because get_peers message is needed for
  6147. announce_peer anyway.
  6148. * src/DHTGetPeersCommand.cc
  6149. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Request peers thought DHT only when download hasn't finished.
  6151. * src/DHTGetPeersCommand.cc
  6152. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6154. * src/DHTBucketRefreshTask.{h, cc}
  6155. * src/DHTSetup.cc
  6156. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6158. standard classes.
  6159. Included string.h where mem* function are used.
  6160. Added namespace aria2.
  6161. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. Create directory before saving DHT routing table.
  6163. Now ios::failure is now handled properly.
  6164. * src/DHTAutoSaveCommand.cc
  6165. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Removed unnecessary cerr.
  6167. * src/DownloadEngine.cc
  6168. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Catch exception inside DHTMessageReceiver::receiveMessage().
  6170. Log unknown message.
  6171. * src/DHTMessageReceiver.{h, cc}
  6172. * src/DHTMessageFactory.h
  6173. * src/DHTMessageFactoryImpl.{h, cc}
  6174. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6175. * src/DHTInteractionCommand.cc
  6176. * src/DHTUnknownMessage.{h, cc}
  6177. * test/DHTUnknownMessageTest.cc
  6178. * test/MockDHTMessageFactory.h
  6179. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Commented out ip address comparison because a host can have multiple
  6181. ip addresses and it is hard to predict the hostname is resolved into
  6182. which one.
  6183. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6184. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. * po/Makefile.in: Removed since this is generated by configure.
  6186. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. Fixed compiler warning about redefinition of SIZE_MAX.
  6188. Use common.h instead of config.h directly here.
  6189. * src/Platform.{h, cc}
  6190. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6191. here.
  6192. * common.h
  6193. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6194. Updated gettext related files.
  6195. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6196. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6197. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Added DHT functionality, compatible with mainline.
  6199. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6200. You may need to specify entry point to DHT network using
  6201. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6202. Use --dht-listen-port to specify port number. Make sure that your
  6203. firewall configuration can pass through UDP traffic to the port.
  6204. The routing table is saved in $HOME/.aria2/dht.dat.
  6205. * src/DHT*
  6206. * src/BNode.{h, cc}
  6207. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6208. particular torrent.
  6209. * src/Data.cc: Rewritten ctor.
  6210. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6211. --dht-entry-point.
  6212. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6213. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6214. ends, remove BtContext from DHTPeerAnnounceStorage.
  6215. * src/BtPortMessage.{h, cc}: Rewritten.
  6216. * src/message.h
  6217. * src/OptionHandlerImpl.cc
  6218. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6219. --dht-entry-point.
  6220. * src/Dictionary.{h, cc} (remove): New function.
  6221. * src/prefs.h
  6222. * src/DefaultBtMessageFactory.h
  6223. * src/BtHandshakeMessage.cc
  6224. * src/ActivePeerConnectionCommand.cc
  6225. * src/SocketCore.{h, cc}: Added datagram socket support.
  6226. * src/DefaultBtMessageFactory.cc
  6227. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6228. Create DHT commands.
  6229. * src/BtMessageFactory.h
  6230. * src/PeerMessageUtil.{h, cc}
  6231. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Fixed the bug that log file is not written when configuration file doesn't exist.
  6233. This is caused by using Logger class before LogFactory is not configured.
  6234. BUG #1875079
  6235. * src/option_processing.cc
  6236. Warning message "configuration doesn't exist" is only printed when --conf is
  6237. given.
  6238. * src/option_processing.cc
  6239. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6241. ShaVisitor is now deprecated and slated to be removed.
  6242. * src/DefaultBtContext.cc
  6243. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Externalize message to message.h
  6245. * src/Platform.cc
  6246. * src/message.h
  6247. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Set default domain and default path to cookie.
  6249. * src/HttpResponse.cc
  6250. * src/CookieBox.{h, cc}
  6251. * src/CookieParser.{h, cc}
  6252. * test/CookieParserTest.cc
  6253. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Added --no-conf and --conf-path command-line option.
  6255. --no-conf option disables loading aria2.conf file.
  6256. --conf-path option changes the configuration file path. The default
  6257. file path is $HOME/.aria2/aria2.conf
  6258. Added a warning message when the configuration file is not found.
  6259. * src/HelpItemFactory.cc
  6260. * src/option_processing.cc
  6261. * src/prefs.h
  6262. * src/usage_text.h
  6263. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Added the message to inform users that other help categories are
  6265. available in -h option.
  6266. * src/version_usage.cc
  6267. * src/TagContainer.{h, cc}
  6268. * test/TagContainerTest.cc
  6269. * src/TaggedItem.{h, cc}
  6270. * test/TaggedItemTest.cc
  6271. * src/HelpItem.h
  6272. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6274. from PiecedSegment's ctor.
  6275. Previously Piece::getAllMissingBlockIndexes() is called from
  6276. PiecedSegment() but it is rather expensive since only first element is
  6277. used.
  6278. * src/PiecedSegment.cc
  6279. * src/Piece.{h, cc}
  6280. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6282. each time these functions are called.
  6283. * src/BitfieldMan.{h, cc}
  6284. * test/BitfieldManTest.cc
  6285. * src/array_fun.h
  6286. * test/array_funTest.cc
  6287. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6288. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6289. filtered. Removed unnecessary cast to int32_t.
  6290. * src/BitfieldMan.{h, cc}
  6291. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6293. payload length(4bytes) are received. This happens because lenbufLength
  6294. is not updated in this particular case and successive call of
  6295. receiveMessage() overwrites payload length with bytes recieved which
  6296. are payload body.
  6297. * src/PeerConnection.{h, cc}
  6298. * src/message.h
  6299. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6301. peer if there are peers that have same ipaddr and port.
  6302. I've experiened segmentation fault and "pure virtual function was
  6303. called" error.
  6304. * src/Peer.h
  6305. * test/PeerTest.cc
  6306. * src/DefaultPeerStorage.cc
  6307. * test/DefaultPeerStorageTest.cc
  6308. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Removed a call to isPowerOf() because it is no longer necessary here
  6310. and a request block is not always power of 2.
  6311. BUG#1866924
  6312. * src/PeerMessageUtil.cc (checkLength)
  6313. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Fixed the bug that always first found Segment is removed from
  6315. usedSegmentEntries. Removed unused functions.
  6316. * src/SegmentMan.{h, cc}
  6317. * test/SegmentManTest.cc
  6318. Fixed the bug that ServerHost is not removed.
  6319. * src/RequestGroup.cc
  6320. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Fixed the bug that SegmentMan::completeSegment() is not called
  6322. even if Segment is complete when --lowest-speed-limit is enabled.
  6323. BUG#1864525
  6324. * src/DownloadCommand.{h, cc}
  6325. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Fixed: hash algorithm 'sha1' is always used.
  6327. * src/DownloadCommand.cc (validatePieceHash)
  6328. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Added --enable-peer-exchange command-line option.
  6330. * src/OptionHandlerFactory.cc
  6331. * src/HelpItemFactory.cc
  6332. * src/option_processing.cc
  6333. * src/usage_text.h
  6334. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Move extension from BtRuntime to ExtensionMessageFactory, because
  6336. extension can be specified per peer, not per torrent.
  6337. * src/DefaultBtInteractive.cc
  6338. * src/BtRuntime.h
  6339. * src/ExtendedMessagingAware.h
  6340. * src/ExtensionMessageFactory.h
  6341. * src/DefaultExtensionMessageFactory.cc
  6342. * test/DefaultExtensionMessageFactoryTest.cc
  6343. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Added categorized option help. Specify category using --help option.
  6345. Also added the ability to search options in forward match.
  6346. * src/HelpItem.{h, cc}
  6347. * test/HelpItemTest.cc
  6348. * src/HelpItemFactory.{h, cc}
  6349. * src/TagContainer.{h, cc}
  6350. * test/TagContainerTest.cc
  6351. * src/option_processing.cc
  6352. * src/prefs.h
  6353. * src/TaggedItem.{h, cc}
  6354. * test/TaggedItemTest.cc
  6355. * src/version_usage.cc
  6356. * src/help_tags.h
  6357. * src/usage_text.h
  6358. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Fixed segmentation fault when bad torrent metainfo is parsed.
  6360. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6361. and then throw exception or skip it.
  6362. * src/DefaultBtContext.{h, cc}
  6363. * test/DefaultBtContextTest.cc
  6364. * src/AnnounceList.cc
  6365. * src/CompactPeerListProcessor.cc
  6366. * src/message.h
  6367. * src/DefaultBtAnnounce.{h, cc}
  6368. * test/DefaultBtAnnounceTest.cc
  6369. * src/BencodeVisitor.cc
  6370. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Added missing "B"(=Byte). So now the message looks like this:
  6372. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6373. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6374. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. Show the seed ratio after torrent downloads.
  6376. For example, after torrent download completed and --seed-time and
  6377. --seed-ratio conditions are fulfilled, following message is printed
  6378. right after "Download complete: .....":
  6379. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6380. * src/RequestGroupMan.cc
  6381. * src/RequestGroup.{h, cc}
  6382. * src/message.h
  6383. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Remove a defunct control file. A defunct control file means that while
  6385. it exists, but the corresponding download file is missing.
  6386. After its removal, a download restarts from the beginning.
  6387. * src/RequestGroup.cc
  6388. * src/message.h
  6389. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Allocate bitfield in Peer when it is really used. More specifically,
  6391. bitfield in Peer is allocated after the connection is established and
  6392. deallocated when the connection is dropped.
  6393. Since 2 parameters(piece length and total length) was removed from the
  6394. constructor of Peer class, many test classes were modified accordingly.
  6395. See svn log for more detailed information.
  6396. * src/PeerInteractionCommand.cc
  6397. * src/CompactPeerListProcessor.cc
  6398. * src/Peer.cc
  6399. * src/DefaultPeerListProcessor.cc
  6400. * src/PeerListenCommand.cc
  6401. * src/PeerReceiveHandshakeCommand.cc
  6402. Fixed memory leak
  6403. * src/Piece.cc
  6404. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6406. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6407. command-line options.
  6408. * src/option_processing.cc
  6409. * src/ActivePeerConnectionCommand.cc
  6410. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Send have message to peer if it already has the piece.
  6412. * src/BtHaveMessage.{h, cc}
  6413. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6415. port.
  6416. * src/DefaultPeerStorage.{h, cc}
  6417. * test/DefaultPeerStorageTest.cc
  6418. * src/HandshakeExtensionMessage.cc
  6419. * test/HandshakeExtensionMessageTest.cc
  6420. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6421. * src/PeerStorage.h
  6422. * test/MockPeerStorage.h
  6423. * src/PeerListenCommand.cc
  6424. * src/PeerReceiveHandshakeCommand.cc
  6425. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Added --metalink-enable-unique-protocol option.
  6427. * src/Metalink2RequestGroup.cc
  6428. * src/option_processing.cc
  6429. * src/prefs.h
  6430. * src/version_usage.cc
  6431. * doc/aria2c.1.txt
  6432. * doc/aria2c.1
  6433. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Allow a peer in incomingPeer to be added peers.
  6435. * src/DefaultPeerStorage.cc
  6436. * test/DefaultPeerStorageTest.cc
  6437. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6439. I could reproduce this bug in following procedure:
  6440. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6441. 2. Restart aria2.
  6442. 3. You see the download stopped around 99%.
  6443. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6444. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6445. If timeout is reached, then _nextCommand is unused and it may contains
  6446. segments and they won't be canceled. Actually, timeout is not needed
  6447. here because if the server dropped connection, then retry is made.
  6448. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Added uTorrent compatible Peer Exchange.
  6450. * src/BencodeVisitor.{h, cc}
  6451. * test/BencodeVisitorTest.cc
  6452. * src/BtConstants.h
  6453. * src/BtContext.h: Added 'private' flag.
  6454. * src/BtExtendedMessage.{h, cc}
  6455. * test/BtExtendedMessageTest.cc
  6456. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6457. reserved field.
  6458. * test/BtHandshakeMessageTest.cc
  6459. * src/BtMessageFactory.h
  6460. * src/BtRegistry.h
  6461. * src/BtRuntime.h: This class holds default extension message IDs for
  6462. aria2. By default, aria2 uses ID 8 for ut_pex.
  6463. * src/DefaultBtContext.cc
  6464. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6465. When it is true, aria2 enables ut_pex. This value is set by
  6466. PeerInteractionCommand.
  6467. * src/DefaultBtMessageFactory.{h, cc}
  6468. * test/DefaultBtMessageFactoryTest.cc
  6469. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6470. handling to DefaultBtInteractive class.
  6471. * src/DefaultExtensionMessageFactory.{h, cc}
  6472. * test/DefaultExtensionMessageFactoryTest.cc
  6473. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6474. the container(peers and incomingPeers. The equality is determined by
  6475. Peer::id).
  6476. * test/DefaultPeerStorageTest.cc
  6477. * src/ExtensionMessage.h
  6478. * test/MockExtensionMessage.h
  6479. * src/ExtensionMessageFactory.h
  6480. * test/MockExtensionMessageFactory.h
  6481. * src/HandshakeExtensionMessage.{h, cc}
  6482. * test/HandshakeExtensionMessageTest.cc
  6483. * src/MetaEntry.h
  6484. * src/Peer.{h, cc}
  6485. * src/PeerInteractionCommand.cc
  6486. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6487. addIncomingPeer.
  6488. * src/PeerMessageUtil.{h, cc}
  6489. * src/PeerObject.h
  6490. * src/UTPexExtensionMessage.{h, cc}
  6491. * test/UTPexExtensionMessageTest.cc
  6492. * src/message.h
  6493. * src/prefs.h
  6494. Fixed the bug that returns incomplete data when it contains null
  6495. character. A convenient constructor was also added.
  6496. * src/Data.{h, cc}
  6497. Rewritten.
  6498. * src/CompactPeerListProcessor.cc
  6499. Fixed typos.
  6500. * src/message.h
  6501. * src/MetaFileUtil.cc
  6502. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Added "Status Legend" label to the explanation text of 'stat' in
  6504. download result and moved it to the last. BUG#1848214
  6505. * src/RequestGroupMan.cc
  6506. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6507. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6508. * src/Makefie.am
  6509. * test/Makefile.am
  6510. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. Fixed the bug that prevents aria2 from loading cookie file when expire
  6512. value is greater than 2^31-1. BUG#1851066
  6513. * src/CookieBoxFactory.cc
  6514. * test/CookieBoxFactoryTest.cc
  6515. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Fixed possible memory leak when an exception is thrown.
  6517. * src/XML2SAXMetalinkProcessor.cc
  6518. Added Expat support. If both libxml2 and Expat are installed, then
  6519. libxml2 is used by default.
  6520. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6521. ExpatMetalinkProcessor according to the configuration.
  6522. * src/ExpatMetalinkProcessor.{h, cc}
  6523. * src/main.cc: Removed libxml2 specific header and init/free function.
  6524. * src/MetalinkProcessorFactory.{h, cc}
  6525. * src/MetalinkHelper.cc
  6526. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6527. * src/MetalinkProcessor.h
  6528. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6529. MetalinkProcessorTest is used instead.
  6530. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6531. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6532. MetalinkProcessorFactory::newInstance().
  6533. * m4/libexpat.m4
  6534. * configure.ac: Added configuration options for libexpat.
  6535. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. Disabled -s option in metalink download.
  6537. * src/Metalink2RequestGroup.cc
  6538. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6539. If several protocols are available for a mirror in metalink file,
  6540. aria2 now use one of them. --metalink-preferred-protocol option was
  6541. added to specify the preference of protocol.
  6542. * src/AbstractCommand.cc
  6543. * src/OptionHandlerFactory.cc
  6544. * src/ServerHost.{h, cc}
  6545. * src/Metalink2RequestGroup.cc
  6546. * src/RequestGroup.{h, cc}
  6547. * test/RequestGroupTest.cc
  6548. * src/option_processing.cc
  6549. * src/prefs.h
  6550. * src/HttpResponseCommand.cc
  6551. * src/MetalinkResource.{h, cc}
  6552. * src/FtpNegotiationCommand.cc
  6553. * src/MetalinkEntry.{h, cc}
  6554. * src/MetalinkEntryTest.cc
  6555. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Code cleanup and added debug log.
  6557. * src/PeerConnection.cc
  6558. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Compiler error fix: applied the patch by Tiziano Mueller
  6560. * src/RequestGroup.cc
  6561. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6563. in stopped and completed event.
  6564. * src/AnnounceList.{h, cc}
  6565. * test/AnnounceListTest.cc
  6566. * src/DefaultBtAnnounce.cc
  6567. * test/DefaultBtAnnounceTest.cc
  6568. Sorted URLs.
  6569. * test/Metalink2RequestGroupTest.cc
  6570. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. Removed unnecessary string copy. Updated doc and corrected indentation.
  6572. * src/Base64.cc
  6573. Fixed compilation warnings
  6574. * test/DataTest.cc
  6575. * test/HttpRequestTest.cc
  6576. * test/MetaFileUtilTest.cc
  6577. * test/RequestTest.cc
  6578. * Release 0.12.0
  6579. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. Updated translations
  6581. * po/{de,fr,ja,nl,ru}.po
  6582. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6583. translations. Many thanks to translators.
  6584. * po/{ca,es,it,pt_BR,sv}.po
  6585. * po/LINGUAS
  6586. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Added a notice about URL
  6588. * src/version_usage.cc
  6589. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6590. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6591. aria2 repeatedly sends stopped request when tracker returns error code.
  6592. * src/AnnounceList.cc
  6593. * test/AnnounceListTest.cc
  6594. * src/AnnounceTier.h
  6595. Added a message when ctrl-c is hit.
  6596. Now second ctrl-c is also handled in signal handler.
  6597. * src/RequestGroupMan.{h, cc}
  6598. * src/RequestGroup.{h, cc}
  6599. * src/MultiUrlRequestInfo.cc
  6600. * src/DownloadEngine.cc
  6601. * src/TrackerWatcherCommand.cc
  6602. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Code cleanup
  6604. * src/Base64.cc (encode)
  6605. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Changed Direct/IO enable/disable procesure in file allocation routine.
  6607. * src/SingleFileAllocationIterator.cc
  6608. (SingleFileAllocationIterator):
  6609. Disable directIO if offset is not multiple of 512.
  6610. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6611. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6612. Enable created SingleFileAllocationIterator's directIO.
  6613. * src/FileAllocationEntry.cc
  6614. (FileAllocationEntry): Enable directIO here.
  6615. (~FileAllocationEntry): Disable directIO here.
  6616. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6617. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6618. * src/Peer.{h, cc}
  6619. * src/DefaultPieceStorage.cc
  6620. * test/DefaultPieceStorageTest.cc
  6621. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Rewritten direct I/O support routine
  6623. * src/SingleFileAllocationIterator.cc
  6624. * src/MultiDiskAdaptor.{h, cc}
  6625. * src/ByteArrayDiskWriter.h
  6626. * src/AbstractSingleDiskAdaptor.h
  6627. * src/AbstractDiskWriter.cc
  6628. * src/DefaultPieceStorage.cc
  6629. * src/DiskWriter.h
  6630. * src/BinaryStream.h
  6631. * src/IteratableChunkChecksumValidator.cc
  6632. * src/IteratableChecksumValidator.cc
  6633. * src/CheckIntegrityEntry.cc
  6634. * src/FileAllocationEntry.cc
  6635. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Fixed typo
  6637. * src/version_usage.cc
  6638. Updated doc
  6639. * doc/aria2c.1.txt
  6640. * doc/aria2c.1
  6641. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Fixed compile error without message digest support.
  6643. * src/FileMetalinkParserState.cc
  6644. * src/MetalinkParserController.{h, cc}
  6645. * test/XML2SAXMetalinkProcessorTest.cc
  6646. * test/MetalinkParserControllerTest.cc
  6647. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Enable direct I/O support in checksum checking.
  6649. * src/IteratableChunkChecksumValidator.{h, cc}
  6650. * test/IteratableChunkChecksumValidatorTest.cc
  6651. * src/CheckIntegrityEntry.cc
  6652. * src/PieceHashCheckIntegrityEntry.cc
  6653. * src/IteratableChecksumValidator.{h, cc}
  6654. * src/BtCheckIntegrityEntry.cc: Added doc.
  6655. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Added --allow-piece-length-change option.
  6657. * src/DefaultBtProgressInfoFile.cc
  6658. * test/DefaultBtProgressInfoFileTest.cc
  6659. * src/OptionHandlerFactory.cc
  6660. * src/option_processing.cc
  6661. * src/prefs.h
  6662. * src/version_usage.cc
  6663. * doc/aria2c.1.txt
  6664. * doc/aria2c.1
  6665. Fixed: duplicated result entry appears when exception is thrown in
  6666. RequestGroup::createInitiateConnectionCommand().
  6667. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6668. Add RequestGroup to _requestGroup after RequetGroup::
  6669. createInitiateConnectionCommand() succeeds.
  6670. Externalized message
  6671. * src/XML2SAXMetalinkProcessor.cc
  6672. * src/message.h
  6673. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Forced download abort when received negative response from http/ftp
  6675. server.
  6676. * src/HttpResponseCommand.cc
  6677. * src/FtpNegotiationCommand.cc
  6678. * src/HttpResponse.cc
  6679. * src/FtpConnection.cc
  6680. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6682. the predecessor, Xml2MetalinkParser class.
  6683. I tested them against 94KB metalink file with 1234 chunk checksums.
  6684. The new one parsed it in 22msec, while it took 6000msec with old one.
  6685. * src/XML2SAXMetalinkProcessor.{h, cc}
  6686. * test/XML2SAXMetalinkProcessorTest.cc
  6687. * src/MetalinkParserController.{h, cc}
  6688. * test/MetalinkParserControllerTest.cc
  6689. * src/MetalinkParserState.h: Also added 16 subclasses.
  6690. * src/main.cc
  6691. * src/Metalink2RequestGroup.cc
  6692. * src/MetalinkHelper.cc
  6693. * src/MetalinkEntry.cc
  6694. * src/ChunkChecksum.h
  6695. Rewritten Base64 class for better performance.
  6696. * src/Base64.{h, cc}
  6697. * test/Base64Test.cc
  6698. * src/HttpRequest.cc
  6699. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Fixed the bug#1841757: aria2 will connect to server to only get
  6701. file size.
  6702. * src/StreamFileAllocationEntry.cc
  6703. * src/option_processing.cc
  6704. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6705. downloads.
  6706. * src/FtpNegotiationCommand.cc
  6707. Suppressed wrong message when finding PreDownloadHandler
  6708. * src/RequestGroup.cc
  6709. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Updated usage
  6711. * src/version_usage.cc
  6712. Updated man page
  6713. * doc/aria2c.1.txt
  6714. * doc/aria2c.1
  6715. Updated po files
  6716. * po/aria2c.pot
  6717. * po/*.po
  6718. * po/*.gmo
  6719. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Eliminated g++-4.2 warning
  6721. * src/DownloadHandlerConstants.{h, cc}
  6722. * src/Util.cc
  6723. * test/MetaFileUtilTest.cc
  6724. * test/PStringBuildVisitorTest.cc
  6725. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6726. * src/RequestGroup.cc
  6727. * src/BtCheckIntegrityEntry.cc
  6728. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Fixed a2io.h
  6730. * src/a2io.h
  6731. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Added direct I/O support. The current implementation uses O_DIRECT,
  6733. which is not posix standard and is tested on linux 2.6.21.
  6734. Currently only file allocation uses direct I/O.
  6735. * src/SingleFileAllocationIterator.{h, cc}
  6736. * test/SingleFileAllocationIteratorTest.cc
  6737. * src/MultiFileAllocationIterator.{h, cc}
  6738. * test/MultiFileAllocationIteratorTest.cc
  6739. * src/BinaryStream.h
  6740. * src/DiskWriter.h
  6741. * src/AbstractDiskWriter.{h, cc}
  6742. * src/ByteArrayDiskWriter.h
  6743. * src/DiskAdaptor.h
  6744. * src/AbstractSingleDiskAdaptor.{h, cc}
  6745. * src/MultiDiskAdaptor.{h, cc}
  6746. * src/FileAllocationEntry.cc
  6747. * src/Util.{h, cc}
  6748. * src/OptionHandlerFactory.cc
  6749. * src/prefs.h
  6750. * src/version_usage.cc
  6751. * src/option_processing.cc
  6752. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6753. handleException.
  6754. * src/MultiFileAllocationIterator.cc
  6755. Added EINTR handling
  6756. * src/SocketCore.cc
  6757. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. Updated usage
  6759. * src/version_usage.cc
  6760. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. Applied Ross's patch for MinGW port.
  6762. * src/DownloadEngine.h
  6763. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Set Content-Type to SingleFileDownloadContext when http response is
  6765. received.
  6766. * src/HttpResponseCommand.cc
  6767. * src/HttpResponse.{h, cc}
  6768. * test/HttpResponseTest.cc
  6769. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Rewritten to add content-type support.
  6771. * src/DownloadHandler.{h, cc}
  6772. * src/BtPostDownloadHandler.{h, cc}
  6773. * test/BtPostDownloadHandlerTest.cc
  6774. * src/MetalinkPostDownloadHandler.{h, cc}
  6775. * test/MetalinkPostDownloadHandlerTest.cc
  6776. * src/PostDownloadHandler.{h, cc}
  6777. * src/DownloadHandlerConstants.{h, cc}
  6778. * src/RequestGroup.cc
  6779. * src/HttpResponseCommand.cc
  6780. * src/FtpNegotiationCommand.cc
  6781. * src/SingleFileDownloadContext.{h, cc}
  6782. * src/RequestGroup.h
  6783. * src/RequestGroupCriteria.h
  6784. * src/ContentTypeRequestGroupCriteria.h
  6785. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6786. If it is give, metalink/torrent file is not written to the disk, but
  6787. just is kept in memory. Parsing is occurred on memory.
  6788. * src/MetalinkHelper.{h, cc}
  6789. * src/MetalinkProcessor.h
  6790. * src/Xml2MetalinkProcessor.{h, cc}
  6791. * test/Xml2MetalinkProcessorTest.cc
  6792. * src/DownloadHandlerFactory.{h, cc}
  6793. * test/DownloadHandlerFactoryTest.cc
  6794. * src/PreDownloadHandler.{h, cc}
  6795. * src/OptionHandlerFactory.cc
  6796. * src/DefaultBtContext.{h, cc}
  6797. * test/DefaultBtContextTest.cc
  6798. * src/version_usage.cc
  6799. * src/Metalink2RequestGroup.{h, cc}
  6800. * src/RequestGroup.{h, cc}
  6801. * src/a2functional.h
  6802. * test/a2functionalTest.cc
  6803. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6804. * src/OptionHandlerImpl.h
  6805. * src/prefs.h
  6806. * src/Util.{h, cc}
  6807. * test/UtilTest.cc
  6808. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6809. memory usage.
  6810. * src/RequestGroupMan.{h, cc}
  6811. * src/DownloadEngine.cc
  6812. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6813. WeakHandle to SharedHandle because WeakHandle could be null.
  6814. * src/RequestGroup.{h, cc}
  6815. * src/DownloadEngineFactory.cc
  6816. * src/DownloadResult.h
  6817. Set totalLength after download finished
  6818. * src/UnknownLengthPieceStorage.{h, cc}
  6819. Keep torrent file specified in metalink in memory.
  6820. * src/Metalink2RequestGroup.cc
  6821. * src/BtDependency.cc
  6822. * src/TrueRequestGroupCriteria.h
  6823. Fixed the bug: seekg is used where seekp should be used.
  6824. * src/ByteArrayDiskWriter.cc
  6825. * test/ByteArraydiskWriterTest.cc
  6826. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6827. Fixed syntax error
  6828. * test/SequenceTest.cc
  6829. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6831. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6832. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6833. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6834. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. Added the check to see whether ares_host_callback accepts timeouts
  6836. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6837. * src/NameResolver.{h, cc}
  6838. * m4/libcares.m4
  6839. * configure.ac: Set C++ for language choice.
  6840. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Fixed: compilation fails without c-ares/ares
  6842. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6843. Generate http/ftp commands only when download is incomplete.
  6844. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6845. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6846. Corrected typo. Examples are removed since they are available in man
  6847. page.
  6848. * src/version_usage.cc
  6849. Updated man page.
  6850. * doc/aria2c.1
  6851. * doc/aria2c.1.txt
  6852. * doc/makeman: Commented out sed command.
  6853. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Throw DlAbortEx when a remote file is not found.
  6855. * src/HttpResponse.cc
  6856. * src/FtpNegotiationCommand.cc
  6857. * src/message.h
  6858. Overwrite an existing file if --allow-overwrite=true is given.
  6859. * src/RequestGroup.cc
  6860. Removed unused functions
  6861. * src/AbstractCommand.h
  6862. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Removed 'extern' from 'extern typedef ...' in src/*.h
  6864. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Updated usage
  6866. * src/version_usage.cc
  6867. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Trim announce URL
  6869. * src/DefaultBtContext.cc
  6870. * test/ShaVisitorTest.cc
  6871. Trim argument s. Give trimed s to exception constructor.
  6872. * src/Util.cc (parseInt)(parseLLInt)
  6873. * test/UtilTest.cc
  6874. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Set precision back to 1.
  6876. * src/ConsoleStatCalc.cc (calculateStat)
  6877. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Replaced strtol with Util::parseInt
  6879. * src/ChunkedEncoding.cc
  6880. * src/HttpConnection.cc
  6881. * src/CookieBoxFactory.cc
  6882. * src/ParameterizedStringParser.cc
  6883. * src/Util.cc
  6884. * test/UtilTest.cc
  6885. * test/OptionHandlerTest.cc
  6886. * src/Request.cc
  6887. Throw exception when empty string is given. The message for exception
  6888. changed.
  6889. * src/Util.cc (parseInt)(parseLLInt)
  6890. * src/message.h
  6891. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6893. set to 1.
  6894. * src/ConsoleStatCalc.cc (calculateStat)
  6895. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Preallocate non-requested file which is adjacent forward to requested
  6897. file('requested' files means the files given in --select-file option)
  6898. if they share a same piece.
  6899. This fixes long pause in the file system which doesn't support sparse
  6900. files like FAT32 while downloading.
  6901. * src/MultiFileAllocationIterator.{h, cc}
  6902. * test/MultiFileAllocationIteratorTest.cc
  6903. * src/FileEntry.{h, cc}
  6904. Removed unused _option.
  6905. * src/MultiDiskAdaptor.h
  6906. * test/MultiDiskAdaptorTest.cc
  6907. * src/DefaultPieceStorage.cc
  6908. Set the default value of --seed-ratio to 1.0.
  6909. If 0.0 is given, then seeding continues regardless of share ratio.
  6910. * src/version_usage.cc
  6911. * src/option_processing.cc
  6912. * src/BtSetup.cc
  6913. * doc/aria2c.1.txt
  6914. * doc/aria2c.1
  6915. Fixed: Selective download is not working in BitTorrent
  6916. * src/RequestGroup.cc
  6917. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6918. * src/PieceStorage.h
  6919. * test/MockPieceStorage.h
  6920. * src/UnknownLengthPieceStorage.h
  6921. * src/DefaultPieceStorage.{h, cc}
  6922. * src/Metalink2RequestGroup.cc
  6923. * src/RequestGroup.cc
  6924. * src/Sequence.h
  6925. * test/SequenceTest.cc
  6926. * src/IntSequence.h
  6927. * src/message.h
  6928. * src/Util.{h, cc}
  6929. * test/UtilTest.cc
  6930. Added new function 'parse' to catch exception thrown by subclass's
  6931. parseArg
  6932. * src/OptionHandler.h
  6933. * src/OptionParser.cc
  6934. * src/NameMatchOptionHandler.h
  6935. * src/OptionHandlerImpl.h
  6936. * test/OptionHandlerTest.cc
  6937. Added IntegerRangeOptionHandler. Used for --listen-port and
  6938. --select-file. Now --listen-port accepts range of port.
  6939. * src/OptionHandlerFactory.cc
  6940. * src/version_usage.cc
  6941. * src/OptionHandlerImpl.h
  6942. * src/option_processing.cc
  6943. * src/BtSetup.cc
  6944. * src/PeerListenCommand.{h, cc}
  6945. * doc/aria2c.1.txt
  6946. * doc/aria2c.1
  6947. Implemented operator< for Exception class to provide easy way to print
  6948. exception stack trace.
  6949. * src/Exception.{h, cc}
  6950. * src/main.cc
  6951. * src/option_processing.cc
  6952. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. * src/version_usage.cc
  6954. (showVersion): Reworked.
  6955. (showUsage): Added examples.
  6956. Removed Hint for total length and file name.
  6957. * src/Metalink2RequestGroup.cc
  6958. * src/RequestGroup.{h, cc}
  6959. * src/HttpResponseCommand.cc
  6960. * src/FtpNegotiationCommand.cc
  6961. Now --follow-torrent and --follow-metalink option work properly.
  6962. * src/RequestGroup.cc
  6963. Updated man page
  6964. * doc/aria2c.1.txt
  6965. * doc/aria2c.1
  6966. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Removed.
  6968. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6969. Use Segment::operator==()
  6970. * src/HttpConnection.cc
  6971. * src/Segment.h
  6972. Updated usage
  6973. * src/version_usage.cc
  6974. Added EINTR treatment.
  6975. * src/SocketCore.cc
  6976. * src/AbstractDiskWriter.cc
  6977. Rewritten.
  6978. * src/Util.cc (rangedFileCopy)
  6979. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Fixed typo.
  6981. * src/version_usage.cc
  6982. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Implemented. Now -c option works fine.
  6984. * src/DefaultPieceStorage.cc (markPiecesDone)
  6985. * test/DefaultPieceStorageTest.cc
  6986. Removed.
  6987. * src/SegmentMan.{h, cc}
  6988. (markAllPiecesDone)
  6989. (markPieceDone)
  6990. Synchronized po files with
  6991. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6992. * src/fr.po
  6993. * src/ru.po
  6994. * src/de.po
  6995. * src/ja.po
  6996. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Added ifdef and some modifications to compile without BitTorrent,
  6998. Metalink, MessageDigest
  6999. support.
  7000. * src/PieceHashCheckIntegrityEntry.cc
  7001. * src/MetalinkEntry.h
  7002. * src/version_usage.cc
  7003. * src/main.cc
  7004. * src/DownloadEngine.{h, cc}
  7005. * src/Metalink2RequestGroup.cc
  7006. * src/Peer.cc
  7007. * src/RequestGroup.cc
  7008. * src/MetalinkHelper.cc
  7009. * test/DefaultPieceStorageTest.cc
  7010. * test/MetalinkPostDownloadHandlerTest.cc
  7011. * test/Metalink2RequestGroupTest.cc
  7012. Hide TOTAL SPD when all downloads complete.
  7013. * src/ConsoleStatCalc.cc
  7014. Log target system information.
  7015. * src/main.cc
  7016. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Now --metalink-location accepts a comma-deliminated list of locations.
  7018. * src/MetalinkEntry.{h, cc}
  7019. * test/MetalinkEntryTest.cc
  7020. * src/version_usage.cc
  7021. * src/Metalink2RequestGroup.cc
  7022. * src/Xml2MetalinkProcessor.cc
  7023. * test/Xml2MetalinkProcessorTest.cc
  7024. * doc/aria2c.1.txt
  7025. * doc/aria2c.1
  7026. * src/Util.cc (toUpper)(toLower): Rewritten.
  7027. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Added the ability to detect duplicate download entry which is about to
  7029. download the same file other RequestGroup is downloading.
  7030. * src/RequestGroup.cc
  7031. * src/HttpResponseCommand.cc
  7032. * src/FtpNegotiationCommand.cc
  7033. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7034. Recalculates download progress when loading a control file,
  7035. if the piece length of DownloadContext is different from the one saved
  7036. in the control file. Currently in-flight pieces are ignored.
  7037. * src/DefaultBtProgressInfoFile.cc
  7038. * test/DefaultBtProgressInfoFileTest.cc
  7039. * src/Util.{h, cc}
  7040. * test/UtilTest.cc
  7041. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Do not rotate tiers in announce-list.
  7043. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7044. AnnounceList::allTiersFailed() used instead to detect whether all
  7045. tiers are tried and failed.
  7046. * test/DefaultBtAnnounceTest.cc
  7047. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7048. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7049. * test/AnnounceListTest.cc
  7050. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7051. clause. Catch RecoverableException instead of DlRetryEx instead.
  7052. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Implemented checksum validation feature(1 checksum for each file)
  7054. The validation takes place after the download.
  7055. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7056. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7057. * src/CheckIntegrityCommand.cc: Changed log message.
  7058. * src/Metalink2RequestGroup.cc: Set checksum to
  7059. SingleFileDownloadContext.
  7060. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7061. PieceHashCheckIntegrity class.
  7062. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7063. PieceHashCheckIntegrity class.
  7064. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7065. * src/IteratableValidator.h: New class.
  7066. * src/message.h
  7067. * src/CheckIntegrityEntry.{h, cc}
  7068. * src/IteratableChunkChecksumValidator.{h, cc}
  7069. * src/SingleFileDownloadContext.h
  7070. * src/DownloadCommand.cc
  7071. --allow-overwrite=true is no longer needed to check file integrity
  7072. before download in BitTorrent download.
  7073. * src/RequestGroup.cc (getInitialCommand)
  7074. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7075. throws exception.
  7076. * src/RequestGroupMan.cc (getInitialCommands)
  7077. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. urlencode the given url inside Request::parseUrl(...)
  7079. * src/Request.{h, cc}
  7080. * src/Util.{h, cc}
  7081. * test/RequestTest.cc
  7082. Removed #!metalink3! notation support because it is deleted from
  7083. the metalink specification.
  7084. * src/Request.{h, cc}
  7085. * test/RequestTest.cc
  7086. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7087. Don't connect server before checking file integrity at startup, if
  7088. filesize and output file path are known.
  7089. * src/AbstractCommand.cc
  7090. * src/StreamFileAllocationEntry.cc
  7091. * src/Metalink2RequestGroup.cc
  7092. * src/RequestGroup.{h, cc}
  7093. * src/HttpResponseCommand.cc
  7094. * src/FtpNegotiationCommand.cc
  7095. Added DownloadFailureException. If it is thrown, RequestGroup should
  7096. halt.
  7097. * src/AbstractCommand.cc
  7098. * src/DownloadFailureException.h
  7099. * src/RequestGroup.cc
  7100. Catch RecoverableException, instead of DlAbortEx.
  7101. * src/RequestGroupMan.cc
  7102. * src/FillRequestGroupCommand.cc
  7103. * src/MetaFileUtil.cc
  7104. * src/IteratableChunkChecksumValidator.cc
  7105. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7106. getGID())
  7107. * src/CheckIntegrityCommand.cc
  7108. * src/message.h
  7109. Print gid instead of idx.
  7110. * src/RequestGroupMan.cc
  7111. Removed exception throwers declaration.
  7112. * src/DirectDiskAdaptor.{h, cc}
  7113. * src/SocketCore.{h, cc}
  7114. * src/MultiDiskAdaptor.{h, cc}
  7115. * src/HttpConnection.{h, cc}
  7116. * src/HttpResponse.{h, cc}
  7117. * src/DiskAdaptor.{h, cc}
  7118. * src/CopyDiskAdaptor.{h, cc}
  7119. * src/MultiDiskAdaptor.{h, cc}
  7120. * src/HttpHeaderProcessor.{h, cc}
  7121. * src/AbstractSingleDiskAdaptor.{h, cc}
  7122. * src/Util.{h, cc}
  7123. * test/UtilTest.cc
  7124. * src/DefaultDiskWriter.{h, cc}
  7125. * src/FtpConnection.{h, cc}
  7126. * src/AbstractDiskWriter.{h, cc}
  7127. Removed duplicate code.
  7128. * src/StreamCheckIntegrityEntry.cc
  7129. Removed unnecessary include.
  7130. * src/DiskWriter.h
  7131. Included Exception.h
  7132. * src/option_processing.cc
  7133. Included 2 files and added doc
  7134. * src/TrackerWatcherCommand.cc
  7135. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7136. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Changed CheckIntegrityEntry interface so that it can define
  7138. the action when all the chunk checksums are valid.
  7139. * src/CheckIntegrityEntry.h
  7140. * src/StreamCheckIntegrityEntry.{h, cc}
  7141. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7142. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7143. to exit rather than doing seeding. So, it would be good to toggle this
  7144. behavior.
  7145. * src/CheckIntegrityCommand.cc
  7146. * src/AbstractCommand.cc
  7147. * src/RequestGroup.cc
  7148. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Reflect the download length of in-flight pieces.
  7150. It makes the download length readout more precise.
  7151. * src/DefaultPieceStorage.{h, cc}
  7152. * test/DefaultPieceStorageTest.cc
  7153. * src/a2functional.h
  7154. * test/a2functionalTest.cc
  7155. Lower CPU load when --max-download-limit is used.
  7156. There is up and down in speed indicator when enabling
  7157. http-pipelining but a download goes well. I think the problem is that
  7158. because http-pipelining is enabled, DownloadCommand is created for
  7159. each segment and in its constructor, PeerStat::downloadStart() is
  7160. called. In PeerStat::downloadStart(), speed calculation object is
  7161. reseted, which makes download speed zero.
  7162. * src/DownloadCommand.cc
  7163. Rewritten using accumulate.
  7164. * src/RequestGroupMan.cc (calculateStat)
  7165. Code clearnup.
  7166. * src/FtpNegotiationCommand.cc
  7167. * src/HttpResponseCommand.cc
  7168. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Fixed: Can not resume: aria2 reports download already finished.
  7170. * src/AbstractCommand.{h, cc}
  7171. * src/HttpResponseCommand.cc
  7172. * src/FtpNegotiateCommand.cc
  7173. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7174. Now a file is stored in the directory specified in .metalnk file
  7175. (file[@name]).
  7176. * src/Metalink2RequestGroup.cc
  7177. Create the directory structure when opening the file if it doesn't
  7178. exist.
  7179. * src/AbstractDiskWriter.cc
  7180. * src/Util.{h, cc}
  7181. * src/File.h
  7182. * test/UtilTest.cc
  7183. Removed file name comparison
  7184. * src/Metalink2RequestGroup.cc
  7185. * src/HttpResponseCommand.cc
  7186. Rewritten using Util::mkdirs()
  7187. * src/FileEntry.cc (setupDir)
  7188. * test/FileEntryTest.cc
  7189. Updated doc
  7190. * src/SingleFileDownloadContext.h
  7191. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Now SleepCommand dispatches nextCommand when halt is requested.
  7193. It avoids a possible long wait after hitting CTRL-C.
  7194. * src/SleepCommand.{h, cc}
  7195. * src/RequestGroupAware.{h, cc}
  7196. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7198. to open listen port, then remove the port number from the tracker
  7199. request.
  7200. * src/DefaultBtAnnounce.cc
  7201. * test/DefaultBtAnnounceTest.cc
  7202. * test/MockPieceStorage.h
  7203. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7204. them more testable.
  7205. * src/DefaultBtAnnounce.{h, cc}
  7206. * src/DefaultBtContext.{h, cc}
  7207. * src/Util.{h, cc}
  7208. * test/DefaultBtAnnounceTest.cc
  7209. * test/DefaultBtContextTest.cc
  7210. * test/UtilTest.cc
  7211. Added 'B' to upload bytes readout.
  7212. * src/ConsoleStatCalc.cc
  7213. Now the listen port for BitTorrent download is opened when it is
  7214. needed.
  7215. * src/DownloadEngineFactory.cc
  7216. * src/BtSetup.{h, cc}
  7217. * src/PeerListenCommand.{h, cc}
  7218. Now an exception thrown while parsing tracker response is now logged.
  7219. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7220. called, which means no retry is made in this case, assuming a tracker
  7221. has a problem.
  7222. * src/TrackerWatcherCommand.cc
  7223. Fixed: downloading a file whose length is unkown fails.
  7224. * src/DownloadCommand.cc
  7225. Simplified prepareForNextSegment()
  7226. * src/DownloadCommand.cc
  7227. Updated
  7228. * po/POTFILES.in
  7229. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. Re-implemented a file listing for Metalink, which was dropped while
  7231. http/ftp/torrent integration was being implemented.
  7232. * src/MetalinkHelper.{h, cc}: New class.
  7233. * test/MetalinkHelperTest.cc
  7234. * src/main.cc
  7235. * src/Metalink2RequestGroup.cc
  7236. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Added the ability to display the detailed torrent file information.
  7238. Now -S option gives not only a file listing, but also total download
  7239. length, info hash, announce URI, piece length, the number of pieces,
  7240. and mode(single or multi-torrent).
  7241. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7242. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7243. KiB)
  7244. * test/UtilTest.cc
  7245. * src/main.cc
  7246. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Added ftp://USER:PASSWD@Servername automatic parsing.
  7248. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7249. _password. Recognize username and password in URI.
  7250. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7251. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7252. * src/RequestFactory.{h, cc}: Removed.
  7253. * src/AuthConfigFactory.{h, cc}: New class.
  7254. * src/FtpConnection.cc: Use AuthConfigFactory.
  7255. * src/HttpRequest.cc: Use AuthConfigFactory.
  7256. * test/HttpRequestTest.cc: Updated.
  7257. * test/RequestTest.cc: Updated.
  7258. * test/AuthConfigFactoryTest.cc: New class.
  7259. * test/RequestFactoryTest.cc: Removed.
  7260. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Use RequestGroup::allDownloadFinished() to decide whether the control
  7262. file should be removed or saved.
  7263. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7264. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7265. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Use File::renameTo()
  7267. * src/DefaultBtProgressInfoFile.cc
  7268. Added --no-file-allocation-limit command-line option.
  7269. * src/version_usage.cc
  7270. * src/option_processing.cc
  7271. * src/OptionHandlerFactory.cc
  7272. * src/RequestGroup.{h, cc}
  7273. * src/BtCheckIntegrityEntry.cc
  7274. * src/StreamCheckIntegrityEntry.cc
  7275. * src/prefs.h
  7276. * doc/aria2c.1.txt
  7277. * doc/aria2c.1
  7278. Now prealloc is the default value for --file-allocation option.
  7279. * src/version_usage.cc
  7280. * src/option_processing.cc
  7281. * doc/aria2c.1.txt
  7282. * doc/aria2c.1
  7283. Don't URL-encode user-agent.
  7284. * src/HttpRequest.cc
  7285. Updated translations
  7286. * po/LINGUAS: Added nl for Dutch translation.
  7287. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7288. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7289. * po/POTFILES.in: Updated.
  7290. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Added the ability to recognize url-list in a torrent file.
  7292. The retrieved URLs are attached to the corresponding FileEntry.
  7293. * src/DefaultBtContext.{h, cc}
  7294. * src/FileEntry.{h, cc}
  7295. * test/DefaultBtContextTest.cc
  7296. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7298. after the download finishes.
  7299. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7301. the data smaller than block length.
  7302. A block length can be specified by constructor's argument.
  7303. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7304. Get a missing piece in the range of given FileEntry. This function is
  7305. not used in the program yet.
  7306. * src/Util.h: Added some macros.
  7307. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Added HTTP/1.1 keep alive and pipelining support.
  7309. See --enable-http-keep-alive and --enable-http-pipelining option.
  7310. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7311. Segment.
  7312. * src/HttpDownloadCommand.{h, cc}
  7313. * src/OptionHandlerFactory.cc
  7314. * src/HttpConnection.{h, cc}
  7315. * src/version_usage.cc
  7316. * src/HttpInitiateConnectionCommand.cc
  7317. * src/FtpInitiateConnectionCommand.cc
  7318. * src/Segment.h
  7319. * src/HttpRequestCommand.{h, cc}
  7320. * src/option_processing.cc
  7321. * src/prefs.h
  7322. * src/HttpResponseCommand.cc
  7323. * src/SegmentMan.{h, cc}
  7324. * src/FtpNegotiateCommand.cc
  7325. * src/HttpProxyResponseCommand.cc
  7326. * src/Request.cc
  7327. * src/HttpRequest.cc
  7328. * src/DownloadCommand.cc
  7329. * test/HttpRequestTest.cc
  7330. * test/RequestTest.cc
  7331. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7333. finished.
  7334. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7336. catching it inside the method.
  7337. When no file entry is found in a metalink without querying user
  7338. preferences, throw the exception with the error message that suggests
  7339. metalink file is probably broken.
  7340. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7341. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7343. processed.
  7344. * src/RequestGroupMan.cc (removeStoppedGroup)
  7345. Added debug message.
  7346. * src/BtPostDownloadHandler.cc
  7347. * src/MetalinkPostDownloadHandler.cc
  7348. * src/PostDownloadHandler.{h, cc}
  7349. * src/RequestGroup.cc
  7350. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7352. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7354. stops and there are any unfinished or in-progress downloads.
  7355. Added the legend of "stat".
  7356. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Throw exception when chunck checksum verification fails.
  7358. * src/DownloadCommand.cc (validatePieceHash): New function.
  7359. * src/PiecedSegment.{h, cc} (clear): New function.
  7360. * src/GrowSegment.{h, cc} (clear): New function.
  7361. * src/Segment.h (clear): New function.
  7362. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7363. * test/SegmentTest.cc
  7364. * test/GrowSegmentTest.cc
  7365. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Do not send referer when redirected.
  7367. * src/Request.cc (redirectUrl)
  7368. * test/RequestTest.cc
  7369. * test/HttpRequestTest.cc
  7370. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Implemented BitTorrent/http/ftp integrated download.
  7372. I've rewritten lots of files and now some headers have forward
  7373. class declarations to reduce compile time.
  7374. The implementation is extremely alpha stage, I recommend to use this
  7375. for testing purpose only.
  7376. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Fixed the compilation error on 64bit platform.
  7378. * test/HttpHeaderProcessorTest.cc
  7379. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Merged Ross's patch that fixes compilation problem in MinGW
  7381. * test/DefaultBtProgressInfoFileTest.cc
  7382. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7383. Updated fr.po by sebone
  7384. * po/fr.po
  7385. Updated man page.
  7386. * doc/aria2c.1.txt
  7387. * Release 0.11.3
  7388. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7390. failure in Metalink.
  7391. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Automatically save *.aria2 control file of http/ftp download in every
  7393. 60 seconds.
  7394. * src/AutoSaveCommand.{h, cc}: New class.
  7395. * src/TimeBasedCommand.{h, cc}: New class.
  7396. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7397. Disable parameterized URI support by default. Added -P option to
  7398. enable the feature.
  7399. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7400. * src/OptionHandlerFactory.cc
  7401. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7402. Updated Japanese translation.
  7403. * po/ja.po
  7404. Updated man page.
  7405. * doc/aria2c.1.txt
  7406. * Release 0.11.3-rc
  7407. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7409. it is successful, then renamed to *.aria2.
  7410. This prevents *.aria2 file from being truncated or corrupted when
  7411. file system becomes out of space.
  7412. * src/DefaultBtProgressInfoFile.cc (save)
  7413. * src/SegmentMan.cc (save)
  7414. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7415. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Reduced the fragmentation of bitfield in http/ftp download.
  7417. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7418. * test/BitfieldManTest.cc
  7419. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Added the ability to disable segmented download in .metalink.
  7421. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7422. 'url' tag.
  7423. * src/MetalinkEntry.{h, cc}
  7424. * src/RequestResource.{h, cc}
  7425. * src/MetalinkRequestInfo.cc
  7426. * src/Xml2MetalinkProcessor.cc
  7427. * test/Xml2MetalinkProcessorTest.cc
  7428. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Added parameterized URI support.
  7430. * src/main.cc: -Z option added.
  7431. * src/OptionHandlerFactory.cc
  7432. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7433. * src/PStringDatum.h: New class.
  7434. * src/PStringSegment.{h,cc}: New class.
  7435. * src/PStringNumLoop.h: New class.
  7436. * src/PStringSelect.h: New class.
  7437. * src/NumberDecorator.h: New class.
  7438. * src/FixedWidthNumberDecorator.h: New class.
  7439. * src/AlphaNumberDecorator.h: New class.
  7440. * src/PStringVisitor.h: New class.
  7441. * src/PStringBuildVisitor.{h,cc}: New class.
  7442. * src/ParameterizedStringParser.{h,cc}: New class.
  7443. * src/Util.{h,cc}
  7444. (isNumber): New function.
  7445. (isLowercase): New function.
  7446. (isUppercase): New function.
  7447. (alphaToNum): New function.
  7448. * test/ParameterizedStringParserTest.cc: New class.
  7449. * test/AlphaNumberDecoratorTest.cc: New class.
  7450. * test/PStringBuildVisitorTest.cc: New class.
  7451. * test/UtilTest.cc
  7452. (testIsNumber): New function.
  7453. (testIsLowercase): New function.
  7454. (testIsUppercase): New function.
  7455. (testAlphaToNum): New function.
  7456. Added '\n' after the error message
  7457. * src/RequestInfo.h (printDownloadAbortMessage)
  7458. Added auto file renaming feature in http(s)/ftp download.
  7459. * src/main.cc: Added --auto-file-renaming command-line option.
  7460. * src/OptionHandlerFactory.cc
  7461. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7462. * src/RequestGroup.{h, cc}
  7463. (shouldCancelDownloadForSafety): Rewritten
  7464. (tryAutoFileRenaming): New function.
  7465. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7466. * src/HttpResponseCommand.cc
  7467. (executeInternal): Removed the call to RequestGroupMan::
  7468. isSameFileBeingDownloaded()
  7469. * src/FtpNegotiateCommand.cc
  7470. (recvSize): Removed the call to RequestGroupMan::
  7471. isSameFileBeingDownloaded()
  7472. * test/RequestGroupTest.cc: New class.
  7473. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7475. IO.
  7476. * src/DefaultBtProgressInfoFile.cc
  7477. * src/MetaFileUtil.cc
  7478. * src/SimpleLogger.cc
  7479. * src/SegmentMan.cc
  7480. * src/Util.cc
  7481. * src/Platform.cc
  7482. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7484. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7486. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7487. Fixed the bug that prevents file allocation is not done when
  7488. dowloading multi-torrent file.
  7489. * src/AbstractDiskWriter.cc (openFile)
  7490. Increase the maximum number of -j option from 15 to 45.
  7491. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7492. Added fr.po, thanks to Charles Landemaine.
  7493. * po/fr.po
  7494. * po/LINGUAS
  7495. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7496. gcc 3.4.4 support:
  7497. * src/DefaultBtContext.cc: int32_t -> int
  7498. * src/main.cc: int -> int32_t, int32_t -> int
  7499. * src/messageDigest.h: uint32_t -> unsigned int
  7500. * src/NameResolver.h: int32_t -> int
  7501. * src/PeerConnection.cc: int -> int32_t
  7502. * src/SpeedCalc.cc: int32_t -> int
  7503. * src/TrackerUpdateCommand.h: int -> int32_t
  7504. * src/Util.cc: int32_t -> int
  7505. * src/Util.h: int32_t -> int
  7506. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7507. * test/AnnounceListTest.cc: int -> int32_t
  7508. * test/ChunkedEncodingTest.cc: int -> int32_t
  7509. * test/DataTest.cc: int -> int32_t
  7510. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7511. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7512. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7513. * test/FeatureConfigTest.cc: int -> int32_t
  7514. * test/MetalinkEntryTest.cc: int -> int32_t
  7515. * test/MockBtRequestFactory.h: int -> int32_t
  7516. * test/MockPieceStorage.h: int -> int32_t
  7517. * test/OptionTest.cc: int -> int32_t
  7518. * test/RequestTest.cc: int -> int32_t
  7519. * test/SegmentManTest.cc: int -> int32_t
  7520. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7521. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7522. Move sleep functions to Util class:
  7523. * src/Util.cc
  7524. (sleep): New function.
  7525. (usleep): New function.
  7526. * src/DownloadCommand.cc: sleep -> Util::sleep
  7527. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7528. MinGW build enhancements. The following files are added:
  7529. * src/timegm.{c,h}
  7530. Changes to support the above new files:
  7531. * configure.ac
  7532. * src/Makefile.am
  7533. * src/a2time.h
  7534. * src/Util.cc:
  7535. * src/strptime.c: Added support for %Z option.
  7536. Fixed MinGW non-blocking bug.
  7537. * src/SocketCore.cc
  7538. * src/HttpRequestCommand.cc
  7539. Miscellenous build fixes/enhancements.
  7540. * configure.ac: Added summary report.
  7541. * src/Platform.h: Tweaked #include's.
  7542. * src/a2netcompat.h: Tweaked #include's.
  7543. * src/strptime.h: Tweaked #include's.
  7544. * src/gai_strerror.c: Tweaked #include's.
  7545. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7546. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7547. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7548. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Increased the initial connection size in BitTorrent download to 40.
  7550. * src/BtRuntime.h
  7551. Added the usage message of --peer-id-prefix option.
  7552. * src/main.cc
  7553. * Release 0.11.2
  7554. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. MessageDigestHelper is introduced in order to simplify the use
  7556. of message digest. Removed repeated code.
  7557. The message digest algorithm is now specified by string, like "sha1",
  7558. "md5".
  7559. * src/messageDigest.{h, cc}
  7560. * src/MessageDigestHelper.{h, cc}: New class.
  7561. * src/DefaultPieceStorage.cc
  7562. * src/DefaultBtContext.{h, cc}
  7563. (computeFastSet): New function.
  7564. (setInfoHash): Added for unit testing.
  7565. (setNumPieces): Added for unit testing.
  7566. * src/DefaultBtInteractive.cc
  7567. * src/BtPieceMessage.cc
  7568. * src/Peer.cc
  7569. * src/Checksum.h
  7570. * src/message.h
  7571. * src/IteratableChecksumValidator.h
  7572. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7573. inside it.
  7574. * src/SegmentMan.{h, cc}
  7575. (checkIntegrity): Removed.
  7576. * src/IteratableChunkChecksumValidator.{h, cc}
  7577. * src/Util.h
  7578. (sha1Sum): Removed.
  7579. (simpleMessageDigest): Removed.
  7580. (fileChecksum): Removed.
  7581. (computeFastSet): Removed.
  7582. * src/ShaVisitor.cc
  7583. * src/ChunkChecksum.h
  7584. * src/DownloadCommand.cc
  7585. Removed messageDigest virtual functions.
  7586. * src/MultiDiskAdaptor.{h, cc}
  7587. * src/DiskAdaptor.h
  7588. * src/ByteArrayDiskWriter.h
  7589. * src/DiskWriter.h
  7590. * src/DiskAdaptorWriter.h
  7591. * src/AbstractSingleDiskAdaptor.{h, cc}
  7592. * src/AbstractDiskWriter.{h, cc}
  7593. Fixed comilation error when message digest is disabled.
  7594. * src/MetalinkEntry.{h, cc}
  7595. * src/MetalinkRequestInfo.cc
  7596. Removed srandom and random.
  7597. * src/SimpleRandomizer.h
  7598. Added size() virtual function to DiskAdaptor
  7599. * src/MultiDiskAdaptor.h
  7600. Fixed the bug that causes that files are not opened correctly in
  7601. multi-file torrent.
  7602. * src/TorrentRequestInfo.cc
  7603. * src/MultiDiskAdaptor.cc
  7604. Added SHA256 support
  7605. * src/messageDigest.cc
  7606. * src/Xml2MetalinkProcessor.cc
  7607. Show supported message digest algorithms
  7608. * src/main.cc
  7609. Updated contact info.
  7610. * src/main.cc
  7611. Applied Ross's patch
  7612. * src/a2netcompat.h
  7613. * src/main.cc
  7614. Fixed the bug that prevents a remote metalink from not being processed
  7615. even if '-o foo.metalink' is specified.
  7616. * src/MetalinkRequestInfo.cc
  7617. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Merged Dan's patch:
  7619. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7620. Use va_copy to avoid core dump on amd64:
  7621. * src/SimpleLogger.cc
  7622. Updated contact info.
  7623. * src/main.cc
  7624. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7625. digest is not available.
  7626. * src/MetalinkEntry.h
  7627. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Make a2netcompat.h include a2io.h to fix compilation error:
  7629. * src/a2netcompat.h
  7630. * src/SocketCore.cc: Removed include of a2io.h
  7631. * src/Util.cc: Removed include of a2io.h
  7632. Gather time related functions to a2time.h:
  7633. * src/a2time.h: New file.
  7634. * src/DefaultPeerStorage.cc
  7635. * src/SimpleLogger.cc
  7636. * src/Util.{h, cc}
  7637. * src/SimpleRandomizer.h
  7638. * src/TimeA2.{h,cc}
  7639. * src/DownloadCommand.cc
  7640. * src/main.cc
  7641. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7642. a2netcompat.h:
  7643. * src/NameResolver.cc
  7644. Fixed compilation error without openssl:
  7645. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7646. Added default block to suppress compiler warnings:
  7647. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7648. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7649. MinGW build enhancements. The following files are added:
  7650. * src/gai_strerror.{c,h}
  7651. * src/gettimeofday.{c,h}
  7652. Changes to support the above new files:
  7653. * configure.ac
  7654. * src/Makefile.am
  7655. * src/a2netcompat.h
  7656. * src/TimeA2.cc
  7657. * src/DefaultPeerStorage.cc
  7658. * src/NameResolver.cc: removed mingw_strerror() function.
  7659. * src/SocketCore.cc: removed mingw_strerror() function.
  7660. Miscellaneous MinGW build fixes.
  7661. * src/a2io.h: Use _lseeki64() instead of lseek()
  7662. * src/common.h
  7663. * src/DefaultFileAllocator.cc
  7664. * src/GlowFileAllocator.cc
  7665. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7666. * src/NameResolver.cc
  7667. (callback): Changed int32_t to int.
  7668. (resolve): Changed int32_t to int.
  7669. * src/Platform.cc
  7670. * src/Platform.h
  7671. * test/MultiDiskWriterTest.cc
  7672. * test/PeerMessageUtilTest.cc
  7673. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7674. Other enhancements and fixes.
  7675. * src/HttpRequestCommand.cc
  7676. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7677. * src/SocketCore.cc:
  7678. (error): New function to abstract errno/WSAGetLastError().
  7679. (errorMsg): New function to abstract errno/WSAGetLastError().
  7680. (initiateSecureConnection): Added more detailed error reporting.
  7681. * src/SocketCore.h: Added private variable blocking, to allow
  7682. proper handling of OpenSSL psuedo-errors.
  7683. * src/message.h
  7684. (EX_SSL_INIT_FAILURE)
  7685. (EX_SSL_IO_ERROR)
  7686. (EX_SSL_PROTOCOL_ERROR)
  7687. (EX_SSL_UNKNOWN_ERROR)
  7688. (EX_SSL_CONNECT_ERROR)
  7689. (EX_SOCKET_BLOCKING)
  7690. (EX_SOCKET_NONBLOCKING)
  7691. (EX_SOCKET_UNKNOWN_ERROR)
  7692. * src/Util.cc
  7693. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7694. reserved name.
  7695. (httpGMT): Fixed typo.
  7696. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Merged Ross's win32 patch(manually)
  7698. In the course of merging, following files are added.
  7699. * src/strptime.{h,c}
  7700. * src/libgen.{h,c}
  7701. * src/inet_aton.{h,c}
  7702. * src/Platform.{h,cc}
  7703. * src/localtime_r.{h,c}
  7704. * src/getaddrinfo.{h,c}
  7705. I've gethered network related things, and put them to following file:
  7706. * src/a2netcompat.h
  7707. Also io related things are put to following file:
  7708. * src/a2io.h
  7709. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7710. * src/message.h
  7711. (MSG_ALLOCATION_COMPLETED)
  7712. (EX_TOO_LARGE_FILE)
  7713. (EX_SIZE_MISMATCH)
  7714. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7715. (EX_INVALID_CHUNK_CHECKSUM)
  7716. (EX_INVALID_RANGE_HEADER)
  7717. * src/FileAllocationCommand.cc
  7718. * src/HttpResponse.cc
  7719. * src/RequestGroup.cc
  7720. * src/MultiDiskAdaptor.cc
  7721. * src/OptionHandlerImpl.h
  7722. * src/HttpResponseCommand.cc
  7723. * src/FtpNegotiateCommand.cc
  7724. * src/IteratableChecksumValidator.cc
  7725. * src/SegmentMan.cc
  7726. * src/ChunkChecksumValidator.cc
  7727. Added Randomizer::getRandomNumber(long int)
  7728. * src/Randomizer.h (getRandomNumber)
  7729. * src/SimpleRandomizer.h (getRandomNumber)
  7730. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7731. * src/Util.cc (randomAlpha): Use this new function.
  7732. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Converted int's to in32_t. long long int's are also converted to
  7734. int64_t
  7735. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Fixed the bug that prevents cookies from being sent to the server
  7737. if the domain of cookie is FQDN and starts with ".".
  7738. * src/Cookie.cc (match)
  7739. To add the ability to change peer id.
  7740. * src/DefaultBtContext.h
  7741. (_peerIdPrefix): New variable
  7742. (setPeerIdPrefix): New function.
  7743. * src/torrentRequestInfo.cc
  7744. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7745. DefaultBtContext.
  7746. * src/main.cc (main): Added peer-id-prefix command-line option.
  7747. The usage message is not added yet.
  7748. * src/DefaultBtContext.cc
  7749. (generatePeerId): Use _peerIdPrefix.
  7750. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7751. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Fixed the bug that prevents filename in content-disposition from
  7753. being retrieved when filename is not quoted.
  7754. * src/Util.cc (getContentDispositionFilename)
  7755. Fixed the bug that causes infinate loop and memory leak when file open
  7756. operation failed.
  7757. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7758. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Fixed the bug that causes segfault when all URIs specified are
  7760. unsupported.
  7761. * src/RequestGroupMan.cc (getInitialCommands)
  7762. Check if RequestGroup::createNextCommand() returns empty list of
  7763. commands.
  7764. * src/RequestGroup.cc (createNextCommand)
  7765. Change log level from info to error so that users can notice that
  7766. an error occurred.
  7767. Fixed the bug that causes segfault when a zero-sized file is
  7768. downloaded.
  7769. * src/BitfieldMan.cc (isAllBitSet)
  7770. Return true if bitfieldLength is 0.
  7771. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. * src/main.cc
  7773. (showUsage): Added 3 usage examples for metalink download.
  7774. Replace MetalinkChunkChecksum with ChunkChecksum.
  7775. * src/MetalinkChunkChecksum.h: Removed.
  7776. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7777. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7778. * src/Xml2MetalinkProcessor.cc
  7779. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7780. * src/MetalinkRequestInfo.cc (execute)
  7781. * Release 0.11.1
  7782. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Reads URIs from stdin when "-i -" is specified.
  7784. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7785. * src/UriListParser.h, src/UriListParser.cc: New class.
  7786. * src/StreamUriListParser.h: New class.
  7787. * src/FileUriListParser.h: New class.
  7788. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7789. instead of UriFileListParser.
  7790. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Made console readout more readable.
  7792. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7793. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Fix the bug that causes -s option not to work.
  7795. * src/main.cc (main)
  7796. * src/a2algo.h: New file.
  7797. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Create directory structure specified in metalink file.
  7799. * src/RequestGroup.h, src/RequestGroup.cc
  7800. (initAndOpenFile): Create a directory to store files if it does not
  7801. exist.
  7802. (getDir): New function.
  7803. Added ETA and download speed for an individual file to readout.
  7804. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7805. * src/RequestGroup.h
  7806. (calculateDownloadSpeed): New function.
  7807. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Made -S option work with metalink file and provided selective download
  7809. to metalink.
  7810. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7811. (filename): Removed.
  7812. (file): New variable.
  7813. (size): Removed.
  7814. (operator=): Updated.
  7815. (getPath): New function.
  7816. (getLength): New function.
  7817. (toFileEntry): New function.
  7818. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7819. (execute): Use toStream.
  7820. (showFileEntry): Removed.
  7821. * src/MetalinkRequestInfo.h
  7822. (targetFiles): New variable.
  7823. (setTargetFiles): New variable.
  7824. * src/MetalinkRequestInfo.cc
  7825. (execute): Added the ability to print file information included in
  7826. a metalink file.
  7827. Added selective download mode to metalink.
  7828. * src/main.cc
  7829. (showUsage): Updated to denote that -S and --select-file options are
  7830. applicable to metalink.
  7831. * src/FileEntry.h
  7832. (operator=): New function.
  7833. (getBasename): New function.
  7834. (getDirname): New function.
  7835. * src/Util.h, src/Util.cc
  7836. (toStream): New function.
  7837. * src/Xml2MetalinkProcessor.cc: Updated.
  7838. Made aria2 work with metalink with directory structure.
  7839. * src/File.h, src/File.cc
  7840. (getBasename): New function.
  7841. (getDirname): New function.
  7842. * src/RequestGroup.h, src/RequestGroup.cc
  7843. (_topDir): New variable.
  7844. (setTopDir): New function.
  7845. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7846. Rewrote HTTP header parsing with stringstream.
  7847. * src/HttpConnection.h, src/HttpConnection.cc
  7848. (HttpRequestEntry): New class.
  7849. (headerBuf): Removed.
  7850. (headerBufLength): Removed.
  7851. (outstandingHttpRequests): Now its element type is
  7852. HttpRequestEntryHandle.
  7853. (findEndOfHeader): Removed.
  7854. (receiveResponse): Rewritten.
  7855. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7856. Updated doc for -j option to notice that it should be used with -i
  7857. option.
  7858. * src/main.cc (showUsage)
  7859. Removed unused classes.
  7860. * src/RequestInfo.h
  7861. (FileInfo): Removed.
  7862. (checksum): Removed.
  7863. (fileInfo): Removed.
  7864. (setChecksum): Removed.
  7865. (getChecksum): Removed.
  7866. (getFileInfo): Removed.
  7867. Use ISO units.
  7868. * src/ConsoleDownloadEngine.cc
  7869. * src/TorrentConsoleDownloadEngine.cc
  7870. * src/Util.cc (abbrevSize)
  7871. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Added the default listening ports to the help message.
  7873. * src/main.cc (showUsage)
  7874. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Reduce the number of calls to gettimeofday to lower CPU load.
  7876. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7877. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7878. * src/Peer.h (calculateUploadSpeed): New function.
  7879. (calculateDownloadSpeed): New function.
  7880. * src/DefaultPeerStorage.cc
  7881. (CalculateStat): Added _now variable.
  7882. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7883. and Peer::calculateUploadSpeed(const struct timeval&)
  7884. Drop connection if no request or piece message is exchanged in
  7885. a certain interval.
  7886. * src/DefaultBtInteractive.h
  7887. (btRuntime): New variable.
  7888. (inactiveCheckPoint): New variable.
  7889. (checkActiveInteraction): New function.
  7890. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7891. request or piece message is received.
  7892. (checkActiveInteraction): New function.
  7893. (doInteractionProcessing): Call checkActiveInteraction.
  7894. Fixed the bug that causes remote Metalink and Torrent files are not
  7895. processed.
  7896. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7897. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Changed format of log file.
  7899. * src/SimpleLogger.cc
  7900. * Release 0.11.0
  7901. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. * src/AbstractCommand.cc
  7903. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7904. MSG_MAX_TRY from error to info.
  7905. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7906. * src/message.h
  7907. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7908. (MSG_DOWNLOAD_ABORTED): Added %s.
  7909. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7910. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7911. * src/PeerAbstractCommand.cc
  7912. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7913. * src/Request.h
  7914. (cookieBox): Made ShardHandle.
  7915. * src/RequestGroup.h, src/RequestGroup.cc
  7916. (createNextCommandWithAdj): New function.
  7917. * src/FileAllocationCommand.cc
  7918. (executeInternal): Use createNextCommandWithAdj().
  7919. * src/CheckIntegrityCommand.cc
  7920. (executeInternal): Use createNextCommandWithAdj().
  7921. Added --load-cookies command-option.
  7922. * src/OptionHandlerFactory.cc
  7923. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7924. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7925. Now aria2 can handle cookie's expiration date.
  7926. * src/Cookie.h (expires): Changed its type to time_t.
  7927. * src/main.cc: Added --load-cookies command-line option.
  7928. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7929. * src/Util.h, src/Util.cc (httpGMT): New function.
  7930. * src/Request.cc (Request): Initialize cookieBox using
  7931. CookieBoxFactory.
  7932. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7933. * src/CookieParser.h, src/CookieParser.cc: New class.
  7934. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7935. * src/HttpResponseCommand.cc
  7936. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7937. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7938. download.
  7939. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Added -j command-line option.
  7941. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7942. * src/main.cc
  7943. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7944. Rewritten using stringstream.
  7945. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7946. Rewritten using stringstream.
  7947. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Make download size shown in MB, KB.
  7949. * src/ConsoleDownloadEngine.h (sendStatistics)
  7950. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7951. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Accept incoming connections if download rate is low.
  7953. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7954. (_lowestSpeedLimit): New variable.
  7955. (setLowestSpeedLimit): New function.
  7956. (execute): Accept incoming connections if download rate is low.
  7957. MAX_PEERS is ignored in this case.
  7958. Disable PREF_OUT in multiple concurrent download:
  7959. * src/RequestGroup.h, src/RequestGroup.cc
  7960. (setUserDefinedFilename): New function.
  7961. * src/DownloadEngineFactory.cc
  7962. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7963. concurrent download.
  7964. * src/DefaultSegmentManFactory.cc
  7965. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7966. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7968. Added its overloaded method.
  7969. * src/RequestGroup.h
  7970. (_numConcurrentCommand): New variable.
  7971. (setNumConcurrentCommand): New function.
  7972. * src/RequestGroup.cc
  7973. Abort download if same file is being downloaded concurrently.
  7974. * src/RequestGroup.h, src/RequestGroupMan.cc
  7975. (isSameFileBeingDownloaded): New function.
  7976. * src/HttpResponseCommand.cc (executeInternal)
  7977. * src/FtpNegotiateCommand.cc (recvSize)
  7978. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7979. * main.cc: Added help message for -i option.
  7980. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7982. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7983. * src/MetalinkEntry.h
  7984. (checksum): Changed to ChecksumHandle
  7985. * src/MetalinkRequestInfo.cc
  7986. (checksum): Changed to ChecksumHandle
  7987. * src/File.cc
  7988. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7989. * src/common.h
  7990. (DIR_OPEN_MODE): New definition
  7991. * src/RequestGroup.cc
  7992. (prepareForNextAction): Added an argument.
  7993. * src/message.h
  7994. (MSG_GOOD_CHECKSUM): New definition
  7995. (MSG_BAD_CHECKSUM): New definition
  7996. * src/HttpResponseCommand.cc
  7997. (handleDefaultEncoding): Continue download sequence in new
  7998. non-segmented download.
  7999. * src/FileAllocationEntry.h
  8000. (_nextDownloadCommand): New variable.
  8001. * src/DownloadCommand.cc
  8002. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8003. available.
  8004. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8005. * src/IteratableChecksumValidator.h,
  8006. src/IteratableChecksumValidator.cc: New class.
  8007. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8008. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Change file mode to 666:
  8010. * src/common.h (OPEN_MODE): New definition.
  8011. * src/File.cc
  8012. * src/Util.cc
  8013. * src/Directry.cc
  8014. * src/AbstractDiskWriter.cc
  8015. Change the level of log message "download aborted" to debug:
  8016. * src/PeerAbstractCommand.cc (execute)
  8017. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8018. * src/TrackerWatcherCommand.cc
  8019. (createCommand): Sleep some seconds after request failed.
  8020. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8021. then abort tracker request.
  8022. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. * Added the simultaneous download feature.
  8024. * src/main.cc: Print "Exception caught: " when exception is caught.
  8025. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8026. * src/ActivePeerConnectionCommand.cc
  8027. * src/PeerInteractionCommand.cc
  8028. * src/BtRuntime.h
  8029. (cuidCounter): Removed.
  8030. (getNewCuid): Removed.
  8031. * src/DownloadEngineFactory.cc
  8032. * src/PeerListenCommand.cc
  8033. * src/TrackerUpdateCommand.cc
  8034. * src/PeerInitiateConnectionCommand.cc
  8035. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. * src/PeerAbstractCommand.cc
  8037. (onAbort): Call PeerStorage::returnPeer()
  8038. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8039. (incomingPeers): New variable.
  8040. (addIncomingPeer): New function.
  8041. (returnPeer): New function.
  8042. (onErasingPeer): New function.
  8043. (addPeer): push_back -> push_front
  8044. (getActivePeers): Rewritten.
  8045. (calculateStat): Rewritten.
  8046. * src/PeerStorage.h
  8047. (TransferStat::copy): New function.
  8048. (TransferStat::TransferStat): New function.
  8049. (TransferStat::operator=): New function.
  8050. (addIncomingPeer): New function.
  8051. (returnPeer): New function.
  8052. * src/PeerListenCommand.cc
  8053. (execute): Use PeerStorage::addIncomingPeer() instead of
  8054. Peer::addPeer().
  8055. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Connect to a peer actively when download speed is lower than specified
  8057. speed in torrent download:
  8058. * src/ActivePeerConnectionCommand.h: New class.
  8059. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8061. * src/main.cc: Fixed the bug that prevents download if .netrc
  8062. doesn't exist.
  8063. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. To cache resolved hostname:
  8065. * src/AbstractCommand.h, src/AbstractCommand.cc
  8066. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8067. Added dns cache.
  8068. * src/FtpInitiateConnectionCommand.cc
  8069. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8070. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8071. NameResolver working without ares.
  8072. * src/TorrentRequestInfo.cc
  8073. (execute): Don't cache dns in torrent download.
  8074. * src/HttpInitiateConnectionCommand.cc
  8075. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8076. * src/DNSCache.h: New class.
  8077. * src/UrlRequestInfo.cc
  8078. (execute): Use dns cache.
  8079. In http request, suppress port number in http request header if port
  8080. is 80 or 443:
  8081. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8082. request header if port is 80 or 443.
  8083. (createProxyRequest): Allways send port number.
  8084. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. To add the command-line option which disables netrc support:
  8086. * src/OptionHandlerFactory.cc
  8087. (createOptionHandlers): Added PREF_NO_NETRC.
  8088. * src/main.cc: Added -n option.
  8089. * src/prefs.h (PREF_NO_NETRC): New definition.
  8090. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8091. V_TRUE.
  8092. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8093. is V_FALSE. This may get configurable in the future release.
  8094. To clear peer's error status by time basis:
  8095. * src/PeerAbstractCommand.cc
  8096. (onAbort): Call Peer::startBadCondition().
  8097. * src/Peer.h, src/Peer.cc
  8098. (error): Removed.
  8099. (_badConditionStartTime): New variable.
  8100. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8101. (startBadCondition): New function.
  8102. (isGood): New function.
  8103. * src/DefaultPeerStorage.cc
  8104. (addPeer): Use Peer::isGood().
  8105. (FindFinePeer): Use Peer::isGood().
  8106. Always include port number in http request header:
  8107. * src/HttpRequest.cc (getHostText): Always include port number in
  8108. http request header.
  8109. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. To the ability to read options from a config file:
  8111. * src/main.cc: Command-line parameter validation is delegated to
  8112. OptionHandler class.
  8113. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8114. * src/Option.h, src/Option.cc (clear): New function.
  8115. * src/OptionParser.h, src/OptionParser.cc: New class.
  8116. * src/OptionHandler.h: New class.
  8117. * src/NameMatchOptionHandler.h: New class.
  8118. * src/OptionHandlerImpl.h: New classes.
  8119. * src/prefs.h: '_' -> '-'
  8120. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8121. (FTP_PASV): New definition.
  8122. * src/Util.h, src/Util.cc (getRealSize): New function.
  8123. To disable netrc support if .netrc file does not have correct
  8124. permissions:
  8125. * src/File.h, src/File.cc (mode): New function.
  8126. To prevent confidential information to be logged:
  8127. * src/HttpConnection.h, src/HttpConnection.cc
  8128. (eraseConfidentialInfo): New function.
  8129. (sendRequest): Call eraseConfidentialInfo().
  8130. (sendProxyRequest): Call eraseConfidentialInfo().
  8131. * src/main.cc: Validate permissions of .netrc file.
  8132. To add --user-agent command-line option:
  8133. * src/main.cc: Added new command line option: --user-agent
  8134. * src/prefs.h (PREF_USER_AGENT): New definition.
  8135. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8136. parameter to HttpRequest object.
  8137. * src/AbstractProxyRequestCommand.cc
  8138. (executeInternal): Set user-agent option parameter to HttpRequest
  8139. object.
  8140. Marged the patches from Dan Fandrich.
  8141. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Use filename and size from Metalink file instead of sending HEAD
  8143. request:
  8144. * src/UrlRequestInfo.h
  8145. (_filename): New variable.
  8146. (_totalLength): New variable.
  8147. (setTotalLength): New variable.
  8148. (setFilename): New variable.
  8149. * src/MetalinkRequestInfo.cc
  8150. (execute): Set filename and size to UrlRequestInfo
  8151. * src/UrlRequestInfo.cc
  8152. (execute): Use filename and size from Metalink instead of seding
  8153. HEAD request to servers.
  8154. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. To add the ability to resume downloading a partially downloaded file
  8156. which is downloaded from the beginning:
  8157. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8158. takes this role.
  8159. * src/main.cc: Added -c option.
  8160. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8161. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8162. * src/prefs.h (PREF_CONTINUE): New definition.
  8163. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8164. * src/DefaultDiskWriter.cc
  8165. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8166. * src/AbstractDiskWriter.h
  8167. (glowFileAllocator): New variable.
  8168. * src/AbstractDiskWriter.cc
  8169. (openExistingFile): Now preallocate file space from the end of the
  8170. existing file if totalLength argument is specified and grater than 0.
  8171. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8172. to download exists in local, continue the download of the file.
  8173. --allow-overwrite=true is assumed in this context.
  8174. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8175. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8176. Throw exception if --check-integrity=true is specified but chunk
  8177. checksums are not provided:
  8178. * src/UrlRequestInfo.cc
  8179. Do not print URLs to stdout:
  8180. * src/UrlRequestInfo.cc
  8181. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. * src/Request.h: Use AuthResolver to get authentication information.
  8183. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8184. set to RequestFactory object.
  8185. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8186. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8187. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8188. create Request object.
  8189. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8190. To integrate Netrc into exsiting classes:
  8191. * src/Request.h
  8192. (_userDefinedAuthConfig): New variable.
  8193. (findNetrcAuthenticator): New function.
  8194. (segment): Removed.
  8195. (setUserDefinedAuthConfig): New function.
  8196. (resolveHttpAuthConfigItem): New function.
  8197. (resolveFtpAuthConfigItem): New function.
  8198. (resolveHttpProxyAuthConfigItem): New function.
  8199. * src/HttpRequest.h
  8200. (authConfig): Removed.
  8201. (proxyAuthConfig): Removed.
  8202. (setAuthConfig): Removed.
  8203. (setProxyAuthConfig): Removed.
  8204. * src/UrlRequest.h
  8205. (getHeadResult): Added a parameter: authConfigHandle
  8206. * src/common.h
  8207. (SingletonHolder.h): New include.
  8208. * src/main.cc
  8209. (Netrc.h): New include.
  8210. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8211. Added initial value of PREF_NETRC_PATH.
  8212. Added the initialization of netrc.
  8213. * src/AuthConfig.h: New class.
  8214. * src/prefs.h
  8215. (PREF_NETRC_PATH): New definition.
  8216. * src/HttpAuthConfig.h: Removed.
  8217. * src/Netrc.cc
  8218. (getRequiredNextToken): New function.
  8219. (skipMacdef): New function.
  8220. (parse): Rewritten.
  8221. * src/Netrc.h
  8222. (getRequiredNextToken): New function.
  8223. (skipMacdef): New function.
  8224. * src/Util.h, src/Util.cc
  8225. (getHomeDir): New function.
  8226. * src/TrackerWatcherComand.cc
  8227. (createRequestCommand): Use AuthConfig.
  8228. * src/FtpConnection.cc
  8229. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8230. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8231. * src/Request.cc
  8232. (findNetrcAuthenticator): New function.
  8233. (resolveHttpAuthConfigItem): New function.
  8234. (resolveFtpAuthConfigItem): New function.
  8235. (resolveHttpProxyAuthConfigItem): New function.
  8236. * src/UrlRequestInfo.cc: Use AuthConfig.
  8237. * src/HttpRequest.cc
  8238. (createRequest): Use authConfig.
  8239. (getProxyAuthString): Use authConfig.
  8240. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8241. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8242. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. To reduce overhead to find commands whose socket is either
  8244. readable or writable in the download engine loop:
  8245. * src/Command.h, src/Command.cc
  8246. (STATUS): New enum.
  8247. (status): New variable.
  8248. (statusMatch): New function.
  8249. (setStatusActive): New function.
  8250. (setStatusInactive): New function.
  8251. * src/DownloadEngine.h, src/DownloadEngine.cc
  8252. (executeCommand): New function.
  8253. (run): Simplified.
  8254. (waitData): Call Command::setStatusActive() when command's socket is
  8255. readable or writable.
  8256. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. To handle Segment as SegmentHandle:
  8258. * src/AbstractCommand.cc (execute): Rewritten.
  8259. * src/SegmentMan.h: Segment -> SegmentHandle
  8260. Introducded HttpResponse class, HttpRequest class to improve code
  8261. extensiveness and make it clear:
  8262. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8263. HttpResponse class.
  8264. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8265. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8266. * src/HttpConnection.cc: Contruction of http request were moved to
  8267. HttpRequest class.
  8268. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8269. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8270. * src/HttpAuthConfig.h: New class.
  8271. * src/Range.h: New class.
  8272. To make FtpTunnel{Request, Response}Command and
  8273. HttpProxy{Request, Response}Command derived from
  8274. AbstractProxy{Request, Response}Command:
  8275. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8276. Derived from AbstractProxyRequestCommand class.
  8277. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8278. Derived from AbstractProxyResponseCommand class.
  8279. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8280. Derived from AbstractProxyRequestCommand class.
  8281. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8282. Derived from AbstractProxyResponseCommand class.
  8283. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8284. : New class.
  8285. * src/AbstractProxyResponseCommand.h,
  8286. src/AbstractProxyResponseCommand.cc: New class.
  8287. To add netrc support:
  8288. * src/Netrc.h, src/Netrc.cc: New class.
  8289. * src/Util.h, src/Util.cc (split): New function.
  8290. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8291. "Content-Range" header instead of "Range" header.
  8292. * src/HttpHeader.h
  8293. (getStatus): Removed.
  8294. (setStatus): Removed.
  8295. * src/Segment.h
  8296. (getPositionToWrite): New function.
  8297. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. * src/HttpHeader.h
  8299. (Range.h): New include.
  8300. (status): New variable.
  8301. (HttpHeader): Initialized status with 0.
  8302. (getStatus): New function.
  8303. (setStatus): New function.
  8304. (getRange): New function.
  8305. (HttpHeaderHandle): New function.
  8306. * src/HttpHeader.cc
  8307. (getRange): New function.
  8308. * src/Request.h
  8309. (RequestWeakHandle): New definition.
  8310. * src/HttpConnection.h
  8311. (HttpConnectionHandle): New type definition.
  8312. * src/HttpConnection.cc
  8313. (receiveResponse): Set HTTP status to headers.
  8314. * src/main.cc
  8315. (showUsage): Fixed typo.
  8316. * src/Segment.h
  8317. (SegmentHandle): New type definition.
  8318. * src/BitfieldMan.h
  8319. (getMissingUnusedLength): New function.
  8320. * src/BitfieldMan.cc
  8321. (getMissingUnusedLength): New function.
  8322. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. To fix static initialization order problem:
  8324. * src/BitfieldManFactory.h
  8325. (defaultRandomizer): Removed.
  8326. (factory): New variable.
  8327. (getNewFactory): Removed.
  8328. (getFactoryInstance): New function.
  8329. (setDefaultRandomizer): Rewritten.
  8330. (getDefaultRandomizer): Rewritten.
  8331. * src/BitfieldManFactory.cc
  8332. (defaultRandomizer): Removed.
  8333. (factory): Initialized to 0.
  8334. (BitfieldManFactory): Initialized randomizer to 0.
  8335. * src/DefaultPieceStorage.cc
  8336. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8337. * src/Peer.cc
  8338. (Peer): getNewFactory() -> getFactoryInstance()
  8339. * src/SegmentMan.cc
  8340. (initBitfield): getNewFactory() -> getFactoryInstance()
  8341. * src/Piece.cc
  8342. (Piece): getNewFactory() -> getFactoryInstance()
  8343. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. To fix the bug that causes crash on Max OS X:
  8345. * src/SimpleRandomizer.h
  8346. (getInstance): Create new instance if the static variable is null.
  8347. * src/SimpleRandomizer.cc
  8348. (randomizer): Initialized to 0.
  8349. * src/BitfieldManFactory.h
  8350. (getNewFactory): Removed the call to setRandomizer().
  8351. To fix the miscalculation of the range of checksum:
  8352. * src/BitfieldMan.h
  8353. (isBitSetOffsetRange): New function.
  8354. * src/BitfieldMan.cc
  8355. (isBitSetOffsetRange): New function.
  8356. * src/SegmentMan.cc
  8357. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8358. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8359. * Release 0.10.1
  8360. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. To lower CPU usage in BitTorrent download when --max-upload-limit
  8362. command-line option specified:
  8363. * src/DefaultBtMessageDispatcher.cc
  8364. (sendMessages): Calculate uploading speed only when current message
  8365. is uploading data and is not sent yet.
  8366. * src/DefaultPeerStorage.h
  8367. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8368. * src/HttpResponseCommand.cc
  8369. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8370. This fixes compile error in Soralis 10.
  8371. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. To fix segfault in Metalink download:
  8373. * src/UrlRequestInfo.h
  8374. (filename): Removed.
  8375. (totalLength): Removed.
  8376. (setTotalLength): Removed.
  8377. (setFilename): Removed.
  8378. * src/MetalinkRequestInfo.cc
  8379. (execute): Do not set filename and totalLength to reqInfo.
  8380. Set chunk checksum to reqInfo if it is not null.
  8381. * src/HttpResponseCommand.cc
  8382. (executeInternal): Fixed filename in log.
  8383. (handleDefaultEncoding): Removed the call to initBitfield() and
  8384. markAllPiecesDone().
  8385. (handleOtherEncoding): Added HEAD method handling.
  8386. * src/FtpNegotiateCommand.cc
  8387. (executeInternal): Added SEQ_HEAD_OK handling.
  8388. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8389. return false.
  8390. * src/FtpNegotiateCommand.h
  8391. (SEQ_HEAD_OK): New definition.
  8392. * src/SegmentMan.cc
  8393. (initBitfield): Delete bitfield.
  8394. (isChunkChecksumValidationReady): Fixed the condition.
  8395. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8396. works fine.
  8397. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. * src/Xml2MetalinkProcessor.h
  8399. (xpathExists): New function.
  8400. * src/Xml2MetalinkProcessor.cc
  8401. (xpathExists): New function.
  8402. Not to send HEAD request if filename and size are available in Metalink
  8403. file:
  8404. * src/UrlRequestInfo.h
  8405. (filename): New variable.
  8406. (totalLength): New variable.
  8407. (setTotalLength): New function.
  8408. (setFilename): New function.
  8409. * src/MetalinkRequestInfo.cc
  8410. (execute): Set filename and size to UrlRequestInfo.
  8411. * src/MetalinkEntry.cc
  8412. (MetalinkEntry): Initialize size with 0.
  8413. * src/UrlRequestInfo.cc
  8414. (execute): Set filename and size to SegmentMan.
  8415. Not to download rest of the files after selected files are downloaded
  8416. in BitTorrent:
  8417. * src/PieceStorage.h
  8418. (allDownloadFinished): New function.
  8419. * src/DefaultBtAnnounce.cc
  8420. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8421. downloadFinished.
  8422. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8423. * src/DefaultPieceStorage.cc
  8424. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8425. Commented out the call to finishSelectiveDownloadingMode().
  8426. (downloadFinished): Call isFilteredAllBitSet() instead of
  8427. isAllBitSet().
  8428. (allDownloadFinished): New function.
  8429. * src/DefaultBtInteractive.cc
  8430. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8431. downloadFinished().
  8432. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8433. * src/TorrentDownloadEngine.cc
  8434. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8435. * src/BitfieldMan.h
  8436. (isFilteredAllBitSet): New function.
  8437. * src/ShareRatioSeedCriteria.h
  8438. (PieceStorage.h): New include.
  8439. (pieceStorage): New variable.
  8440. (evaluate):
  8441. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8442. * src/BitfieldMan.cc
  8443. (isFilteredAllBitSet): New function.
  8444. (isAllBitSet): Filter is not took into account.
  8445. Rename --force-truncate as --allow-overwrite:
  8446. * src/TorrentRequestInfo.cc
  8447. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8448. * src/main.cc
  8449. (showUsage): --force-truncate -> --allow-overwrite
  8450. * src/message.h
  8451. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8452. * src/prefs.h
  8453. (PREF_FORCE_TRUNCATE): Removed.
  8454. (PREF_ALLOW_OVERWRITE): New definition.
  8455. * src/SegmentMan.cc
  8456. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8457. * src/MetalinkRequestInfo.cc
  8458. (execute): Queueing message are now logged in info level.
  8459. * src/common.h
  8460. (LONG_LONG_MAX): Removed.
  8461. (LONG_LONG_MIN): Removed.
  8462. * src/HttpResponseCommand.cc
  8463. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8464. * src/FtpNegotiateCommand.cc
  8465. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8466. * src/main.cc
  8467. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8468. command-line option.
  8469. (main): Added --check-integriy and --realtime-chunk-checksum
  8470. command-line option.
  8471. --force-truncate -> --allow-overwrite
  8472. Set initial value of --check-integrity option to false.
  8473. Don't show usage when error occurs while persing command-line options.
  8474. Removed deprecated --upload-limit option.
  8475. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8477. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8478. * src/BtAllowedFastMessage.cc:
  8479. * src/BtBitfieldMessage.cc
  8480. * src/BtCancelMessage.cc
  8481. * src/BtChokeMessage.cc
  8482. * src/BtHaveAllMessage.cc
  8483. * src/BtHaveMessage.cc
  8484. * src/BtHaveNoneMessage.cc
  8485. * src/BtInterestedMessage.cc
  8486. * src/BtNotInterestedMessage.cc
  8487. * src/BtPieceMessage.cc
  8488. * src/BtPortMessage.cc
  8489. * src/BtRejectMessage.cc
  8490. * src/BtRequestMessage.cc
  8491. * src/BtSuggestPieceMessage.cc
  8492. * src/BtUnchokeMessage.cc
  8493. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8494. files are affected.
  8495. * src/ChunkChecksumValidator.cc
  8496. * src/SegmentMan.cc
  8497. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. To add chunk checksum validation:
  8499. * src/MetalinkEntry.h
  8500. (MetalinkChunkChecksum.h): New include.
  8501. (chunkChecksum): New variable.
  8502. * src/Request.h
  8503. (method): New variable.
  8504. (setMethod): New function.
  8505. (getMethod): New function.
  8506. (METHOD_GET): New static constant.
  8507. (METHOD_HEAD): New static constant.
  8508. * src/Xml2MetalinkProcessor.h
  8509. (getPieceHash): New function.
  8510. * src/PieceStorage.h
  8511. (markAllPiecesDone): New function.
  8512. (checkIntegrity): New function.
  8513. * src/FileAllocator.h
  8514. (NullFileAllocationMonitor.h): New include.
  8515. (FileAllocator): Initialize fileAllocationMonitor with new
  8516. NullFileAllocationMonitor().
  8517. * src/MultiDiskAdaptor.h
  8518. (messageDigest.h): Remove include.
  8519. (ctx): Removed.
  8520. (hashUpdate): Added ctx.
  8521. (MultiDiskAdaptor): Removed ctx.
  8522. (sha1Sum): Renamed as messageDigest.
  8523. (messageDigest): New function.
  8524. * src/UrlRequestInfo.h
  8525. (HeadResult): New class.
  8526. (digestAlgo): New variable.
  8527. (chunkChecksumLength): New variable.
  8528. (chunkChecksums): New variable.
  8529. (getHeadResult): New function.
  8530. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8531. (setDigestAlgo): New function.
  8532. (setChunkChecksumLength): New function.
  8533. (setChunkChecksums): New function.
  8534. * src/DefaultPieceStorage.cc
  8535. (DiskAdaptorWriter.h): New include.
  8536. (ChunkChecksumValidator.h): New include.
  8537. (markAllPiecesDone): New function.
  8538. (checkIntegrity): New function.
  8539. * src/DefaultBtContext.h
  8540. (getPieceHashes): New function.
  8541. * src/TorrentRequestInfo.cc
  8542. (execute): Try to validate chunk checksum if file already exists and
  8543. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8544. * src/messageDigest.h
  8545. (~MessageDigestContext): Added digestFree().
  8546. * src/MetalinkRequestInfo.cc
  8547. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8548. * src/DiskAdaptor.h
  8549. (messageDigest.h): New include.
  8550. (sha1Sum): Renamed as messageDigest.
  8551. (messageDigest): New function.
  8552. * src/DownloadCommand.h
  8553. (PeerStat.h): New include.
  8554. (maxDownloadSpeedLimit): New variable.
  8555. (startupIdleTime): New variable.
  8556. (lowestDownloadSpeedLimit): New variable.
  8557. (peerStat): New variable.
  8558. (setMaxDownloadSpeedLimit): New function.
  8559. (setStartupIdleTime): New function.
  8560. (setLowestDownloadSPeedLimit): New function.
  8561. * src/BtContext.h
  8562. (getPieceHashes): New function.
  8563. * src/main.cc
  8564. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8565. option to true for testing purpose.
  8566. * src/BtPieceMessage.cc
  8567. (checkPieceHash): Use messageDigest
  8568. * src/DownloadEngine.cc
  8569. (SetDescriptor): Removed.
  8570. (AccumulateActiveCommand): Removed.
  8571. (waitData): Rewritten.
  8572. (updateFdSet): Rewritten.
  8573. * src/MultiDiskAdaptor.cc
  8574. (hashUpdate): Added ctx.
  8575. (sha1Sum): Renamed as messageDigest.
  8576. (messageDigest): New function.
  8577. * src/BitfieldMan.h
  8578. (isBitRangeSet): New function.
  8579. (unsetBitRange): New function.
  8580. * src/ByteArrayDiskWriter.h
  8581. (sha1Sum): Renamed as messageDigest.
  8582. (messageDigest): New function.
  8583. * src/ConsoleDownloadEngine.cc
  8584. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8585. * src/DiskWriter.h
  8586. (messageDigest.h): New include.
  8587. (sha1Sum): Renamed as messageDigest.
  8588. (messageDigest): New function.
  8589. * src/ChunkChecksumValidator.h: New class.
  8590. * src/DiskAdaptorWriter.h: New class.
  8591. * src/prefs.h
  8592. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8593. (PREF_CHECK_INTEGRITY): New definition.
  8594. * src/HttpResponseCommand.cc
  8595. (handleDefaultEncoding): Added method "HEAD" handling.
  8596. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8597. (handleOtherEncoding):
  8598. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8599. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8600. startupIdleTime, lowestDownloadSpeedLimit to command.
  8601. * src/SegmentMan.h
  8602. (getSegmentEntryByIndex): New function.
  8603. (getSegmentEntryByCuid): New function.
  8604. (getSegmentEntryIteratorByCuid): New function.
  8605. (diskWriter): DiskWriter -> DiskWriterHandle
  8606. (pieceHashes): New variable.
  8607. (chunkHashLength): New variable.
  8608. (digestAlgo): New variable.
  8609. (FindPeerStat): Removed.
  8610. (getPeerStat): Rewritten.
  8611. (markAllPiecesDone): New function.
  8612. (checkIntegrity): New function.
  8613. (tryChunkChecksumValidation): New function.
  8614. (isChunkChecksumValidationReady): New function.
  8615. * src/BitfieldMan.cc
  8616. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8617. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8618. blocks to 0.
  8619. (isBitRangeSet): New function.
  8620. (unsetBitRange): New function.
  8621. * src/FtpNegotiateCommand.cc
  8622. (executeInternal): Set maxDownloadSpeedLimit,
  8623. startupIdleTime, lowestDownloadSpeedLimit to command.
  8624. (recvSize): Added method "HEAD" handling.
  8625. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8626. * src/AbstractSingleDiskAdaptor.cc
  8627. (sha1Sum): Renamed as messageDigest.
  8628. (messageDigest): New function.
  8629. * src/AbstractSingleDiskAdaptor.h
  8630. (sha1Sum): Renamed as messageDigest.
  8631. (messageDigest): New function.
  8632. * src/Util.h
  8633. (indexRange): New function.
  8634. * src/MetalinkEntry.cc
  8635. (MetalinkEntry): Initialized chunkChecksum to 0.
  8636. * src/ShaVisitor.cc
  8637. (~ShaVisitor): Removed the call to ctx.digestFree().
  8638. * src/SegmentMan.cc
  8639. (ChunkChecksumValidator.h): New include.
  8640. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8641. to DIGEST_ALGO_SHA1.
  8642. (~SegmentMan): Removed diskWriter.
  8643. (FindSegmentEntryByIndex): Removed.
  8644. (FindSegmentEntryByCuid): Removed.
  8645. (checkoutSegment): Rewritten.
  8646. (findSlowerSegmentEntry): Rewritten.
  8647. (getSegment): Rewritten.
  8648. (updateSegment): Rewritten.
  8649. (completeSegment): Rewritten.
  8650. (markAllPiecesDone): New function.
  8651. (checkIntegrity): New function.
  8652. (isChunkChecksumValidationReady): New function.
  8653. (tryChunkChecksumValidation): New function.
  8654. * src/Xml2MetalinkProcessor.cc
  8655. (getEntry): Get size and set it to entry.
  8656. Get chunk checksum and set it to entry.
  8657. (getPieceHash): New function.
  8658. * src/Util.cc
  8659. (sha1Sum): Removed ctx.digestFree()
  8660. (fileChecksum): Removed ctx.digestFree()
  8661. (indexRange): New function.
  8662. * src/Request.cc
  8663. (METHOD_GET): New variable.
  8664. (METHOD_HEAD): New variable.
  8665. (Request): Added method.
  8666. * src/UrlRequestInfo.cc
  8667. (FatalException.h): New include.
  8668. (message.h): New include.
  8669. (operator<<): Added operator<< for class HeadResult.
  8670. (getHeadResult): New function.
  8671. (execute): Get filename and size in separate download engine.
  8672. * src/ChunkChecksumValidator.cc: New class.
  8673. * src/DownloadCommand.cc:
  8674. (DownloadCommand): Added peerStat.
  8675. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8676. the value from Option.
  8677. The buffer size is now 16KB.
  8678. Use peerStat member instead of getting it from SegmentMan.
  8679. Use startupIdleTime member instead of gettingit from Option.
  8680. Added chunk checksum validation.
  8681. * src/AbstractDiskWriter.cc
  8682. (AbstractDiskWriter): Removed ctx.
  8683. (~AbstractDiskWriter): Removed ctx.digestFree()
  8684. (writeDataInternal): Returns the return value of write.
  8685. (readDataInternal): Returns the return value of read.
  8686. (sha1Sum): Renamed as messageDigest
  8687. (messageDigest): New function.
  8688. * src/AbstractDiwkWriter.h
  8689. (messageDigest.h): Removed include.
  8690. (ctx): Removed.
  8691. (sha1Sum): Renamed as messageDigest
  8692. (messageDigest): New function.
  8693. * src/DefaultPieceStorage.h
  8694. (markAllPiecesDone): New function.
  8695. (checkIntegrity): New function.
  8696. * src/NullFileAllocationMonitor.h: New class.
  8697. * src/MetalinkChunkChecksum.h: New class.
  8698. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. To decrease CPU usage in bittorrent download, calculation results in
  8700. BitfieldMan were cached and realtime fetching PeerObject was removed
  8701. with WeakHandle introduced. Option values are set to the objects
  8702. by setter before download begins.
  8703. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8704. * src/DefaultBtRequestFactory.h
  8705. (dispatcher): BtMessageDispatcherHandle ->
  8706. BtMessageDispatcherWeakHandle.
  8707. (messageFactory): New variable.
  8708. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8709. BtMessageDispatcherWeakHandle.
  8710. (setBtMessageFactory): New function.
  8711. * src/DefaultBtMessageDispatcher.cc:
  8712. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8713. from Option.
  8714. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8715. feating the value from Option.
  8716. Use messageFactory member.
  8717. * src/PeerInteractionCommand.cc
  8718. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8719. Add reverse dependencies to factory object.
  8720. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8721. dispatcher.
  8722. Set messageFactory to receiver.
  8723. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8724. btInteractive.
  8725. Set receiver to peerObject.
  8726. Set maxDownloadSpeedLimit to this.
  8727. (executeInternal): Use maxDownloadSpeedLimit member.
  8728. * src/BtChokeMessage.cc
  8729. (doReceivedAction): Use dispatcher, requestFactory member.
  8730. (onSendComplete): Use dispatcher member.
  8731. * src/PeerInteractionCommand.h
  8732. (maxDownloadSpeedLimit): New variable.
  8733. * src/DefaultBtMessageReceiver.h
  8734. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8735. (dispatcher):
  8736. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8737. (messageFactory): New variable.
  8738. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8739. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8740. (setDispatcher):
  8741. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8742. (setBtMessageFactory): New function.
  8743. * src/DefaultBtInteractive.cc
  8744. (initiateHandshake): Use messageFactory member.
  8745. (addBitfieldMessageToQueue): Use messageFactory member.
  8746. (addAllowedFastMessageToQueue): Use messageFactory member.
  8747. (decideChoking): Use messageFactory member.
  8748. (checkHave): Use messageFactory member.
  8749. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8750. (receiveMessages): Use maxDownloadSpeedLimit member.
  8751. (decideInterest): Use messageFactory member.
  8752. * src/BtRequestMessage.cc
  8753. (doReceivedAction): Use messageFactory, dispatcher member.
  8754. (onQueued): Use dispatcher member.
  8755. * src/BtPieceMessage.cc
  8756. (doReceivedAction): Use dispatcher member.
  8757. (send): Use peerConnection member.
  8758. (onWrongPiece): Use requestFactory member.
  8759. (handleChokingEvent): Use messageFactory, dispatcher member.
  8760. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8761. * src/BtMessageDispatcher.h
  8762. (BtMessageDispatcherWeakHandle): New type definition.
  8763. * src/SimpleBtMessage.cc
  8764. (send): Use peerConnection member.
  8765. * src/BtRejectMessage.cc
  8766. (doReceivedAction): Use dispatcher member.
  8767. * src/DefaultBtMessageDispatcher.h
  8768. (Option.h): Removed include.
  8769. (messageFactory): New variable.
  8770. (option): Removed.
  8771. (maxUploadSpeedLimit): New variable.
  8772. (requestTimeout): New variable.
  8773. (DefaultBtMessageDispatcher): Removed option.
  8774. Added maxUploadSpeedLimit, requestTimeout.
  8775. (setOption): Removed.
  8776. (getOption): Removed.
  8777. (setMaxUploadSpeedLimit): New function.
  8778. (setRequestTimeout): New function.
  8779. (setBtMessageFactory): New function.
  8780. * src/DefaultBtInteractive.h
  8781. (btMessageReceiver):
  8782. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8783. (dispatcher):
  8784. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8785. (btRequestFactory):
  8786. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8787. (peerConnection):
  8788. PeerConnectionHandle -> PeerConnectionWeakHandle
  8789. (messageFactory): New variable.
  8790. (option): Removed.
  8791. (keepAliveInterval): New variable.
  8792. (maxDownloadSpeedLimit): New variable.
  8793. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8794. (setBtMessageReceiver):
  8795. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8796. (setDispatcher):
  8797. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8798. (setBtRequestFactory):
  8799. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8800. (setPeerConnection):
  8801. PeerConnectionHandle -> PeerConnectionWeakHandle
  8802. (setOption): Removed.
  8803. (setKeepAliveInterval): New function.
  8804. (setMaxDownloadSpeedLimit): New function.
  8805. (setBtMessageFactory): New function.
  8806. * src/BitfieldMan.h
  8807. (cachedNumMissingBlock): New variable.
  8808. (cachedNumFilteredBlock): New variable.
  8809. (cachedCompletedLength): New variable.
  8810. (cachedFilteredComletedLength): New variable.
  8811. (cachedFilteredTotalLength): New variable.
  8812. (countMissingBlockNow): New function.
  8813. (countFilteredBlockNow): New function.
  8814. (getFilteredTotalLengthNow): New function.
  8815. (getCompletedLengthNow): New function.
  8816. (getFilteredCompletedLengthNow): New function.
  8817. (updateCache): New function.
  8818. * src/AbstractBtMessage.h
  8819. (BtMessageDispatcher.h): New include.
  8820. (PeerConnection.h): New include.
  8821. (BtRequestFactory.h): New include
  8822. (BtMessageFactory.h): New include.
  8823. (dispatcher): New variable.
  8824. (messageFactory): New variable.
  8825. (peerConnection: New variable.
  8826. (setBtMessageDispatcher): New function.
  8827. (setPeerConnection): New function.
  8828. (setBtMessageFactory): New function.
  8829. (setBtRequestFactory): New function.
  8830. * src/DefaultBtMessageFactory.cc
  8831. (setCommonProperty): Set dispatcher, requestFactory, this,
  8832. peerConnection to msg.
  8833. * src/BtRegistry.h
  8834. (BT_MESSAGE_RECEIVER): New macro.
  8835. * src/PeerConnection.h
  8836. (PeerConnectionWeakHandle): New type definition.
  8837. * src/BtMessageFactory.h
  8838. (BtMessageFactoryWeakHandle): New type definition.
  8839. * src/BitfieldMan.cc
  8840. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8841. cachedCompletedLength, cachedFilteredComletedLength,
  8842. cachedFilteredTotalLength.
  8843. Call updateCache().
  8844. (countMissingBlock): Return cachedNumMissingBlock.
  8845. (countMissingBlockNow): New function.
  8846. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8847. (countFilteredBlockNow): New function.
  8848. (setBit): Call updateCache().
  8849. (unsetBit): Call updateCache().
  8850. (setBitfield): Call updateCache().
  8851. (clearAllBit): Call updateCache().
  8852. (setAllBit): Use setBitInternal instead of setBit.
  8853. Call updateCache().
  8854. (addFilter): Call updateCache().
  8855. (enableFilter): Call updateCache().
  8856. (disableFilter): Call updateCache().
  8857. (clearFilter): Call updateCache().
  8858. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8859. (getFilteredTotalLengthNow): New function.
  8860. (getCompletedLength): Return cachedCompletedLength.
  8861. (getCompletedLengthNow): New function.
  8862. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8863. (getFilteredCompletedLengthNow): New function.
  8864. (updateCache): New function.
  8865. * src/BtMessageReceiver.h
  8866. (BtMessageReceiverWeakHandle): New type definition.
  8867. * src/DefaultBtMessageReceiver.cc
  8868. (receiveHandshake): Use messageFactory member.
  8869. (sendHandshake): Use messageFactory member.
  8870. (receiveMessage): Use messageFactory member.
  8871. * src/DefaultBtMessageFactory.h
  8872. (dispatcher): New variable.
  8873. (requestFactory): New variable.
  8874. (peerConnection): New variablle.
  8875. (setBtMessageDispatcher): New function.
  8876. (setBtRequestFactory): New function.
  8877. (setPeerConnection): New function.
  8878. * src/SharedHandle.h
  8879. (RefCount): New class.
  8880. (WeakHandle): New class.
  8881. * src/PeerObject.h
  8882. (BtMessageReceiver.h): New include.
  8883. (PeerObject): Added btMessageReceiver.
  8884. (btMessageReceiver): New variable.
  8885. * src/Util.cc
  8886. (countBit): Simplified.
  8887. * src/BtCancelMessage.cc
  8888. (doReceivedAction): Use dispatcher member.
  8889. * src/BtRequestFactory.h
  8890. (BtRequestFactoryWeakHandle): New type definition.
  8891. * src/PeerStorage.h
  8892. (downloadSpeed): int -> uint32_t
  8893. (uploadSpeed): int -> uint32_t
  8894. (sessionDownloadLength): long long int -> uint64_t
  8895. (sessionUploadLength): long long int -> uint64_t
  8896. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. To add RecoverableException, FatalException:
  8898. * src/AbstractCommand.cc
  8899. (onAbort): Exception -> RecoverableException
  8900. * src/PeerAbstractCommand.h
  8901. (RecoverableException.h): New include.
  8902. (onAbort): Exception -> RecoverableException.
  8903. * src/PeerInteractionCommand.cc
  8904. (onAbort): Exception -> RecoverableException.
  8905. * src/PeerAbstractCommand.cc
  8906. (execute): Exception -> RecoverableException.
  8907. (onAbort): Exception -> RecoverableException.
  8908. * src/TorrentRequestInfo.cc
  8909. (execute): Exception -> RecoverableException.
  8910. * src/MetalinkRequestInfo.cc
  8911. (execute): Exception -> RecoverableException.
  8912. * src/MetaFileUtil.cc: RecoverableException.
  8913. * src/AbstractCommand.h
  8914. (onAbort): Exception -> RecoverableException.
  8915. * src/DlRetryEx.h: Exception -> RecoverableException.
  8916. * src/DlAbortEx.h: Exception -> RecoverableException.
  8917. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8918. * src/Util.cc: Exception -> RecoverableException.
  8919. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8920. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8921. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8922. To make ID static const int
  8923. * src/BtInterestedMessage.h
  8924. (ID_t): Removed.
  8925. (ID): New variable.
  8926. (getId): Made non-const.
  8927. * src/BtPieceMessage.h
  8928. (ID_t): Removed.
  8929. (ID): New variable.
  8930. (getId): Made non-const.
  8931. * src/BtChokeMessage.h
  8932. (ID_t): Removed.
  8933. (ID): New variable.
  8934. (getId): Made non-const.
  8935. * src/BtHaveAllMessage.h
  8936. (ID_t): Removed.
  8937. (ID): New variable.
  8938. (getId): Made non-const.
  8939. * src/BtKeepAliveMessage.h
  8940. (ID_t): Removed.
  8941. (ID): New variable.
  8942. (getId): Made non-const.
  8943. * src/BtHandshakeMessage.h
  8944. (ID): New variable.
  8945. (getId): Made non-const.
  8946. * src/BtSuggestPieceMessage.h
  8947. (ID_t): Removed.
  8948. (ID): New variable.
  8949. (getId): Made non-const.
  8950. * src/BtPortMessage.h
  8951. (ID_t): Removed.
  8952. (ID): New variable.
  8953. (getId): Made non-const.
  8954. * src/AbstractBtMessage.h
  8955. (id): Removed.
  8956. (AbstractBtMessage): Removed id.
  8957. (getId): Removed.
  8958. * src/BtHaveMessage.h
  8959. (ID_t): Removed.
  8960. (ID): New variable.
  8961. (getId): Made non-const.
  8962. * src/BtAllowedFastMessage.h
  8963. (ID_t): Removed.
  8964. (ID): New variable.
  8965. (getId): Made non-const.
  8966. * src/BtCancelMessage.h
  8967. (ID_t): Removed.
  8968. (ID): New variable.
  8969. (getId): Made non-const.
  8970. * src/BtNotInterestedMessage.h
  8971. (ID_t): Removed.
  8972. (ID): New variable.
  8973. (getId): Made non-const.
  8974. * src/BtChokeMessage.h
  8975. (ID_t): Removed.
  8976. (ID): New variable.
  8977. (getId): Made non-const.
  8978. * src/BtRejectMessage.h
  8979. (ID_t): Removed.
  8980. (ID): New variable.
  8981. (getId): Made non-const.
  8982. * src/BtBitfieldMessage.h
  8983. (ID_t): Removed.
  8984. (ID): New variable.
  8985. (getId): Made non-const.
  8986. * src/BtUnchokeMessage.h
  8987. (ID_t): Removed.
  8988. (ID): New variable.
  8989. (getId): Made non-const.
  8990. * src/BtRequestMessage.h
  8991. (ID_t): Removed.
  8992. (ID): New variable.
  8993. (getId): Made non-const.
  8994. * src/BtHaveMessage.h
  8995. (ID_t): Removed.
  8996. (ID): New variable.
  8997. (getId): Made non-const.
  8998. To add --force-truncate command-line option and a check whether
  8999. the file already exists:
  9000. * src/DirectDiskAdaptor.h
  9001. (getFilePath): Made virtual public.
  9002. * src/MultiDiskAdaptor.h
  9003. (File.h): New include.
  9004. (DiskWriterEntry::fileEntry): Made private.
  9005. (DiskWriterEntry::fileExists): New function.
  9006. (DiskWriterEntry::getFileEntry): New function.
  9007. (fileExists): New function.
  9008. (getFilePath): New function.
  9009. * src/TorrentRequestInfo.cc
  9010. (FatalException.h): New include.
  9011. (message.h): New include.
  9012. (RecoverableException.h): New include.
  9013. (execute): Added a check whether file is already exists or not.
  9014. * src/DiskAdaptor.h
  9015. (fileExists): New function.
  9016. (getFilePath): New function.
  9017. * src/main.cc
  9018. (showUsage): Added an explanation of --force-truncate command-line
  9019. option.
  9020. (main): Added --force-truncate command-line option.
  9021. * src/Exception.h
  9022. (setMsg): buf[256] -> buf[1024]
  9023. * src/CopyDiskWriter.h
  9024. (getFilePath): Made public virtual.
  9025. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9026. (fileExists): New function.
  9027. * src/DownloadEngineFactory.cc
  9028. (newTorrentConsoleEngine): Don't open file here.
  9029. * src/message.h
  9030. (EX_FILE_ALREADY_EXISTS): New definition.
  9031. * src/prefs.h
  9032. (PREF_FOECE_TRUNCATE): New definition.
  9033. * src/HttpResponseCommand.cc
  9034. (handleDefaultEncoding): Added a check whether the file already exists.
  9035. * src/SegmentMan.h
  9036. (fileExists): New function.
  9037. (shouldCancelDownloadForSafety): New function.
  9038. * src/FtpNegotiateCommand.cc
  9039. (recvSize): Added a check whether the file already exists.
  9040. * src/AbstractSingleDiskAdaptor.cc
  9041. (File.h): New include.
  9042. (fileExists): New function.
  9043. * src/AbstractSingleDiskAdaptor.h
  9044. (getFilePath): Removed.
  9045. (fileExists): New function.
  9046. * src/SegmentMan.cc
  9047. (fileExists): New function.
  9048. (shouldCancelDownloadForSafety): New function.
  9049. To fix regression bug in torrent downloading:
  9050. * src/DefaultBtRequestFactory.cc
  9051. (doChokedAction): New function.
  9052. * src/DefaultBtRequestFactory.h
  9053. (doChokedAction): New function.
  9054. * src/DefaultBtMessageDispatcher.cc
  9055. (doChokedAction): Do not delete request if its target is in allowed
  9056. fast set.
  9057. * src/DefaultBtInteractive.cc
  9058. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9059. (sendKeepAlive): Send keep alive message even if the outgoing message
  9060. queue is not empty.
  9061. (decideInterest): Simplified the code.
  9062. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9063. it is already called when BtChokeMessage is received from a peer.
  9064. * src/BtRequestFactory.h
  9065. (doChokedAction): New function.
  9066. To clean up code:
  9067. * src/PeerInteractionCommand.h
  9068. (executeInternal): Added virtual keyword explicitly.
  9069. (prepareForRetry): Added virtual keyword explicitly.
  9070. (prepareForNextPeer): Added virtual keyword explicitly.
  9071. (onAbort): Added virtual keyword explicitly.
  9072. * src/RequestSlot.cc
  9073. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9074. * src/BtPieceMessage.cc
  9075. (doReceivedAction): Added a debug log of piece's bitfield.
  9076. * src/Piece.h
  9077. (getBitfieldLength): New function.
  9078. * src/ByteArrayDiskWriter.cc
  9079. (clear): Added buf = 0 to avoid double free corruption.
  9080. * src/FileAllocator.cc
  9081. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9082. Added cp.reset().
  9083. * src/BitfieldMan.h
  9084. (operator=): Rewritten.
  9085. * src/BitfieldMan.cc
  9086. (BitfieldMan): Initialized bitfield, useBitfield.
  9087. * src/PeerConnection.cc
  9088. (receiveMessage): Added a call to socket->readable() after getting
  9089. message length to avoid possible EOF.
  9090. * src/Util.cc
  9091. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9092. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. To add an ability to pre-allocate file space:
  9094. * src/DirectDiskAdaptor.h: Rewritten.
  9095. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9096. * src/MultiDiskAdaptor.h: Rewritten.
  9097. * src/DefaultPieceStorage.cc
  9098. (MultiDiskWriter.h): Removed include.
  9099. (PreAllocationDiskWriter.h): Removed include.
  9100. (FileAllocationMonitor.h): New include.
  9101. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9102. (initStorage): Rewritten.
  9103. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9104. * src/FileAllocator.h: New class.
  9105. * src/FileAllocator.cc: New class.
  9106. * src/FileAllocationMonitor.h: New class.
  9107. * src/FileAllocationMonitor.cc: New class.
  9108. * src/ConsoleFileAllocationMonitor.h: New class.
  9109. * src/ConsoleFileAllocationMonitor.cc: New class.
  9110. * src/AbstractSingleDiskAdaptor.h: New class.
  9111. * src/AbstractSingleDiskAdaptor.cc: New class.
  9112. * src/DiskAdaptor.h
  9113. (Directory.h): Removed include.
  9114. (DiskWriter.h): Removed include.
  9115. (FileEntry.h): Removed include.
  9116. (diskWriter): Removed.
  9117. (DiskAdaptor): Removed diskWriter.
  9118. (openFile): Made pure virtual.
  9119. (closeFile): Made pure virtual.
  9120. (openExistingFile): Made pure virtual.
  9121. (initAndOpenFile): Made pure virtual.
  9122. (writeData): Made pure virtual.
  9123. (readData): Made pure virtual.
  9124. (sha1Sum): Made pure virtual.
  9125. (getStoreDir): Returns const reference of storeDir.
  9126. (DiskAdaptorHandle): New type definition.
  9127. * src/main.cc
  9128. (ConsoleFileAllocationMonitor.h): New include.
  9129. (showUsage): Added default value description of -s option.
  9130. Added the description of --file-allocation option.
  9131. (main): Set default value of --file-allocation option to 'none'.
  9132. Added --file-allocation command-line option.
  9133. Setup FileAllocationMonitorFactory.
  9134. * src/FtpInitiateConnectionCommand.cc
  9135. (executeInternal): Removed diskWriter related processing, which was
  9136. moved to FtpNegotiationCommand.cc.
  9137. * src/DirectDiskAdaptor.cc
  9138. (getFilePath): Made non-const.
  9139. * src/CopyDiskAdaptor.h
  9140. (DiskAdaptor.h): Removed include.
  9141. (DiskWriter.h): Removed include.
  9142. (AbstractSingleDiskAdaptor.h): New include.
  9143. (getFilePath): Made non-const. Added virtual keyword.
  9144. (CopyDiskAdaptor): Removed diskWriter.
  9145. (getTempFile): Returns const reference.
  9146. (CopyDiskAdaptorHandle): New type definition.
  9147. * src/ByteArrayDiskWriter.cc
  9148. (clear): Simplified.
  9149. (initAndOpenFile): Rewritten.
  9150. (openFile): Call initAndOpenFile()
  9151. * src/MultiDiskAdaptor.cc: Rewritten.
  9152. * src/DownloadEngineFactory.cc
  9153. (FileAllocator.h): New include.
  9154. (FileAllocationMonitor.h): New include.
  9155. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9156. create DefaultDiskWriter with file allocator.
  9157. * src/DiskWriter.h
  9158. (initAndOpenFile): Added totalLength argument.
  9159. (openFile): Added totalLength argument.
  9160. * src/prefs.h
  9161. (PREF_FILE_ALLOCATION): New definition.
  9162. (V_PREALLOC): New definition.
  9163. (V_NONE): New definition.
  9164. * src/HttpResponseCommand.cc
  9165. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9166. size.
  9167. * src/FtpNegotiateCommand.cc
  9168. (Util.h): New include.
  9169. (recvSize): Open file here.
  9170. * src/Util.h
  9171. (ullitos): New function.
  9172. * src/CopyDiskWriter.h
  9173. (getFilePath): Made non-const.
  9174. * src/DefaultDiskWriter.h
  9175. (Option.h): New include.
  9176. (totalLength): Removed.
  9177. (DefaultDiskWriter): Removed totalLength.
  9178. (initAndOpenFile): Added totalLength argument.
  9179. (DefaultDiskWriterHandle): New type definition.
  9180. (createNewDiskWriter): New function.
  9181. * src/Util.cc
  9182. (ullitos): New function.
  9183. * src/DefaultDiskWriter.cc
  9184. (message.h): New include.
  9185. (FileAllocator.h): New include.
  9186. (prefs.h): New include.
  9187. (Util.h): New include.
  9188. (DefaultDiskWriter): Removed totalLength.
  9189. (initAndOpenFile): Added file allocation.
  9190. (createNewDiskWriter): New function. Just for temporary solution.
  9191. It will be rewritten later.
  9192. * src/DiskAdaptor.cc
  9193. (DiskAdaptor): Removed diskWriter.
  9194. * src/AbstractDiskWriter.cc
  9195. (LogFactory.h): New include.
  9196. (AbstractDiskWriter): Added fileAllocator, logger.
  9197. (openFile): Added totalLength argument.
  9198. * src/AbstractDiskWriter.h
  9199. (FileAllocator.h): New include.
  9200. (Logger.h): New include.
  9201. (fileAllocator): New variable.
  9202. (logger): New variable.
  9203. (openFile): Added totalLength argument. Added virtual keyword
  9204. explicitly.
  9205. (openExistingFile): Added totalLength argument. Added virtual keyword
  9206. explicitly.
  9207. (closeFile): Added virtual keyword explicitly.
  9208. (sha1Sum): Added virtual keyword explicitly.
  9209. (writeData): Added virtual keyword explicitly.
  9210. (readData): Added virtual keyword explicitly.
  9211. (setFileAllocator): New function.
  9212. * src/DefaultPieceStorage.h
  9213. (FileAllocator.h): New include.
  9214. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9215. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9216. * src/FileProgressMonitor.h: New class.
  9217. To compile aria2 on PC-BSD:
  9218. * src/DefaultBtContext.cc
  9219. (libgen.h): New include.
  9220. To fix memory leak:
  9221. * src/Exception.h
  9222. (~Exception): Delete cause. Fixed memory leak.
  9223. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Rewritten a portion of bittorrent implementation:
  9225. * src/BtMessageValidator.h: New class.
  9226. * src/BtBitfieldMessageValidator.h: New class.
  9227. * src/BtHandshakeMessageValidator.h: New class.
  9228. * src/BtRequestMessageValidator.h: New class.
  9229. * src/BtSuggestPieceMessageValidator.h: New class.
  9230. * src/BtAllowedFastMessageValidator.h: New class.
  9231. * src/BtRejectMessageValidator.h: New class.
  9232. * src/BtCancelMessageValidator.h: New class.
  9233. * src/BtPieceMessageValidator.h: New class.
  9234. * src/BtHaveMessageValidator.h: New class.
  9235. * src/BtEventListener.h: New class.
  9236. * src/AbstractBtEventListener.h: New class.
  9237. * src/BtEvent.h: New class.
  9238. * src/BtChokingEvent.h: New class.
  9239. * src/BtChokedEvent.h: New class.
  9240. * src/BtCancelSendingPieceEvent.h: New class.
  9241. * src/BtAbortOutstandingRequestEvent.h: New class.
  9242. * src/Randomizer.h: New class.
  9243. * src/SimpleRandomizer.h: New class.
  9244. * src/BtMessage.h: New class.
  9245. * src/AbstractBtMessage.h: New class.
  9246. * src/SimpleBtMessage.h: New class.
  9247. * src/BtHaveMessage.h: New class.
  9248. * src/BtInterestedMessage.h: New class.
  9249. * src/BtAllowedFastMessage.h: New class.
  9250. * src/BtUnchokeMessage.h: New class.
  9251. * src/BtCancelMessage.h: New class.
  9252. * src/BtNotInterestedMessage.h: New class.
  9253. * src/BtChokeMessage.h: New class.
  9254. * src/BtHaveNoneMessage.h: New class.
  9255. * src/BtHandshakeMessage.h: New class.
  9256. * src/BtSuggestPieceMessage.h: New class.
  9257. * src/BtHaveMessage.h: New class.
  9258. * src/BtPieceMessage.h: New class.
  9259. * src/BtHaveAllMessage.h: New class.
  9260. * src/BtKeepAliveMessage.h: New class.
  9261. * src/BtPortMessage.h: New class.
  9262. * src/BtRejectMessage.h: New class.
  9263. * src/BtBitfieldMessage.h: New class.
  9264. * src/BtRequestMessage.h: New class.
  9265. * src/DefaultBtRequestFactory.h: New class.
  9266. * src/DefaultBtMessageReceiver.h: New class.
  9267. * src/BtInteractive.h: New class.
  9268. * src/BtMessageDispatcher.h: New class.
  9269. * src/DefaultBtMessageDispatcher.h: New class.
  9270. * src/DefaultBtInteractive.h: New class.
  9271. * src/BitfieldManFactory.h: New class.
  9272. * src/HandleRegistry.h: New class.
  9273. * src/BtMessageFactory.h: New class.
  9274. * src/BtMessageReceiver.h: New class.
  9275. * src/DefaultBtMessageFactory.h: New class.
  9276. * src/PeerObject.h: New class.
  9277. * src/BtRequestFactory.h: New class.
  9278. * src/SuggestPieceMessage.h: Removed.
  9279. * src/PortMessage.h: Removed.
  9280. * src/SuggestPieceMessage.h: Removed.
  9281. * src/KeepAliveMessage.h: Removed.
  9282. * src/HandshakeMessage.h: Removed.
  9283. * src/PeerInteraction.h: Removed.
  9284. * src/UnchokeMessage.h: Removed.
  9285. * src/PieceMessage.h: Removed.
  9286. * src/RequestMessage.h: Removed.
  9287. * src/InterestedMessage.h: Removed.
  9288. * src/HaveMessage.h: Removed.
  9289. * src/CancelMessage.h: Removed.
  9290. * src/RejectMessage.h: Removed.
  9291. * src/AllowedFastMessage.h: Removed.
  9292. * src/HaveNoneMessage.h: Removed.
  9293. * src/SimplePeerMessage.h: Removed.
  9294. * src/HaveAllMessage.h: Removed.
  9295. * src/BitfieldMessage.h: Removed.
  9296. * src/PeerMessageFactory.h: Removed.
  9297. * src/NotInterestedMessage.h: Removed.
  9298. * src/ChokeMessage.h: Removed.
  9299. * src/PeerMessage.h: Removed.
  9300. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. To know root cause of exception:
  9302. * src/Exception.h
  9303. (cause): New variable.
  9304. (Exception): Added a parameter.
  9305. (getMsg): Return const reference to msg.
  9306. (getCause): New function.
  9307. * src/DlRetryEx.h
  9308. (DlRetryEx): Added a parameter 'cause'.
  9309. Added an overloaded constructor.
  9310. (DlAbortEx): Added a parameter 'cause'.
  9311. Added an overloaded constructor.
  9312. * src/SimpleLogger.cc
  9313. (writeLog): Log nested exception messages recursively.
  9314. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9315. * src/DefaultBtProgressInfoFile.cc
  9316. (load): Fixed memory leak when the infohash doesn't match.
  9317. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. * src/DefaultPeerStorage.cc
  9319. (calculateStat): Simplified the code by combining 2 loops into 1.
  9320. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9322. for BitTorrent download:
  9323. * src/PeerAbstractCommand.cc
  9324. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9325. * src/main.cc:
  9326. (timeoutSpecified): Removed.
  9327. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9328. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9329. * src/TorrentRequestInfo.cc
  9330. (timeoutSpecified): Removed.
  9331. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9332. timeout value.
  9333. * src/prefs.h
  9334. (PREF_BT_TIMEOUT): New definition.
  9335. Delete unused variables:
  9336. * src/TorrentRequestInfo.cc
  9337. (requestInfo): Removed.
  9338. Move setSignalHander to Util::setGlobalSignalHandler:
  9339. * src/TorrentRequestInfo.cc:
  9340. setSignalHander -> Util::setGlobalSignalHandler
  9341. * src/main.cc
  9342. (setSignalHander): Removed.
  9343. (main): setSignalHander -> Util::setGlobalSignalHandler
  9344. * src/Util.h
  9345. (setGlobalSignalHandler): New function.
  9346. * src/Util.cc
  9347. (setGlobalSignalHandler): New function.
  9348. * src/UrlRequestInfo.cc:
  9349. setSignalHander -> Util::setGlobalSignalHandler
  9350. Reset peer status in order to exit gracefully:
  9351. * src/PeerAbstractCommand.cc
  9352. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9353. To fix the bug that causes the number of bytes uploaded is not saved
  9354. to .aria2 file:
  9355. * src/DefaultPeerStorage.h
  9356. (removedPeerSessionDownloadLength): New variable.
  9357. (removedPeerSessionUploadLength): New variable.
  9358. * src/DefaultPeerStorage.cc
  9359. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9360. removedPeerSessionUploadLength(0).
  9361. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9362. through all peers, and then add removedPeerSessionDownloadLength(
  9363. removedPeerSessionUploadLength) to it.
  9364. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9365. (to) the peer to removedPeerSessionDownloadLength
  9366. (removedPeerSessionUploadLength).
  9367. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. To add Metalink location option:
  9369. * src/MetalinkRequestInfo.cc
  9370. (execute): Call MetalinkEntry::setLocationPreference()
  9371. * src/main.cc
  9372. (showUsage): Added the help message for --metalink-location option.
  9373. (main): Added --metalink-location option.
  9374. * src/prefs.h
  9375. (PREF_METALINK_LOCATION): New definition.
  9376. * src/MetalinkEntry.cc
  9377. (AddLocationPreference): New function object.
  9378. (setLocationPreference): New function.
  9379. * src/Xml2MetalinkProcessor.cc
  9380. (getResource): Set location attribute to MetalinkResource
  9381. To show URLs to download
  9382. * src/UrlRequestInfo.h
  9383. (printUrls): New function.
  9384. To add multiple <file> Metalink support:
  9385. * src/MetalinkEntry.h
  9386. (MetalinkResources): Removed.
  9387. (setLocationPreference): New function.
  9388. (MetalinkEntryHandle): New type definition.
  9389. (MetalinkEntries): New type definition.
  9390. * src/Xml2MetalinkProcessor.h
  9391. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9392. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9393. (parseFile): Metalinker* -> MetalinkerHandle
  9394. * src/UrlRequestInfo.h
  9395. (execute): RequestInfo* -> RequestInfos
  9396. * src/MetalinkRequestInfo.cc
  9397. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9398. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9399. (execute): RequestInfo* -> RequestInfos
  9400. Added multiple <file> support. Print filename when it is queued.
  9401. * src/MetalinkRequestInfo.h
  9402. (execute): RequestInfo* -> RequestInfos
  9403. (getDownloadEngine): Removed.
  9404. * src/RequestInfo.h
  9405. (RequestInfoHandle): New type definition.
  9406. (RequestInfos): New type definition.
  9407. (execute): RequestInfo* -> RequestInfos
  9408. (getDownloadEngine): Removed.
  9409. * src/MetalinkResource.h
  9410. (MetalinkResourceHandle): New type definition.
  9411. (MetalinkResources): New type definition.
  9412. * src/MetalinkEntry.cc
  9413. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9414. because the element is now of type MetalinkResourceHandle.
  9415. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9416. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9417. (dropUnsupportedResource): Removed the deletion of the elements of
  9418. resources because the element is now of type MetalinkResourceHandle.
  9419. * src/Xml2MetalinkProcessor.cc
  9420. (parseFile): Metalinker* -> MetalinkerHandle
  9421. MetalinkEntry* -> MetalinkEntryHandle
  9422. Removed try-catch block.
  9423. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9424. MetalinkResource* -> MetalinkResourceHandle
  9425. Removed try-catch block.
  9426. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9427. Free result by using xmlXPathFreeObject()
  9428. * src/Metalinker.cc
  9429. (~Metalinker): Removed the deletion of entries.
  9430. MetalinkEntry* -> MetalinkEntryHandle
  9431. (queryEntry): Add multiple <file> Metalink support.
  9432. * src/Metalinker.h
  9433. (MetalinkEntries): Removed.
  9434. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9435. * src/MetalinkProcessor.h
  9436. (parseFile): Metalinker* -> MetalinkerHandle
  9437. Bug fixes:
  9438. * src/PeerChokeCommand.cc
  9439. (execute): cat01->cat02
  9440. * src/DefaultPieceStorage.cc
  9441. (DefaultPieceStorage): Added diskAdaptor(0)
  9442. * src/TrackerWatcherComand.cc:
  9443. (execute): Use btAnnounce->noMoreAnnounce()
  9444. to determin whether the function returns true or not.
  9445. * src/TrackerUpdateCommand.cc:
  9446. (execute): Use btAnnounce->noMoreAnnounce()
  9447. to determin whether the function returns true or not.
  9448. * src/FtpConnection.cc
  9449. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9450. This is the fix of the busy loop bug.
  9451. * src/DownloadCommand.cc
  9452. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9453. cached PeerStat.
  9454. The value of "name" entry in torrent file is now set by
  9455. *DiskAdaptor::setTopDir(...) methods.
  9456. * src/MultiDiskAdaptor.h
  9457. (topDir): New variable.
  9458. (setTopDir): New function.
  9459. (getTopDir): New function.
  9460. * src/MultiDiskAdaptor.cc
  9461. (getFilePath): Concat storDir, "/" and topDir.
  9462. (mkdir): Use getFilePath() to get the directory path for output.
  9463. * src/DefaultPieceStorage.cc
  9464. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9465. CopyDiskAdaptor.
  9466. * src/CopyDiskAdaptor.h
  9467. (topDir): New variable.
  9468. (setTopDir): New function.
  9469. (getTopDir): New function.
  9470. * src/CopyDiskAdaptor.cc
  9471. (fixFilename): Updated.
  9472. Misc
  9473. * src/UrlRequestInfo.h
  9474. (e): Removed.
  9475. (UrlRequestInfo): Removed e.
  9476. (getDownloadEngine): Removed.
  9477. * src/UrlRequestInfo.cc
  9478. (handler): Rewritten.
  9479. (printUrls): New function.
  9480. (execute): Call printUrls().
  9481. * src/HandshakeMessage.cc
  9482. (check): peerinteraction->getBtContext() -> btContext
  9483. * src/PeerInteraction.h
  9484. (getBtContext): Removed.
  9485. * src/TorrentRequestInfo.h
  9486. (execute): RequestInfo* -> RequestInfos
  9487. (getDownloadEngine): Removed.
  9488. * src/TorrentRequestInfo.cc
  9489. (haltRequested): Removed.
  9490. (btHaltRequested): New variable.
  9491. (torrentHandler): haltRequested -> btHaltRequested
  9492. (execute): RequestInfo* -> RequestInfos
  9493. * src/TorrentConsoleDownloadEngine.cc
  9494. (afterEachIteration): haltRequested -> btHaltRequested.
  9495. * src/ConsoleDownloadEngine.h
  9496. (initStatistics): Added virtual.
  9497. (calculateStatistics): Added virtual.
  9498. (onEndOfRun): Added virtual.
  9499. (afterEachIteration): Added virtual.
  9500. * src/ConsoleDownloadEngine.cc
  9501. (haltRequested): New variable.
  9502. (afterEachIteration): New function.
  9503. * src/main.cc
  9504. (requestInfo): Removed.
  9505. * src/SegmentMan.cc
  9506. (findSlowerSegmentEntry): Refactored.
  9507. * Release 0.9.0
  9508. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9510. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9511. * src/TorrentMan.h: Removed.
  9512. * src/TorrentMan.cc: Removed.
  9513. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9514. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9515. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9516. * src/PeerAbstractCommand.cc: Use btRuntime.
  9517. * src/BtContextAwareCommand.h: New class.
  9518. * src/FileEntry.h: Added accessor methods for following variables.
  9519. (path): Made private.
  9520. (length): Made private.
  9521. (offset): Made private.
  9522. (extracted): Made private.
  9523. (requested): Made private.
  9524. (FileEntries): New definition.
  9525. (FileEntryHandle): New definition.
  9526. * src/FileEntry.cc: New file.
  9527. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9528. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9529. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9530. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9531. * src/PieceStorage.h: New file.
  9532. * src/PeerInteractionCommand.h: Use btContext.
  9533. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9534. btRuntime.
  9535. * src/DefaultBtProgressInfoFile.h: New file.
  9536. * src/DefaultBtProgressInfoFile.cc: New file.
  9537. * src/File.cc
  9538. (Util.h): New include.
  9539. (mkdirs): New function.
  9540. * src/MultiDiskAdaptor.h
  9541. (mkdir): New function.
  9542. * src/PeerListProcessor.h
  9543. (Peers): Removed.
  9544. * src/PeerInteraction.h
  9545. (torrentMan): Removed.
  9546. (btContext): New variable.
  9547. (peerStorage): New variable.
  9548. (pieceStorage): New variable.
  9549. (btAnnounce): New variable.
  9550. (getTorrentMan): Removed.
  9551. (getBtContext): New function.
  9552. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9553. btAnnounce.
  9554. * src/HandshakeMessage.h
  9555. (TorrentMan.h): Removed.
  9556. * src/HandshakeMessage.cc: Use btContext.
  9557. * src/DefaultBtAnnounce.cc: New file.
  9558. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9559. * src/DefaultPieceStorage.cc: New file.
  9560. * src/DefaultBtContext.h: New file.
  9561. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9562. Use the accessor methods of FileEntry.
  9563. * src/CookieBox.cc: Updated to use Util::slice().
  9564. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9565. * src/common.h (SharedHandle.h): New include.
  9566. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9567. pieceStorage.
  9568. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9569. * src/DiskAdaptor.h
  9570. (topDir): Removed.
  9571. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9572. (setTopDir): Removed.
  9573. (getTopDir): Removed.
  9574. * src/BtContext.h: New file.
  9575. * src/DefaultPeerStorage.h: New file.
  9576. * src/PieceMessage.h (TorrentMan.h): Removed.
  9577. * src/RequestMessage.h (TorrentMan.h): Removed.
  9578. * src/TorrentDownloadEngine.h
  9579. (uploadLength): New variable.
  9580. (btContext): New variable.
  9581. (btRuntime): New variable.
  9582. (pieceStorage): New variable.
  9583. (peerStorage): New variable.
  9584. (btAnnounce): New variable.
  9585. (btProgressInfoFile): New variable.
  9586. (torrentMan): Removed.
  9587. (setBtContext): New function.
  9588. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9589. peerStorage, btAnnounce, btProgressInfoFile.
  9590. * src/Piece.h
  9591. (toString): New function.
  9592. (Pieces): New type definition.
  9593. * src/Peer.h
  9594. (active): New variable.
  9595. (Peer): Added active.
  9596. (activate): Set active to true.
  9597. (deactivate): Set active to false.
  9598. (isActive): New function.
  9599. (Peers): New type definition.
  9600. * src/DirectDiskAdaptor.cc
  9601. (getFilePath): Use the accessor methods of FileEntry.
  9602. * src/TorrentConsoleDownloadEngine.h
  9603. (afterEachIteration): New function.
  9604. * src/TorrentConsoleDownloadEngine.cc
  9605. (haltRequested): New variable.
  9606. (sendStatistics): Use pieceStorage, btRuntime.
  9607. (afterEachIteration): New function.
  9608. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9609. * src/Directry.h
  9610. (Directory): New function.
  9611. (DirectoryHandle): New type definition.
  9612. * src/BtProgressInfoFile.h: New file.
  9613. * src/RequestMessage.cc: Use pieceStorage.
  9614. * src/BtRuntime.h: New file.
  9615. * src/DefaultBtContext.cc: New file.
  9616. * src/BitfieldMan.h
  9617. (getCompletedLength): New function(private).
  9618. (getCompletedLength): New function.
  9619. (getFilteredCompletedLength): New function.
  9620. * src/BitfieldMan.h
  9621. (getCompletedLength): New function(private).
  9622. (getCompletedLength): New function.
  9623. (getFilteredCompletedLength): New function.
  9624. * src/MultiDiskAdaptor.cc
  9625. (mkdir): New function.
  9626. (openFile): Call mkdir().
  9627. (initAndOpenFile): Call mkdir().
  9628. * src/CancelMessage.h
  9629. (TorrentMan.h): Removed.
  9630. * src/RejectMessage.h
  9631. (TorrentMan.h): Removed.
  9632. * src/DownloadEngineFactory.cc
  9633. (DefaultPieceStorage.h): New include.
  9634. (DefaultPeerStorage.h): New include.
  9635. (DefaultBtAnnounce.h): New include.
  9636. (DefaultBtProgressInfoFile.h): New include.
  9637. (newTorrentConsoleEngine): Rewritten.
  9638. * src/ShareRatioSeedCriteria.h
  9639. (torrentMan): Removed.
  9640. (btContext): New variable.
  9641. (peerStorage): New variable.
  9642. (btRuntime): New variable.
  9643. (evaluate): Use btContext, btRuntime, peerStorage.
  9644. * src/AnnounceTier.h: New file.
  9645. * src/BtAnnounce.h: New file.
  9646. * src/BtRegistry.h: New file.
  9647. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9648. * src/PeerConnection.h (TorrentMan.h): Removed.
  9649. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9650. * src/Util.h
  9651. (slice): Added an argument.
  9652. * src/Util.cc
  9653. (slice): Added an argument to control whether trim is made or not.
  9654. * src/PeerStorage.h: New file.
  9655. * src/BtRegistry.cc: New file.
  9656. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9657. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9658. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9659. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9660. * src/TorrentRequestInfo.h
  9661. (e): Removed.
  9662. (showFileEntry): Added an argument.
  9663. (getDownloadEngine): Return 0.
  9664. * src/DefaultBtAnnounce.h: New file.
  9665. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9666. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9667. * src/PeerMessageFactory.h
  9668. (btContext): New variable.
  9669. (pieceStorage): New variable.
  9670. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9671. btAnnounce.
  9672. * src/DiskAdaptor.cc
  9673. (DiskAdaptor): Removed topDir.
  9674. (~DiskAdaptor): Removed topDir.
  9675. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9676. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9677. * src/File.h (mkdirs): New function.
  9678. * src/DefaultPeerStorage): New file.
  9679. * src/DownloadEngineFactory.h
  9680. (newTorrentConsoleEngine): Use btContext.
  9681. * src/BtContextAwareCommand.cc: New file.
  9682. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9683. * src/PeerMessage.h
  9684. (btContext): New variable.
  9685. (peerStorage): New variable.
  9686. (pieceStorage): New variable.
  9687. (setBtContext): New function.
  9688. * src/Directry.cc
  9689. (Directory): New function.
  9690. (createDir): Do nothing if name.size() == 0.
  9691. * src/AnnounceList.h
  9692. (AnnounceTier): Removed.
  9693. (AnnounceTiers): Removed.
  9694. * src/DefaultPieceStorage.h: New file.
  9695. * src/Piece.cc (toString): New function.
  9696. To fix typo:
  9697. * src/main.cc (showVersion): Fixed typo.
  9698. To fix compile warning:
  9699. * src/DelegatingPeerListProcessor.cc
  9700. (canHandle): Added "return false".
  9701. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9703. make the process of announce request testable.
  9704. * src/TrackerWatcherCommand.h
  9705. (TimeA2.h): Removed.
  9706. (interval): Removed.
  9707. (checkPoint): Removed.
  9708. (createRequestCommand): Added an argument 'url'.
  9709. (TrackerWatherCommand): Removed interval.
  9710. (createCommand): New function.
  9711. * src/DownloadEngineFactory.cc
  9712. (newTorrentConsoleEngine): Updated according to the changes in
  9713. TrackerWatherCommand.
  9714. * src/TorrentMan.cc
  9715. (DelegatingPeerListProcessor.h): New includes.
  9716. (TorrentMan): Added the initialization of announceInterval.
  9717. (isStoppedAnnounceReady): New function.
  9718. (isCompletedAnnounceReady): New function.
  9719. (isDefaultAnnounceReady): New function.
  9720. (isAnnounceReady): New function.
  9721. (getAnnounceUrl): New function.
  9722. (announceStart): New function.
  9723. (announceFailure): New function.
  9724. (announceSuccess): New function.
  9725. (isAllAnnounceFailed): New function.
  9726. (resetAnnounce): New function.
  9727. (processAnnounceResponse): New function.
  9728. (needMorePeerConnection): New function.
  9729. (noMoreAnnounce): New function.
  9730. * src/TrackerUpdateCommand.h
  9731. (getTrackerResponse): int->size_t
  9732. * src/TorrentMan.h
  9733. (isStoppedAnnounceReady): New function.
  9734. (isCompletedAnnounceReady): New function.
  9735. (isDefaultAnnounceReady): New function.
  9736. (announceInterval): New variable.
  9737. (isAnnounceReady): New function.
  9738. (getAnnounceUrl): New function.
  9739. (announceStart): New function.
  9740. (announceFailure): New function.
  9741. (announceSuccess): New function.
  9742. (isAllAnnounceFailed): New function.
  9743. (resetAnnounce): New function.
  9744. (processAnnounceResponse): New function.
  9745. (needMorePeerConnection): New function.
  9746. (noMoreAnnounce): New function.
  9747. * src/TrackerWatcherCommand.cc
  9748. (TrackerWatherCommand): Removed interval and checkPoint.
  9749. (execute): Rewritten.
  9750. (createCommand): New function.
  9751. (createRequestCommand): Rewritten.
  9752. * src/TrackerUpdateCommand.cc
  9753. (MetaFileUtil.h): Removed.
  9754. (DelegatingPeerListProcessor.h): Removed.
  9755. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9756. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Request -> RequestHandle:
  9758. * src/HttpResponseCommand.h: Request->RequestHandle
  9759. * src/AbstractCommand.cc: Request->RequestHandle
  9760. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9761. * src/HttpRequestCommand.cc: Request->RequestHandle
  9762. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9763. * src/AbstractCommand.h: Request->RequestHandle
  9764. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9765. * src/HttpResponseCommand.cc: Request->RequestHandle
  9766. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9767. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9768. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9769. * src/HttpConnection.h: Request->RequestHandle
  9770. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9771. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9772. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9773. * src/DownloadCommand.h: Request->RequestHandle
  9774. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9775. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9776. * src/HttpRequestCommand.h: Request->RequestHandle
  9777. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9778. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9779. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9780. * src/HttpDownloadCommand.h: Request->RequestHandle
  9781. * src/FtpConnection.cc: Request->RequestHandle
  9782. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9783. * src/UrlRequestInfo.cc: Request->RequestHandle
  9784. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9785. * src/HttpConnection.h: Request->RequestHandle
  9786. * src/DownloadCommand.cc: Request->RequestHandle
  9787. * src/FtpConnection.h: Request->RequestHandle
  9788. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9789. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9790. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9791. * src/Request.h
  9792. (SharedHandle.h): New include.
  9793. (RequestHandle): New type definition.
  9794. (Requests): Redefined.
  9795. To add MULTITRACKER support:
  9796. * src/TrackerWatcherCommand.h
  9797. (createRequestCommand): New function.
  9798. * src/DownloadEngineFactory.cc
  9799. (newTorrentConsoleEngine): Removed req.
  9800. * src/prefs.h
  9801. (PREF_TRACKER_MAX_TRIES): New definition.
  9802. * src/TorrentMan.cc
  9803. (TorrentMan): Removed req. Added trackerNumTry.
  9804. (~TorrentMan): Removed req.
  9805. (setupInternal1): Added announceList.
  9806. * src/TorrentRequestInfo.cc
  9807. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9808. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9809. * src/main.cc
  9810. (main): Added PREF_TRACKER_MAX_TRIES.
  9811. * src/TorrentMan.h
  9812. (Request.h): Removed.
  9813. (AnnounceList.h): New include.
  9814. (trackerNumTry): New variable.
  9815. (req): Removed.
  9816. (announceList): New variable.
  9817. * src/TrackerWatcherCommand.cc
  9818. (execute): Rewritten.
  9819. (createRequestCommand): New function.
  9820. * src/TrackerUpdateCommand.cc
  9821. (execute): Updated with the use of AnnounceList.
  9822. * src/AnnounceList.cc: New class.
  9823. * src/AnnounceList.h: New class.
  9824. To fix typo:
  9825. * src/prefs.h
  9826. (PREF_MAX_TRIES): max_try->max_tries
  9827. To not to decode "+" as space in URL decode:
  9828. * src/Util.cc
  9829. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9830. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. To add timeout to async name resolution:
  9832. * src/AbstractCommand.h
  9833. (nameResolveFinished): New function. This is not elegant way. It needs
  9834. to be more refined.
  9835. (nameResolverCheck): New variable.
  9836. * src/AbstractCommand.cc
  9837. (AbstractCommand): Added nameResolverCheck.
  9838. (execute): Added the check whether the name resolution has finished.
  9839. (setNameResolverCheck): Set nameResolverCheck to true.
  9840. (disableNameResolverCheck): Set nameResolverCheck to false.
  9841. (nameResolverFinished): New function.
  9842. * src/FtpInitiateConnectionCommand.h
  9843. (nameResolverFinished): New function.
  9844. * src/FtpInitiateConnectionCommand.cc
  9845. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9846. * src/HttpInitiateConnectionCommand.h
  9847. (nameResolverFinished): New function.
  9848. * src/HttpInitiateConnectionCommand.cc
  9849. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9850. * src/prefs.h
  9851. (PREF_DNS_TIMEOUT): New definition.
  9852. * src/main.cc
  9853. (main): Added PREF_DNS_TIMEOUT.
  9854. To add the support for a non-compact response from a tracker:
  9855. * src/PeerListProcessor.h: New class.
  9856. * src/DefaultPeerListProcessor.h: New class.
  9857. * src/DefaultPeerListProcessor.cc: New class.
  9858. * src/CompactPeerListProcessor.h: New class.
  9859. * src/CompactPeerListProcessor.cc: New class.
  9860. * src/DelegatingPeerListProcessor.h: New class.
  9861. * src/DelegatingPeerListProcessor.cc: New class.
  9862. * src/TorrentMan.cc
  9863. (addPeer): New function(overload).
  9864. (addPeer): Delete unused peers only when new peer is added.
  9865. * src/TorrentMan.h
  9866. (PeerListProcessor.h): Included.
  9867. (Peers): Removed.
  9868. (addPeer): New function(overload).
  9869. * src/TrackerUpdateCommand.cc
  9870. (netinet/in.h): Removed.
  9871. (DelegatingPeerListProcessor.h): Included.
  9872. (execute): Updated to use DelegatingPeerListProcessor.
  9873. To fix the memory leak in TorrentMan::peers:
  9874. * src/PeerAbstractCommand.cc
  9875. (onAbort): Added peer->resetStatus().
  9876. * src/Peer.h
  9877. (resetStatus): Made public.
  9878. To improve the precision of the speed calculation:
  9879. * src/SpeedCalc.h
  9880. (nextInterval): New variable.
  9881. * src/SpeedCalc.cc
  9882. (reset): Added nextInterval.
  9883. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9884. (changeSw): Set nextInterval to 15 seconds relative to the current
  9885. instant time.
  9886. * src/main.cc
  9887. (showVersion): Updated.
  9888. (showUsage): Updated.
  9889. * Release 0.8.1
  9890. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. * src/main.cc
  9892. (showUsage): Commented out --min-segment-size option.
  9893. (main): Commented out --min-segment-size option.
  9894. * Release 0.8.0
  9895. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. * src/*.{h,cc}:
  9897. Added an exception to the license which allows linking with OpenSSL.
  9898. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. * src/AbstractCommand.cc
  9900. (execute): Check whether the download has finished before checking
  9901. socket status.
  9902. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9903. Do not exit even if no segment is available.
  9904. * src/prefs.h
  9905. (PREF_STARTUP_IDLE_TIME): New definition.
  9906. * src/PeerInteractionCommand.cc
  9907. (executeInternal): Removed max speed limit. Because it performs bad.
  9908. (receiveMessages): Added max speed limit. This was better than above,
  9909. but still a little bit to be desired. Sometimes the download speed
  9910. became much faster than I specified.
  9911. * src/SpeedCalc.h
  9912. (start): New variable.
  9913. (accumulatedLength): New variable.
  9914. (getAvgSpeed): New function.
  9915. * src/SpeedCalc.cc
  9916. (reset): Added start, accumulatedLength.
  9917. (update): Added calculation of an average speed.
  9918. (getAvgSpeed): New function.
  9919. * src/DownloadCommand.h
  9920. (sw): Removed.
  9921. * src/main.cc
  9922. (main): Added PREF_STARTUP_IDLE_TIME.
  9923. * src/PeerStat.h
  9924. (STATUS): Added REQUEST_IDLE.
  9925. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9926. (getAvgDownloadSpeed): New function
  9927. (requestIdle): New function.
  9928. * src/SegmentMan.h
  9929. (SegmentEntryHandle): New type definition.
  9930. (SegmentEntries): Now holds SegmentEntryHandle.
  9931. (findSlowerSegmentEntry): New funtion.
  9932. * src/SegmentMan.cc
  9933. (save): Updated according to the changes in SegmentEntries.
  9934. (read): Updated according to the changes in SegmentEntries.
  9935. (FindSegmentEntryByIndex): Updated according to the changes in
  9936. SegmentEntries.
  9937. (FindSegmentEntryByCuid): Updated according to the changes in
  9938. SegmentEntries.
  9939. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9940. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9941. Renamed uitr as itr.
  9942. (findSlowerSegmentEntry): New function.
  9943. (getSegment): Updated according to the changes in SegmentEntries.
  9944. Added the feature that cancels the segment with slow server and fast
  9945. one takes it over.
  9946. (cancelSegment): Updated according to the changes in SegmentEntries.
  9947. (getDownloadLength): Updated according to the changes in
  9948. SegmentEntries.
  9949. (init): Assigned 0 to bitfield after deleting it.
  9950. * src/DownloadCommand.cc
  9951. (STARTUP_IDLE_TIME): Removed.
  9952. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9953. * src/PeerChokeCommand.cc
  9954. (optUnchokingPeer): Updated according to the changes in Peer.
  9955. (ResetDelta): Removed.
  9956. (UploadFaster): Updated according to the changes in Peer.
  9957. (DownloadFaster): Updated according to the changes in Peer.
  9958. (execute): I clarify the meaning of "upload" and "download" here.
  9959. "upload" means the transfer from localhost to remote host.
  9960. "download" means the transfer from remote host to localhost.
  9961. Based on this rule, I swapped orderByUploadRate and
  9962. orderByDownloadRate.
  9963. * src/PeerInteractionCommand.cc
  9964. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9965. (executeInternal): Removed the argument of
  9966. peerInteraction->sendMessages().
  9967. (receiveMessages): Rewritten download speed limit.
  9968. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9969. * src/HttpResponseCommand.cc
  9970. (handleDefaultEncoding): If file size is unknown in torrent request,
  9971. do not call segmentMan->initBitfield() here.
  9972. Disabled persistent connection feature in torrent request.
  9973. * src/UrlRequestInfo.h
  9974. (UrlRequestInfo): Removed const qualifier from option.
  9975. * src/TorrentMan.h
  9976. (TransferStat): New class.
  9977. (deltaDownloadLength): Removed.
  9978. (deltaUploadLength): Removed.
  9979. (addDeltaDownloadLength): Removed.
  9980. (getDeltaDownloadLength): Removed.
  9981. (resetDeltaDownloadLength): Removed.
  9982. (addDeltaUploadLength): Removed.
  9983. (getDeltaUploadLength): Removed.
  9984. (resetDeltaUploadLength): Removed.
  9985. (addActivePeer): Added peer->activate().
  9986. (deleteActivePeer): Added peer->deactivate().
  9987. (calculateStat): New function.
  9988. * src/TorrentMan.cc
  9989. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9990. (calculateStat): New function.
  9991. * src/PeerInteraction.h
  9992. (uploadLimit): Removed.
  9993. (option): New variable.
  9994. (setUploadLimit): Removed.
  9995. (getUploadSpeed): Removed.
  9996. (sendMessages): Removed the argument "currentUploadSpeed".
  9997. * src/PeerInteraction.cc
  9998. (prefs.h): Included.
  9999. (PeerInteraction): Removed uploadLimit. Added option.
  10000. (sendMessages): Rewritten upload speed limit.
  10001. (sendHandshake): Removed the argument from sendMessages().
  10002. (sendBitfield): Removed the argument from sendMessages().
  10003. * src/PeerAbstractCommand.cc
  10004. (execute): Commented out the portion of upload limit.
  10005. (onAbort): Removed peer->resetStatus().
  10006. * src/TorrentRequestInfo.cc
  10007. (timeoutSpecified): Declared extern.
  10008. (execute): Set timeout to 180 if timeout is not specified by.
  10009. command-line.
  10010. * src/PieceMessage.cc
  10011. (receivedAction): Added peer->updateDownloadLength().
  10012. Removed peer->addPeerUpload().
  10013. Removed torrentMan->addDeltaDownloadLength().
  10014. (send): Added peer->updateUploadLength().
  10015. Removed peer->addPeerDownload().
  10016. Removed torrentMan->addDeltaUploadLength().
  10017. * src/main.cc
  10018. (timeoutSpecified): New variable.
  10019. (main): Set timeoutSpecified to false.
  10020. If the command-line option "--upload-limit" is specified, then
  10021. timeoutSpecified is set to true. This option will remain in the next
  10022. release, but be deprecated in the future release.
  10023. * src/TorrentRequestInfo.h
  10024. (TorrentRequestInfo): Removed const qualifier from op.
  10025. * src/PeerStat.h
  10026. (uploadSpeed): New variable.
  10027. (PeerStat): Added default value to cuid.
  10028. (calculateUploadSpeed): New function.
  10029. (updateUploadLength): New function.
  10030. (getMaxUploadSpeed): New function.
  10031. (getAvgUploadSpeed): New function.
  10032. (reset): Added uploadSpeed. Set status to IDLE.
  10033. * src/TorrentDownloadEngine.h
  10034. (cp): Declared as Time.
  10035. (sessionDownloadLengthArray): Removed.
  10036. (sessionUploadLengthArray): Removed.
  10037. (currentCp): Removed.
  10038. (lastCalcStat): New variable
  10039. (lastElapsed): Removed.
  10040. (sessionDownloadLength): Removed.
  10041. (calculateStat): New function.
  10042. * src/TorrentDownloadEngine.cc
  10043. (initStatistics): Removed lastElapsed, cp[],
  10044. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10045. currentCp, sessionDownloadLength.
  10046. Added cp.reset() and lastCalcStat.reset().
  10047. (calculateSpeed): Changed the name of the argument.
  10048. (calculateStatistics): Rewritten.
  10049. (calculateStat): New function.
  10050. * src/Peer.h
  10051. (PeerStat.h): Included.
  10052. (peerUpload): Removed.
  10053. (peerDownload): Removed.
  10054. (peerStat): New variable.
  10055. (sessionUploadLength): New variable.
  10056. (sessionDownloadLength): New variable.
  10057. (deltaUpload): Removed.
  10058. (deltaDownload): Removed.
  10059. (resetStatus): Made private.
  10060. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10061. Removed peerUpload, peerDownload.
  10062. (updateUploadLength): New function.
  10063. (addDeltaUpload): Removed.
  10064. (updateDownloadLength): New function.
  10065. (resetDeltaUpload): Removed.
  10066. (getDeltaUpload): Removed.
  10067. (addDeltaDownload): Removed.
  10068. (calculateUploadSpeed): New function.
  10069. (resetDeltaDownload): Removed.
  10070. (getDeltaDownload): Removed.
  10071. (calculateDownloadSpeed): New function.
  10072. (getSessionUploadLength): New function.
  10073. (getSessionDownloadLength): New function.
  10074. (activate): New function.
  10075. (deactivate): New function.
  10076. (addPeerUpload): Removed.
  10077. (setPeerUpload): Removed.
  10078. (getPeerUpload): Removed.
  10079. (addPeerDownload): Removed.
  10080. (setPeerDownload): Removed.
  10081. (getPeerDownload): Removed.
  10082. * src/Peer.cc
  10083. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10084. * src/MetalinkRequestInfo.h
  10085. (MetalinkRequestInfo): Removed const qualifier from op.
  10086. * src/RequestInfo.h
  10087. (op): Removed const qualifier.
  10088. (RequestInfo): Removed const qualifier from op.
  10089. * src/prefs.h
  10090. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10091. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10092. * src/PeerInteractionCommand.cc
  10093. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10094. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10095. * src/PeerInteraction.cc
  10096. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10097. * src/main.cc
  10098. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10099. Added the description of "--max-download-limit" option.
  10100. Removed the description of "--upload-limit" option.
  10101. Added the description of "--max-upload-limit" option.
  10102. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10103. Added "--max-download-limit" option and "--max-upload-limit" option.
  10104. Added the warning message if "--upload-limit" option is used.
  10105. * src/DownloadCommand.cc
  10106. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10107. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. To rewrite segment download mechanism for HTTP/FTP download.
  10109. Use BitfieldMan to manage segment download.
  10110. * src/HttpResponseCommand.h
  10111. (executeInternal): Pass the reference of segment.
  10112. * src/AbstractCommand.cc
  10113. (prepareForRetry): Call segmentMan->cancelSegment here.
  10114. (onAbort): Call segmentMan->cancelSegment here.
  10115. * src/HttpDownloadCommand.cc
  10116. (prepareForNextSegment): New function.
  10117. * src/DownloadEngineFactory.cc
  10118. (newConsoleEngine): Removed splitter.
  10119. (newTorrentConsoleEngine): Removed splitter.
  10120. * src/Request.h
  10121. (segment): Renamed from seg.
  10122. * src/FtpInitiateConnectionCommand.h
  10123. (executeInternal): Pass the reference of segment.
  10124. * src/AbstractCommand.h
  10125. (executeInternal): Pass the reference of segment.
  10126. * src/pref.h
  10127. (PREF_SEGMENT_SIZE): New definition.
  10128. * src/HttpProxyRequestCommand.h
  10129. (executeInternal): Pass the reference of segment.
  10130. * src/HttpResponseCommand.cc
  10131. (checkResponse): Allowed status 206 when a request range starts 0.
  10132. (handleDefaultEncoding): Rewritten the code related to Segment.
  10133. (handleOtherEncoding): Rewritten the code related to Segment.
  10134. * src/SegmentMan.h
  10135. (SegmentEntry): New class.
  10136. (SegmentEntries): New type definition.
  10137. (bitfield): New variable.
  10138. (usedSegmentEntries): New variable.
  10139. (onNullBitfield): New function.
  10140. (checkoutSegment): New function.
  10141. (segments): Removed.
  10142. (splitter): Removed.
  10143. (unregisterId): Removed.
  10144. (getSegment): New function(overload)
  10145. (getDownloadedSize): Removed.
  10146. (cancelSegment): New function.
  10147. (completeSegment): New function.
  10148. (initBitfield): New function.
  10149. (hasSegment): New function.
  10150. (getDownloadLength): New function.
  10151. * src/BitfieldMan.h
  10152. (getStartIndex): New function.
  10153. (getEndIndex): New function.
  10154. (getMissingUnusedIndex): New function(overload).
  10155. (getSparseMissingUnusedIndex): New function.
  10156. * src/BitfieldMan.cc
  10157. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10158. (getMissingUnusedIndex): New function(overload).
  10159. (Range): New class.
  10160. (getStartIndex): New function.
  10161. (getEndIndex): New function.
  10162. (getSparseMissingUnusedIndex): New function.
  10163. (isBitSetInternal): Return false if the given index is less than 0.
  10164. * src/HttpInitiateConnectionCommand.h
  10165. (executeInternal): Pass the reference of segment.
  10166. * src/FtpNegotiateCommand.h
  10167. (executeInternal): Pass the reference of segment.
  10168. * src/FtpNegotiateCommand.cc
  10169. (recvSize): Initialize bitfield here.
  10170. * src/FtpTunnelResponseCommand.h
  10171. (executeInternal): Pass the reference of segment.
  10172. * src/HttpConnection.cc
  10173. (createRequest): Rewritten range header processing.
  10174. * src/DownloadCommand.h
  10175. (executeInternal): Pass the reference of segment.
  10176. (prepareForRetry): Removed.
  10177. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10178. function.
  10179. * src/main.cc
  10180. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10181. * src/SegmentMan.cc
  10182. (SegmentMan): Added bitfield. Removed splitter.
  10183. (~SegmentMan): Added bitfield. Removed splitter.
  10184. (unregisterId): Removed.
  10185. (getSegment): Rewritten.
  10186. (updateSegment): Rewritten.
  10187. (save): Rewritten.
  10188. (read): Rewritten.
  10189. (finished): Rewritten.
  10190. (getDownloadedSize): Removed.
  10191. (initBitfield): New function.
  10192. (FindSegmentEntryByIndex): New function object.
  10193. (FindSegmentEntryByCuid): New function object.
  10194. (checkoutSegment): New function.
  10195. (onNullBitfield): New function.
  10196. (getSegment): New function(overload).
  10197. (CancelSegment): New function object.
  10198. (cancelSegment): New function.
  10199. (completeSegment): New function.
  10200. (hasSegment): New function.
  10201. (getDownloadLength): New function.
  10202. * src/FtpInitiateConnectionCommand.cc
  10203. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10204. * src/Segment.h: Rewritten.
  10205. * src/Segment.cc (operator<<): New function.
  10206. * src/HttpDownloadCommand.h
  10207. (prepareForNextSegment): New function.
  10208. * src/Request.cc
  10209. (resetUrl): Made segment null.
  10210. * src/DownloadEngine.cc
  10211. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10212. * src/HttpProxyRequestCommand.h
  10213. (executeInternal): Pass the reference of segment.
  10214. * src/DownloadCommand.cc
  10215. (executeInternal): Rewritten the code related to Segment.
  10216. (prepareForRetry): Removed.
  10217. (prepareForNextSegment): Rewritten.
  10218. * src/FtpTunnelResponseCommand.h
  10219. (executeInternal): Pass the reference of segment.
  10220. To add HTTP 1.1 persistent connection support(experimental)
  10221. * src/HttpRequestCommand.cc
  10222. (executeInternal): Disable keep alive if it is disabled by
  10223. configuration.
  10224. * src/Request.h
  10225. (keepAlive): New variable.
  10226. (isKeepAlive): New function.
  10227. (setKeepAlive): New function.
  10228. * src/pref.h
  10229. (PREF_HTTP_KEEP_ALIVE): New definition.
  10230. * src/HttpResponseCommand.cc
  10231. (executeInternal): Check the remote server supports keep alive.
  10232. * src/HttpConnection.cc
  10233. (createRequest): Send "Connection: close" only if keep alive is
  10234. disabled.
  10235. * src/main.cc
  10236. (main):
  10237. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10238. To add max download speed limit:
  10239. * src/pref.h
  10240. (PREF_MAX_SPEED_LIMIT): New definition.
  10241. * src/PeerInteractionCommand.cc
  10242. (executeInternal): Added max download speed limit. Not tested yet.
  10243. * src/SegmentMan.h
  10244. (PeerStats): New type definition.
  10245. (peerStats): New variable.
  10246. (registerPeerStat): New function.
  10247. (FindPeerStat): New function object.
  10248. (getPeerStat): New function.
  10249. (calculateDownloadSpeed): New function.
  10250. * src/SpeedCalc.h: New class.
  10251. * src/SpeedCalc.cc: New class.
  10252. * src/main.cc
  10253. (main):
  10254. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10255. download speed is not restricted).
  10256. * src/PeerStat.h: New class.
  10257. * src/SegmentMan.cc
  10258. (registerPeerStat): New function.
  10259. (calculateDownloadSpeed): New function.
  10260. * src/DownloadCommand.cc
  10261. (STARTUP_IDLE_TIME): New definition.
  10262. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10263. downloadStart.
  10264. (~DownloadCommand): Call peerStat->downloadStop.
  10265. (executeInternal): Added download speed limitter. Rewritten lowest
  10266. speed limitter.
  10267. * src/HttpConnection.cc
  10268. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10269. * src/AbstractCommand.cc
  10270. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10271. Added hostname to the error message.
  10272. * src/ConsoleDownloadEngine.cc
  10273. (calculateStatistics): Initialize psize with dlSize.
  10274. * src/PieceMessage.cc
  10275. (receivedAction): Do not call peerInteraction->abortPiece here.
  10276. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10277. * src/BitfieldMan.h
  10278. (clearAllUseBit): New function.
  10279. (setAllUseBit): New function.
  10280. * src/BitfieldMan.cc
  10281. (clearAllBit): Do not clear useBitfield here.
  10282. (clearAllUseBit): New function.
  10283. (setAllUseBit): New function.
  10284. * src/Piece.cc
  10285. (clearAllBlock): Call bitfield->clearAllUseBit().
  10286. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. To make filename URL-decoded:
  10288. * src/HttpResponseCommand.h: Updated doc.
  10289. * src/HttpResponseCommand.cc
  10290. (determinFilename): Made filename URL-decoded.
  10291. * src/FtpInitiateConnectionCommand.cc
  10292. (executeInternal): Made filename URL-decoded.
  10293. * src/Util.h (urldecode): New function.
  10294. * src/Util.cc (urldecode): New function.
  10295. To fix a bug that caused assertion failure in ares_strerror:
  10296. * src/NameResolver.cc (callback): Fixed the bug.
  10297. * Release 0.7.3
  10298. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. To add --seed-time and --seed-ratio command-line option:
  10300. * src/Option.h (getAsDouble): New function.
  10301. * src/Option.cc (getAsDouble): New function.
  10302. * src/SeedCheckCommand.h: New class.
  10303. * src/SeedCheckCommand.cc: New class.
  10304. * src/DownloadEngineFactory.cc
  10305. (SeedCheckCommand.h): Included.
  10306. (UnionSeedCriteria.h): Included.
  10307. (TimeSeedCriteria.h): Included.
  10308. (ShareRatioSeedCriteria.h): Included.
  10309. (newTorrentConsoleEngine): Added the processing of seed option.
  10310. * src/SeedCriteria.h: New class.
  10311. * src/ShareRatioSeedCriteria.h: New class.
  10312. * src/TimeSeedCriteria.h: New class.
  10313. * src/UnionSeedCriteria.h: New class.
  10314. * src/prefs.h
  10315. (PREF_SEED_TIME): New definition.
  10316. (PREF_SEED_RATIO): New definition.
  10317. * src/main.cc
  10318. (showUsage): Added --seed-time and --seed-ratio option.
  10319. (main): Added --seed-time and --seed-ratio option.
  10320. Made default log file name "/dev/null".
  10321. * src/SharedHandle.h
  10322. (SharedHandle): Copy constructor. Made it assignable from the
  10323. SharedHandle of the subclasses.
  10324. (operator=): Made it assignable from the SharedHandle of the
  10325. subclasses.
  10326. (getRefCount): New function.
  10327. To add notice log level and the switch to write log to stdout. This
  10328. switch is configurable per log level.
  10329. * src/Logger.h
  10330. (notice): New function.
  10331. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10332. constant.
  10333. * src/LogFactory.cc
  10334. (getInstance): The use of NullLogger was removed. A log message with
  10335. notice log level was made written to stdout along with log file.
  10336. * src/NullLogger.h
  10337. (notice): New function.
  10338. * src/SimpleLogger.h
  10339. (writeHeader): Added the 'file' argument.
  10340. (writeLog): Added the 'file' argument.
  10341. (writeFile): New function.
  10342. (stdoutField): New variable.
  10343. (SimpleLogger): Removed the default constructor.
  10344. (SimpleLogger): Made the default value of logfile 0.
  10345. (debug): Added 'virtual' keyword.
  10346. (info): Added 'virtual' keyword.
  10347. (warn): Added 'virtual' keyword.
  10348. (error): Added 'virtual' keyword.
  10349. (notice): New function.
  10350. (setStdout): New function.
  10351. * src/SimpleLogger.cc
  10352. (WRITE_LOG): Replaced writeLog with writeFile.
  10353. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10354. (SimpleLogger): Removed the default constructor.
  10355. (setStdout): New function.
  10356. (writeLog): Added the handling of NOTICE log level.
  10357. (writeFile): New function.
  10358. (notice): New function.
  10359. * src/TorrentMan.h: Updated doc.
  10360. * src/BitfieldMan.h: Updated doc.
  10361. * src/TrackerWatcherCommand.cc
  10362. (execute): Return true if error occurred in the request to the tracker
  10363. and halt is requested.
  10364. * src/TrackerUpdateCommand.cc
  10365. (execute): Return true if error occurred in the request to the tracker
  10366. and halt is requested.
  10367. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10368. DownloadEngine:
  10369. * src/TorrentConsoleDownloadEngine.h
  10370. (onSelectiveDownloadingCompletes): Removed.
  10371. * src/TorrentConsoleDownloadEngine.cc
  10372. (onSelectiveDownloadingCompletes): Removed.
  10373. * src/TorrentDownloadEngine.h
  10374. (onEndOfRun): Added 'virtual' keyword.
  10375. (afterEachIteration): Removed.
  10376. (onSelectiveDownloadingCompletes): Removed.
  10377. * src/TorrentDownloadEngine.cc
  10378. (onEndOfRun): Removed filenameFixed.
  10379. (afterEachIteration): Removed.
  10380. * src/TorrentMan.cc
  10381. (completePiece): Call onDownloadComplete here.
  10382. (onDownloadComplete): Added 2 log messages.
  10383. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10384. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10385. * src/NameResolver.h: Added the prototype declaration of callback().
  10386. To support c-ares library:
  10387. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10388. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10389. * src/FtpInitiateConnectionCommand.h:
  10390. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10391. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10392. * src/HttpInitiateConnectionCommand.h:
  10393. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10394. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10395. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10396. #1542285 by tizianomueller)
  10397. * src/HttpInitiateConnectionCommand.cc:
  10398. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10399. * src/FtpInitiateConnectionCommand.cc:
  10400. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10401. * src/DownloadEngine.h:
  10402. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10403. * src/DownloadEngine.cc:
  10404. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10405. To fix the bug that causes compilation failure with metalink-support
  10406. disabled(bug#1543587):
  10407. * src/main.cc: Fixed with the patch by tizianomueller.
  10408. * Release 0.7.2
  10409. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. * src/main.cc
  10411. (main): Added a message to inform users that aria2 is starting to
  10412. verify checksum.
  10413. * src/RequestInfo.cc
  10414. (printDownloadAbortMessage): Added a message to inform users that
  10415. transfer can be resumed.
  10416. * src/FeatureConfig.cc
  10417. (FEATURE_ASYNC_DNS): New definition.
  10418. (FeatureConfig): Added aysnc DNS entry.
  10419. To replace CommandUuid with Command* in SocketEntry and
  10420. NameResolverEntry:
  10421. * src/DownloadEngine.h
  10422. (CommandUuids): Removed.
  10423. (SocketEntry::commandUuid): Removed.
  10424. (SocketEntry::command): New variable.
  10425. (SocketEntry::SocketEntry): Updated.
  10426. (SocketEntry::operator==): Updated.
  10427. (NameResolverEntry::commandUuid): Removed.
  10428. (NameResolverEntry::command): New variable.
  10429. (NameResolverEntry::NameResolverEntry): Updated.
  10430. (NameResolverEntry::operator==): Updated.
  10431. (waitData): Changed the argument type.
  10432. (addSocketForReadCheck): Changed the argument type.
  10433. (deleteSocketForReadCheck): Changed the argument type.
  10434. (addSocketForWriteCheck): Changed the argument type.
  10435. (deleteSocketForWriteCheck): Changed the argument type.
  10436. (addNameResolverCheck): Changed the argument type.
  10437. (deleteNameResolverCheck): Changed the argument type.
  10438. * src/DownloadEngine.cc
  10439. (FindCommand): Removed.
  10440. (run): Removed activeUuid. Added activeCommands instead.
  10441. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10442. (AccumulateActiveCommand): New function object.
  10443. (waitData): Use AccumulateActiveCommand.
  10444. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10445. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10446. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10447. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10448. (addNameResolverCheck): Use Command instead of CommandUuid.
  10449. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10450. * src/AbstractCommand.cc
  10451. (disableReadCheckSocket): Updated according to the changes in
  10452. DownloadEngine.
  10453. (setReadCheckSocket): Updated according to the changes in
  10454. DownloadEngine.
  10455. (disableWriteCheckSocket): Updated according to the changes in
  10456. DownloadEngine.
  10457. (setWriteCheckSocket): Updated according to the changes in
  10458. DownloadEngine.
  10459. (setNameResolverCheck): Updated according to the changes in
  10460. DownloadEngine.
  10461. (disableNameResolverCheck): Updated according to the changes in
  10462. DownloadEngine.
  10463. * src/AbstractCommand.cc
  10464. (disableReadCheckSocket): Updated according to the changes in
  10465. DownloadEngine.
  10466. (setReadCheckSocket): Updated according to the changes in
  10467. DownloadEngine.
  10468. (disableWriteCheckSocket): Updated according to the changes in
  10469. DownloadEngine.
  10470. (setWriteCheckSocket): Updated according to the changes in
  10471. DownloadEngine.
  10472. * release 0.7.1
  10473. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10474. To handle the case where some BitTorrent tracker requires all letters
  10475. except for [A-Za-z0-9] is URL encoded.
  10476. * src/Util.h
  10477. (torrentUrlencode): New function.
  10478. * src/Util.cc
  10479. (ctype.h): Included.
  10480. (torrentUrlencode): New function.
  10481. * src/TrackerWatcherCommand.cc
  10482. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10483. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. To add asynchronous DNS support(libares):
  10485. * src/AbstractCommand.h
  10486. (setNameResolverCheck): New function.
  10487. (disableNameResolverCheck): New function
  10488. (resolveHostname): New function.
  10489. * src/AbstractCommand.cc
  10490. (setNameResolverCheck): New function.
  10491. (disableNameResolverCheck): New function
  10492. (resolveHostname): New function.
  10493. * src/FtpInitiateConnectionCommand.h
  10494. (nameResolver): New function.
  10495. * src/FtpInitiateConnectionCommand.cc
  10496. (Util.h): Included.
  10497. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10498. disableWriteCheckSocket.
  10499. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10500. (executeInternal): Added async DNS support.
  10501. * src/HttpInitiateConnectionCommand.h
  10502. (nameResolver): New function.
  10503. * src/HttpInitiateConnectionCommand.cc
  10504. (DlRetryEx.h): Included.
  10505. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10506. disableWriteCheckSocket.
  10507. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10508. (executeInternal): Added async DNS support.
  10509. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10510. by extern "C" declaration.
  10511. * src/NameResolver.cc: New class.
  10512. * src/Util.h:
  10513. (isNumberAndDotsNotation): New function
  10514. * src/Util.cc
  10515. (isNumberAndDotsNotation): New function.
  10516. * src/DownloadEngine.h
  10517. (NameResolver.h): Included.
  10518. (NameResolverEntry): New class.
  10519. (NameResolverEntries): New type definition.
  10520. (addNameResolverCheck): New function.
  10521. (deleteNameResolverCheck): New function.
  10522. * src/DownloadEngine.cc
  10523. (run): Initialize cp with 0.
  10524. (SetDescriptor::operator()): Added for NameResolverEntry.
  10525. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10526. (waitData): Check nameResolver entries.
  10527. (updateFdSet): Update fds in nameResolver entries.
  10528. (addNameResolverCheck): New function.
  10529. (deleteNameResolverCheck): new function.
  10530. * src/PeerInteractionCommand.cc
  10531. (executeInternal): Fixed wrong socket handling.
  10532. * src/main.cc
  10533. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10534. * src/Util.cc
  10535. (fileChecksum): Removed the call to ctx.digestReset().
  10536. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10537. * po/ru.po: Azamat sent me Russian translation.
  10538. * src/FtpNegotiateCommand.cc
  10539. (recvGreeting): Call disableWriteCheckSocket just after
  10540. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10541. (recvRetr): Recognized status code 125 as a acceptable response code.
  10542. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10543. case-insesitive filesystem(BUG#1531057).
  10544. * src/Time.h: Renamed as TimeA2.h.
  10545. * src/Time.cc: Renamed as TimeA2.cc.
  10546. * src/TimeA2.h: New class.
  10547. * src/TimeA2.cc: New class.
  10548. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10549. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10550. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10551. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10552. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10553. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10554. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10555. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10556. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10557. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10558. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10559. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10560. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10561. * release 0.7.0
  10562. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. * src/PeerChokeCommand.h
  10564. (PeerChokeCommand): Rearranged the arguments.
  10565. * src/PeerChokeCommand.cc
  10566. (PeerChokeCommand): Rearranged the arguments.
  10567. * src/MetalinkEntry.h
  10568. (Checksum.h): Included.
  10569. (md5): Removed.
  10570. (sha1): Removed.
  10571. (checksum): New variable.
  10572. (operator=): Updated.
  10573. (check): Removed.
  10574. * src/prefs.h
  10575. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10576. (PREF_FOLLOW_TORRENT): New definition.
  10577. (PREF_SELECT_FILE): New definition.
  10578. (PREF_FOLLOW_METALINK): New definition.
  10579. * src/MetalinkResource.h
  10580. (TYPE_HTTPS): Added to enum TYPE.
  10581. * src/TorrentMan.cc
  10582. (~TorrentMan): Rewritten.
  10583. * src/MultiDiskWriter.cc
  10584. (MultiDiskAdaptor): Updated according to the changes in
  10585. MessageDigestContext.
  10586. (~MultiDiskAdaptor): Updated according to the changes in
  10587. MessageDigestContext.
  10588. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10589. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10590. * src/Util.h
  10591. (fileChecksum): Updated according to the changes in
  10592. MessageDigestContext.
  10593. * src/Util.cc
  10594. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10595. (fileChecksum): Updated according to the changes in
  10596. MessageDigestContext.
  10597. * src/messageDigest.h: Rewritten.
  10598. * src/MetalinkEntry.cc
  10599. (check): Removed.
  10600. (Supported): Updated.
  10601. (dropUnsupportedResource): Fixed a memory leak.
  10602. * src/ShaVisitor.cc
  10603. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10604. (~ShaVisitor): Updated according to the changes in
  10605. MessageDigestContext.
  10606. (visit): Updated according to the changes in MessageDigestContext.
  10607. * src/main.cc
  10608. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10609. command-line option added.
  10610. * src/DownloadEngine.h
  10611. (SocketEntry): New class.
  10612. (SocketEntries): New definition.
  10613. (PairFind): Removed.
  10614. (SockCmdMap): Removed.
  10615. * src/DownloadEngine.cc
  10616. (DownloadEngine): Rewritten.
  10617. (~DownloadEngine): Rewritten.
  10618. (run): Renamed activeCommandUuids as activeUuids.
  10619. (SetDescriptor): Rewritten.
  10620. (AccumulateActiveCommandUuid): Removed.
  10621. (AccumulateActiveUuid): New function object.
  10622. (waitData): Rewritten.
  10623. (updateFdSet): Rewritten.
  10624. (addSocket): Rewritten.
  10625. (deleteSocket): Rewritten.
  10626. (addSocketForReadCheck): Rewritten.
  10627. (deleteSocketForReadCheck): Rewritten.
  10628. (addSocketForWriteCheck): Rewritten.
  10629. (deleteSocketForWriteCheck): Rewritten.
  10630. * src/Xml2MetalinkProcessor.cc
  10631. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10632. * src/DownloadCommand.cc
  10633. (executeInternal): Added the check routine for lowest speed limit.
  10634. * src/AbstractDiskWriter.cc
  10635. (AbstractDiskWriter): Updated according to the changes in
  10636. MessageDigestContext.
  10637. (~AbstractDiskWriter): Updated according to the changes in
  10638. MessageDigestContext.
  10639. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10640. * src/RequestInfo.h: New class.
  10641. * src/UrlRequestInfo.h: New class.
  10642. * src/UrlRequestInfo.cc: New class.
  10643. * src/TorrentRequestInfo.h: New class.
  10644. * src/TorrentRequestInfo.cc: New class.
  10645. * src/MetalinkRequestInfo.h: New class.
  10646. * src/MetalinkRequestInfo.cc: New class.
  10647. * src/Checksum.h: New class.
  10648. * src/DownloadEngineFactory.h: New class.
  10649. * src/DownloadEngineFactory.cc: New class.
  10650. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. * src/Option.h
  10652. (getAsBool): New function.
  10653. * src/Option.cc
  10654. (prefs.h): Included.
  10655. (defined): 0-length value is now recognized as undefined.
  10656. (getAsInt): Rewritten.
  10657. (getAsLLInt): Rewritten.
  10658. (getAsBool): New function.
  10659. * src/FeatureConfig.h: Rewritten.
  10660. * src/FeatureConfig.cc: Rewritten.
  10661. * src/prefs.h
  10662. (PREF_STDOUT_LOG): New definition.
  10663. (PREF_LOG): New definition.
  10664. (PREF_DIR): New definition.
  10665. (PREF_OUT): New definition.
  10666. (PREF_SPLIT): New definition.
  10667. (PREF_DAEMON): New definition.
  10668. (PREF_REFERER): New definition.
  10669. (PREF_TORRENT_FILE): New definition.
  10670. (PREF_LISTEN_PORT): New definition.
  10671. (PREF_METALINK_FILE): New definition.
  10672. (PREF_METALINK_VERSION): New definition.
  10673. (PREF_METALINK_LANGUAGE): New definition.
  10674. (PREF_METALINK_OS): New definition.
  10675. (PREF_METALINK_SERVERS): New definition.
  10676. * src/main.cc
  10677. (main): Following command-line parameters are now put into Option
  10678. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10679. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10680. metalinkLanguage, metalinkOs, metalinkServers
  10681. To fix the bug that aria2 can not handle http response header properly.
  10682. * src/HttpHeader.cc
  10683. (put): Made name lowercased.
  10684. (defined): Made name lowercased.
  10685. (getFirst): Made name lowercased.
  10686. (get): Made name lowercased.
  10687. (getFirstAsInt): Rewritten.
  10688. (getFirstAsLLInt): Rewritten.
  10689. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. * src/TorrentMan.h:
  10691. (advertisePiece): Updated doc.
  10692. (getAdvertisedPieceIndexes): Updated doc.
  10693. (removeAdvertisedPiece); New function.
  10694. * src/TorrentMan.cc
  10695. (FindElapsedHave): New function object.
  10696. (removeAdvertisedPiece): New function.
  10697. * src/HaveEraseCommand.h: New class.
  10698. * src/HaveEraseCommand.cc: New class.
  10699. * src/FeatureConfig.h: New class.
  10700. * src/FeatureConfig.cc: New class.
  10701. * src/Request.h
  10702. (defaultPorts): Removed.
  10703. * src/Request.cc
  10704. (FeatureConfig.h): Included.
  10705. (Request): Removed the statements related to defaultPorts.
  10706. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10707. A default port number is now retrieved from FeatureConfig.
  10708. * src/main.cc
  10709. (HaveEraseCommand.h): Included.
  10710. (showVersion): Added the output of feature list.
  10711. (main): Added HaveEraseCommand to command queue in BitTorrent
  10712. downloading.
  10713. * src/PeerInteractionCommand.h
  10714. (chokeCheckPoint): Commented out.
  10715. (periodicExecPoint): New variable.
  10716. * src/PeerInteractionCommand.cc
  10717. (executeInternal): Following methods are now called in at least every
  10718. 0.5 seconds to reduce CPU usage:
  10719. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10720. checkHave(), sendKeepAlive().
  10721. (checkLongTimePeerChoking): Commented out.
  10722. * src/BitfieldMan.h
  10723. (getNthBitIndex): Changed the method signature.
  10724. (getMissingIndexRandomly): Changed the method signature.
  10725. * src/BitfieldMan.cc
  10726. (getNthBitIndex): Rewritten
  10727. (getMissingIndexRandomly): Rewritten.
  10728. (hasMissingPiece): Rewritten.
  10729. (getMissingIndex): Refactored.
  10730. (getMissingUnusedIndex); Refactored.
  10731. (getMissingIndex): Refactored.
  10732. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. * src/PeerMessage.h
  10734. (Piece.h): Included.
  10735. (SharedHandle.h): Included.
  10736. (invalidate): New variable.
  10737. (uploading): New variable.
  10738. (isInvalidate): New function.
  10739. (isUploading): New function.
  10740. (onPush): New function.
  10741. (onChoked): New function.
  10742. (onCanceled): New function.
  10743. (onAbortPiece): New function.
  10744. (PeerMessageHandle): New type definition.
  10745. * src/PeerMessage.cc
  10746. (PeerMessage): Added the initialization for invalidate and uploading.
  10747. * src/CancelMessage.h
  10748. (CancelMessage): Rewritten.
  10749. * src/RejectMessage.h
  10750. (RejectMessage): Rewritten.
  10751. * src/Metalinker.h
  10752. (operator=): Defined.
  10753. * src/MetaEntry.h
  10754. (operator=): Defined.
  10755. * src/MetalinkResource.h
  10756. (operator=): Defined.
  10757. * src/AllowedFastMessage.h
  10758. (AllowedFastMessage): Rewritten.
  10759. * src/HandshakeMessage.h
  10760. (HandshakeMessage): New function(overload).
  10761. * src/HandshakeMessage.cc
  10762. (HandshakeMessage): Rewritten.
  10763. (init): New function.
  10764. * src/HaveMessage.h
  10765. (HaveMessage): Rewritten.
  10766. * src/Time.h
  10767. (operator=): Defined the function body here.
  10768. * src/Time.cc
  10769. (operator=): Removed.
  10770. * src/SocketCore.h
  10771. (operator==): Defined here.
  10772. (operator!=): Defined here.
  10773. (operator<): Defined here.
  10774. * src/SocketCore.cc
  10775. (operator==): Removed.
  10776. (operator<): Removed.
  10777. * src/BitfieldMan.h
  10778. (operator=): Defined the function body here.
  10779. * src/BitfieldMan.cc
  10780. (operator=): Removed.
  10781. * src/TorrentMan.h
  10782. (deleteErrorPeer): Removed.
  10783. (deleteUnusedPeer); New function.
  10784. * src/TorrentMan.cc
  10785. (addPeer): Call deleteUnusedPeer.
  10786. (deleteErrorPeer): Removed.
  10787. (deleteUnusedPeer): New function.
  10788. * src/PeerAbstractCommand.h
  10789. (setNoCheck): New function.
  10790. (noCheck): New variable.
  10791. * src/PeerAbstractCommand.cc
  10792. (PeerAbstractCommand): Added the initialization of noCheck.
  10793. (execute): Added a check for noCheck.
  10794. (setNoCheck): New function.
  10795. * src/Util.h
  10796. (stdio.h): Included.
  10797. * src/Util.cc
  10798. (unistd.h): Included.
  10799. * src/DefaultDiskWriter.cc
  10800. (unistd.h): Included.
  10801. * src/Peer.h
  10802. (operator==): Defined the function body here.
  10803. (operator!=): Defined the function body here.
  10804. * src/Peer.cc
  10805. (operator==): Removed.
  10806. (operator!=): Removed.
  10807. * src/Piece.h
  10808. (Piece): Defined the function body here(copy constructor).
  10809. (operator=): Defined the function body here.
  10810. (operator==): Defined the function body here.
  10811. * src/Piece.cc
  10812. (Piece): Removed(copy constructor).
  10813. (operator=): Removed.
  10814. (operator==): Removed.
  10815. * src/PeerMessageUtil.h
  10816. (ChokeMessage.h): Removed.
  10817. (UnchokeMessage.h): Removed.
  10818. (InterestedMessage.h): Removed.
  10819. (NotInterestedMessage.h): Removed.
  10820. (HaveMessage.h): Removed.
  10821. (BitfieldMessage.h): Removed.
  10822. (RequestMessage.h): Removed.
  10823. (CancelMessage.h): Removed.
  10824. (PieceMessage.h): Removed.
  10825. (HandshakeMessage.h): Removed.
  10826. (KeepAliveMessage.h): Removed.
  10827. (PortMessage.h): Removed.
  10828. (HaveAllMessage.h): Removed.
  10829. (HaveNoneMessage.h): Removed.
  10830. (PeerConnection.h): Removed.
  10831. (HandshakeMessage.h): Included.
  10832. * src/BitfieldMessage.h
  10833. (init): New function.
  10834. (BitfieldMessage): Rewritten.
  10835. (BitfieldMessage): New function(overload).
  10836. * src/RequestSlot.h
  10837. (operator=): Defined the function body here.
  10838. (operator==): Defined the function body here.
  10839. * src/RequestSlot.cc
  10840. (operator=): Removed.
  10841. (operator==): Removed.
  10842. To remove the dependency on the PeerMessage subclass from
  10843. PeerInteraction:
  10844. * src/PeerMessageFactory.h: New class.
  10845. * src/PeerMessageFactory.cc: New class.
  10846. * src/SimplePeerMessage.cc
  10847. (send): If invalidate is true then do nothing.
  10848. * src/PeerInteractionCommand.cc
  10849. (HandshakeMessage.h): Included.
  10850. (KeepAliveMessage.h): Included.
  10851. (ChokeMessage.h): Included.
  10852. (UnchokeMessage.h): Included.
  10853. (HaveMessage.h): Included.
  10854. (executeInternal): Call setNoCheck().
  10855. Removed setWriteCheckSocket(socket).
  10856. * src/PeerInteraction.h
  10857. (ChokeMessage.h): Removed.
  10858. (UnchokeMessage.h): Removed.
  10859. (InterestedMessage.h): Removed.
  10860. (NotInterestedMessage.h): Removed.
  10861. (HaveMessage.h): Removed.
  10862. (BitfieldMessage.h): Removed.
  10863. (RequestMessage.h): Removed.
  10864. (CancelMessage.h): Removed.
  10865. (PieceMessage.h): Removed.
  10866. (HandshakeMessage.h): Removed.
  10867. (KeepAliveMessage.h): Removed.
  10868. (PortMessage.h): Removed.
  10869. (HaveAllMessage.h): Removed.
  10870. (HaveNoneMessage.h): Removed.
  10871. (RejectMessage.h): Removed.
  10872. (AllowedFastMessage.h): Removed.
  10873. (SuggestPieceMessage.h): Removed.
  10874. (PeerMessageFactory.h): Included.
  10875. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10876. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10877. (PeerMessageFactory): New variable.
  10878. (createPeerMessage): Removed.
  10879. (createHandshakeMessage): Removed.
  10880. (setPeerMessageCommonProperty): Removed.
  10881. (addRequestSlot): New function.
  10882. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10883. (getPeerMessageFactory): New function.
  10884. (createRequestMessage): Removed.
  10885. (createCancelMessage): Removed.
  10886. (createPieceMessage): Removed.
  10887. (createHaveMessage): Removed.
  10888. (createChokeMessage): Removed.
  10889. (createUnchokeMessage): Removed.
  10890. (createInterestedMessage): Removed.
  10891. (createNotInterestedMessage): Removed.
  10892. (createBitfieldMessage): Removed.
  10893. (createKeepAliveMessage): Removed.
  10894. (createHaveAllMessage): Removed.
  10895. (createHaveNoneMessage): Removed.
  10896. (createRejectMessage): Removed.
  10897. (createAllowedFastMessage): Removed.
  10898. * src/PeerInteraction.cc
  10899. (PeerInteraction): Allocate PeerMessageFactory here.
  10900. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10901. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10902. PieceMessage::ID.
  10903. (addMessage): Simplified by using PeerMessage::onPush().
  10904. (addRequestSlot): New function.
  10905. (rejectAllPieceMessageInQueue): Simplified by using
  10906. PeerMessage::onChoked().
  10907. (rejectPieceMessageInQueue): Simplified by using
  10908. PeerMessage::onCanceled().
  10909. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10910. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10911. (createHandshakeMessage): Removed.
  10912. (createPeerMessage): Removed.
  10913. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10914. (setPeerMessageCommonProperty): Removed.
  10915. (createRequestMessage): Removed.
  10916. (createCancelMessage): Removed.
  10917. (createPieceMessage): Removed.
  10918. (createHaveMessage): Removed.
  10919. (createChokeMessage): Removed.
  10920. (createUnchokeMessage): Removed.
  10921. (createInterestedMessage): Removed.
  10922. (createNotInterestedMessage): Removed.
  10923. (createBitfieldMessage): Removed.
  10924. (createKeepAliveMessage): Removed.
  10925. (createHaveAllMessage): Removed.
  10926. (createHaveNoneMessage): Removed.
  10927. (createRejectMessage): Removed.
  10928. (createAllowedFastMessage): Removed.
  10929. * src/PieceMessage.h
  10930. (createRejectMessage): New function.
  10931. (PieceMessage): Rewritten.
  10932. (onChoked): New function.
  10933. (onCanceled): New function.
  10934. * src/PieceMessage.cc
  10935. (send): If invalidate is true then do nothing, just return.
  10936. (createRejectMessage): New function.
  10937. (onChoked): New function.
  10938. (onCanceled): New function.
  10939. * src/RequestMessage.h
  10940. (RequestMessage): Rewritten.
  10941. (onPush): New function.
  10942. (onAbortPiece): New function.
  10943. * src/RequestMessage.cc
  10944. (onPush): New function.
  10945. (onAbortPiece): New function.
  10946. Update fd_set when a socket is added or deleted in order to improve
  10947. performance:
  10948. * src/DownloadEngine.h
  10949. (rfdset): New variable.
  10950. (wfdset): New variable.
  10951. (updateFdSet): New function.
  10952. * src/DownloadEngine.cc
  10953. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10954. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10955. (waitData): Copy rfdset and wfdset.
  10956. (updateFdSet): New function.
  10957. (addSocket): Call updateFdSet.
  10958. (deleteSocket): Call updateFdSet.
  10959. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. To add the support for Metalink3.0 backward compatible links:
  10961. * src/Request.h
  10962. (SAFE_CHARS): Added '#'.
  10963. (METALINK_MARK): New definition.
  10964. * src/Request.cc
  10965. (parseUrl): Added the support for Metalink3.0 backward compatible
  10966. links.
  10967. etc
  10968. * src/PeerInteraction.cc
  10969. (MsgPushBack): Removed.
  10970. (sendMessages): Use STL copy and back_inserter.
  10971. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10972. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10973. * src/TorrentMan.h
  10974. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10975. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. * src/SharedHandle.h: New class.
  10977. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10978. * src/HttpResponseCommand.h
  10979. (HttpResponseCommand): Wrapped Socket.
  10980. * src/SocketCore.h
  10981. (operator==): New function.
  10982. (operator!=): New function.
  10983. (operator<): New function.
  10984. (getSockfd): New function.
  10985. (isOpen): New function.
  10986. (writeData): New function.
  10987. * src/SocketCore.cc
  10988. (operator==): New function.
  10989. (operator!=): New function.
  10990. (operator<): New function.
  10991. * src/AbstractCommand.h
  10992. (socket): Changed its type to SocketHandle.
  10993. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10994. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10995. (disableReadCheckSocket): New function.
  10996. (disableWriteCheckSocket): New function.
  10997. (readCheckTarget): Changed its type to SocketHandle.
  10998. (writeCheckTarget): Changed its type to SocketHandle.
  10999. (AbstractCommand): Replaced Socket with SocketHandle.
  11000. * src/AbstractCommand.cc
  11001. (AbstractCommand): Replaced Socket with SocketHandle.
  11002. (~AbstractCommand): Removed the deallocation for Socket object.
  11003. (disableReadCheckSocket): New function.
  11004. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11005. (disableWriteCheckSocket): New function.
  11006. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11007. * src/HttpDownloadCommand.cc
  11008. (DownloadCommand): Replaced Socket with SocketHandle.
  11009. * src/PeerAbstractCommand.h
  11010. (socket): Changed its type to SocketHandle.
  11011. (peer): Changed its type to PeerHandle.
  11012. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11013. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11014. (disableReadCheckSocket): New function.
  11015. (disableWriteCheckSocket): New function.
  11016. (readCheckTarget): Changed its type to SocketHandle.
  11017. (writeCheckTarget): Changed its type to SocketHandle.
  11018. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11019. Replaced Peer with PeerHandle.
  11020. * src/HttpRequestCommand.cc
  11021. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11022. Use disableReadCheckSocket.
  11023. * src/PeerInitiateConnectionCommand.h
  11024. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11025. * src/PeerChokeCommand.cc
  11026. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11027. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11028. (execute): Use PeerHandle.
  11029. * src/PeerConnection.h
  11030. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11031. (socket): Changed its type to SocketHandle.
  11032. (PeerConnection): Replaced Socket with SocketHandle.
  11033. * src/PeerConnection.cc
  11034. (PeerConnection): Replaced Socket with SocketHandle.
  11035. * src/PeerInteractionCommand.h
  11036. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11037. Replaced Peer with PeerHandle.
  11038. * src/PeerInteractionCommand.cc
  11039. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11040. Replaced Peer with PeerHandle.
  11041. (executeInternal): Use disableWriteCheckSocket.
  11042. Use HandshakeMessageHandle.
  11043. (receiveMessages): Use PeerMessageHandle.
  11044. (prepareForNextPeer): Use PeerHandle.
  11045. * src/HttpProxyRequestCommand.h
  11046. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11047. * src/HttpResponseCommand.cc
  11048. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11049. * src/TorrentMan.cc
  11050. (nullPeer): Added external reference.
  11051. (~TorrentMan): Removed the deallocation of the elements of peers.
  11052. (addPeer): Rewritten.
  11053. (isPeerAvailable): Use nullPeer.
  11054. (deleteOldpeers): Replaced with deleteErrorPeer.
  11055. (deleteErrorPeer): New function.
  11056. (getPeer): Use PeerHandle and nullPeer.
  11057. (hasMissingPiece): Replaced Peer with PeerHandle.
  11058. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11059. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11060. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11061. (getMissingPiece): Replaced Peer with PeerHandle.
  11062. * src/FtpNegotiateCommand.cc
  11063. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11064. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11065. (recvGreeting): Use disableWriteCheckSocket.
  11066. (recvPasv): Removed the allocation of Socket.
  11067. Use disableReadCheckSocket.
  11068. (sendRestPasv): Use disableWriteCheckSocket.
  11069. (recvRetr): Changed assertion.
  11070. * src/PeerInteraction.h
  11071. (SharedHandle.h): Included SharedHandle.h.
  11072. (PeerMessageHandle): New type definition.
  11073. (HandshakeMessageHandle): New type definition.
  11074. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11075. (peer): Changed its type to PeerHandle.
  11076. (createHandshakeMessage): Replaced HandshakeMessage with
  11077. HandshakeMessageHandle.
  11078. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11079. (PeerInteraction): Replaced Peer with PeerHandle.
  11080. Replaced Socket with SocketHandle.
  11081. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11082. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11083. (receiveHandshake): Replaced HandshakeMessage with
  11084. HandshakeMessageHandle.
  11085. * src/PeerInteraction.cc
  11086. (PeerInteraction): Replaced Peer with PeerHandle.
  11087. Replaced Socket with SocketHandle.
  11088. (~PeerInteraction): Removed the deallocation of the elements of
  11089. messageQueue.
  11090. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11091. (isSendingMessageInProgress): Replaced PeerMessage with
  11092. PeerMessageHandle.
  11093. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11094. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11095. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11096. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11097. (abortPiece): Use PeerMessageHandle.
  11098. (receiveHandshake): Replaced HandshakeMessage with
  11099. HandshakeMessageHandle. Removed try-catch block.
  11100. (createHandshakeMessage): Replaced HandshakeMessage with
  11101. HandshakeMessageHandle.
  11102. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11103. Removed try-catch block.
  11104. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11105. * src/HttpProxyResponseCommand.cc
  11106. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11107. * src/FtpTunnelResponseCommand.h
  11108. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11109. * src/HttpConnection.cc
  11110. (HttpConnection): Replaced Socket with SocketHandle.
  11111. * src/PeerAbstractCommand.cc
  11112. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11113. (~PeerAbstractCommand): Removed the deallocation of socket.
  11114. Use disableReadCheckSocket, disableWriteCheckSocket.
  11115. (disableReadCheckSocket): New function.
  11116. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11117. (disableWriteCheckSocket): New function.
  11118. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11119. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11120. * src/FtpTunnelRequestCommand.cc
  11121. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11122. (~FtpTunnelRequestCommand): Corrected indentation.
  11123. * src/DownloadCommand.h
  11124. (DownloadCommand): Replaced Socket with SocketHandle.
  11125. * src/PeerListenCommand.cc
  11126. (PeerListenCommand): Removed the initialization of socket.
  11127. (~PeerListenCommand): Removed the deallocation of socket.
  11128. (bindPort): Use SocketHandle.
  11129. (execute): Use SocketHandle and PeerHandle.
  11130. * src/FtpDowndloadCommand.cc
  11131. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11132. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11133. * src/main.cc
  11134. (main): Corrected indentation.
  11135. * src/HttpInitiateConnectionCommand.cc
  11136. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11137. (executeInternal): Removed the allocation of socket.
  11138. * src/HttpRequestCommand.h
  11139. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11140. * src/FtpNegotiationCommand.h
  11141. (dataSocket): Changed its type to SocketHandle.
  11142. (serverSocket): Changed its type to SocketHandle.
  11143. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11144. * src/TorrentMan.h
  11145. (MAX_PEER_UPDATE): Removed.
  11146. (MAX_PEERS): New definition.
  11147. (Peers): The element is now of type PeerHandle.
  11148. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11149. (getPeer): Replaced Peer with PeerHandle.
  11150. (deleteOldErrorPeers): Removed.
  11151. (deleteErrorPeer): New function.
  11152. (hasMissingPiece): Replaced Peer with PeerHandle.
  11153. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11154. (getMissingPiece): Replaced Peer with PeerHandle.
  11155. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11156. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11157. (addActivePeer): Replaced Peer with PeerHandle.
  11158. (deleteActivePeer): Replaced Peer with PeerHandle.
  11159. Added a check for the return value of find.
  11160. * src/FtpTunnelResponseCommand.cc
  11161. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11162. * src/FtpInitiateConnectionCommand.cc
  11163. (executeInternal): Removed the allocation of socket.
  11164. * src/DownloadEngine.h
  11165. (Sockets): An element is now of type SocketHandle.
  11166. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11167. (CommandUuids): New type definition.
  11168. (rsockets): Changed its type to SockCmdMap.
  11169. (wsockets): Changed its type to SockCmdMap.
  11170. (addSocket): Rewritten.
  11171. (deleteSocket): Rewritten.
  11172. (addSocketForReadCheck): Rewritten.
  11173. (deleteSocketForReadCheck): Rewritten.
  11174. (addSocketForWriteCheck): Rewritten.
  11175. (deleteSocketForWriteCheck): Rewritten.
  11176. (PairFind): New template class.
  11177. * src/HttpDownloadCommand.h
  11178. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11179. * src/FtpConnection.cc
  11180. (FtpConnection): Replaced Socket with SocketHandle.
  11181. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11182. block.
  11183. * src/InitiateConnectionCommandFactory.cc
  11184. (DlAbortEx.h): Included DlAbortEx.h.
  11185. (createInitiateConnectionCommand): Throw exception if the protocol of
  11186. requested URI is not supported.
  11187. * src/Peer.cc
  11188. (nullPeer): Changed its type to PeerHandle.
  11189. (operator==): New function.
  11190. (operator!=): New function.
  11191. * src/Peer.h
  11192. (SharedHandle.h): Included SharedHandle.h.
  11193. (operator==): New function.
  11194. (operator!=): New function.
  11195. (Peer): Added the default constructor.
  11196. Use resetStatus() to initialize member variables.
  11197. (nullPeer): Removed.
  11198. * src/TrackerUpdateCommand.cc
  11199. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11200. with MIN_PEERS.
  11201. * src/PeerListenCommand.h
  11202. (socket): Changed its type to SocketHandle.
  11203. * src/Command.h
  11204. (CommandUuid): New type definition.
  11205. (uuid): New variable.
  11206. (uuidGen): New variable.
  11207. (Command): Added the initialization of uuid.
  11208. (getUuid): New function.
  11209. * src/Socket.h
  11210. (Socket): Removed.
  11211. (SocketHandle): New type definition.
  11212. * src/DownloadEngine.h
  11213. (FindCommand): New function object.
  11214. (run): The portion of socket check was rewritten.
  11215. (SetDescriptor): New function object.
  11216. (AccumulateActiveCommandUuid): New function object.
  11217. (waitData): Rewritten.
  11218. (addSocket): Rewritten.
  11219. (deleteSocket): Rewritten.
  11220. (addSocketForReadCheck): Rewritten.
  11221. (addSocketForWriteCheck): Rewritten.
  11222. (deleteSocketForReadCheck): Rewritten.
  11223. (deleteSocketForWriteCheck): Rewritten.
  11224. * src/HttpProxyResponseCommand.h
  11225. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11226. * src/HttpConnection.h
  11227. (socket): Changed its type to SocketHandle.
  11228. (HttpConnection): Replaced Socket with SocketHandle.
  11229. * src/PeerInitiateConnectionCommand.cc
  11230. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11231. (executeInternal): Removed the allocation of socket.
  11232. (prepareForNextPeer): Use PeerHandle.
  11233. * src/PeerMessage.h
  11234. (peer): Changed its type to PeerHandle.
  11235. (getPeer): Replaced Peer with PeerHandle.
  11236. (setPeer): Replaced Peer with PeerHandle.
  11237. * src/DownloadCommand.cc
  11238. (DownloadCommand): Replaced Socket with SocketHandle.
  11239. * src/FtpConnection.h
  11240. (socket): Changed its type to SocketHandle.
  11241. (FtpConnection): Replaced Socket with SocketHandle.
  11242. (sendPort); Replaced Socket with SocketHandle.
  11243. * src/FtpDowndloadCommand.h
  11244. (ctrlSocket): Changed its type to SocketHandle.
  11245. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11246. * src/HttpProxyRequestCommand.cc
  11247. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11248. * src/FtpTunnelRequestCommand.h
  11249. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11250. etc
  11251. * src/PeerChokeCommand.h
  11252. (setAllPeerChoked): Removed.
  11253. (setAllPeerResetDelta): Removed.
  11254. * src/PeerChokeCommand.cc
  11255. (setAllPeerChoked): Removed.
  11256. (ChokePeer): New function object.
  11257. (setAllPeerResetDelta): Removed.
  11258. (ResetDelta): New function object.
  11259. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11260. (execute): Show download speed when the local node is a seeder.
  11261. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11262. using STL.
  11263. * src/TrackerWatcherCommand.h
  11264. (MIN_PEERS): Removed.
  11265. * src/TorrentMan.cc
  11266. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11267. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. To fix the bug that .aria2 file is not saved if downloading is stopped
  11269. by the errors:it results that aria2 can not resume downloading:
  11270. * src/main.cc
  11271. (normalDownload): Added the call to save().
  11272. (main): Added the deletion of the elements in 'reserved'.
  11273. To fix log:
  11274. * src/PeerInteraction.cc
  11275. (receiveHandshake): Fixed log.
  11276. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11277. To improve download performance in BitTorrent:
  11278. * src/TorrentMan.cc
  11279. (getPeer): Check the number of connections. Return nullPeer if
  11280. it is greater than MAX_PEER_UPDATE.
  11281. This code was originally here, but was removed in 0.5.1.
  11282. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. To improve the conditional compilation:
  11284. * src/MultiDiskWriter.h:
  11285. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11286. * src/MultiDiskWriter.cc:
  11287. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11288. * src/Util.h:
  11289. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11290. Added ENABLE_BITTORRENT around computeFastSet().
  11291. * src/Util.cc:
  11292. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11293. Added ENABLE_BITTORRENT around computeFastSet().
  11294. * src/messageDigest.h:
  11295. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11296. * src/ShaVisitor.h:
  11297. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11298. * src/ShaVisitor.cc:
  11299. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11300. * src/main.cc:
  11301. Added ENABLE_BITTORRENT around includes and blocks related to
  11302. BitTorrent.
  11303. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11304. digest support is not available.
  11305. * src/AbstractDiskWriter.h:
  11306. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11307. * src/AbstractDiskWriter.cc:
  11308. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11309. * src/MetalinkEntry.cc
  11310. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11311. support is not available.
  11312. To add command-line options for Metalink:
  11313. * src/main.cc:
  11314. Added metalink-version, metalink-language, metalink-os,
  11315. follow-metalink.
  11316. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11317. * src/main.cc: Use these definition.
  11318. * Release 0.6.0
  11319. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. To add Metalink support(http/ftp only):
  11321. * src/AbstractCommand.h
  11322. (tryReserved): New function.
  11323. * src/AbstractCommand.cc
  11324. (execute): Call tryReserved().
  11325. (tryReserved): New function.
  11326. * src/Request.h
  11327. (Requests): New type definition.
  11328. * src/SegmentMan.h
  11329. (reserved): New variable.
  11330. * src/Util.h
  11331. (fileChecksum): New function.
  11332. (toUpper): New function.
  11333. (toLower): New function.
  11334. * src/Util.cc
  11335. (messageDigest.h): Included.
  11336. (trim): Trim \r\n\t.
  11337. (fileChecksum): New function.
  11338. (toUpper): New function.
  11339. (toLower): New function.
  11340. * src/main.cc
  11341. (normalDownload): New function.
  11342. (main): Added 2 command-line options: metalink-file,
  11343. metalink-connection. Their usage has not been written yet.
  11344. * src/MetalinkProcessor.h: New class.
  11345. * src/Xml2MetalinkProcessor.h: New class.
  11346. * src/Xml2MetalinkProcessor.cc: New class.
  11347. * src/MetalinkEntry.h: New class.
  11348. * src/MetalinkEntry.cc: New class.
  11349. * src/MetalinkResource.h: New class.
  11350. * src/MetalinkResource.cc: New class.
  11351. To add md5 message digest checking:
  11352. * src/messageDigest.h: Rewritten.
  11353. * src/MultiDiskWriter.cc: Updated according to the changes in
  11354. messageDigest.h.
  11355. * src/ShaVisitor.cc: Updated according to the changes in
  11356. messageDigest.h.
  11357. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11358. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11359. messageDigest.h.
  11360. To fix a bug that causes segfault when the payload length in peer
  11361. message is less than 0:
  11362. * src/PeerConnection.cc:
  11363. (receiveMessage): Fixed the bug.
  11364. * src/PeerMessageUtil.cc
  11365. (checkLength): Throw an exception if length is less than or equals to
  11366. 0.
  11367. To add new interfaces to Base64 encoding/decoding:
  11368. * src/Base64.h
  11369. (part_encode): Changed the method signature.
  11370. (encode): New function(overload).
  11371. (decode): New function(overload).
  11372. * src/Base64.cc
  11373. (part_encode): Rewritten.
  11374. (encode): Rewritten.
  11375. (encode): New function(overload).
  11376. To prevent a peer to download same piece if there is an error in
  11377. checksum:
  11378. * src/PieceMessage.cc
  11379. (receivedAction): Call peerInteraction->abortPiece().
  11380. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11381. To fix the bug that causes same have message is sent many times to
  11382. a single peer.
  11383. * src/Time.cc
  11384. (isNewer): Use Util::difftv().
  11385. * src/Util.cc
  11386. (difftv): Added a cast to (long long int).
  11387. * src/TorrentMan.cc
  11388. (advertisePiece): Use push_front.
  11389. (getAdvertisedPieceIndexes): A performance improvement was made.
  11390. To fix the bug that sends tracker requests without a sleep interval
  11391. when the number of connections is less than 15.
  11392. * src/TrackerWatcherCommand.cc
  11393. (execute): Now the number of connections is not a factor to decide
  11394. whether or not a tracker request should be sent or not.
  11395. * src/Time.h
  11396. (setTimeInSec): New function.
  11397. * src/Time.cc
  11398. (setTimeInSec): New function.
  11399. etc.
  11400. * src/ChokeMessage.cc
  11401. (receivedAction): Removed peer->snubbing = false
  11402. * src/PeerConnection.h
  11403. (receiveHandshake): Updated doc.
  11404. * src/TorrentMan.h
  11405. (getAdvertisedPieceIndexes): Updated the method signature.
  11406. * src/TorrentMan.cc
  11407. (getAdvertisedPieceIndexes): Updated the method signature.
  11408. * src/Time.h
  11409. (getTimeInMicros): Added a cast to (long long int).
  11410. (getTimeInMillis): Added a cast to (long long int).
  11411. * Release 0.5.2
  11412. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. To make a listening socket non-block:
  11414. * src/SocketCore.h
  11415. (setNonBlockingMode): New function.
  11416. * src/SocketCore.cc
  11417. (setNonBlockingMode): New function.
  11418. (beginListen): Added a call to setNonBlockingMode().
  11419. (acceptConnection): Call setNonBlockingMode().
  11420. (setBlockingMode): Updated.
  11421. To handle tracker's NAT-checking:
  11422. * src/PeerConnection.cc
  11423. (receiveHandshake): 'msg' param is filled with received data and
  11424. its length is assigned to 'length' param, even if all handshake
  11425. message is not yet received.
  11426. * src/PeerInteractionCommand.cc
  11427. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11428. a new peer connects to localhost.
  11429. A call to peerInteraction->sendHandshake() was removed because
  11430. it is called from peerInteraction->receiveHandshake(true).
  11431. * src/PeerInteraction.h
  11432. (quickReplied): New variable.
  11433. (receiveHandshake): Added an argument.
  11434. * src/PeerInteraction.cc
  11435. (PeerInteraction): Added the initialization of quickReplied.
  11436. (receiveHandshake): Send handshake message as soon as the info hash
  11437. in a handshake message from a peer is correct.
  11438. To change the random part of peer id and key parameter:
  11439. * src/TorrentMan.h
  11440. (key): New variable.
  11441. * src/TorrentMan.cc
  11442. (setupInternal1): Use Util::randomAlpha() to generate random part
  11443. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11444. key is also generated by Util::randomAlpha() and it is now 8 character
  11445. long.
  11446. * src/Util.h
  11447. (randomAlpha): New function.
  11448. * src/Util.cc
  11449. (randomAlpha): New function.
  11450. * src/TrackerWatcherCommand.cc
  11451. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11452. Added no_peer_id=1.
  11453. Set snubbing flag to false when a choke message is received from a
  11454. snubbed peer.
  11455. * src/ChokeMessage.cc
  11456. (receivedAction): Set snubbing flag to false.
  11457. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11458. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11459. * src/SimpleLogger.h (writeHeader): New function.
  11460. * src/SimpleLogger.cc (writeHeader): New function.
  11461. (writeLog): Fixed the bug that causes segfaults if exception message
  11462. contains an unescaped "%" character.
  11463. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11464. when a tracker request fails.
  11465. * src/Request.cc (parseUrl): Query string is now handled properly.
  11466. * Release 0.5.1
  11467. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11468. To add Time class which represents a specific instant in time and
  11469. its precision is microseconds. Time checking procedures were rewritten
  11470. using this object.
  11471. * src/Time.h: New class.
  11472. * src/Time.cc: New class.
  11473. * src/AbstractCommand.h
  11474. (updateCheckPoint): Removed.
  11475. (isTimeoutDetected): Removed.
  11476. (checkPoint): Changed the type to Time.
  11477. (timeout): New variable.
  11478. (setTimeout): New function.
  11479. * src/AbstractCommand.cc
  11480. (AbstractCommand): Removed the initialization of checkPoint.
  11481. Added the initialization of timeout.
  11482. (updateCheckPoint): Removed.
  11483. (isTimeoutDetected): Removed.
  11484. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11485. * src/PeerChokeCommand.h
  11486. (checkPoint): Changed the type to Time.
  11487. * src/PeerChokeCommand.cc
  11488. (PeerChokeCommand): Removed the initialization of checkPoint.
  11489. (execute): Rewritten using Time object.
  11490. * src/TrackerWatcherCommand.h
  11491. (checkPoint): Changed the type to Time.
  11492. * src/TrackerWatcherCommand.cc
  11493. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11494. (execute): Rewritten.
  11495. * src/ConsoleDownloadEngine.h
  11496. (cp): Changed the type to Time.
  11497. (startup): Changed the type to Time.
  11498. * src/ConsoleDownloadEngine.cc
  11499. (initStatistics): Use cp.reset(), startup.reset().
  11500. (calculateStatistics): Rewritten using Time object.
  11501. * src/PeerAbstractCommand.h
  11502. (updateCheckPoint): Removed.
  11503. (isTimeoutDetected): Removed.
  11504. (checkPoint): Changed the type to Time.
  11505. * src/PeerAbstractCommand.cc
  11506. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11507. (updateCheckPoint): Removed.
  11508. (isTimeoutDetected): Removed.
  11509. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11510. * src/PeerInteractionCommand.cc
  11511. (PeerInteractionCommand): Removed the initializations of struct
  11512. timeval variables.
  11513. * src/PeerInteractionCommand.h
  11514. (keepAliveCheckPoint): Changed the type to Time.
  11515. (chokeCheckPoint): Changed the type to Time.
  11516. (freqCheckPoint): Changed the type to Time.
  11517. (haveCheckTime): Changed the type to Time.
  11518. * src/PeerInteractionCommand.cc
  11519. (executeInternal): Rewritten using Time object.
  11520. (detectMessageFlooding): Rewritten using Time object.
  11521. (checkLongTimePeerChoking): Rewritten using Time object.
  11522. (sendKeepAlive): Rewritten using Time object.
  11523. (checkHave): Rewritten using Time object.
  11524. * src/SleepCommand.h
  11525. (checkPoint): Changed the type to Time.
  11526. * src/SleepCommand.cc
  11527. (SleepCommand): Removed the initialization of checkPoint.
  11528. (execute): Rewritten using Time object.
  11529. * src/TorrentAutoSaveCommand.h
  11530. (checkPoint): Changed the type to Time.
  11531. * src/TorrentAutoSaveCommand.cc
  11532. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11533. (execute): Rewritten.
  11534. * src/DownloadCommand.h
  11535. (sw): Changed the type to Time.
  11536. * src/DownloadCommand.cc
  11537. (DownloadCommand): Removed the initialization of sw.
  11538. (executeInternal): Rewritten.
  11539. * src/RequestSlot.h
  11540. (dispatchedTime): Changed the type to Time.
  11541. * src/RequestSlot.cc
  11542. (RequestSlot): Removed the call to setDispatchedTime().
  11543. (setDispatchedTime): Rewirtten.
  11544. (isTimeout): Rewritten.
  11545. (getLatencyInMillis): Rewritten.
  11546. * src/TorrentDownloadEngine.h
  11547. (cp): Changed the type to Time[2].
  11548. (startup): Changed the type to Time.
  11549. * src/TorrentDownloadEngine.cc
  11550. (initStatistics): Rewritten.
  11551. (calculateStatistics): Rewritten.
  11552. * src/DownloadEngine.cc
  11553. (run): Rewritten.
  11554. To detect all attempts to connect to the tracker are failed:
  11555. * src/AbstractCommand.cc
  11556. (execute): Increment e->segmentMan->errors if a command aborted.
  11557. * src/SegmentMan.h
  11558. (errors): New variable.
  11559. * src/SegmentMan.cc
  11560. (SegmentMan): Added the initialization of errors.
  11561. (init): Added the initialization of errors.
  11562. * src/TrackerWatcherCommand.cc
  11563. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11564. request was failed.
  11565. To handle snubbed peers:
  11566. * src/PeerChokeCommand.cc
  11567. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11568. (execute): Snubbed peers don't get unchoked.
  11569. * src/PeerInteraction.h
  11570. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11571. * src/PeerInteraction.cc
  11572. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11573. back the requested 16k block in 60 seconds.
  11574. * src/PieceMessage.cc
  11575. (receivedAction): A peer's snubbed state is cleard if it sends
  11576. the requested 16k block in 60 seconds.
  11577. * src/Peer.h
  11578. (snubbing): New variable.
  11579. * src/Peer.cc
  11580. (resetStatus): Added snubbed = false.
  11581. To fix the bug that causes have message is not sent:
  11582. * src/PeerInteractionCommand.cc
  11583. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11584. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11585. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11586. * src/TorrentMan.h
  11587. (HaveEntry): New class.
  11588. (advertisePiece): Rewritten.
  11589. (getAdvertisedPieceIndexes): Rewritten.
  11590. (Haves): Changed the type.
  11591. (getAdvertisedPieceIndexes): Added an argument.
  11592. Others:
  11593. * src/TorrentMan.h
  11594. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11595. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11596. * src/TorrentMan.cc
  11597. (getPeer): Don't check the number of connections here.
  11598. (setupInternal1): Changed peerId.
  11599. * src/PeerInteractionCommand.h
  11600. (KEEP_ALIVE_INTERVAL): New definition.
  11601. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11602. * src/main.cc
  11603. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11604. * src/DownloadEngine.h: Removed unnecessary header includes.
  11605. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11606. To fix the bug that causes segfaults if a tracker returns a zero-length
  11607. list as "peers":
  11608. * src/TrackerUpdateCommand.cc
  11609. (execute): Added a check to see wether the type of peers is Data*.
  11610. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. * Release 0.5.0
  11612. To fix compile issue with gcc3:
  11613. * src/CancelMessage.h
  11614. (ID): Renamed as ID_t
  11615. (ID_t): New enum.
  11616. * src/RejectMessage.h
  11617. (ID): Renamed as ID_t
  11618. (ID_t): New enum.
  11619. * src/SuggestPieceMessage.h
  11620. (ID): Renamed as ID_t
  11621. (ID_t): New enum.
  11622. * src/AllowedFastMessage.h
  11623. (ID): Renamed as ID_t
  11624. (ID_t): New enum.
  11625. * src/PortMessage.h
  11626. (ID): Renamed as ID_t
  11627. (ID_t): New enum.
  11628. * src/HaveNoneMessage.h
  11629. (ID): Renamed as ID_t
  11630. (ID_t): New enum.
  11631. * src/KeepAliveMessage.h
  11632. (ID): Renamed as ID_t
  11633. (ID_t): New enum.
  11634. * src/HaveAllMessage.h
  11635. (ID): Renamed as ID_t
  11636. (ID_t): New enum.
  11637. * src/UnchokeMessage.h
  11638. (ID): Renamed as ID_t
  11639. (ID_t): New enum.
  11640. * src/BitfieldMessage.h
  11641. (ID): Renamed as ID_t
  11642. (ID_t): New enum.
  11643. * src/PieceMessage.h
  11644. (ID): Renamed as ID_t
  11645. (ID_t): New enum.
  11646. * src/RequestMessage.h
  11647. (ID): Renamed as ID_t
  11648. (ID_t): New enum.
  11649. * src/NotInterestedMessage.h
  11650. (ID): Renamed as ID_t
  11651. (ID_t): New enum.
  11652. * src/ChokeMessage.h
  11653. (ID): Renamed as ID_t
  11654. (ID_t): New enum.
  11655. * src/InterestedMessage.h
  11656. (ID): Renamed as ID_t
  11657. (ID_t): New enum.
  11658. * src/HaveMessage.h
  11659. (ID): Renamed as ID_t
  11660. (ID_t): New enum.
  11661. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. * src/PeerAbstractCommand.h
  11663. (beforeSocketCheck): Removed.
  11664. * src/PeerAbstractCommand.cc
  11665. Modified in order to call executeInternal() even if socket check
  11666. and upload limit check fail.
  11667. * src/PeerInteractionCommand.h
  11668. (keepAlive): Removed.
  11669. (sendKeepAlive): New function.
  11670. (checkHave): New function.
  11671. (beforeSocketCheck): Removed.
  11672. * src/PeerInteractionCommand.cc
  11673. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11674. calls to checkHave() and sendKeepAlive().
  11675. (keepAlive): Renamed to sendKeepAlive().
  11676. (sendKeepAlive): New function.
  11677. (beforeSocketCheck): Removed.
  11678. (checkHave): New function.
  11679. * src/BitfieldMan.cc
  11680. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11681. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11682. 0.
  11683. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11684. * src/TorrentMan.h
  11685. (UsedPieces): Removed.
  11686. (Pieces): New type definition.
  11687. * src/Piece.h: Updated doc.
  11688. * src/Peer.h
  11689. (totalLength): Removed.
  11690. * src/Peer.cc
  11691. (updateLatency): Fixed the latency calculation.
  11692. * src/TorrentMan.cc
  11693. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11694. than or equal to MAX_PEER_LIST_SIZE.
  11695. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11696. then return false.
  11697. (deleteOldErrorPeers): Rewritten.
  11698. (deleteUsedPiece): Fixed the miss use of STL remove.
  11699. * src/PeerInteraction.h
  11700. (Pieces): Removed.
  11701. (deleteTimeoutRequestSlot): Removed.
  11702. (deleteCompletedRequestSlot): Removed.
  11703. (checkRequestSlot): New function.
  11704. * src/PeerInteraction.cc
  11705. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11706. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11707. (checkRequestSlot): New function.
  11708. * src/DownloadEngine.cc
  11709. (run): Clear activeSockets before calling waitData().
  11710. (waitData): Removed a call to activeSockets.clear().
  11711. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11712. To attempt to handle EINTR:
  11713. * src/SocketCore.cc
  11714. (isReadable): Added EINTR handling.
  11715. (isWritable): Added EINTR handling.
  11716. To improve the performance:
  11717. * src/AbstractCommand.cc
  11718. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11719. * src/PeerInteractionCommand.h
  11720. (receiveMessage): Renamed as receiveMessages().
  11721. (receiveMessages): New function.
  11722. * src/PeerInteractionCommand.cc
  11723. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11724. () function. detectMessageFlooding() is moved here.
  11725. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11726. (). The flooding detection for have message is comment out.
  11727. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11728. Util::difftv().
  11729. (receiveMessage): Renamed as receiveMessages().
  11730. (receiveMessages): New function.
  11731. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11732. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11733. * src/SleepCommand.cc
  11734. (execute): Use Util::difftvsec() instead of Util::difftv().
  11735. * src/BitfieldMan.h
  11736. (getNthBitIndex): New function.
  11737. (hasMissingPiece): New function.
  11738. (getAllMissingIndexes): New function.
  11739. * src/BitfieldMan.cc
  11740. (countSetBit): Rewritten.
  11741. (getNthBitIndex): New function.
  11742. (getMissingIndexRandomly): Rewritten.
  11743. (hasMissingPiece): New function.
  11744. (getAllMissingIndexes): New function.
  11745. * src/TorrentMan.cc
  11746. (hasMissingPiece): New function.
  11747. (deleteUsedPiece): Rewritten using STL.
  11748. * src/PeerInteraction.cc
  11749. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11750. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11751. (addRequests): Updated the number of pending requests.
  11752. * src/PeerAbstractCommand.cc
  11753. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11754. (execute): Returns true if TorrentMan::isHalt() is true.
  11755. Corrected the condition of upload limit checking.
  11756. * src/Util.h
  11757. (countBit): New function.
  11758. * src/Util.cc
  11759. (nbits): New variable.
  11760. (countBit): New function.
  11761. * src/DownloadEngine.h
  11762. (SockCmdMap): New type definition.
  11763. (waitData): Added an argument.
  11764. (addSocket): Added an argument.
  11765. (addSocketForReadCheck): Added an argument.
  11766. (addSocketForWriteCheck): Added an argument.
  11767. * src/DownloadEngine.cc
  11768. (run): Executes only commands whose sockets are ready to read or write.
  11769. All commands are executed in every 1 second.
  11770. (waitData): Calls select() again if it returned
  11771. EINTR.
  11772. (addSocket): Saves socket and command object pair to the map.
  11773. (deleteSocket): Deletes socket and command object pair from the map.
  11774. (addSocketForReadCheck): Added an argument.
  11775. (addSocketForWriteCheck): Added an argument.
  11776. * src/DownloadCommand.cc
  11777. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11778. To send "event=stopped" to the tracker when the application finishes:
  11779. * src/PeerChokeCommand.h
  11780. (checkPoint): New variable.
  11781. * src/PeerChokeCommand.cc
  11782. (PeerChokeCommand): Added the initialization of checkPoint.
  11783. (execute): The interval check is now done by checkPoint, not
  11784. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11785. * src/TorrentMan.h
  11786. (halt): New function.
  11787. (hasMissingPiece): New function.
  11788. (isHalt): New function.
  11789. (setHalt): New function.
  11790. * src/TorrentMan.cc
  11791. (TorrentMan): Added the initialization of halt.
  11792. * src/TorrentAutoSaveCommand.h
  11793. (checkPoint): New variable.
  11794. * src/PeerListenCommand.cc
  11795. (execute): Returns true if TorrentMan::isHalt() is true.
  11796. * src/main.cc
  11797. (setSignalHander): Added flags argument.
  11798. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11799. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11800. Removed printDownloadAbortMessage() after torrent downloading loop.
  11801. * src/TorrentAutoSaveCommand.cc
  11802. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11803. (execute): Returns true if TorrentMan::isHalt() is true.
  11804. The interval check is now done by checkPoint, not SleepCommand.
  11805. * src/TrackerWatcherCommand.cc
  11806. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11807. event=stopped.
  11808. * src/TrackerUpdateCommand.cc
  11809. (prepareForRetry): Do not use SleepCommand here.
  11810. (execute): Returns true if TorrentMan::isHalt() is true.
  11811. Others:
  11812. * src/TorrentMan.cc
  11813. (getMissingPieceIndex): Updated log message.
  11814. * src/PeerInteraction.cc
  11815. (createPeerMessag): Updated log message.
  11816. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11817. To add the ability to download several pieces in mix in a command and
  11818. increase the number of request slots according to request-cancel
  11819. latency:
  11820. * src/PeerInteractionCommand.cc
  11821. (executeInternal): The number of messages to be received at a time
  11822. is increased from 10 to 50.
  11823. * src/LogFactory
  11824. (getInstance): Added NullLogger.
  11825. * src/NullLogger.h: New class.
  11826. * src/BitfieldMan.h
  11827. (getMissingIndex): New function.
  11828. * src/BitfieldMan.cc
  11829. (getMissingIndex): New function.
  11830. * src/TorrentMan.h
  11831. (checkOutPiece): New function.
  11832. (getMissingPieceIndex): New function.
  11833. (getMissingFastPieceIndex): New function.
  11834. (getMissingFastPiece): New function.
  11835. * src/TorrentMan.cc
  11836. (updatePiece): Rewritten using STL.
  11837. (syncPiece): Rewritten using STL.
  11838. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11839. checkOutPiece().
  11840. (getMissingPieceIndex): New function.
  11841. (getMissingFastPieceIndex): New function.
  11842. (getMissingFastPiece): New function.
  11843. (checkOutPiece): New function.
  11844. * src/PeerInteraction.h
  11845. (Pieces): New type definition.
  11846. (piece): Removed.
  11847. (pieces): New variable.
  11848. (getNewPieceAndSendInterest): Added the "piece" argument.
  11849. (abortPiece): Added the "piece" argument.
  11850. (abortAllPieces): New function.
  11851. (isInRequestSlot): New function.
  11852. (hasDownloadPiece): Added the "index" argument.
  11853. (setDownloadPiece): Removed.
  11854. (getDownloadPiece): Added the "index" argument.
  11855. (updatePiece): New function.
  11856. (createRequestMessage): Added the "index" argument.
  11857. * src/PeerInteraction.cc
  11858. (onChoked): Rewritten.
  11859. (abortPiece): Rewirtten.
  11860. (abortAllPieces): New function.
  11861. (deleteTimeoutRequestSlot): Rewritten.
  11862. Clarified code a little bit.
  11863. (deleteCompletedRequestSlot): Rewritten.
  11864. (isInRequestSlot): New function.
  11865. (syncPiece): Rewritten.
  11866. (updatePiece): New function.
  11867. (getNewPieceAndSendInterest): Rewritten.
  11868. (addRequests): Rewritten.
  11869. (getDownloadPiece): Rewritten.
  11870. (hasDownloadPiece): Rewritten.
  11871. (createRequestMessage): Added the "index" argument.
  11872. * src/common.h
  11873. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11874. (DIV_FLOOR): New definition.
  11875. * src/PieceMessage.cc
  11876. (receivedAction): Update request-piece latency here.
  11877. * src/RequestSlot.h
  11878. (getLatencyInMillis): New function.
  11879. * src/RequestSlot.cc
  11880. (isTimeout): Rewritten using getLatencyInMillis.
  11881. (getLatencyInMillis): New function.
  11882. * src/Piece.h
  11883. (operator==): New function.
  11884. (getMissingBlockIndex): New function.
  11885. * src/Piece.cc
  11886. (operator==): New function.
  11887. (getMissingBlockIndex): New function.
  11888. * src/Peer.h
  11889. (DEFAULT_LATENCY): New definition.
  11890. (latency): New variable.
  11891. (updateLatency): New function.
  11892. (getLatency): New function.
  11893. * src/Peer.cc
  11894. (resetStatus): Reset latecy.
  11895. (updateLatency): New function.
  11896. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. * src/SocketCore.cc
  11898. (isReadable): Added secure to the condition.
  11899. * src/HttpConnection.cc
  11900. (receiveResponse): Fixed a bug that causes no response header
  11901. exception.
  11902. * src/Peer.h
  11903. (getFastSet): Fixed the return value type.
  11904. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11905. To remove a wait from download loop:
  11906. * src/DownloadEngine.cc
  11907. (run): Comment out shortSleep.
  11908. To rewrite the message handling:
  11909. * src/SimplePeerMessage.h: New class.
  11910. * src/SimplePeerMessage.cc: New class.
  11911. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11912. (msg): New variable.
  11913. (create): New function.
  11914. (send): Removed.
  11915. (getMessage): New function.
  11916. (getMessageLength): New function.
  11917. * src/CancelMessage.cc
  11918. (create): New function.
  11919. (receivedAction): Replaced deleteRequestMessageInQueue with
  11920. rejectPieceMessageInQueue.
  11921. (send): Removed.
  11922. (getMessage): New function.
  11923. (getMessageLength): New function.
  11924. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11925. (msg): New variable.
  11926. (msgLength): New variable.
  11927. (~BitfieldMessage): Deleted msg.
  11928. (send): Removed.
  11929. (getMessage): New function.
  11930. (getMessageLength): New function.
  11931. * src/BitfieldMessage.cc
  11932. (create): New function.
  11933. (send): Removed.
  11934. (getMessage): New function.
  11935. (getMessageLength): New function.
  11936. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11937. (msg): New variable.
  11938. (sendPredicate): New function.
  11939. (onSendComplete): New function.
  11940. (send): Removed.
  11941. (getMessage): New function.
  11942. (getMessageLength): New function.
  11943. (create): New function.
  11944. * src/ChokeMessage.cc
  11945. (create): New function.
  11946. (send): Removed.
  11947. (sendPredicate): New function.
  11948. (getMessage): New function.
  11949. (getMessageLength): New function.
  11950. (onSendComplete): New function.
  11951. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11952. (msg): New variable.
  11953. (send): Removed.
  11954. (getMessage): New function.
  11955. (getMessageLength): New function.
  11956. * src/KeepAliveMessage.cc
  11957. (send): Removed.
  11958. (getMessage): New function.
  11959. (getMessageLength): New function.
  11960. * src/PortMessage.h
  11961. (create): New function.
  11962. (receivedAction): Updated log message.
  11963. * src/PortMessage.cc: New file.
  11964. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11965. (msg): New variable.
  11966. (sendPredicate): New function.
  11967. (onSendComplete): New function.
  11968. (create): New function.
  11969. (send): Removed.
  11970. (getMessage): New function.
  11971. (getMessageLength): New function.
  11972. * src/UnchokeMessage.cc
  11973. (create): New function.
  11974. (send): Removed.
  11975. (sendPredicate): New function.
  11976. (getMessage): New function.
  11977. (getMessageLength): New function.
  11978. (onSendComplete): New function.
  11979. * src/PieceMessage.h
  11980. (leftPieceDataLength): Removed.
  11981. (leftDataLength): New variable.
  11982. (headerSend): New variable.
  11983. (pendingCount): New variable.
  11984. (msgHeader): New variable.
  11985. (sendPieceData): New function.
  11986. (incrementPendingCount): New function.
  11987. (isPendingCountMax): New function.
  11988. (create): New function.
  11989. (getMessageHeader): New function.
  11990. (getMessageHeaderLength): New function.
  11991. * src/PieceMessage.cc
  11992. (create): New function.
  11993. (getMessageHeader): New function.
  11994. (getMessageHeaderLength): New function.
  11995. (send): Rewritten.
  11996. (sendPieceData): New function.
  11997. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11998. (msg): New variable.
  11999. (create): New function.
  12000. (getMessage): New function.
  12001. (getMessageLength): New function.
  12002. * src/HaveMessage.cc
  12003. (create): New function.
  12004. (send): Removed.
  12005. (sendPieceData): New function.
  12006. (getMessage): New function.
  12007. (getMessageLength): New function.
  12008. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12009. (msg): New variable.
  12010. (create): New function.
  12011. (send): Removed.
  12012. (getMessage): New function.
  12013. (getMessageLength): New function.
  12014. * src/RequestMessage.cc
  12015. (create): New function.
  12016. (receivedAction): Added the handling of fast extension.
  12017. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12018. (send): Removed.
  12019. (getMessage): New function.
  12020. (getMessageLength): New function.
  12021. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12022. (msg): New variable.
  12023. (sendPredicate): New function.
  12024. (onSendComplete): New function.
  12025. (create): New function.
  12026. (getMessage): New function.
  12027. (getMessageLength): New function.
  12028. * src/InterestedMessage.cc
  12029. (create): New function.
  12030. (send): Removed.
  12031. (sendPieceData): New function.
  12032. (getMessage): New function.
  12033. (getMessageLength): New function.
  12034. (onSendComplete): New function.
  12035. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12036. (msg): New variable.
  12037. (sendPieceData): New function.
  12038. (onSendComplete): New function.
  12039. (create): New function.
  12040. (send): Removed.
  12041. (getMessage): New function.
  12042. (getMessageLength): New function.
  12043. * src/NotInterestedMessage.cc
  12044. (create): New function.
  12045. (send): Removed.
  12046. (sendPredicate): New function.
  12047. (getMessage): New function.
  12048. (getMessageLength): New function.
  12049. (onSendComplete): New function.
  12050. * src/AllowedFastMessage.h: New class.
  12051. * src/AllowedFastMessage.cc: New class.
  12052. * src/RejectMessage.h: New class.
  12053. * src/RejectMessage.cc: New class.
  12054. * src/SuggestPieceMessage.h: New class.
  12055. * src/SuggestPieceMessage.cc: New class.
  12056. * src/HaveAllMessage.h: New class.
  12057. * src/HaveAllMessage.cc: New class.
  12058. * src/HaveNoneMessage.h: New class.
  12059. * src/HaveNoneMessage.cc: New class.
  12060. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12061. (msg): New variable.
  12062. (reserved): New variable.
  12063. (create): New function.
  12064. (getId): New function.
  12065. (receivedAction): New function.
  12066. (getMessage): New function.
  12067. (getMessageLength): New function.
  12068. (isFastExtensionSupported): New function.
  12069. * src/HandshakeMessage.cc
  12070. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12071. (create): New function.
  12072. (getMessage): New function.
  12073. (getMessageLength): New function.
  12074. (toString): Added the output of reserved field.
  12075. (check): Added const qualifier.
  12076. (isFastExtensionSupported): New function.
  12077. * src/PeerMessageUtil.h
  12078. (createChokeMessage): Removed.
  12079. (createUnchokeMessage): Removed.
  12080. (createInterestedMessage): Removed.
  12081. (createNotInterestedMessage): Removed.
  12082. (createHaveMessage): Removed.
  12083. (createBitfieldMessage): Removed.
  12084. (createRequestMessage): Removed.
  12085. (createCancelMessage): Removed.
  12086. (createPieceMessage): Removed.
  12087. (createPortMessage): Removed.
  12088. (createChokeMessage): Removed.
  12089. (createUnchokeMessage): Removed.
  12090. (createInterestedMessage): Removed.
  12091. (createNotInterestedMessage): Removed.
  12092. (createHaveMessage): Removed.
  12093. (createBitfieldMessage): Removed.
  12094. (createRequestMessage): Removed.
  12095. (createCancelMessage): Removed.
  12096. (createPieceMessage): Removed.
  12097. (createKeepAliveMessage): Removed.
  12098. (createHandshakeMessage): Removed.
  12099. (setIntParam): New function.
  12100. (createPeerMessageString): New function.
  12101. * src/PeerMessageUtil.cc
  12102. (createChokeMessage): Removed.
  12103. (createUnchokeMessage): Removed.
  12104. (createInterestedMessage): Removed.
  12105. (createNotInterestedMessage): Removed.
  12106. (createHaveMessage): Removed.
  12107. (createBitfieldMessage): Removed.
  12108. (createRequestMessage): Removed.
  12109. (createCancelMessage): Removed.
  12110. (createPieceMessage): Removed.
  12111. (createPortMessage): Removed.
  12112. (createRequestMessage): Removed.
  12113. (createCancelMessage): Removed.
  12114. (createPieceMessage): Removed.
  12115. (createHaveMessage): Removed.
  12116. (createChokeMessage): Removed.
  12117. (createUnchokeMessage): Removed.
  12118. (createInterestedMessage): Removed.
  12119. (createNotInterestedMessage): Removed.
  12120. (createBitfieldMessage): Removed.
  12121. (createKeepAliveMessage): Removed.
  12122. (createHandshakeMessage): Removed.
  12123. (setIntParam): New function.
  12124. (createPeerMessageString): New function.
  12125. * src/PeerConnection.h
  12126. (peer): Removed.
  12127. (torrentMan): Removed.
  12128. (createNLengthMessage): Removed.
  12129. (setIntParam): Removed.
  12130. (writeOutgoingMessageLog): Removed all overloaded functions.
  12131. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12132. (sendMessage): New function.
  12133. (sendHandshake): Removed.
  12134. (sendKeepAlive): Removed.
  12135. (sendChoke): Removed.
  12136. (sendUnchoke): Removed.
  12137. (sendInterested): Removed.
  12138. (sendNotInterested): Removed.
  12139. (sendHave): Removed.
  12140. (sendBitfield): Removed.
  12141. (sendRequest): Removed.
  12142. (sendPiece): Removed.
  12143. (sendPieceHeader): Removed.
  12144. (sendPieceData): Removed.
  12145. (sendCancel): Removed.
  12146. (getPeer): Removed.
  12147. * src/PeerConnection.cc
  12148. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12149. (sendHandshake): Removed.
  12150. (sendKeepAlive): Removed.
  12151. (createNLengthMessage): Removed.
  12152. (setIntParam): Removed.
  12153. (writeOutgoingMessageLog): Removed all overloaded functions.
  12154. (sendChoke): Removed.
  12155. (sendUnchoke): Removed.
  12156. (sendInterested): Removed.
  12157. (sendNotInterested): Removed.
  12158. (sendHave): Removed.
  12159. (sendBitfield): Removed.
  12160. (sendRequest): Removed.
  12161. (sendPiece): Removed.
  12162. (sendPieceHeader): Removed.
  12163. (sendPieceData): Removed.
  12164. (sendMessage): New function.
  12165. (sendCancel): Removed.
  12166. * src/PeerInteractionCommand.cc
  12167. (PeerInteractionCommand): Call setUploadLimit.
  12168. (executeInternal): Call setUploadLimit.
  12169. Added the handling of "inProgress" state of handshake message.
  12170. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12171. sendNow().
  12172. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12173. sendNow().
  12174. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12175. * src/TorrentMan.h
  12176. (PEER_ID_LENGTH): New definition.
  12177. (hasAllPieces): New function.
  12178. * src/TorrentMan.cc
  12179. (getMissingPiece): Added the handling of fast extension.
  12180. (cancelPiece): Call updatePiece().
  12181. (hasAllPieces): New function.
  12182. * src/PeerInteraction.h
  12183. (fastSet): New variable.
  12184. (getNewPieceAndSendInterest): Changed the return type to void.
  12185. (send): Renamed as sendMessages.
  12186. (deleteAllRequestSlot): Removed.
  12187. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12188. (cancelAllRequest): Removed all overloaded functions.
  12189. (deleteAllRequestSlot): Removed.
  12190. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12191. (rejectPieceMessageInQueue): New function.
  12192. (rejectAllPieceMessageInQueue): New function.
  12193. (onChoked): New function.
  12194. (isSendingMessageInProgress): New function.
  12195. (getCorrespondingRequestSlot): Changed its arguments.
  12196. (isInFastSet): New function.
  12197. (addFastSetIndex): New function.
  12198. (addRequests): New function.
  12199. (sendNow): Removed.
  12200. (trySendNow): Removed.
  12201. (sendBitfield): New function.
  12202. (sendAllowdFast): New function.
  12203. (createHaveAllMessage): New function.
  12204. (createHaveNoneMessage): New function.
  12205. (createRejectMessage): New function.
  12206. (createAllowedFastMessage): New function.
  12207. * src/PeerInteraction.cc
  12208. (send): Renamed as sendMessages.
  12209. (sendMessages): New function.
  12210. (MsgPushBack): New class.
  12211. (isSendingMessageInProgress): New function.
  12212. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12213. (rejectAllPieceMessageInQueue): New function.
  12214. Added the handling of fast extension.
  12215. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12216. (rejectPieceMessageInQueue): New function.
  12217. Added the handling of fast extension.
  12218. (deleteRequestSlot): Replaced for loop with std::find.
  12219. (onChoked): New function.
  12220. (deleteAllRequestSlot): Removed.
  12221. (abortPiece): Rewirtten.
  12222. (deleteTimeoutRequestSlot): Updated log messages.
  12223. (getCorrespondingRequestSlot): Changed its arguments.
  12224. (cancelAllRequest): Removed all overloaded functions.
  12225. (receiveHandshake): Added the check to see whether an incoming peer
  12226. supports fast extension.
  12227. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12228. PeerMessageUtil.
  12229. (createPeerMessage): Use create() of each message class instead of
  12230. PeerMessageUtil.
  12231. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12232. AllowedFastMessage were added.
  12233. (getNewPieceAndSendInterest): Changed its return value type to void.
  12234. Added the handling of fast extension.
  12235. (addRequests): New function.
  12236. (sendNow): Removed.
  12237. (sendHandshake): Rewritten.
  12238. (trySendNow): Removed.
  12239. (sendBitfield): New function.
  12240. (sendAllowdFast): New function.
  12241. (isInFastSet): New function.
  12242. (addFastSetIndex): New function.
  12243. (createRequestMessage): Use RequestMessage::create instead of
  12244. PeerMessageUtil.
  12245. (createCancelMessage): Use CancelMessage::create instead of
  12246. PeerMessageUtil.
  12247. (createPieceMessage): Use PieceMessage::create instead of
  12248. PeerMessageUtil.
  12249. (createHaveMessage): Use HaveMessage::create instead of
  12250. PeerMessageUtil.
  12251. (createChokeMessage): Use ChokeMessage::create instead of
  12252. PeerMessageUtil.
  12253. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12254. PeerMessageUtil.
  12255. (createInterestedMessage): Use InterestedMessage::create instead of
  12256. PeerMessageUtil.
  12257. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12258. of PeerMessageUtil.
  12259. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12260. PeerMessageUtil.
  12261. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12262. PeerMessageUtil.
  12263. (createHaveAllMessage): New function.
  12264. (createHaveNoneMessage): New function.
  12265. (createRejectMessage): New function.
  12266. (createAllowedFastMessage: New function.
  12267. * src/Util.h
  12268. (sha1Sum): New function.
  12269. (computeFastSet): New function.
  12270. * src/Util.cc
  12271. (sha1Sum): New function.
  12272. (computeFastSet): New function.
  12273. * src/Peer.h
  12274. (fastExtensionEnabled): New variable.
  12275. (fastSet): New variable.
  12276. (setAllBitfield): New function.
  12277. (setFastExtensionEnabled): New function.
  12278. (isFastExtensionEnabled): New function.
  12279. (addFastSetIndex): New function.
  12280. (getFastSet): New function.
  12281. (isInFastSet): New function.
  12282. (countFastSet): New function.
  12283. * src/Peer.cc
  12284. (isInFastSet): New function.
  12285. (addFastSetIndex): New function.
  12286. (setAllBitfield): New function.
  12287. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12288. sockets.
  12289. * src/PeerAbstractCommand.cc
  12290. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12291. and uploadLimit.
  12292. (execute): Changed the procedure of checking sockets. The upload speed
  12293. checking were added.
  12294. (setUploadLimit): New function.
  12295. (setUploadLimitCheck): New function.
  12296. * src/PeerAbstractCommand.h
  12297. (setUploadLimit): New function.
  12298. (setUploadLimitCheck): New function.
  12299. (uploadLimit): New variable.
  12300. (uploadLimitCheck): New variable.
  12301. To contact a tracker regularly:
  12302. * src/TrackerWatcherCommand.h (interval): New variable.
  12303. (checkPoint): New variable.
  12304. (TrackerWatcherCommand): Added interval argument.
  12305. * src/TrackerWatcherCommand.cc
  12306. (TrackerWatcherCommand): Initialized checkPoint.
  12307. (execute): Now a tracker is contacted in every specified period.
  12308. If peer list is not needed, send request with numwant=0.
  12309. * src/TrackerUpdateCommand.cc
  12310. (execute): Updated log messages.
  12311. * src/DownloadEngine.cc
  12312. (~DownloadEngine): Removed two asserts.
  12313. (waitData): Uncommented wfds. May be a bug fix.
  12314. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12315. * src/PeerInteractionCommand.h
  12316. (checkInactiveConnection): Removed.
  12317. * src/PeerInteractionCommand.cc
  12318. (executeInternal): Removed following function calls:
  12319. detectMessageFlooding(), checkLongTimePeerChoking and
  12320. checkInactiveConnection().
  12321. (checkInactiveConnection): Removed.
  12322. (detectMessageFlooding): Removed function call to
  12323. checkInactiveConnection().
  12324. * src/PeerMessageUtil.h
  12325. (createChokeMessage): New function. Overload.
  12326. (createUnchokeMessage): New function. Overload.
  12327. (createInterestedMessage): New function. Overload.
  12328. (createNotInterestedMessage): New function. Overload.
  12329. (createHaveMessage): New function. Overload.
  12330. (createBitfieldMessage): New function. Overload.
  12331. (createRequestMessage): New function. Overload.
  12332. (createCancelMessage): New function. Overload.
  12333. (createPieceMessage): New function. Overload.
  12334. (createKeepAliveMessage): New function. Overload.
  12335. * src/PeerMessageUtil.cc
  12336. (createChokeMessage): New function. Overload.
  12337. (createUnchokeMessage): New function. Overload.
  12338. (createInterestedMessage): New function. Overload.
  12339. (createNotInterestedMessage): New function. Overload.
  12340. (createHaveMessage): New function. Overload.
  12341. (createBitfieldMessage): New function. Overload.
  12342. (createRequestMessage): New function. Overload.
  12343. (createCancelMessage): New function. Overload.
  12344. (createPieceMessage): New function. Overload.
  12345. (createKeepAliveMessage): New function. Overload.
  12346. * src/SendMessageQueue.cc
  12347. (createRequestMessage): Use PeerMessageUtil.
  12348. (createCancelMessage): Use PeerMessageUtil.
  12349. (createPieceMessage): Use PeerMessageUtil.
  12350. (createHaveMessage): Use PeerMessageUtil.
  12351. (createChokeMessage): Use PeerMessageUtil.
  12352. (createUnchokeMessage): Use PeerMessageUtil.
  12353. (createInterestedMessage): Use PeerMessageUtil.
  12354. (createNotInterestedMessage): Use PeerMessageUtil.
  12355. (createBitfieldMessage): Use PeerMessageUtil.
  12356. (createKeepAliveMessage): Use PeerMessageUtil.
  12357. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12358. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12359. * src/PeerInteraction.h: New class.
  12360. * src/PeerInteraction.cc: New class.
  12361. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. Each peer message has its own class.
  12363. * src/PendingMessages.h: Removed.
  12364. * src/PendingMessages.cc: Removed. The sending process was moved to
  12365. each message class.
  12366. * src/RequestSlotMan.h: Removed.
  12367. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12368. SendMessageQueue.
  12369. * src/RequestMessage.h: New class.
  12370. * src/RequestMessage.cc: New class.
  12371. * src/CancelMessage.h: New class.
  12372. * src/CancelMessage.cc: New class.
  12373. * src/BitfieldMessage.h: New class.
  12374. * src/BitfieldMessage.cc: New class.
  12375. * src/ChokeMessage.h: New class.
  12376. * src/ChokeMessage.cc: New class.
  12377. * src/KeepAliveMessage.h: New class.
  12378. * src/KeepAliveMessage.cc: New class.
  12379. * src/PortMessage.h: New class.
  12380. * src/UnchokeMessage.h: New class.
  12381. * src/UnchokeMessage.cc: New class.
  12382. * src/PieceMessage.h: New class.
  12383. * src/PieceMessage.cc: New class.
  12384. * src/HaveMessage.h: New class.
  12385. * src/HaveMessage.cc: New class.
  12386. * src/BitfieldMessage.h: New class.
  12387. * src/BitfieldMessage.cc: New class.
  12388. * src/NotInterestedMessage.h: New class.
  12389. * src/NotInterestedMessage.cc: New class.
  12390. * src/InterestedMessage.h: New class.
  12391. * src/InterestedMessage.cc: New class.
  12392. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12393. (getSendMessageQueue): New function.
  12394. (setSendMessageQueue): New function.
  12395. * src/HandshakeMessage.cc: New class.
  12396. * src/PeerConnection.h (receiveMessage): Changed return value and
  12397. arguments.
  12398. (receiveHandshake): Changed return value and arguments.
  12399. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12400. here.
  12401. (receiveHandshake): Do not create handshake class here.
  12402. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12403. (piece): Removed.
  12404. (syncPiece): Removed.
  12405. (sendInterest): Removed.
  12406. (sendMessages): Removed.
  12407. (createRequestPendingMessage): Removed.
  12408. (checkPieceHash): Removed.
  12409. (erasePieceOnDisk): Removed.
  12410. (getNewPieceAndSendInterest): Removed.
  12411. (onGotNewPice): Removed.
  12412. (onGotWrongPiece): Removed.
  12413. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12414. Removed peerConnection, piece.
  12415. (~PeerInteractionCommand): Removed peerConnection.
  12416. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12417. (syncPiece): Moved to SendMessageQueue.
  12418. (decideChoking): Removed PendingMessage.
  12419. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12420. The action after receiving peer message was moved to each message
  12421. class.
  12422. (onGotNewPice): Moved to SendMessageQueue.
  12423. (onGotWrongPiece): Moved to SendMessageQueue.
  12424. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12425. (sendInterest): Moved to SendMessageQueue.
  12426. (createRequestPendingMessage): Removed.
  12427. (sendMessages): Moved to SendMessageQueue.
  12428. (onAbort): Use SendMessageQueue::abortPiece()
  12429. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12430. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12431. (checkPieceHash): Moved to SendMessageQueue.
  12432. (erasePieceOnDisk): Moved to SendMessageQueue.
  12433. * src/PeerMessageUtil.h
  12434. (createBitfieldMessage): Removed.
  12435. (createHaveMessage): Changed return value and arguments.
  12436. (createBitfieldMessage): Changed return value and arguments.
  12437. (createRequestCancelMessage): Removed.
  12438. (createPieceMessage): Changed return value and arguments.
  12439. (getShortIntParam): New function.
  12440. (checkIndex): Changed arguments.
  12441. (checkBegin): Changed arguments.
  12442. (checkLength): Changed arguments.
  12443. (checkPieceOffset): Removed.
  12444. (checkRange): New function.
  12445. (checkBitfield): Changed arguments.
  12446. (createPeerMessage): Removed.
  12447. (checkIntegrity): Removed.
  12448. (createHandshakeMessage): Changed arguments.
  12449. (createChokeMessage): New function.
  12450. (createUnchokeMessage): New function.
  12451. (createInterestedMessage): New function.
  12452. (createNotInterestedMessage): New function.
  12453. (createRequestMessage): New function.
  12454. (createCancelMessage): New function.
  12455. (createPortMessage): New function.
  12456. * src/PeerMessageUtil.cc
  12457. (createBitfieldMessage): Removed.
  12458. (createHaveMessage): Changed return value and arguments.
  12459. (createBitfieldMessage): Changed return value and arguments.
  12460. (createRequestCancelMessage): Removed.
  12461. (createPieceMessage): Changed return value and arguments.
  12462. (getShortIntParam): New function.
  12463. (checkIndex): Changed arguments.
  12464. (checkBegin): Changed arguments.
  12465. (checkLength): Changed arguments.
  12466. (checkPieceOffset): Removed.
  12467. (checkRange): New function.
  12468. (checkBitfield): Changed arguments.
  12469. (createPeerMessage): Removed.
  12470. (checkIntegrity): Removed.
  12471. (createHandshakeMessage): Changed arguments.
  12472. (createChokeMessage): New function.
  12473. (createUnchokeMessage): New function.
  12474. (createInterestedMessage): New function.
  12475. (createNotInterestedMessage): New function.
  12476. (createRequestMessage): New function.
  12477. (createCancelMessage): New function.
  12478. (createPortMessage): New function.
  12479. * src/PeerMessage.h
  12480. (id): Removed.
  12481. (index): Removed.
  12482. (begin): Removed.
  12483. (length): Removed.
  12484. (bitfield): Removed.
  12485. (bitfieldLength): Removed.
  12486. (block): Removed.
  12487. (blockLength): Removed.
  12488. (inProgress): New variable.
  12489. (cuid): New variable.
  12490. (peer): New variable.
  12491. (sendMessageQueue): New variable.
  12492. (logger): New variable.
  12493. (setBitfield): Removed.
  12494. (getBitfield): Removed.
  12495. (setBlock): Removed.
  12496. (getBlock): Removed.
  12497. (getBitfieldLength): Removed.
  12498. (getBlockLength): Removed.
  12499. (isInProgress): New function.
  12500. (toString): Made pure virtual.
  12501. (check): New function.
  12502. (send): New function.
  12503. (receivedAction): New function.
  12504. (getId): Made pure virtual.
  12505. (setId): Removed.
  12506. (getIndex): Removed.
  12507. (setIndex): Removed.
  12508. (getBegin): Removed.
  12509. (setBegin): Removed.
  12510. (getLength): Removed.
  12511. (setLength): Removed.
  12512. (getCuid): New function.
  12513. (setCuid): New function.
  12514. (getPeer): New function.
  12515. (setPeer): New function.
  12516. (getSendMessageQueue): New function.
  12517. (setSendMessageQueue): New function.
  12518. (ID): Removed.
  12519. * src/PeerMessage.cc
  12520. (setBitfield): Removed.
  12521. (setBlock): Removed.
  12522. (toString): Removed.
  12523. * src/TorrentMan.h
  12524. (getPieceLength): New function.
  12525. (getPieceLength): New function.
  12526. * src/SendMessageQueue.h
  12527. (REQUEST_TIME_OUT): New definition.
  12528. (RequestSlots): New definition.
  12529. (MessageQueue): New definition.
  12530. (requestSlotMan): Removed.
  12531. (pendingMessages): Removed.
  12532. (requestSlots): New variable.
  12533. (messageQueue): New variable.
  12534. (torrentMan): New variable.
  12535. (peerConnection): New variable.
  12536. (peer): New variable.
  12537. (piece): New variable.
  12538. (getNewPieceAndSendInterest): New function.
  12539. (createPeerMessage): New function.
  12540. (createHandshakeMessage): New function.
  12541. (send): Made private.
  12542. (setPeerMessageCommonProperty): New function.
  12543. (deleteAllRequestSlot): New function.
  12544. (deleteRequestMessageInQueue): New function.
  12545. (cancelAllRequest): Made private.
  12546. (cancelAllRequest): Made private.
  12547. (countRequestSlot): Made private.
  12548. (addPendingMessage): Removed.
  12549. (deletePendingPieceMessage): Removed.
  12550. (deletePendingRequestMessage): Removed.
  12551. (addMessage): New function.
  12552. (deletePieceMessageInQueue): New function.
  12553. (deleteTimeoutRequestSlot): Changed argument.
  12554. (deleteCompletedRequestSlot): Changed argument.
  12555. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12556. (getCorrespondingRequestSlot): New function.
  12557. (countPendingMessage): Removed.
  12558. (countMessageInQueue): New function.
  12559. (getTorrentMan): New function.
  12560. (getPeerConnection): New function.
  12561. (hasDownloadPiece): New function.
  12562. (getDownloadPiece): New function.
  12563. (setDownloadPiece): New function.
  12564. (syncPiece): New function.
  12565. (sendMessages): New function.
  12566. (sendNow): New function.
  12567. (trySendNow): New function.
  12568. (abortPiece): New function.
  12569. (sendHandshake): New function.
  12570. (receiveMessage): New function.
  12571. (receiveHandshake): New function.
  12572. (createRequestMessage): New function.
  12573. (createCancelMessage): New function.
  12574. (createPieceMessage): New function.
  12575. (createHaveMessage): New function.
  12576. (createChokeMessage): New function.
  12577. (createUnchokeMessage): New function.
  12578. (createInterestedMessage): New function.
  12579. (createNotInterestedMessage): New function.
  12580. (createBitfieldMessage): New function.
  12581. (createKeepAliveMessage): New function.
  12582. * src/SendMessageQueue.cc
  12583. (SendMessageQueue): Removed requestSlotMan.
  12584. Instantiated peerConnection here.
  12585. (~SendMessageQueue): Removed requestSlotMan.
  12586. Added deletion of peerConnection and the contents of messageQueue.
  12587. (send): Updated according to the change of messageQueue.
  12588. (addPendingMessage): Renamed to addMessage.
  12589. (addMessage): New function.
  12590. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12591. (deletePieceMessageInQueue): New function.
  12592. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12593. (deleteRequestMessageInQueue): New function.
  12594. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12595. here.
  12596. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12597. (...) was moved here.
  12598. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12599. moved here.
  12600. (deleteCompletedRequestSlot):
  12601. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12602. (getCorrespondingRequestSlot):
  12603. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12604. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12605. (countPendingMessage): Renamed to countMessageInQueue.
  12606. (countMessageInQueue): New function.
  12607. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12608. (receiveHandshake): New function.
  12609. (createHandshakeMessage): New function.
  12610. (receiveMessage): New function.
  12611. (createPeerMessage): New function.
  12612. (syncPiece): New function.
  12613. (getNewPieceAndSendInterest): New function.
  12614. (sendMessages): New function.
  12615. (sendNow): New function.
  12616. (trySendNow): New function.
  12617. (sendHandshake): New function.
  12618. (abortPiece): New function.
  12619. (getDownloadPiece): New function.
  12620. (getPeerMessageCommonProperty): New function.
  12621. (createRequestMessage): New function.
  12622. (createCancelMessage): New function.
  12623. (createPieceMessage): New function.
  12624. (createHaveMessage): New function.
  12625. (createChokeMessage): New function.
  12626. (createUnchokeMessage): New function.
  12627. (createInterestedMessage): New function.
  12628. (createNotInterestedMessage): New function.
  12629. (createBitfieldMessage): New function.
  12630. (createKeepAliveMessage): New function.
  12631. To add simple Content-Disposition support:
  12632. * src/HttpResponseCommand.h (determinFilename): New function.
  12633. * src/HttpResponseCommand.cc (executeInternal):
  12634. Use determinFilename(headers) instead of req->getFile() when comparing
  12635. filename.
  12636. (determinFilename): New function.
  12637. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12638. req->getFile().
  12639. (handleOtherEncoding): Use determinFilename(headers) instead of
  12640. req->getFile().
  12641. * src/Util.h (getContentDispositionFilename): New function.
  12642. * src/Util.cc (getContentDispositionFilename): New function.
  12643. * src/LogFactory.h (release): New function.
  12644. * src/LogFactory.cc (release): New function.
  12645. To fix a bug that causes out-of-bound exception when HTTP status
  12646. line is wrong:
  12647. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12648. size.
  12649. * src/common.h (Deleter): New class.
  12650. * src/SegmentMan.cc
  12651. (~SegmentMan): Added deletion of splitter and diskWriter.
  12652. * src/DownloadEngine.h
  12653. (Commands): Use deque.
  12654. (clearQueue): New function.
  12655. * src/DownloadEngine.cc
  12656. (~DownloadEngine): Added deletion of segmentMan.
  12657. (cleanQueue): New function.
  12658. * src/TorrentDownloadEngine.h
  12659. (TorrentDownloadEngine): The implementation was moved to
  12660. TorrentDownloadEngine.cc.
  12661. (~TorrentDownloadEngine): The implementation was moved to
  12662. TorrentDownloadEngine.cc.
  12663. * src/TorrentDownloadEngine.cc
  12664. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12665. * src/main.cc
  12666. (clearRequest): Removed.
  12667. (handler): Added deletion of e.
  12668. (torrentHandler): Added deletion of te.
  12669. (main): Do not share splitter.
  12670. Use Deleter instead of clearRequest.
  12671. Deletion of classes were updated.
  12672. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12673. * src/main.cc (main): Fixed typo.
  12674. * src/message.h: Fixed typo.
  12675. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12676. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12677. To add --select-file command-line option:
  12678. * src/Util.cc
  12679. (unfoldRange): New function.
  12680. (getNum): New function.
  12681. (unfoldSubRange): New function
  12682. * src/main.cc
  12683. (showUsage): Added help message.
  12684. (main): Added --select-file command-line option. Updated the layout of
  12685. file listing.
  12686. * src/common.h
  12687. (Integers): New definition.
  12688. * src/SocketCore.cc
  12689. (writeData): Removed timeout argument.
  12690. (readData): Removed timeout argument.
  12691. (peekData): Removed timeout argument.
  12692. * src/Socket.cc
  12693. (writeData): Removed timeout argument.
  12694. (readData): Removed timeout argument.
  12695. (peekData): Removed timeout argument.
  12696. * Release 0.4.1
  12697. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12698. To deploy upload rate based choking algorithm:
  12699. * src/PeerInteractionCommand.cc
  12700. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12701. peer currently used.
  12702. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12703. download completes. Simplified.
  12704. (receiveMessage): Updated.
  12705. * src/TorrentMan.h
  12706. (activePeers): New variable.
  12707. (addActivePeer): New function.
  12708. (getActivePeers): New function.
  12709. (deleteActivePeer): New function.
  12710. * src/TorrentMan.cc
  12711. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12712. * src/PeerAbstractCommand.cc
  12713. (onAbort): Use peer->resetStatus().
  12714. * src/main.cc
  12715. (PeerChokeCommand.h): Included.
  12716. (main): Added the instance of ChokingCommand to the command queue.
  12717. * src/Peer.h
  12718. (amChoking): Renamed from amChocking
  12719. (chokingRequired): New variable.
  12720. (optUnchoking): New variable.
  12721. (deltaUpload): New variable.
  12722. (deltaDownload): New variable.
  12723. (addDeltaUpload): New function.
  12724. (resetDeltaUpload): New function.
  12725. (addDeltaDownload): New function.
  12726. (resetDeltaDownload): New function.
  12727. (addPeerUpload): Added a call to addDeltaUpload.
  12728. (addPeerDownload): Added a call to addDeltaDownload.
  12729. * src/Peer.cc
  12730. (shouldBeChoking): Renamed from shouldChoke.
  12731. (resetStatus): New function.
  12732. * src/PeerChokeCommand.h: New class.
  12733. * src/PeerChokeCommand.cc: New class.
  12734. To add lazy upload speed limiter:
  12735. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12736. statistics calculation to TorrentDownloadEngine.
  12737. * src/TorrentConsoleDownloadEngine.cc
  12738. (sendStatistics): Renamed from printStatistics.
  12739. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12740. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12741. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12742. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12743. calculation.
  12744. (sendStatistics): New function as pure virtual function.
  12745. (getUploadSpeed): New function.
  12746. * src/TorrentDownloadEngine.cc
  12747. (initStatistics): New function.
  12748. (calculateSpeed): New function.
  12749. (calculateStatistics): New function.
  12750. * src/SendMessageQueue.h
  12751. (uploadLength): New variable.
  12752. (send): Added an argument.
  12753. (setUploadLimit): New function.
  12754. (getUploadLimit): New function.
  12755. * src/SendMessageQueue.cc
  12756. (send): Added upload speed limiter.
  12757. * src/prefs.h
  12758. (PREF_UPLOAD_LIMIT): New definition.
  12759. * src/PeerInteractionCommand.cc
  12760. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12761. * src/main.cc
  12762. (main): Added --upload-limit option
  12763. For bug fixes:
  12764. * src/main.cc
  12765. (showUsage): Corrected --listen-port help
  12766. Other changes:
  12767. * src/TorrentMan.cc
  12768. (getPeer): Return nullPeer if connection is grather than
  12769. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12770. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12771. To add some useful information to the exception message:
  12772. * src/SocketCore.cc : Updated messages.
  12773. * src/SegmentMan.cc :
  12774. * src/TorrentMan.cc : Updated messages.
  12775. * src/MultiDiskWriter.cc : Updated messages.
  12776. * src/Util.cc : Updated messages.
  12777. * src/AbstractDiskWriter.cc : Updated messages.
  12778. * src/PreAllocationDiskWriter.cc : Updated messages.
  12779. * src/message.cc : Added new messages. Updated some messages.
  12780. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12781. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12782. Updated threshold from 30 to 15.
  12783. * src/AbstractDiskWriter.h (filename): New variable.
  12784. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12785. (createFile): Assigned filename.
  12786. * src/main.cc: Updated the help message for http-auth-scheme.
  12787. * Release 0.4.0
  12788. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12789. To add TrackerUpdateCommand with which replaces
  12790. CompactTrackerResponseProcessor:
  12791. * src/TrackerWatcherCommand.h (req): Removed.
  12792. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12793. if the number of peer connections are less than 30.
  12794. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12795. * src/SegmentMan.h (diskWriter): New function.
  12796. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12797. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12798. (main): Use TrackerUpdateCommand.
  12799. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12800. (req): New variable.
  12801. (setTrackerResponseProcessor): Removed.
  12802. (getTrackerResponseProcessor): Removed.
  12803. (processTrackerResponse): Removed.
  12804. * src/DownloadEngine.h (diskWriter): Removed.
  12805. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12806. to torrentMan->processTrackerResponse().
  12807. To add Util::expandBuffer:
  12808. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12809. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12810. * src/Util.h (expandBuffer): New function.
  12811. To fix the bug that causes segmentation fault when "-l ." is specified
  12812. in command-line option:
  12813. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12814. (openFile): New function.
  12815. (closeFile): New function.
  12816. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12817. (~SimpleLogger): Call closeFile();
  12818. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12819. * src/main.cc (main): Added a check to see logger is configured
  12820. properly.
  12821. To enable HTTP authentication without specifying "--http-auth-scheme"
  12822. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12823. * src/HttpConnection.cc (createRequest): Send Authorization header
  12824. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12825. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12826. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12827. * src/Peer.cc (shouldChoke): Updated algorithm.
  12828. * src/message.h (EX_AUTH_FAILED): New definition.
  12829. (EX_FILE_OPEN): New definition.
  12830. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12831. if status == 401.
  12832. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12833. if req->isTorrent == true.
  12834. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12835. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12836. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12837. (createFile): Updated message.
  12838. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12839. To add a readout of estimated remaining time to normal HTTP/FTP
  12840. downloads:
  12841. * src/ConsoleDownloadEngine.h (startup): New variable.
  12842. (startupLength): New variable.
  12843. (isStartupLengthSet): New variable.
  12844. (avgSpeed): New variable.
  12845. (eta): New variable.
  12846. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12847. estimated remaining time.
  12848. (initStatistics): Initialized newly added variables.
  12849. (calculateStatistics): Calculate average speed and estimated remaining
  12850. time.
  12851. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12852. * src/TrackerDownloadCommand.h: Removed.
  12853. * src/TrackerDownloadCommand.cc: Removed.
  12854. * src/TrackerInitCommand.h: Removed.
  12855. * src/TrackerInitCommand.cc: Removed.
  12856. * src/TrackerUpdateCommand.h: Removed.
  12857. * src/TrackerUpdateCommand.cc: Removed.
  12858. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12859. url written in TrackerInitCommand was moved here. Do not create
  12860. tracker request command if torrentMan->trackers != 0.
  12861. * src/CompactTrackerResponseProcessor.h: New class.
  12862. * src/CompactTrackerResponseProcessor.cc: New class.
  12863. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12864. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12865. Decoupled TorrentDownloadEngine from this.
  12866. * src/SegmentMan.h (init): New function.
  12867. * src/SegmentMan.cc (init): New function.
  12868. * src/TorrentMan.h (responseProcessor): New variable.
  12869. (trackers): New variable.
  12870. (setTrackerResponseProcessor): New function.
  12871. (getTrackerResponseProcessor): New function.
  12872. (processTrackerResponse): New function.
  12873. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12874. (processTrackerResponse): New function.
  12875. * src/main.cc (main): Use ByteArrayDiskWriter and
  12876. CompactTrackerResponseProcessor.
  12877. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12878. processTrackerResponse().
  12879. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12880. readout.
  12881. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12882. which indicates download has completed.
  12883. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12884. (closeFile): fd >= 0, not fd > 0
  12885. * src/main.cc (main): Added short cut for show-files.
  12886. Added short cut for torrent-file.
  12887. Added new command-line option listen-port.
  12888. Updated i18n messages.
  12889. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12890. To add LogFactory which creates singleton logger:
  12891. * src/LogFactory.h: New class.
  12892. * src/LogFactory.cc: New class.
  12893. * src/Command.h (logger): New variable.
  12894. (Constructor): Use LogFactory.
  12895. * src/AbstractCommand.cc: Use Command::logger
  12896. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12897. Use LogFactory.
  12898. * src/SegmentSplitter.h : Made logger protected.
  12899. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12900. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12901. * src/DownloadEngine.h : Made logger protected.
  12902. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12903. * src/PeerInteractionCommand.cc : Use Command::logger.
  12904. * src/HttpResponseCommand.cc : Use Command::logger.
  12905. * src/SegmentMan.h : Made logger private.
  12906. * src/TorrentMan.h : Made logger private.
  12907. * src/TorrentMan.cc : Use LogFactory.
  12908. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12909. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12910. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12911. Use LogFactory.
  12912. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12913. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12914. Use LogFactory.
  12915. * src/DownloadCommand.cc : Use Command::logger.
  12916. * src/PeerAbstractCommand.cc : Use Command::logger.
  12917. * src/PeerListenCommand.cc : Use Command::logger.
  12918. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12919. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12920. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12921. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12922. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12923. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12924. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12925. Use LogFactory.
  12926. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12927. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12928. Use LogFactory.
  12929. * src/main.cc (main): Use LogFactory.
  12930. * src/DiskAdaptor.h (logger): New variable.
  12931. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12932. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12933. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12934. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12935. parameter to a tracker request.
  12936. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12937. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12938. * src/main.cc (setSignalHander): New function.
  12939. (main): Added a handler for SIGTERM.
  12940. (handler): Updated message.
  12941. (torrentHandler): Updated message.
  12942. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12943. * src/TorrentConsoleDownloadEngine.cc
  12944. (onPartialDownloadingCompletes): Renamed as
  12945. onSelectiveDownloadingCompletes.
  12946. (onSelectiveDownloadingCompletes): Updated message.
  12947. To add DiskAdaptor which abstract DiskWriter family:
  12948. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12949. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12950. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12951. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12952. MultiDiskAdaptor.h.
  12953. (readFileEntry): Changed its arguments.
  12954. (setup): setupDiskWriter is merged into this function.
  12955. (setupDiskWriter): Removed.
  12956. (setFileFilter): New function.
  12957. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12958. made in readFileEntry.
  12959. (getFilePath): Removed.
  12960. (getTempFilePath): Removed.
  12961. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12962. (fixFilename): Removed.
  12963. (copySingleFile): Removed.
  12964. (splitMultiFile): Removed.
  12965. (deleteTempFile): Removed.
  12966. (setFileEntriesToDownload): Removed.
  12967. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12968. (isSelectiveDownloadingMode): New function.
  12969. (setAllMultiFileRequestedState): Removed.
  12970. (finishPartialDownloadingMode): Renamed as
  12971. finishSelectiveDownloadingMode.
  12972. (finishSelectiveDownloadingMode): New function.
  12973. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12974. (getSelectedTotalLength): New function.
  12975. (onDownloadComplete): Use diskAdaptor.
  12976. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12977. (Range): Removed.
  12978. (setMultiFileEntries): Renamed as setFileEntries.
  12979. (setFileEntries): New function.
  12980. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12981. (pieceLength): New variable.
  12982. * src/main.cc (printDownloadCompeleteMessage): New function.
  12983. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12984. (main): Renamed torrent-show-files to show-files.
  12985. Rewritten file contents listing.
  12986. * src/TorrentMan.h (FileEntry): Removed.
  12987. (multiFileTopDir): Removed.
  12988. (multiFileEntries): Removed.
  12989. (diskWriter): Removed.
  12990. (diskAdaptor): New variable.
  12991. * src/DefaultDiskWriter.h (totalLength): New variable.
  12992. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12993. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12994. diskWriter.
  12995. * src/TorrentConsoleDownloadEngine.h
  12996. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12997. (partialTotalLength): Renamed as selectedTotalLength.
  12998. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12999. openExistingFile, otherwise call initAndOpenFile.
  13000. (closeFile): fd > 0, not fd != 0.
  13001. * src/DirectDiskAdaptor.h: New class.
  13002. * src/DirectDiskAdaptor.cc: New class.
  13003. * src/MultiDiskAdaptor.h: New class.
  13004. * src/MultiDiskAdaptor.cc: New class.
  13005. * src/CopyDiskAdaptor.h: New class.
  13006. * src/CopyDiskAdaptor.cc: New class.
  13007. * src/DiskAdaptor.h: New class.
  13008. * src/DiskAdaptor.cc: New class.
  13009. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13010. (PREF_SHOW_FILES): New definition.
  13011. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13012. To add the ability to download multi torrent into respective files
  13013. directly:
  13014. * src/DiskWriter.h (openFile): New function.
  13015. (seek): Removed.
  13016. * src/MultiDiskWriter.h: New class.
  13017. * src/MultiDiskWriter.cc: New class.
  13018. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13019. protected.
  13020. (openFile): New function.
  13021. * src/AbstractDiskWriter.cc (openFile): New function.
  13022. * src/prefs.h (V_FALSE): New definition.
  13023. (PREF_DIRECT_FILE_MAPPING): New definition.
  13024. * src/TorrentMan.h (setupDiskWriter): New function.
  13025. (setAllMultiFileRequestedState): New function.
  13026. (onDownloadComplete): New function.
  13027. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13028. (setupDiskWriter): New function.
  13029. (getFilePath): Updated.
  13030. (getTempFilePath): Updated.
  13031. (getSegmentFilePath): Updated.
  13032. (fixFilename): Updated.
  13033. (deleteTempFile): Updated.
  13034. (setAllMultiFileRequestedState): New function.
  13035. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13036. (finishPartialDownloadingMode): Reset requested flags.
  13037. (onDownloadComplete): New function.
  13038. * src/main.cc: Added --direct-file-mapping option.
  13039. Use TorrentMan::setupDiskWriter().
  13040. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13041. onDownloadComplete().
  13042. To fix ETA bug:
  13043. * src/Util.h (difftvsec): New function.
  13044. * src/Util.cc (difftvsec): New function.
  13045. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13046. type of "elapsed" instead of long long int.
  13047. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13048. The updates of statistics takes place every 1 seconds.
  13049. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13050. (calculateSpeed): Changed its argument signature.
  13051. * src/PeerMessage.cc (toString): Fixed message.
  13052. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13053. To print ETA:
  13054. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13055. completion handling when dealing with
  13056. TorrentMan::isPartialDownloadingMode() == true.
  13057. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13058. New function.
  13059. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13060. (sessionDownloadLength): New variable.
  13061. (avgSpeed): New variable.
  13062. (eta): New variable.
  13063. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13064. new variables: eta, avgSpeed, startup.
  13065. (calculateSpeed): Calculate average speed and ETA.
  13066. (printStatistics): Added ETA.
  13067. * src/Util.h (secfmt): New function.
  13068. * src/Util.cc (secfmt): New function.
  13069. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13070. To detect "keep alive" flooding:
  13071. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13072. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13073. variable: keepAliveCount.
  13074. (detectMessageFlooding): Added "keep alive" flooding detection.
  13075. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13076. received.
  13077. To add the ability to download only specified files in multi-file
  13078. torrent:
  13079. * src/BitfieldMan.h (filterBitfield): New variable.
  13080. (filterEnabled): New variable.
  13081. (setFilterBit): New function.
  13082. (enableFilter): New function.
  13083. (disableFilter): New function.
  13084. (isFilterEnabled): New function.
  13085. (getFilteredTotalLength): New function.
  13086. (getCompletedLength): New function.
  13087. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13088. filterBitfield, filterEnabled.
  13089. (CopyConstructor): Added filterBitfield and filterEnabled.
  13090. (operator==): Added filterBitfield and filterEnabled.
  13091. (Destructor): Added filterBitfield.
  13092. (getMissingIndex): Use filterBitfield.
  13093. (getMissingUnusedIndex): Use filterBitfield.
  13094. (getFirstMissingUnusedIndex): Use filterBitfield.
  13095. (getFirstMissingUnusedIndex): Use filterBitfield.
  13096. (getAllMissingIndexes): Use filterBitfield.
  13097. (countMissingBlock): Use filterBitfield.
  13098. (countBlock): Use filterBitfield.
  13099. (setBitInternal): Added new argument on.
  13100. (setUseBit): Use setBitInternal.
  13101. (unsetUseBit): Use setBitInternal.
  13102. (setBit): Use setBitInternal.
  13103. (unsetBit): Use setBitInternal.
  13104. (isAllBitSet): Use filterBitfield.
  13105. (setFilterBit): New function.
  13106. (addFilter): New function.
  13107. (enableFilter): New function.
  13108. (disableFilter): New function.
  13109. (clearFilter): New function.
  13110. (isFilterEnabled): New function.
  13111. (getFilteredTotalLength): New function.
  13112. (getCompletedLength): New function.
  13113. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13114. Initalized newly added variables.
  13115. [FileEntry](offset): New variable.
  13116. [FileEntry](extracted): New variable.
  13117. [FileEntry](requested): New variable.
  13118. (readFileEntry): New function.
  13119. (option): New variable.
  13120. (splitMultiFile): Removed const qualifier.
  13121. (fixFilename): Removed const qualifier.
  13122. (readFileEntryFromMetaInfoFile): New function.
  13123. (finishPartialDownloadingMode): New function.
  13124. (isPartialDownloadingMode): New function.
  13125. (setFileEntriesToDownload): New function.
  13126. (getCompletedLength): New function.
  13127. (getPartialTotalLength): New function.
  13128. * src/TorrentMan.cc (readFileEntry): New function.
  13129. (setup): Use readFileEntry. If no-preallocation option is specified,
  13130. use DefaultDiskWriter.
  13131. (readFileEntryFromMetaInfoFile): New function.
  13132. (fixFilename): Removed const qualifier.
  13133. (splitMultiFile): Removed const qualifier.
  13134. (setFileEntriesToDownload): New function.
  13135. (isPartialDownloadingMode): New function.
  13136. (finishPartialDownloadingMode): New function.
  13137. (getCompletedLength): New function.
  13138. (getPartialTotalLength): New function.
  13139. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13140. New variable.
  13141. (partialTotalLength): New variable.
  13142. (downloadLength): New variable.
  13143. (totalLength): New variable.
  13144. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13145. Added log.
  13146. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13147. partialTotalLength, downloadLength, totalLength.
  13148. (calculate): Calculate downloadLength and totalLength.
  13149. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13150. * src/main.cc (addCommand): Changed argument signature.
  13151. (main): Added new variable: args. Added new option "torrent-show-files"
  13152. "no-preallocation". Usage is not updated yet.
  13153. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13154. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13155. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13156. Attempt to add the ability to listing file entries in a .torrent file.
  13157. This feature is not yet complete.
  13158. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13159. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13160. (getName): New function.
  13161. * src/TorrentMan.h (getMultiFileEntries): New function.
  13162. (getName): New function.
  13163. * src/main.cc (main): Use above 2 funtion.
  13164. * Release 0.3.2
  13165. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13166. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13167. (detectMessageFlooding): Updated threshold value.
  13168. (checkLongTimePeerChoking): Updated timeout value.
  13169. (getNewPieceAndSendInterest): Added debug log.
  13170. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13171. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13172. (getPeer): Updated.
  13173. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13174. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13175. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13176. is localhost.
  13177. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13178. * src/PendingMessage.cc (processMessage): Not to send piece message
  13179. if peer is not interested in the pieces localhost has.
  13180. * src/Peer.cc (shouldChoke): Updated.
  13181. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13182. * src/Util.cc (isPowerOf): New function.
  13183. * src/Util.h (isPowerOf): New function.
  13184. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13185. whether or not it is power of 2.
  13186. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13187. Added new class SendMessageQueue that includes PendingMessages and
  13188. RequestSlotMan.
  13189. * src/SendMessageQueue.h: New class.
  13190. * src/SendMessageQueue.cc: New class.
  13191. * src/PendingMessage.h: Added new member variable blockIndex and its
  13192. accessors.
  13193. (createRequestMessage): Updated.
  13194. * src/PendingMessage.cc (createRequestMessage): Updated.
  13195. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13196. SendMessageQueue.
  13197. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13198. (receiveMessage): Updated with SendMessageQueue.
  13199. (deletePendingPieceMessage): Removed.
  13200. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13201. (sendInterest): Updated with SendMessageQueue.
  13202. (createRequestPendingMessage): Updated with SendMessageQueue.
  13203. (sendMessages): Updated with SendMessageQueue.
  13204. (onAbort): Updated with SendMessageQueue.
  13205. (keepAlive): Updated with SendMessageQueue.
  13206. (beforeSocketCheck): Updated SendMessageQueue.
  13207. * src/PeerInteractionCommand (sendMessages): Shuffle
  13208. missingBLockIndexes before using it.
  13209. Added its own timeout for peer connection.
  13210. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13211. setter.
  13212. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13213. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13214. Added setTimeout() call.
  13215. (executeInternal): Added setTimeout() call.
  13216. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13217. Added timeout.
  13218. (isTimeoutDetected): Updated.
  13219. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13220. option.
  13221. Added *simple* message flooding checker.
  13222. * src/PeerInteractionCommand.cc (executeInternal):
  13223. Added detectMessageFlooding() call.
  13224. (detectMessageFlooding): New function.
  13225. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13226. (beforeSocketCheck): Added detectMessageFlooding() call.
  13227. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13228. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13229. Removed deletePendingPieceMessage(), getRequestSlot(),
  13230. deleteRequestSlot(), deleteAllRequestSlot().
  13231. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13232. Added checkLongTimePeerChoking() call.
  13233. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13234. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13235. if duplicate == false.
  13236. The parameter "uploaded" and "downloaded" in the tracker request are
  13237. the size since the client sent the "started" event to the tracker.
  13238. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13239. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13240. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13241. getSessionDownloadedSize(), getSessionUploadedSize().
  13242. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13243. getSessionUploadedSize() instead of getDownloadedSize(),
  13244. getUploadedSize().
  13245. * src/PendingMessage.cc (processMessage): Do not send request message
  13246. if the peer is choking the client.
  13247. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13248. less than interval.
  13249. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13250. * configure.in: Added gnutls support. Added several CPP macros.
  13251. * m4/openssl.m4: Added.
  13252. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13253. readData(), peekData(). Added gnutls support.
  13254. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13255. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13256. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13257. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13258. Instead, added a check for whether setup method has executed
  13259. successfully.
  13260. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13261. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13262. * src/Makefile.am: Updated.
  13263. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13264. using whether OpenSSL or gcrypt, depending on the result of configure
  13265. script.
  13266. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13267. messageDigest.h.
  13268. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13269. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13270. Fixed memory leak.
  13271. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13272. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13273. Removed instantiation of TrackerInitCommand. Instead,
  13274. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13275. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13276. ENABLE_SSL.
  13277. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13278. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13279. If a piece is already acquired by another command, delete the request
  13280. slots for the piece.
  13281. * src/TrackerUpdateCommand.cc (execute):
  13282. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13283. Added a check whether peer list is null.
  13284. Fixed the bug that causes sending completed event to the tracker
  13285. several times.
  13286. * src/TrackerInitCommand.cc (execute):
  13287. Fixed the bug that causes sending completed event to the tracker
  13288. several times.
  13289. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13290. by using messageDigest.h.
  13291. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13292. * PeerConnection.cc: Replaced log message "keep-alive" with
  13293. "keep alive".
  13294. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13295. localhost long time.
  13296. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13297. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13298. at most 100 failure entry from the list. If with duplicate = false,
  13299. MAX_PEER_LIST is not checked.
  13300. * PeerListenCommand.cc: Fixed the argument order of log message.
  13301. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13302. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13303. Added warn().
  13304. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13305. Implemented warn().
  13306. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13307. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13308. * Request.h: Added AFTER_COMPLETED event.
  13309. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13310. instead of downloaded size and progress(%) after download completes.
  13311. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13312. message to the peer if it is interested in what localhost has
  13313. downloaded.
  13314. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13315. destination instead of just renaming it.
  13316. * TorrentMan.cc: Added deleteTempFile().
  13317. * PeerAbstractCommand.cc: do not stop execution after download
  13318. completes. This makes localhost a seeder.
  13319. * Util.{h,cc}: Added fileCopy().
  13320. * PeerListenCommand.cc: do not stop execution after download completes.
  13321. This makes localhost a seeder.
  13322. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13323. Added TorrentMan::deleteTempFile() to torrentHandler.
  13324. Initialized the variable dir as ".".
  13325. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13326. Deleted renameSingleFile().
  13327. Added copySingleFile(), deleteTempFile().
  13328. * DownloadEngine.h: Added virtual function afterEachIteration().
  13329. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13330. in onEndOfRun() to afterEachIteration().
  13331. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13332. true.
  13333. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13334. In rangedFileCopy(), added try-catch block to properly close file
  13335. descriptors.
  13336. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13337. Added afterEachIteration(), isFilenameFixed().
  13338. * Peer.cc: Changed choking strategy.
  13339. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13340. * TrackerInitCommand.cc: Send completed event only once.
  13341. * DownloadEngine.cc: Added a call to afterEachIteration().
  13342. * TrackerUpdateCommand.cc: Do not stop execution after download
  13343. completes.
  13344. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13345. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13346. received from a tracker.
  13347. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13348. Decreased the number of failure peers to delete to 0(just comment out
  13349. the line).
  13350. * Release 0.3.1
  13351. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13352. * PeerInteractionCommand.cc: added a call to
  13353. TorrentMan::unadvertisePiece in Destructor.
  13354. * PeerInteractionCommand.cc: make have message sent immediately
  13355. if the size of pending message queue is zero.
  13356. * TorrentMan.cc: set the maximum size of peer list to 250.
  13357. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13358. to deque.
  13359. * Util.cc: fixed rangedFileCopy.
  13360. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13361. to Constructor. Also, moved digest cleanup to Destructor.
  13362. * MetaFileUtil.cc: fixed memory leak
  13363. * replaced std::vector with std::deque.
  13364. * AbstractCommand.cc: casted timeout value to long long int.
  13365. * ChunkedEncoding.cc: fixed memory leak.
  13366. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13367. * SleepCommand.cc: casted timeout value to long long int.
  13368. * Data.cc: fixed memory leak.
  13369. * Data.cc: fixed toLLInt().
  13370. * BitfieldMan.cc: fixed memory leak.
  13371. * TorrentMan.cc: initialized storeDir to ".".
  13372. * TorrentMan.cc: fixed memory leak.
  13373. * TorrentMan.cc: corrected file paths of splitted files.
  13374. * PeerAbstractCommand.cc: casted timeout to long long int.
  13375. * main.cc: added delete(req) and delete(te->diskWriter).
  13376. * RequestSlot.cc: casted timeout value to long long int.
  13377. * Request.cc: fixed memory leak.
  13378. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13379. have the piece.
  13380. * Peer.{h,cc}: added hasPiece(int index).
  13381. * main.cc: corrected addCommand.
  13382. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13383. * BitTorrent protocol support added.
  13384. * Release 0.3.0
  13385. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13386. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13387. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13388. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13389. decoding did not work properly.
  13390. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13391. * DownloadEngine.h: included sys/time.h
  13392. * DownloadEngine.cc: remove sys/time.h
  13393. * Makefile.am (SUBDIRS): Add intl.
  13394. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13395. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13396. * main.cc: correct help message for --http-auth-scheme.
  13397. * main.cc: changed e-mail address for bug reports.
  13398. * ja.po: added japanese translation.
  13399. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13400. * SimpleLogger.cc: flush log file instead of stdout.
  13401. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13402. * main.cc: Fixed command-line option: max-tries
  13403. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13404. does not equal to seg.sp.
  13405. * DownloadCommand.cc: If EOF is got from the server and the total size
  13406. of file is not zero, then throw DlRetryEx.
  13407. * main.cc: Set the minium value of min-segment-size to 1024.
  13408. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13409. fails because of a regression since 0.2.0 release.
  13410. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13411. * HttpConnection.cc:
  13412. * common.h: defined the user agent name as macro
  13413. * DownloadEngine.{h, cc}:
  13414. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13415. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13416. * main.cc: Download complete/abort message is now generated by main.
  13417. * Makefile.am (SUBDIRS): Add m4.
  13418. (ACLOCAL_AMFLAGS): New variable.
  13419. (EXTRA_DIST): New variable.
  13420. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13421. * gettext: added gettext functionality
  13422. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13423. * AbstractCommand.cc:
  13424. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13425. unregister its cuid from SegmentMan.
  13426. * DownloadEngine.cc: .aria2 file was written when a downloading
  13427. failed with errors.
  13428. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13429. Added "User-Agent" header to CONNECT proxy request.
  13430. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13431. properly.
  13432. * Logger.h:
  13433. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13434. * ChunkedEncoding.cc: Added #include directive for strings.h
  13435. * Release 0.2.1
  13436. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13437. * Util.{h,cc}: added startsWith().
  13438. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13439. Util::endsWith().
  13440. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13441. * common.h: added #include directive of limit.h.
  13442. * DownloadEngine.cc: added #include directive of sys/time.h and
  13443. algorithm.
  13444. * Exception.h: added #include directive of stdio.h.
  13445. * AbstractCommand.h: added #include directive of sys/time.h.
  13446. * DownloadCommand.h: added #include directive of sys/time.h.
  13447. * *.h: added #include directive of common.h to all base classes.
  13448. subclasses' one was removed.
  13449. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13450. does not define these macros.
  13451. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13452. * Release 0.2.0
  13453. * main.cc:
  13454. * HttpInitiateConnectionCommand.{h,cc}:
  13455. * prefs.h:
  13456. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13457. We can now use GET command in http proxy.
  13458. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13459. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13460. that splits slowest segment of SegmentMan::commands vector.
  13461. This is the default split algorithm of aria2.
  13462. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13463. that splits first segment of SegmentMan::commands vector.
  13464. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13465. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13466. * Segment.h:
  13467. * SegmentMan.cc: Added speed field to Segment.h
  13468. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13469. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13470. * message.h: Change file size related %d to %lld.
  13471. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13472. * FtpInitiateConnectionCommand.{h,cc}:
  13473. * FtpNegotiationCommand.{h,cc}:
  13474. * FtpDownloadCommand.{h,cc}:
  13475. * FtpConnection.{h,cc}: Added FTP support
  13476. * SimpleLogger.cc: Log message now includes time information.
  13477. * main.cc: The value of --http-auth-scheme option is chagned from
  13478. 'BASIC' to 'basic'
  13479. * main.cc: Added --timeout command-line option.
  13480. * main.cc: Added --min-segment-size command-line option.
  13481. * main.cc: Added --max-retries command-line option.
  13482. * prefs.h: option string constants are now defined in prefs.h
  13483. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13484. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13485. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13486. with version 0.1.0's one.
  13487. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13488. * configure.in: Added --enable-ssl option to configure script.
  13489. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13490. cannot permit absoluteURI as Request-URI.
  13491. * HttpConnection.cc: Added Referer support.
  13492. * main.cc: Added referer command-line option.
  13493. * main.cc: Added rety-wait command-line option.
  13494. * Exception.h: Fixed formating bug in Exception::setMsg()
  13495. * SocketCore.{h,cc}:
  13496. * Socket.{h, cc}:
  13497. * Request.cc:
  13498. * InitiateConnectionCommandFactory.cc:
  13499. * HttpRequestCommand.cc: Added HTTPS support.
  13500. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13501. for SocketCore.
  13502. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13503. size is wrong
  13504. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13505. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13506. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13507. * Release 0.1.0