ChangeLog 490 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381
  1. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Wait 2 seconds. 1 second is sometimes not enough.
  3. * test/TimeSeedCriteriaTest.cc
  4. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Use localhost instead of 127.0.0.1.
  6. * test/DHTConnectionImplTest.cc
  7. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Suppressed compiler warning.
  9. * src/AdaptiveURISelector.cc
  10. * src/DefaultPieceStorage.cc
  11. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Defined virtual destructor.
  13. * src/MetalinkParserState.h
  14. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Give NULL for second argument of getaddrinfo instead of "0".
  16. * src/NameResolver.cc
  17. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  19. included strptime doesn't parse data for this format.
  20. * src/FtpConnection.cc
  21. * test/FtpConnectionTest.cc
  22. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Removed tests giving -1 for unsigned argument.
  24. * test/SingleFileDownloadContextTest.cc
  25. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Don't use sha256 in tests because it might not be supported by the
  27. SSL library.
  28. * test/MetalinkProcessorTest.cc
  29. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Removed tests giving -1 for unsigned argument.
  31. * test/AlphaNumberDecoratorTest
  32. * test/BitfieldManTest.cc
  33. * test/DefaultBtContextTest.cc
  34. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Fixed compile error without libcares when epoll is available.
  36. * src/EpollEventPoll.cc
  37. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Included fstream instead of iostream.
  39. * test/SignatureTest.cc
  40. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Removed #include <algorithm>
  42. * test/RequestGroupTest.cc
  43. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  45. using RequestGroup::extractURIResult().
  46. * src/AdaptiveURISelector.cc
  47. * src/RequestGroup.cc
  48. * src/RequestGroup.h
  49. * test/RequestGroupTest.cc
  50. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Added tests for array_ptr.
  52. * test/array_funTest.cc
  53. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Don't send ip parameter to a tracker if ip parameter is empty
  55. string.
  56. * src/DefaultBtAnnounce.cc
  57. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Adjusted line feed.
  59. * src/version_usage.cc
  60. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Print tags, possible values when OptionHandlerException is caught.
  62. * src/option_processing.cc
  63. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Changed the message for FatalException.
  65. * src/OptionParser.cc
  66. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Documented --bt-external-ip option in man page. Updated man pages
  68. for --proxy-method option.
  69. * doc/aria2c.1.txt
  70. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Use GET method for FTP via HTTP proxy.
  72. * src/FtpInitiateConnectionCommand.cc
  73. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Changed the default value of --proxy-method option from 'tunnel'
  75. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  76. option.
  77. * src/AbstractCommand.cc
  78. * src/AbstractCommand.h
  79. * src/FtpInitiateConnectionCommand.cc
  80. * src/HttpDownloadCommand.cc
  81. * src/HttpInitiateConnectionCommand.cc
  82. * src/HttpInitiateConnectionCommand.h
  83. * src/OptionHandlerFactory.cc
  84. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Initialized _logger
  86. * src/SelectEventPoll.cc
  87. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Defined a copy constructor for the same type.
  89. * src/SharedHandle.h
  90. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Added OptionParser::parseArg() which internally uses getopt_long
  92. to parse command-line options. All command-line options are now
  93. configured by OptionHandler. No manual editing of struct option*
  94. is required any more.
  95. * src/NameMatchOptionHandler.h
  96. * src/OptionHandler.h
  97. * src/OptionHandlerFactory.cc
  98. * src/OptionHandlerImpl.h
  99. * src/OptionParser.cc
  100. * src/OptionParser.h
  101. * src/array_fun.h
  102. * src/main.cc
  103. * src/option_processing.cc
  104. * test/OptionHandlerTest.cc
  105. * test/OptionParserTest.cc
  106. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Fixed configure error with --disable-epoll
  108. * configure.ac
  109. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  110. Fixed compile error when HAVE_EPOLL is not defined.
  111. Fixed linker error on bigendian systems.
  112. * src/SocketCore.cc
  113. * src/SocketCore.h
  114. * test/DefaultBtProgressInfoFileTest.cc
  115. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Added --bt-external-ip option. You can specify the external IP
  117. address to report to a BitTorrent tracker. Although this function
  118. is named 'external', it can accept any kind of IP addresses.
  119. * src/DefaultBtAnnounce.cc
  120. * src/OptionHandlerFactory.cc
  121. * src/option_processing.cc
  122. * src/prefs.cc
  123. * src/prefs.h
  124. * src/usage_text.h
  125. * test/DefaultBtAnnounceTest.cc
  126. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Extracted the algorithm to find the longest incremental sequence
  128. as max_sequence template.
  129. * src/LongestSequencePieceSelector.cc
  130. * src/a2algo.h
  131. * test/Makefile.am
  132. * test/a2algoTest.cc
  133. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  135. * src/usage_text.h
  136. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Updated doc for --uri-selector, --http-server-listen-port and
  138. --enable-http-server option. Documented --event-poll option.
  139. * doc/aria2c.1.txt
  140. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Updated doc for --enable-http-server.
  142. * src/usage_text.h
  143. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Documented --http-server-listen-port and --enable-http-server in
  145. man page.
  146. * doc/aria2c.1.txt
  147. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  149. translations. Thanks to all translators.
  150. * po/es.po
  151. * po/id.po
  152. * po/it.po
  153. * po/ru.po
  154. * po/uk.po
  155. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Bump up version number to 1.2.0
  157. * configure.ac
  158. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. BtContext::getAnnounceTiers() now returns const reference.
  160. * src/BtContext.h
  161. * src/DefaultBtContext.cc
  162. * src/DefaultBtContext.h
  163. * test/MockBtContext.h
  164. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Change the number of retries for tracker request based on the
  166. number of available tracker in a torrent file.
  167. * src/TrackerWatcherCommand.cc
  168. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Added _maxTries property to RequestGroup and assign the option
  170. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  171. RequestGroup::getMaxTries() instead of
  172. Option::getAsInt(PREF_MAX_TRIES).
  173. * src/AbstractCommand.cc
  174. * src/RequestGroup.cc
  175. * src/RequestGroup.h
  176. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  178. Mandriva. I modified the patch: make RequestGroup have the
  179. timeout value and AdaptiveURISelector directly modifies that
  180. value.
  181. * src/AbstractCommand.cc
  182. * src/AdaptiveURISelector.cc
  183. * src/AdaptiveURISelector.h
  184. * src/FtpNegotiationCommand.cc
  185. * src/RequestGroup.cc
  186. * src/RequestGroup.h
  187. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Fixed compiler warning
  189. * test/IteratableChecksumValidatorTest.cc
  190. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  192. integrated downloads. This PieceSelector subclass finds the
  193. longest continuous sequence in the available missing pieces and
  194. selects the last index of such sequence. This makes HTTP/FTP
  195. connections less interrupted by the pieces obtained by BitTorrent
  196. peers.
  197. * src/DefaultPieceStorage.cc
  198. * src/DefaultPieceStorage.h
  199. * src/LongestSequencePieceSelector.cc
  200. * src/LongestSequencePieceSelector.h
  201. * src/Makefile.am
  202. * src/PieceSelector.h
  203. * src/RarestPieceSelector.h
  204. * src/RequestGroup.cc
  205. * test/BtDependencyTest.cc
  206. * test/DefaultPieceStorageTest.cc
  207. * test/IteratableChecksumValidatorTest.cc
  208. * test/LongestSequencePieceSelectorTest.cc
  209. * test/Makefile.am
  210. * test/SegmentManTest.cc
  211. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Fixed the bug that the average speed is wrong in
  213. http/ftp/BitTorrent integrated download. Only the download bytes
  214. in BitTorrent were considered.
  215. * src/RequestGroup.cc
  216. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Choose port for BitTorrent/DHT randomly from the specified range.
  218. * src/DHTConnectionImpl.cc
  219. * src/PeerListenCommand.cc
  220. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Send HTTP Authorization header only if it is requested by the
  222. server(response 401). There are some exceptions. The authorization
  223. header for proxy is always sent if it is available without request
  224. by the server. If username/password is specified in the URI, it
  225. is immediately sent to the server without request by the server.
  226. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  227. SharedHandle<AuthConfig>().
  228. NetrcAuthResolver::resolveAuthConfig() returns
  229. SharedHandle<AuthConfig>() if no AuthConfig is available.
  230. * src/AbstractAuthResolver.cc
  231. * src/AbstractProxyRequestCommand.cc
  232. * src/AuthConfigFactory.cc
  233. * src/AuthConfigFactory.h
  234. * src/HttpConnection.cc
  235. * src/HttpRequest.cc
  236. * src/HttpRequest.h
  237. * src/HttpResponse.cc
  238. * src/HttpResponseCommand.cc
  239. * src/HttpSkipResponseCommand.cc
  240. * test/AuthConfigFactoryTest.cc
  241. * test/HttpRequestTest.cc
  242. * test/HttpResponseTest.cc
  243. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Remove leading "--" from help keyword and a substring after "="
  245. from help keyword, so that one can query options by '-h--max-' or
  246. '-hmax-peers=10'.
  247. * src/option_processing.cc
  248. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Rewritten PStringVisitor and its implementation.
  250. * src/PStringBuildVisitor.cc
  251. * src/PStringBuildVisitor.h
  252. * src/PStringDatum.h
  253. * src/PStringNumLoop.h
  254. * src/PStringSegment.cc
  255. * src/PStringSegment.h
  256. * src/PStringSelect.h
  257. * src/PStringVisitor.h
  258. * src/download_helper.cc
  259. * test/PStringBuildVisitorTest.cc
  260. * test/ParameterizedStringParserTest.cc
  261. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Persist connection between the built-in HTTP server and a client
  263. if a client supports keep-alive. Fixed the bug that aria2 exits
  264. when the HTTP server receives EOF from a client.
  265. * src/HttpServer.cc
  266. * src/HttpServer.h
  267. * src/HttpServerCommand.cc
  268. * src/HttpServerCommand.h
  269. * src/HttpServerResponseCommand.cc
  270. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Added experimental built-in HTTP server. Currently, when a client
  272. accesses to the server, it responds with the current download
  273. progress. By default, it is disabled. To enable the server, give
  274. --enable-http-server option. To change the default port number
  275. for the server to listen to, use --http-server-listen-port option.
  276. The response HTML is very simple and refreshes it self each 1
  277. second. Because of this refresh, you see flicker in normal web
  278. browser such as Firefox. I recommend to use console-based browser
  279. such as elinks, w3m. To connect to the server, run 'elinks
  280. http://localhost:6800/' while running aria2. Please replace port
  281. number '6800'(which is default) with your preference.
  282. * src/DownloadEngineFactory.cc
  283. * src/HttpHeader.cc
  284. * src/HttpHeader.h
  285. * src/HttpHeaderProcessor.cc
  286. * src/HttpHeaderProcessor.h
  287. * src/HttpListenCommand.cc
  288. * src/HttpListenCommand.h
  289. * src/HttpServer.cc
  290. * src/HttpServer.h
  291. * src/HttpServerCommand.cc
  292. * src/HttpServerCommand.h
  293. * src/HttpServerResponseCommand.cc
  294. * src/HttpServerResponseCommand.h
  295. * src/Makefile.am
  296. * src/OptionHandlerFactory.cc
  297. * src/Util.cc
  298. * src/Util.h
  299. * src/help_tags.h
  300. * src/option_processing.cc
  301. * src/prefs.cc
  302. * src/prefs.h
  303. * src/usage_text.h
  304. * test/HttpHeaderProcessorTest.cc
  305. * test/UtilTest.cc
  306. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Removed.
  308. * src/CheckIntegrityMan.cc
  309. * src/FileAllocationMan.cc
  310. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Made (piece) hash check sequential for each RequestGroup because
  312. simultaneous hash check is slower than sequential execution.
  313. * src/CheckIntegrityCommand.cc
  314. * src/CheckIntegrityDispatcherCommand.cc
  315. * src/CheckIntegrityDispatcherCommand.h
  316. * src/CheckIntegrityMan.h
  317. * src/ConsoleStatCalc.cc
  318. * src/DownloadCommand.cc
  319. * src/DownloadEngine.cc
  320. * src/DownloadEngine.h
  321. * src/DownloadEngineFactory.cc
  322. * src/Makefile.am
  323. * src/Makefile.in
  324. * src/RequestGroup.cc
  325. * src/StatCalc.h
  326. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  328. SequentialDispatcherCommand.
  329. * src/FileAllocationDispatcherCommand.cc
  330. * src/SequentialDispatcherCommand.h
  331. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Rewritten FileAllocationDispatcherCommand using brand new
  333. SequentialDispatcherCommand.
  334. * src/DownloadEngineFactory.cc
  335. * src/FileAllocationCommand.cc
  336. * src/FileAllocationDispatcherCommand.cc
  337. * src/FileAllocationDispatcherCommand.h
  338. * src/Makefile.am
  339. * src/SequentialDispatcherCommand.h
  340. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Replaced FileAllocationMan with
  342. SequentialPicker<FileAllocationEntry>.
  343. * src/BtCheckIntegrityEntry.cc
  344. * src/ConsoleStatCalc.cc
  345. * src/DownloadEngine.cc
  346. * src/DownloadEngine.h
  347. * src/DownloadEngineFactory.cc
  348. * src/FileAllocationCommand.cc
  349. * src/FileAllocationDispatcherCommand.cc
  350. * src/FileAllocationMan.h
  351. * src/Makefile.am
  352. * src/SequentialPicker.h
  353. * src/StatCalc.h
  354. * src/StreamCheckIntegrityEntry.cc
  355. * test/Makefile.am
  356. * test/SequentialPickerTest.cc
  357. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Added doc for adaptive URI selector.
  359. * doc/aria2c.1.txt
  360. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Added doc for adaptive URI selector.
  362. * src/usage_text.h
  363. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Added doc for --bt-max-peers option.
  365. * doc/aria2c.1.txt
  366. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Added doc for --bt-hash-check-seed option.
  368. * doc/aria2c.1.txt
  369. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Documented exit codes.
  371. * doc/aria2c.1.txt
  372. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Added --bt-max-peers option to specify the maximum number of peers
  374. per torrent. 0 means unlimited number of peers.
  375. * src/ActivePeerConnectionCommand.cc
  376. * src/BtRuntime.h
  377. * src/DefaultPeerStorage.cc
  378. * src/DefaultPeerStorage.h
  379. * src/OptionHandlerFactory.cc
  380. * src/RequestGroup.cc
  381. * src/option_processing.cc
  382. * src/prefs.cc
  383. * src/prefs.h
  384. * src/usage_text.h
  385. * test/DefaultPeerStorageTest.cc
  386. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Added --bt-hash-check-seed option. If true is given to this
  388. option, after hash check using --check-integrity option and file
  389. is complete, continue to seed file. If you want to check file and
  390. download it only when it is damaged or incomplete, set this option
  391. to false. This option has effect only on BitTorrent download.
  392. The default value is true(This is the same behavior with the
  393. previous release).
  394. * src/BtCheckIntegrityEntry.cc
  395. * src/OptionHandlerFactory.cc
  396. * src/option_processing.cc
  397. * src/prefs.cc
  398. * src/prefs.h
  399. * src/usage_text.h
  400. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Updated copyright year.
  402. * src/version_usage.cc
  403. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Rewritten the usage text for --bt-request-peer-speed-limit option.
  405. * doc/aria2c.1.txt
  406. * src/usage_text.h
  407. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Made the max value of split option unlimited.
  409. * doc/aria2c.1.txt
  410. * src/OptionHandlerFactory.cc
  411. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Fixed compile warning/error.
  413. * src/DownloadResult.h
  414. * src/HttpDownloadCommand.cc
  415. * src/ServerStat.cc
  416. * test/RequestGroupTest.cc
  417. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Added --event-poll option to select the method for polling events.
  419. The available methods are "select" and "epoll". "epoll" is
  420. available on Linux only. The earlier release has the compile
  421. option to choose from these methods.
  422. * configure.ac
  423. * src/RequestGroupMan.cc
  424. * src/OptionHandlerFactory.cc
  425. * src/EpollEventPoll.h
  426. * src/StreamFileAllocationEntry.cc
  427. * src/a2io.h
  428. * src/SelectEventPoll.h
  429. * src/option_processing.cc
  430. * src/prefs.h
  431. * src/EpollEventPoll.cc
  432. * src/EventPoll.h
  433. * src/SocketCore.h
  434. * src/Makefile.am
  435. * src/main.cc
  436. * src/DownloadEngine.h
  437. * src/SelectEventPoll.cc
  438. * src/DownloadEngine.cc
  439. * src/SocketCore.cc
  440. * src/DownloadEngineFactory.cc
  441. * src/Makefile.in
  442. * src/prefs.cc
  443. * src/usage_text.h
  444. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Included RecoverableException.h from main.cc
  446. * src/main.cc
  447. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  449. now returns last error encountered in the HTTP/FTP downloads as a
  450. exit status value. If all downloads finished successfully, aria2
  451. returns 0. The error code is defined in src/DownloadResult.h.
  452. The error occurred in the download currently in progress is not
  453. reported as a last error. If no error has encountered but there
  454. are in progress or waiting downloads, aria2 returns 7.
  455. * src/AbstractCommand.cc
  456. * src/DlAbortEx.h
  457. * src/DlRetryEx.h
  458. * src/DownloadCommand.cc
  459. * src/DownloadFailureException.h
  460. * src/DownloadResult.h
  461. * src/FtpNegotiationCommand.cc
  462. * src/HttpSkipResponseCommand.cc
  463. * src/Makefile.am
  464. * src/MultiUrlRequestInfo.cc
  465. * src/MultiUrlRequestInfo.h
  466. * src/RecoverableException.h
  467. * src/RequestGroup.cc
  468. * src/RequestGroup.h
  469. * src/RequestGroupMan.cc
  470. * src/RequestGroupMan.h
  471. * src/URIResult.cc
  472. * src/URIResult.h
  473. * src/main.cc
  474. * src/option_processing.cc
  475. * test/RequestGroupTest.cc
  476. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  478. patch adds AdaptiveURISelector, which selects one of the bests
  479. mirrors for first and reserved connections. For supplementary
  480. ones, it returns mirrors which has not been tested yet, and if
  481. each of them already tested, returns mirrors which has to be
  482. tested again. Otherwise, it doesn't return anymore mirrors.
  483. * src/AdaptiveURISelector.cc
  484. * src/AdaptiveURISelector.h
  485. * src/FtpNegotiationCommand.cc
  486. * src/HttpResponseCommand.cc
  487. * src/Makefile.am
  488. * src/Makefile.in
  489. * src/OptionHandlerFactory.cc
  490. * src/RequestGroup.cc
  491. * src/RequestGroup.h
  492. * src/RequestGroupMan.cc
  493. * src/ServerStat.cc
  494. * src/ServerStat.h
  495. * src/ServerStatMan.cc
  496. * src/SpeedCalc.cc
  497. * src/URISelector.h
  498. * src/prefs.cc
  499. * src/prefs.h
  500. * test/RequestGroupManTest.cc
  501. * test/ServerStatManTest.cc
  502. * test/ServerStatTest.cc
  503. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Fixed unit test error.
  505. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  506. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. * Release 1.1.2
  508. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Updated Russian translation. Thanks to the translators.
  510. * po/ru.po
  511. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Added the description of --use-head option to man page.
  513. * doc/aria2c.1.txt
  514. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Bump up version number to 1.1.2
  516. * configure.ac
  517. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Added --use-head option to toggle whether HEAD method should be
  519. used in the first HTTP request. By default aria2 uses HEAD method
  520. as the first request. When the server doesn't recognize HEAD, then
  521. give aria2 --use-head=false to force aria2 to use GET method
  522. instead.
  523. * src/OptionHandlerFactory.cc
  524. * src/RequestGroupMan.cc
  525. * src/option_processing.cc
  526. * src/prefs.cc
  527. * src/prefs.h
  528. * src/usage_text.h
  529. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Fixed the bug that BitTorrent download doesn't finish when REJECT
  531. message is received before CHOKE message. The old implementation
  532. doen't clear the use-bit of the piece when recieved REJECT
  533. message.
  534. * src/DefaultBtMessageDispatcher.cc
  535. * test/DefaultBtMessageDispatcherTest.cc
  536. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. * Release 1.1.1
  538. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Bump up version number to 1.1.1.
  540. * configure.ac
  541. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Fixed the bug that --summary-interval=0 doesn't work. The summary
  543. is printed repeatedly.
  544. * src/ConsoleStatCalc.cc
  545. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. * Release 1.1.0
  547. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Added ifdef clause for conditional compilation.
  549. * src/main.cc
  550. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  552. translations. Thanks to all translators.
  553. * po/ja.po
  554. * po/ru.po
  555. * po/uk.po
  556. * po/zh_CN.po
  557. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Added the preceding ">>> " before the message "Printing the
  559. contents of file..." to make the output more readable.
  560. * src/main.cc
  561. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Added try-catch block in the loop in showFiles() to continue the
  563. operation even if the exception occurred in one file.
  564. * src/main.cc (showFiles)
  565. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Made messages in showFiles() translatable.
  567. * po/aria2.pot
  568. * src/main.cc
  569. * src/message.h
  570. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Print the contents of Torrent/Metalink files are printed without
  572. -T/-M options.
  573. * src/main.cc
  574. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Escaped '--' with '\--'
  576. * README
  577. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Updated "How to build" section in README. Mentioned about
  579. --with-ca-bundle compile option.
  580. * README
  581. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Bump up version number to 1.1.0.
  583. * configure.ac
  584. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Added a note for --dht-listen-port option.
  586. * doc/aria2c.1.txt
  587. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Update doc for --realtime-chunk-checksum option.
  589. * doc/aria2c.1.txt
  590. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Update doc for --realtime-chunk-checksum option.
  592. * src/usage_text.h
  593. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Updated French, Japanese, Russian and Ukrainian translations.
  595. Thanks to all translators.
  596. * po/fr.po
  597. * po/ja.po
  598. * po/ru.po
  599. * po/uk.po
  600. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Renamed aria2c.pot to aria2.pot
  602. * po/aria2.pot
  603. * po/aria2c.pot: Removed.
  604. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Removed MetaEntry.h
  606. * src/Makefile.am
  607. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Rename file by appending digits if a local file exists and its
  609. file size is larger than that of remote file with --continue
  610. option. The old implementation just throws exception in such case.
  611. * src/RequestGroup.cc
  612. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Fixed the bug that download progress summary is not printed in the
  614. interval specified by the option.
  615. * src/ConsoleStatCalc.cc
  616. * src/ConsoleStatCalc.h
  617. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Fixed compiler warning
  619. * src/Cookie.cc
  620. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Fixed the cookie implementation based on RFC2965.
  622. Now if a value in domain field is not started with dot, then
  623. prepend dot. That means a cookie with domain=sf.net is sent to
  624. wiki.sf.net.
  625. * src/Cookie.cc
  626. * test/CookieParserTest.cc
  627. * test/CookieStorageTest.cc
  628. * test/CookieTest.cc
  629. * test/NsCookieParserTest.cc
  630. * test/Sqlite3MozCookieParserTest.cc
  631. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Fixed the bug that causes corrupted downloads if HTTP pipelining
  633. is enabled and the server doesn't support keep-alive.
  634. * src/AbstractCommand.cc
  635. * src/DownloadCommand.cc
  636. * src/HttpDownloadCommand.cc
  637. * src/HttpDownloadCommand.h
  638. * src/HttpResponseCommand.cc
  639. * src/Request.cc
  640. * src/Request.h
  641. * test/RequestTest.cc
  642. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Removed Dictionary/List/Data and its related classes.
  644. * src/BencodeVisitor.cc: Removed.
  645. * src/BencodeVisitor.h: Removed.
  646. * src/Data.cc: Removed.
  647. * src/Data.h: Removed.
  648. * src/Dictionary.cc: Removed.
  649. * src/Dictionary.h: Removed.
  650. * src/List.cc: Removed.
  651. * src/List.h: Removed.
  652. * src/Makefile.am
  653. * src/MetaEntry.h: Removed.
  654. * src/MetaEntryVisitor.h: Removed.
  655. * src/MetaFileUtil.cc: Removed.
  656. * src/MetaFileUtil.h: Removed.
  657. * test/BencodeVisitorTest.cc: Removed.
  658. * test/DataTest.cc: Removed.
  659. * test/DictionaryTest.cc: Removed.
  660. * test/ListTest.cc: Removed.
  661. * test/Makefile.am
  662. * test/MetaFileUtilTest.cc: Removed.
  663. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Removed include of MetaEntry.h
  665. * test/DHTMessageTrackerEntryTest.cc
  666. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Use BDE instead of Dictionary/List/Data.
  668. * src/AnnounceList.cc
  669. * src/AnnounceList.h
  670. * test/AnnounceListTest.cc
  671. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Use BDE instead of Dictionary/List/Data.
  673. * src/DHTAbstractMessage.cc
  674. * src/DHTAbstractMessage.h
  675. * src/DHTAnnouncePeerMessage.cc
  676. * src/DHTAnnouncePeerMessage.h
  677. * src/DHTAnnouncePeerReplyMessage.cc
  678. * src/DHTAnnouncePeerReplyMessage.h
  679. * src/DHTFindNodeMessage.cc
  680. * src/DHTFindNodeMessage.h
  681. * src/DHTFindNodeReplyMessage.cc
  682. * src/DHTFindNodeReplyMessage.h
  683. * src/DHTGetPeersMessage.cc
  684. * src/DHTGetPeersMessage.h
  685. * src/DHTGetPeersReplyMessage.cc
  686. * src/DHTGetPeersReplyMessage.h
  687. * src/DHTMessageFactory.h
  688. * src/DHTMessageFactoryImpl.cc
  689. * src/DHTMessageFactoryImpl.h
  690. * src/DHTMessageReceiver.cc
  691. * src/DHTMessageTracker.cc
  692. * src/DHTMessageTracker.h
  693. * src/DHTPingMessage.cc
  694. * src/DHTPingMessage.h
  695. * src/DHTPingReplyMessage.cc
  696. * src/DHTPingReplyMessage.h
  697. * src/DHTQueryMessage.cc
  698. * src/DHTQueryMessage.h
  699. * src/DHTResponseMessage.cc
  700. * src/DHTResponseMessage.h
  701. * test/DHTAnnouncePeerMessageTest.cc
  702. * test/DHTAnnouncePeerReplyMessageTest.cc
  703. * test/DHTFindNodeMessageTest.cc
  704. * test/DHTFindNodeReplyMessageTest.cc
  705. * test/DHTGetPeersMessageTest.cc
  706. * test/DHTGetPeersReplyMessageTest.cc
  707. * test/DHTMessageFactoryImplTest.cc
  708. * test/DHTMessageTrackerTest.cc
  709. * test/DHTPingMessageTest.cc
  710. * test/DHTPingReplyMessageTest.cc
  711. * test/MockDHTMessageFactory.h
  712. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Added tests the case where length < 0 is specified.
  714. * test/BencodeTest.cc
  715. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Fixed memory leak in decoderawstring()
  717. * src/bencode.cc
  718. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Added missing #ifdef guard. Added uc() function for String and
  720. removeKey() for Dict.
  721. * src/bencode.cc
  722. * src/bencode.h
  723. * test/BencodeTest.cc
  724. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Use BDE instead of Dictionary/List/Data.
  726. * src/HandshakeExtensionMessage.cc
  727. * src/HandshakeExtensionMessage.h
  728. * test/HandshakeExtensionMessageTest.cc
  729. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Added --max-overall-upload-limit option. This option limits the
  731. overall upload speed. Stated in help message that the existing
  732. --max-upload-limit option limits the upload speed per each
  733. torrent. Man page is also updated.
  734. * doc/aria2c.1.txt
  735. * src/DefaultBtMessageDispatcher.cc
  736. * src/DefaultBtMessageDispatcher.h
  737. * src/OptionHandlerFactory.cc
  738. * src/PeerInteractionCommand.cc
  739. * src/option_processing.cc
  740. * src/prefs.cc
  741. * src/prefs.h
  742. * src/usage_text.h
  743. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Use BDE instead of Dictionary/List/Data classes.
  745. * src/CompactPeerListProcessor.cc
  746. * src/CompactPeerListProcessor.h
  747. * src/DefaultBtAnnounce.cc
  748. * src/DefaultBtContext.cc
  749. * src/DefaultBtContext.h
  750. * src/DefaultPeerListProcessor.cc
  751. * src/DefaultPeerListProcessor.h
  752. * src/DelegatingPeerListProcessor.cc
  753. * src/DelegatingPeerListProcessor.h
  754. * src/PeerListProcessor.h
  755. * src/UTPexExtensionMessage.cc
  756. * src/Util.h
  757. * src/message.h
  758. * test/DefaultBtContextTest.cc
  759. * test/DefaultPeerListProcessorTest.cc
  760. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Added bencode helper functions and BDE class.
  762. They will replace MetaFileUtil and Dictionary/List/Data classes.
  763. * src/Makefile.am
  764. * src/bencode.cc
  765. * src/bencode.h
  766. * test/BencodeTest.cc
  767. * test/Makefile.am
  768. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Fixed the bug that bad URI is sent to the tracker when the announe
  770. URI in torrent file includes query.
  771. * src/DefaultBtAnnounce.cc
  772. * test/DefaultBtAnnounceTest.cc
  773. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Added Option::blank().
  775. Use !Option::blank(name) instead of Option::defined(name) for
  776. the options that take filename.
  777. * src/MultiUrlRequestInfo.cc
  778. * src/Option.cc
  779. * src/Option.h
  780. * src/main.cc
  781. * src/option_processing.cc
  782. * test/OptionTest.cc
  783. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Documented the default value of --check-certificate option in man
  785. page.
  786. * doc/aria2c.1.txt
  787. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Enabled --check-certificate by default. Added compile
  789. time(configure) option --with-ca-bundle to specify CA bundle.
  790. Warn if --check-certificate=true and --ca-certificate is not
  791. specified or loading CA certificate is failed.
  792. * configure.ac
  793. * src/MultiUrlRequestInfo.cc
  794. * src/OptionHandlerFactory.cc
  795. * src/message.h
  796. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Mentioned https tag in help option.
  798. * doc/aria2c.1.txt
  799. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Added `https' tag to help option category. Added https tag to
  801. --ca-certificate, --certificate, --check-certificate and
  802. --private-key option.
  803. * src/OptionHandlerFactory.cc
  804. * src/help_tags.h
  805. * src/option_processing.cc
  806. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Changed the package name from `aria2c' to `aria2' in order to fix
  808. the packaging issue in Debian and Fedora. The name of the
  809. executable is not changed.
  810. * configure.ac
  811. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Fixed typos
  813. * src/usage_text.h
  814. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Fixed typos and updated doc.
  816. * README
  817. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Fixed typos
  819. * doc/aria2c.1.txt
  820. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Fixed typos
  822. * src/usage_text.h
  823. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Print a message when no files to download.
  825. * src/download_helper.cc
  826. * src/main.cc
  827. * src/message.h
  828. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. RFC3986 complied Percent-Encoding(urlencode).
  830. Use uppercase hexadecimal digits for encoded text instead of lowercase
  831. ones.
  832. * src/Request.cc
  833. * src/Util.cc
  834. * src/Util.h
  835. * test/BtHandshakeMessageTest.cc
  836. * test/DefaultBtAnnounceTest.cc
  837. * test/DefaultBtContextTest.cc
  838. * test/RequestTest.cc
  839. * test/UtilTest.cc
  840. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Fixed the bug that prevents aria2 from downloading 0-length files
  842. via HTTP/FTP.
  843. * src/DefaultBtContext.cc
  844. * src/DefaultBtContext.h
  845. * src/DownloadContext.h
  846. * src/FtpNegotiationCommand.cc
  847. * src/HttpResponseCommand.cc
  848. * src/HttpResponseCommand.h
  849. * src/RequestGroup.cc
  850. * src/SingleFileDownloadContext.cc
  851. * src/SingleFileDownloadContext.h
  852. * test/BtPostDownloadHandlerTest.cc
  853. * test/MetalinkPostDownloadHandlerTest.cc
  854. * test/MockBtContext.h
  855. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  857. * src/option_processing.cc
  858. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Applied aria2-1.0.1-mingw.patch.
  860. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  861. mingw.
  862. Collected 4th and 5th argument types for getsockopt and setsockopt.
  863. * src/SocketCore.cc
  864. * src/a2netcompat.h
  865. * test/SocketCoreTest.cc
  866. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. * Release 1.0.1
  868. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Updated Ukrainian and Norwegian Nynorsk translations.
  870. Thanks to all translators.
  871. * po/nn.po
  872. * po/uk.po
  873. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Don't show download result when -S option is used.
  875. * src/main.cc
  876. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Bump up version number to 1.0.1
  878. * configure.ac
  879. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Closed files after the test cases in MultiDiskWriterTest::
  881. testResetDiskWriterEntries(). This will fix the unit test error
  882. in mingw32 build.
  883. * test/MultiDiskWriterTest.cc
  884. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Use HEAD method to get file size from HTTP server for segmented
  886. downloading.
  887. The request to the BitTorrent Tracker always uses GET method because
  888. the response of the tracker is small and it doesn't need segmented
  889. download.
  890. * src/FtpNegotiationCommand.cc
  891. * src/HttpRequest.cc
  892. * src/HttpResponseCommand.cc
  893. * src/HttpSkipResponseCommand.cc
  894. * src/RequestGroup.cc
  895. * src/RequestGroup.h
  896. * src/TrackerWatcherCommand.cc
  897. * test/HttpRequestTest.cc
  898. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Fixed the bug that causes floating exception when -T option is used and
  900. no URIs are given.
  901. * src/download_helper.cc
  902. * test/DownloadHelperTest.cc
  903. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  904. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  905. errors in MinGW:
  906. Closed file after saving server stats (RequestGroupMan.cc)
  907. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  908. Ignored case & handled 2-digit years (strptime.c)
  909. Added missing suseconds_t definition (a2time.h)
  910. Fixed socket CLOSE() define (SocketCore.cc)
  911. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  912. Changed utime() test values from x000 to x00000 as MinGW failed on
  913. values less than timezone offset from Unix epoch
  914. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  915. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  916. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  917. handle negative dates (CookieParserTest.cc)
  918. * src/a2time.h
  919. * src/FtpConnection.cc
  920. * src/RequestGroupMan.cc
  921. * src/SocketCore.cc
  922. * src/strptime.c
  923. * test/CookieParserTest.cc
  924. * test/CopyDiskAdaptorTest.cc
  925. * test/FileTest.cc
  926. * test/FtpConnectionTest.cc
  927. * test/MultiDiskAdaptorTest.cc
  928. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  930. * doc/aria2c.1.txt
  931. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. * Release 1.0.0
  933. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Added '~' to reserved characters.
  935. * src/Util.cc
  936. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Do not urlencode Request::url in setUrl() because we want unmodified
  938. URL using Request::getUrl()
  939. * src/Request.cc
  940. * src/Request.h
  941. * test/RequestTest.cc
  942. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  944. Thanks to all translators.
  945. * po/bg.po
  946. * po/fr.po
  947. * po/ja.po
  948. * po/ru.po
  949. * po/uk.po
  950. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Bump up version number to 1.0.0
  952. * configure.ac
  953. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Added nosqlite3 build to build_test.sh.
  955. Renamed noxml as expat.
  956. * build_test.sh
  957. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Updated INPUT FILE section.
  959. * doc/aria2c.1.txt
  960. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  962. on big endian systems because test .aria2 files are made for little
  963. endian systems.
  964. * test/DefaultBtProgressInfoFileTest.cc
  965. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Dropped ares support.
  967. * README
  968. * configure.ac
  969. * m4/libares.m4: Removed.
  970. * src/AsyncNameResolver.cc
  971. * src/Makefile.am
  972. * test/Makefile.am
  973. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  975. Removed const qualifier from DiskWriter::size().
  976. * src/AbstractDiskWriter.cc
  977. * src/AbstractDiskWriter.h
  978. * src/ByteArrayDiskWriter.cc
  979. * src/ByteArrayDiskWriter.h
  980. * src/DiskWriter.h
  981. * test/ByteArrayDiskWriterTest.cc
  982. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Fixed the bug that causes segmentation fault/bus error during executing
  984. choking algorithm while seeding. This is caused by improper
  985. implementation of compare function which returns inconsistent results
  986. depending on the timing of last unchoke.
  987. * src/BtSeederStateChoke.cc
  988. * src/BtSeederStateChoke.h
  989. * src/DefaultPeerStorage.cc
  990. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Removed TODO
  992. * TODO
  993. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Added a section that explains how to pass argument to options that
  995. takes optional arguments with its short form.
  996. * doc/aria2c.1.txt
  997. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Added -u for the short form of --max-upload-limit option.
  999. * doc/aria2c.1.txt
  1000. * src/option_processing.cc
  1001. * src/usage_text.h
  1002. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Added -V for the short form of --check-integrity option.
  1004. Now the argument of --check-integrity option is optional:
  1005. if it is omitted, it is evaluated as true.
  1006. * doc/aria2c.1.txt
  1007. * src/option_processing.cc
  1008. * src/usage_text.h
  1009. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Made the default value of --ftp-pasv option set to true and it can take
  1011. true/false values.
  1012. * src/OptionHandlerFactory.cc
  1013. * src/option_processing.cc
  1014. * src/usage_text.h
  1015. * doc/aria2c.1.txt
  1016. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Given custom random number generator to std::random_shuffle.
  1018. * src/AnnounceList.cc
  1019. * src/BtLeecherStateChoke.cc
  1020. * src/BtSeederStateChoke.cc
  1021. * src/DefaultBtRequestFactory.cc
  1022. * src/MetalinkEntry.cc
  1023. * src/RarestPieceSelector.cc
  1024. * src/SimpleRandomizer.cc
  1025. * src/SimpleRandomizer.h
  1026. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Now the default value of --enable-direct-io is true.
  1028. * src/OptionHandlerFactory.cc
  1029. * doc/aria2c.1.txt
  1030. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Erase peer before executing onReturningPeer and onErasingPeer
  1032. because choking algorithm called from onReturningPeer doesn't
  1033. like erasing peer in the active peer list.
  1034. * src/DefaultPeerStorage.cc
  1035. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Instead of creating special filename in createDownloadResult() if
  1037. inMemoryDownload() is true, now it is done in getFilePath().
  1038. * src/RequestGroup.cc
  1039. * test/RequestGroupTest.cc
  1040. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1042. processed in memory. This is the fix for previous comment out.
  1043. * src/MemoryBufferPreDownloadHandler.cc
  1044. * src/RequestGroup.cc
  1045. * src/RequestGroup.h
  1046. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Commented out the code which sets virtual directory path "[MEMORY]"
  1048. propagate directory to store to following RequestGroup.
  1049. * src/MemoryBufferPreDownloadHandler.cc
  1050. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Bump up version number to 1.0.0b
  1052. * configure.ac
  1053. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Added input_uris.txt to EXTRA_DIST
  1055. * test/Makefile.am
  1056. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Removed PeerObject.h from Makefile.am
  1058. * src/Makefile.am
  1059. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Avoid slow seeding
  1061. * src/PeerInteractionCommand.cc
  1062. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Updated usage for -i option.
  1064. * src/usage_text.h (TEXT_INPUT_FILE)
  1065. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1066. Added INPUT FILE section to man page.
  1067. Escaped fake URLs.
  1068. * doc/aria2c.1.txt
  1069. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Fixed wrong note position for -o option.
  1071. * doc/aria2c.1.txt
  1072. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Fixed compile error without SSL/XML library.
  1074. * src/DefaultBtProgressInfoFile.cc
  1075. * src/DefaultBtProgressInfoFile.h
  1076. * src/FileMetalinkParserState.cc
  1077. * src/RequestGroup.h
  1078. * src/SocketCore.cc
  1079. * src/SocketCore.h
  1080. * src/VerificationMetalinkParserState.cc
  1081. * src/download_helper.h
  1082. * src/main.cc
  1083. * test/DefaultBtProgressInfoFileTest.cc
  1084. * test/DownloadHelperTest.cc
  1085. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Rewritten URI handling functions. They are now provided as a testable
  1087. functions.
  1088. * src/Makefile.am
  1089. * src/RequestGroup.cc
  1090. * src/RequestGroup.h
  1091. * src/download_helper.cc
  1092. * src/download_helper.h
  1093. * src/main.cc
  1094. * test/DownloadHelperTest.cc
  1095. * test/Makefile.am
  1096. * test/input_uris.txt
  1097. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Quickly terminate commands when ctrl-c is pressed.
  1099. * src/DownloadEngine.cc
  1100. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Quickly terminate idle commands when download finished.
  1102. * src/AbstractCommand.cc
  1103. * src/DownloadCommand.cc
  1104. * src/DownloadEngine.cc
  1105. * src/DownloadEngine.h
  1106. * src/SleepCommand.cc
  1107. * src/SleepCommand.h
  1108. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Added the ability to specify output filename and directory in input
  1110. file.
  1111. Additional parameters are added in the following line of URIs
  1112. with proceeding white space(s), 1 parameter in 1 line.
  1113. The parameter names are the same with the command-line option name
  1114. without proceeding "--". Not all the options are available here:
  1115. at the moment, 'dir' and 'out' options are avialable.
  1116. Please note that out option has no effect against Metalink or BitTorrent
  1117. downloads.
  1118. Example input file:
  1119. http://host/foo-1.1.tar.bz2
  1120. out=foo.tar.bz2
  1121. dir=/tmp/downloads
  1122. http://host/thundermonkey-2.0.tar.bz2
  1123. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1124. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1125. thundermonkey-2.0.tar.bz2 is saved as
  1126. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1127. * src/BtPostDownloadHandler.cc
  1128. * src/Metalink2RequestGroup.cc
  1129. * src/Metalink2RequestGroup.h
  1130. * src/MetalinkPostDownloadHandler.cc
  1131. * src/UriListParser.cc
  1132. * src/UriListParser.h
  1133. * src/main.cc
  1134. * test/Metalink2RequestGroupTest.cc
  1135. * test/UriListParserTest.cc
  1136. * test/filelist1.txt
  1137. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Fixed error when SSL library is not found.
  1139. * configure.ac
  1140. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Cross referenced among -s, -C and -j options.
  1142. Updated usage of -C and -s options.
  1143. * src/usage_text.h
  1144. * doc/aria2c.1.txt
  1145. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Fixed bad cast in 32bit platforms.
  1147. * test/DefaultPieceStorageTest.cc
  1148. (DefaultPieceStorageTest::testGetCompletedLength)
  1149. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Fixed unit test fails on 32bit platforms.
  1151. * test/CookieParserTest.cc
  1152. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Show an average download speed in Download results.
  1154. * src/BtFileAllocationEntry.cc
  1155. * src/DefaultPieceStorage.cc
  1156. * src/DownloadContext.cc
  1157. * src/DownloadContext.h
  1158. * src/DownloadResult.h
  1159. * src/RequestGroup.cc
  1160. * src/RequestGroupMan.cc
  1161. * src/StreamFileAllocationEntry.cc
  1162. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Fixed the bug that metalink file is not processed if Content-Type
  1164. field has a paramter.
  1165. * src/HttpResponse.cc
  1166. * src/HttpResponse.h
  1167. * test/HttpResponseTest.cc
  1168. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Removed unused code.
  1170. * src/DefaultBtAnnounce.cc
  1171. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1173. the value larger than DefaultPieceStorage::getTotalLength() when
  1174. in flight pieces are involved.
  1175. * src/DefaultPieceStorage.cc
  1176. * test/DefaultPieceStorageTest.cc
  1177. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Bump up version number to 1.0.0a.
  1179. * configure.ac
  1180. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Updated configure.ac
  1182. * configure.ac
  1183. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Added usege for proxy.
  1185. * doc/aria2c.1.txt
  1186. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Added usage for --ca-certificate, --certificate, --private-key and
  1188. --check-certificate options.
  1189. * doc/aria2c.1.txt
  1190. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Updated man page
  1192. * doc/aria2c.1.txt
  1193. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Added --no-proxy option. It receives comman separated hostname or
  1195. domains to which proxy should not be used.
  1196. aria2 honors the environment variable no_proxy to override no-proxy
  1197. value in configuration file. The user can override the environment
  1198. variable no_proxy with --no-proxy command-line option.
  1199. * src/AbstractCommand.cc
  1200. * src/OptionHandlerFactory.cc
  1201. * src/option_processing.cc
  1202. * src/prefs.cc
  1203. * src/prefs.h
  1204. * src/usage_text.h
  1205. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1207. The CA certificates are specified in --ca-certificate option.
  1208. By default, the verification is disabled. Use --check-certificate
  1209. option to enable it.
  1210. * src/HttpRequestCommand.cc
  1211. * src/LibgnutlsTLSContext.cc
  1212. * src/LibgnutlsTLSContext.h
  1213. * src/LibsslTLSContext.cc
  1214. * src/LibsslTLSContext.h
  1215. * src/MultiUrlRequestInfo.cc
  1216. * src/OptionHandlerFactory.cc
  1217. * src/SocketCore.cc
  1218. * src/SocketCore.h
  1219. * src/a2functional.h
  1220. * src/message.h
  1221. * src/option_processing.cc
  1222. * src/prefs.cc
  1223. * src/prefs.h
  1224. * src/usage_text.h
  1225. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Added client certificate authentication for SSL/TLS.
  1227. Currently a private key must be decrypted for use with aria2.
  1228. If a user accidentally gives encrypted file to aria2 then following
  1229. thing happens:
  1230. If encrypted private key is given to aria2, it behaves differently
  1231. depending on the ssl library it uses. If aria2 built with openssl then
  1232. openssl prompts the user for password. If aria2 build with gnutls then
  1233. aria2 exists with error at start up.
  1234. * src/DownloadEngineFactory.cc
  1235. * src/MultiUrlRequestInfo.cc
  1236. * src/OptionHandlerFactory.cc
  1237. * src/option_processing.cc
  1238. * src/prefs.cc
  1239. * src/prefs.h
  1240. * src/usage_text.h
  1241. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Introduced TLSContext that holds TLS related data that can be shared
  1243. with multiple SSL connections.
  1244. * src/DownloadEngineFactory.cc
  1245. * src/LibgnutlsTLSContext.cc
  1246. * src/LibgnutlsTLSContext.h
  1247. * src/LibsslTLSContext.cc
  1248. * src/LibsslTLSContext.h
  1249. * src/Makefile.am
  1250. * src/SocketCore.cc
  1251. * src/SocketCore.h
  1252. * src/TLSContext.h
  1253. * src/message.h
  1254. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Fixed the bug that the DiskWriter of the first FileEntry whose
  1256. `needsFileAllocation' property is false is not created
  1257. even if it shares a piece with next FileEntry which `requested' property
  1258. is true.
  1259. Fixed the bug that zero-length file is not created if pre file
  1260. allocation is not done.
  1261. * src/MultiDiskAdaptor.cc
  1262. * src/MultiDiskAdaptor.h
  1263. * test/MultiDiskAdaptorTest.cc
  1264. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1265. Added the ability to pool proxy connection.
  1266. The conneciton in FTP with proxy-method=GET is not pooled.
  1267. Proxy-Connection header will not be sent when sending CONNECT method.
  1268. * src/DownloadEngine.cc
  1269. * src/DownloadEngine.h
  1270. * src/FtpFinishDownloadCommand.cc
  1271. * src/FtpInitiateConnectionCommand.cc
  1272. * src/FtpNegotiationCommand.cc
  1273. * src/HttpDownloadCommand.cc
  1274. * src/HttpInitiateConnectionCommand.cc
  1275. * src/HttpRequest.cc
  1276. * src/HttpRequest.h
  1277. * src/HttpResponse.cc
  1278. * src/HttpSkipResponseCommand.cc
  1279. * test/HttpRequestTest.cc
  1280. * test/HttpResponseTest.cc
  1281. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1282. Handle date before epoch.
  1283. To create *bad* Time object, call Time::null().
  1284. * src/CookieParser.cc
  1285. * src/FtpConnection.cc
  1286. * src/FtpConnection.h
  1287. * src/FtpNegotiationCommand.cc
  1288. * src/RequestGroup.cc
  1289. * src/TimeA2.cc
  1290. * src/TimeA2.h
  1291. * test/CookieParserTest.cc
  1292. * test/FtpConnectionTest.cc
  1293. * test/TimeTest.cc
  1294. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1295. Added support for following envrionment variables: http_proxy,
  1296. https_proxy, ftp_proxy and all_proxy.
  1297. Each variable is equivalent to the aria2 option whose name is the
  1298. variable name with '_' replaced with '-'.
  1299. They overrides options specified in aria2.conf file.
  1300. The envrionment variables can be overrode using command-line option.
  1301. * src/option_processing.cc
  1302. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1303. Renamed --http-proxy-method as --proxy-method.
  1304. * src/AbstractCommand.cc
  1305. * src/FtpInitiateConnectionCommand.cc
  1306. * src/HttpInitiateConnectionCommand.cc
  1307. * src/OptionHandlerFactory.cc
  1308. * src/option_processing.cc
  1309. * src/prefs.cc
  1310. * src/prefs.h
  1311. * src/usage_text.h
  1312. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1313. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1314. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1315. Above 3 options and --http-proxy option can handle proxy in URL format
  1316. like: http://user:passwd@host:port.
  1317. If a proxy requires user/password, they must be specified in a URL.
  1318. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1319. instead.
  1320. * src/AbstractCommand.cc
  1321. * src/AbstractCommand.h
  1322. * src/AbstractProxyRequestCommand.cc
  1323. * src/AbstractProxyRequestCommand.h
  1324. * src/AuthConfigFactory.cc
  1325. * src/AuthConfigFactory.h
  1326. * src/FtpFinishDownloadCommand.cc
  1327. * src/FtpInitiateConnectionCommand.cc
  1328. * src/FtpInitiateConnectionCommand.h
  1329. * src/FtpNegotiationCommand.cc
  1330. * src/FtpTunnelRequestCommand.cc
  1331. * src/FtpTunnelRequestCommand.h
  1332. * src/HttpDownloadCommand.cc
  1333. * src/HttpInitiateConnectionCommand.cc
  1334. * src/HttpInitiateConnectionCommand.h
  1335. * src/HttpProxyRequestCommand.cc
  1336. * src/HttpProxyRequestCommand.h
  1337. * src/HttpRequest.cc
  1338. * src/HttpRequest.h
  1339. * src/HttpRequestCommand.cc
  1340. * src/HttpRequestCommand.h
  1341. * src/HttpSkipResponseCommand.cc
  1342. * src/InitiateConnectionCommand.cc
  1343. * src/InitiateConnectionCommand.h
  1344. * src/OptionHandlerFactory.cc
  1345. * src/OptionHandlerImpl.h
  1346. * src/Request.cc
  1347. * src/option_processing.cc
  1348. * src/prefs.cc
  1349. * src/prefs.h
  1350. * src/usage_text.h
  1351. * test/AuthConfigFactoryTest.cc
  1352. * test/HttpRequestTest.cc
  1353. * test/OptionHandlerTest.cc
  1354. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1355. Execute choking algorithm when unchoked and interested peer is
  1356. disconected.
  1357. * src/DefaultPeerStorage.cc
  1358. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1359. Added testcase for BtNotInterestedMessage from unchoked peer.
  1360. * test/BtNotInterestedMessageTest.cc
  1361. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1362. Execute choking algorithm when BtInterestedMessage arrives from
  1363. unchoked peer.
  1364. * src/BtInterestedMessage.cc
  1365. * src/BtInterestedMessage.h
  1366. * src/DefaultBtMessageFactory.cc
  1367. * test/BtInterestedMessageTest.cc
  1368. * test/MockPeerStorage.h
  1369. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1370. AuthConfigFactory is now part of DownloadEngine.
  1371. * src/AbstractProxyRequestCommand.cc
  1372. * src/AuthConfigFactory.h
  1373. * src/DownloadEngine.cc
  1374. * src/DownloadEngine.h
  1375. * src/FtpConnection.cc
  1376. * src/FtpConnection.h
  1377. * src/FtpNegotiationCommand.cc
  1378. * src/HttpConnection.cc
  1379. * src/HttpRequest.cc
  1380. * src/HttpRequest.h
  1381. * src/HttpRequestCommand.cc
  1382. * src/HttpResponse.cc
  1383. * src/HttpResponseCommand.cc
  1384. * src/HttpSkipResponseCommand.cc
  1385. * src/MultiUrlRequestInfo.cc
  1386. * src/main.cc
  1387. * test/FtpConnectionTest.cc
  1388. * test/HttpRequestTest.cc
  1389. * test/HttpResponseTest.cc
  1390. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1391. Corrected catched exception type.
  1392. * src/ServerStatMan.cc
  1393. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1394. DNSCache is now part of DownloadEngine.
  1395. * src/DNSCache.h
  1396. * src/DownloadEngine.cc
  1397. * src/DownloadEngine.h
  1398. * src/InitiateConnectionCommand.cc
  1399. * src/MultiUrlRequestInfo.cc
  1400. * test/Makefile.am
  1401. * test/Makefile.in
  1402. * test/SimpleDNSCacheTest.cc
  1403. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1404. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1405. DownloadEngine.
  1406. * src/ActivePeerConnectionCommand.cc
  1407. * src/BtSetup.cc
  1408. * src/CUIDCounter.h
  1409. * src/DHTSetup.cc
  1410. * src/DownloadCommand.cc
  1411. * src/DownloadEngine.cc
  1412. * src/DownloadEngine.h
  1413. * src/DownloadEngineFactory.cc
  1414. * src/FileAllocationDispatcherCommand.cc
  1415. * src/InitiatorMSEHandshakeCommand.cc
  1416. * src/PeerInitiateConnectionCommand.cc
  1417. * src/PeerInteractionCommand.cc
  1418. * src/PeerListenCommand.cc
  1419. * src/RequestGroup.cc
  1420. * src/StreamFileAllocationEntry.cc
  1421. * src/TrackerWatcherCommand.cc
  1422. * src/main.cc
  1423. * test/RequestGroupManTest.cc
  1424. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1425. Implemented commented code in BtSeederStateChoke
  1426. * src/BtSeederStateChoke.cc
  1427. * src/Peer.cc
  1428. * src/Peer.h
  1429. * src/PeerInteractionCommand.cc
  1430. * src/PeerSessionResource.cc
  1431. * src/PeerSessionResource.h
  1432. * test/MockBtMessageDispatcher.h
  1433. * test/PeerSessionResourceTest.cc
  1434. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1435. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1436. its object.
  1437. * src/AbstractBtMessage.cc
  1438. * src/ActivePeerConnectionCommand.cc
  1439. * src/ActivePeerConnectionCommand.h
  1440. * src/BtContextAwareCommand.cc
  1441. * src/BtContextAwareCommand.h
  1442. * src/BtExtendedMessage.cc
  1443. * src/BtExtendedMessage.h
  1444. * src/BtInterestedMessage.cc
  1445. * src/BtInterestedMessage.h
  1446. * src/BtNotInterestedMessage.cc
  1447. * src/BtNotInterestedMessage.h
  1448. * src/BtRegistry.cc
  1449. * src/BtRegistry.h
  1450. * src/BtSeederStateChoke.cc
  1451. * src/BtSetup.cc
  1452. * src/DHTGetPeersCommand.cc
  1453. * src/DHTGetPeersCommand.h
  1454. * src/DHTPeerAnnounceEntry.cc
  1455. * src/DHTPeerAnnounceEntry.h
  1456. * src/DHTPeerAnnounceStorage.cc
  1457. * src/DHTPeerAnnounceStorage.h
  1458. * src/DHTPeerLookupTask.cc
  1459. * src/DHTPeerLookupTask.h
  1460. * src/DHTSetup.cc
  1461. * src/DHTSetup.h
  1462. * src/DHTTaskFactory.h
  1463. * src/DHTTaskFactoryImpl.cc
  1464. * src/DHTTaskFactoryImpl.h
  1465. * src/DefaultBtAnnounce.cc
  1466. * src/DefaultBtInteractive.cc
  1467. * src/DefaultBtInteractive.h
  1468. * src/DefaultBtMessageDispatcher.cc
  1469. * src/DefaultBtMessageDispatcher.h
  1470. * src/DefaultBtMessageFactory.cc
  1471. * src/DefaultBtMessageFactory.h
  1472. * src/DefaultBtMessageReceiver.cc
  1473. * src/DefaultBtProgressInfoFile.cc
  1474. * src/DefaultBtProgressInfoFile.h
  1475. * src/DefaultBtRequestFactory.cc
  1476. * src/DefaultBtRequestFactory.h
  1477. * src/DefaultExtensionMessageFactory.cc
  1478. * src/DefaultExtensionMessageFactory.h
  1479. * src/DefaultPeerStorage.cc
  1480. * src/DefaultPeerStorage.h
  1481. * src/DownloadEngine.cc
  1482. * src/DownloadEngine.h
  1483. * src/InitiatorMSEHandshakeCommand.cc
  1484. * src/InitiatorMSEHandshakeCommand.h
  1485. * src/MSEHandshake.cc
  1486. * src/MSEHandshake.h
  1487. * src/Makefile.am
  1488. * src/Makefile.in
  1489. * src/PeerChokeCommand.cc
  1490. * src/PeerChokeCommand.h
  1491. * src/PeerInitiateConnectionCommand.cc
  1492. * src/PeerInitiateConnectionCommand.h
  1493. * src/PeerInteractionCommand.cc
  1494. * src/PeerInteractionCommand.h
  1495. * src/PeerObject.h
  1496. * src/PeerReceiveHandshakeCommand.cc
  1497. * src/PeerReceiveHandshakeCommand.h
  1498. * src/ReceiverMSEHandshakeCommand.cc
  1499. * src/RequestGroup.cc
  1500. * src/RequestGroup.h
  1501. * src/RequestGroupMan.cc
  1502. * src/RequestGroupMan.h
  1503. * src/SeedCheckCommand.cc
  1504. * src/SeedCheckCommand.h
  1505. * src/ShareRatioSeedCriteria.h
  1506. * src/SimpleBtMessage.cc
  1507. * src/TrackerWatcherCommand.cc
  1508. * src/TrackerWatcherCommand.h
  1509. * src/UTPexExtensionMessage.cc
  1510. * src/UTPexExtensionMessage.h
  1511. * test/BtCancelMessageTest.cc
  1512. * test/BtChokeMessageTest.cc
  1513. * test/BtExtendedMessageTest.cc
  1514. * test/BtInterestedMessageTest.cc
  1515. * test/BtNotInterestedMessageTest.cc
  1516. * test/BtPieceMessageTest.cc
  1517. * test/BtPortMessageTest.cc
  1518. * test/BtRegistryTest.cc
  1519. * test/BtRejectMessageTest.cc
  1520. * test/BtRequestMessageTest.cc
  1521. * test/DHTPeerAnnounceEntryTest.cc
  1522. * test/DHTPeerAnnounceStorageTest.cc
  1523. * test/DefaultBtMessageDispatcherTest.cc
  1524. * test/DefaultBtMessageFactoryTest.cc
  1525. * test/DefaultBtProgressInfoFileTest.cc
  1526. * test/DefaultBtRequestFactoryTest.cc
  1527. * test/DefaultExtensionMessageFactoryTest.cc
  1528. * test/MSEHandshakeTest.cc
  1529. * test/MockDHTTaskFactory.h
  1530. * test/ShareRatioSeedCriteriaTest.cc
  1531. * test/UTPexExtensionMessageTest.cc
  1532. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1533. Fixed compiler warning.
  1534. * test/UtilTest.cc
  1535. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1536. Treat Cookie object as session cookie if expiry = 0 is given.
  1537. With this change, you can specify session scoped cookies in an external
  1538. file setting expiry value to 0.
  1539. * src/Cookie.cc
  1540. * src/Cookie.h
  1541. * test/CookieParserTest.cc
  1542. * test/CookieStorageTest.cc
  1543. * test/CookieTest.cc
  1544. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1545. Changed signature of DHTMessageFactory::createResponseMessage().
  1546. Removed unused validateIDMatch.
  1547. * src/DHTMessageFactory.h
  1548. * src/DHTMessageFactoryImpl.cc
  1549. * src/DHTMessageFactoryImpl.h
  1550. * src/DHTMessageTracker.cc
  1551. * test/DHTMessageFactoryImplTest.cc
  1552. * test/MockDHTMessageFactory.h
  1553. Dropped DHT message coming from same ID of localhost.
  1554. * src/DHTMessageReceiver.cc
  1555. Rejected adding node whose ID is the same as localhost's.
  1556. * src/DHTRoutingTable.cc
  1557. * test/BtPortMessageTest.cc
  1558. * test/DHTRoutingTableTest.cc
  1559. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1560. Pool connection when redirection occurs with Content-Length = 0.
  1561. * src/HttpSkipResponseCommand.cc
  1562. * src/HttpSkipResponseCommand.h
  1563. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Fixed the bug that causes time out when redirection occurs with
  1565. content-length 0.
  1566. * src/HttpResponseCommand.cc
  1567. * src/HttpSkipResponseCommand.cc
  1568. * src/HttpSkipResponseCommand.h
  1569. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1570. Now each status legends is shown only when it appears in Download
  1571. Result. If Download Result has no item, then status legend will not
  1572. be printed.
  1573. * src/RequestGroupMan.cc
  1574. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1575. Removed duplicate creation of OptionHandlers.
  1576. * src/option_processing.cc
  1577. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1578. Fixed the bug that causes segmentation fault when accessing files which
  1579. don't exist or are not included in --select-file option while
  1580. validating chunk checksum.
  1581. * src/MultiDiskAdaptor.cc
  1582. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1583. Fixed compiler warning.
  1584. * test/UtilTest.cc
  1585. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1586. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1587. * src/IteratableChecksumValidator.cc
  1588. * src/IteratableChunkChecksumValidator.cc
  1589. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1590. * Release 0.16.2
  1591. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. Added Serbian translation. Updated Ukrainian translation.
  1593. Thanks to all translators.
  1594. * po/sr.po
  1595. * po/uk.po
  1596. * po/LINGUAS
  1597. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Bump up version number to 0.16.2
  1599. * configure.ac
  1600. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1601. Added length equality test to operator== to drop a piece message
  1602. whose length does not match to the requested one.
  1603. * src/RequestSlot.cc
  1604. * test/DefaultBtMessageDispatcherTest.cc
  1605. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1606. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1607. recieved.
  1608. In this fix, if a request larger than 16KiB length is received, aria2
  1609. disconnects the peer.
  1610. * src/BtConstants.h
  1611. * src/PeerMessageUtil.cc
  1612. * src/PeerMessageUtil.h
  1613. * test/BtRequestMessageTest.cc
  1614. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1615. * Release 0.16.1
  1616. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1617. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1618. * doc/aria2c.1.txt
  1619. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1620. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1621. Updated French, Simplified Chinese and Japanese translations.
  1622. Thanks to all translators.
  1623. en@quot and en@boldquot are also added.
  1624. * po/LINGUAS
  1625. * po/fr.po
  1626. * po/ja.po
  1627. * po/uk.po
  1628. * po/vi.po
  1629. * po/zh_CN.po
  1630. * po/zh_TW.po
  1631. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1632. Bump up version number to 0.16.1.
  1633. * configure.ac
  1634. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1635. Updated README.
  1636. * README
  1637. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1638. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1639. not to replace '--' with em dash character.
  1640. * doc/aria2c.1.txt
  1641. * doc/makeman
  1642. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1643. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1644. every SEC seconds.
  1645. * src/DownloadEngineFactory.cc
  1646. * src/OptionHandlerFactory.cc
  1647. * src/option_processing.cc
  1648. * src/usage_text.h
  1649. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1650. Fixed compile warning on linux-amd64
  1651. * src/FtpConnection.cc
  1652. * src/IteratableChunkChecksumValidator.cc
  1653. * src/MultiDiskAdaptor.cc
  1654. Fixed the bug that unit test fails on linux-amd64
  1655. * test/UtilTest.cc
  1656. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1657. Added --dht-file-path option to change the path to dht.dat, which is a
  1658. serialized DHT routing table.
  1659. * src/OptionHandlerFactory.cc
  1660. * src/option_processing.cc
  1661. * src/usage_text.h
  1662. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1663. Fixed possible underflow.
  1664. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1665. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1666. Fixed the bug that last character in URI is not encoded.
  1667. * src/Request.cc
  1668. * test/RequestTest.cc
  1669. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1670. Fixed the bug that referer header field contains fragment.
  1671. Now Request class removes fragment part of URI and encodes it
  1672. in Request::setUri() and setReferer().
  1673. * src/Request.h
  1674. * src/Request.cc
  1675. * test/RequestTest.cc
  1676. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1677. Added missing m4 macros.
  1678. * m4/cppunit.m4
  1679. * m4/libgcrypt.m4
  1680. * m4/libgnutls-extra.m4
  1681. * m4/libgnutls.m4
  1682. * m4/libxml2.m4
  1683. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1684. Fixed compile error with gcc-4.4(snapshot)
  1685. * src/File.cc
  1686. * src/FtpConnection.cc
  1687. * src/OptionHandlerImpl.h
  1688. * src/Util.cc
  1689. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1690. Removed assert()
  1691. * src/SocketBuffer.cc (SocketBuffer::send)
  1692. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1693. Changed the type of _numNewConnection to unsigned int.
  1694. * src/ActivePeerConnectionCommand.cc
  1695. * src/ActivePeerConnectionCommand.h
  1696. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1697. * Release 0.16.0
  1698. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1699. Updated doc
  1700. * README
  1701. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1702. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1703. translations. Thanks to all translators.
  1704. * po/bg.po
  1705. * po/de.po
  1706. * po/fr.po
  1707. * po/ja.po
  1708. * po/zh_CN.po
  1709. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1710. Bump up version number to 0.16.0.
  1711. * configure.ac
  1712. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1713. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1714. int32_t.
  1715. Changed the type of count to int32_t.
  1716. * src/Metalink2RequestGroup.cc
  1717. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1718. Added test for Time::elapsed(time_t).
  1719. * test/TimeTest.cc
  1720. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1721. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1722. Util::difftv() should be used instead.
  1723. * src/TimeA2.cc
  1724. * src/TimeA2.h
  1725. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1726. Made socket for dht connections non-blocking
  1727. * src/DHTAbstractMessage.cc
  1728. * src/DHTAbstractMessage.h
  1729. * src/DHTConnection.h
  1730. * src/DHTConnectionImpl.cc
  1731. * src/DHTConnectionImpl.h
  1732. * src/DHTMessage.h
  1733. * src/DHTMessageDispatcherImpl.cc
  1734. * src/DHTMessageDispatcherImpl.h
  1735. * src/DHTUnknownMessage.cc
  1736. * src/DHTUnknownMessage.h
  1737. * src/SocketCore.cc
  1738. * src/SocketCore.h
  1739. * test/MockDHTMessage.h
  1740. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1741. Changed the type of offset to int.
  1742. * src/ParameterizedStringParser.cc
  1743. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1744. Made getAsInt() return int32_t
  1745. * src/Option.h
  1746. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1747. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1748. build.
  1749. * configure.ac
  1750. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1751. Use sqlite3_open if sqlite3_open_v2 is not available.
  1752. * src/Sqlite3MozCookieParser.cc
  1753. * src/Sqlite3MozCookieParser.h
  1754. * m4/sqlite3.m4
  1755. * test/Sqlite3MozCookieParserTest.cc
  1756. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1757. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1758. * src/BtPieceMessage.cc
  1759. * src/DHTPeerAnnounceStorage.cc
  1760. * src/DefaultPieceStorage.cc
  1761. * src/DownloadCommand.cc
  1762. * src/DownloadEngine.cc
  1763. * src/FtpConnection.cc
  1764. * src/PeerConnection.cc
  1765. * src/PeerMessageUtil.cc
  1766. * src/RequestGroup.cc
  1767. * src/RequestGroupMan.cc
  1768. * src/SimpleBtMessage.cc
  1769. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1770. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  1771. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  1772. * src/AbstractDiskWriter.cc
  1773. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1774. Don't set Request::supportsPersistentConnection() in HttpConnection
  1775. since this code is also used in AbstractProxyResponseCommand.
  1776. Moved those code to HttpResponse.
  1777. * src/HttpResponse.cc
  1778. * src/HttpResponse.h
  1779. * src/HttpConnection.cc
  1780. * src/HttpConnection.h
  1781. * src/HttpResponseCommand.cc
  1782. * test/HttpResponseTest.cc
  1783. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1784. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1785. The configuration is minimum: no torrent, no metalink, so there may be
  1786. other compile error on their code.
  1787. * src/a2netcompat.h
  1788. * src/File.cc
  1789. * src/File.h
  1790. * src/SocketCore.cc
  1791. * src/SocketCore.h
  1792. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1793. Made a socket of incoming peer non-blocking.
  1794. * src/PeerListenCommand.cc
  1795. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1796. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  1797. whole message data is not sent in one send() call.
  1798. * src/BtPieceMessage.cc
  1799. * src/BtPieceMessage.h
  1800. * src/PeerConnection.cc
  1801. * src/PeerConnection.h
  1802. * src/SimpleBtMessage.cc
  1803. * src/SimpleBtMessage.h
  1804. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1805. Fixed the bug that aria2 downloads faster than max-download-limit when
  1806. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  1807. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  1808. , instead of sum of them.
  1809. * src/ActivePeerConnectionCommand.cc
  1810. * src/DefaultBtInteractive.cc
  1811. * src/DownloadCommand.cc
  1812. * src/PeerInteractionCommand.cc
  1813. * src/PeerReceiveHandshakeCommand.cc
  1814. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1815. Fixed the bug that HTTPS download fails.
  1816. * src/AbstractCommand.cc
  1817. * src/AbstractCommand.h
  1818. * src/DownloadCommand.cc
  1819. * src/FtpConnection.cc
  1820. * src/HttpConnection.cc
  1821. * src/HttpRequestCommand.cc
  1822. * src/HttpResponseCommand.cc
  1823. * src/HttpSkipResponseCommand.cc
  1824. * src/MSEHandshake.cc
  1825. * src/PeerConnection.cc
  1826. * src/SocketCore.cc
  1827. * src/SocketCore.h
  1828. Fixed the bug that aria2 doesn't download whole content body and cannot
  1829. reuse connection if chunked transfer encoding and gzip content encoding
  1830. are set.
  1831. * src/DownloadCommand.cc
  1832. * src/HttpSkipResponseCommand.cc
  1833. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1834. Updated man page.
  1835. * doc/aria2c.1.txt
  1836. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1837. When error occurred while aria2 was parsing an .aria2.conf file, print
  1838. the usage of the option that caused error.
  1839. * src/option_processing.cc
  1840. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1841. Fixed compile error on OptionHandlerException
  1842. * src/Makefile.am
  1843. * src/OptionHandlerException.cc
  1844. * src/OptionHandlerException.h
  1845. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1846. Moved message of the error to OptionHandlerException.h
  1847. * src/NameMatchOptionHandler.h
  1848. * src/OptionHandlerException.h
  1849. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1850. When error occurs while aria2 is parsing an command-line option, print
  1851. the usage of the option.
  1852. * src/Makefile.am
  1853. * src/NameMatchOptionHandler.h
  1854. * src/OptionHandlerException.h
  1855. * src/option_processing.cc
  1856. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1857. Reverted previous change.
  1858. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1859. username is not in URI.
  1860. * src/HttpRequest.cc
  1861. * src/Request.cc
  1862. * test/HttpRequestTest.cc
  1863. * test/RequestTest.cc
  1864. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1865. Now colon is required for username and password in FTP URL, like:
  1866. ftp://username:password@host.
  1867. If colon is not there, aria2 don't parse it as a username. For example,
  1868. aria2 don't retrieve username from ftp://username@host.
  1869. This fix was made in order to login FTP server via non-transparent ftp
  1870. proxy.
  1871. * src/Request.cc
  1872. * test/RequestTest.cc
  1873. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1874. Use netrc for HTTP.
  1875. Now FTP user/password is sent in Authorization header when
  1876. --ftp-via-http-proxy=get is given.
  1877. * src/AuthConfigFactory.cc
  1878. * src/HttpRequest.cc
  1879. * src/HttpRequest.h
  1880. * src/NetrcAuthResolver.cc
  1881. * src/NetrcAuthResolver.h
  1882. * src/OptionHandlerFactory.cc
  1883. * src/option_processing.cc
  1884. * src/prefs.cc
  1885. * src/prefs.h
  1886. * test/AuthConfigFactoryTest.cc
  1887. * test/HttpRequestTest.cc
  1888. * test/NetrcAuthResolverTest.cc
  1889. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1890. Issue PWD command first and get working directory and use it as a prefix
  1891. for CWD command.
  1892. * src/DownloadEngine.cc
  1893. * src/DownloadEngine.h
  1894. * src/FtpConnection.cc
  1895. * src/FtpConnection.h
  1896. * src/FtpFinishDownloadCommand.cc
  1897. * src/FtpInitiateConnectionCommand.cc
  1898. * src/FtpNegotiationCommand.cc
  1899. * src/FtpNegotiationCommand.h
  1900. * test/FtpConnectionTest.cc
  1901. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1902. Removed default user/pass for FTP user/pass, since it should not have
  1903. precedence over netrc configuration by default.
  1904. * src/OptionHandlerFactory.cc
  1905. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1906. Added debug log for socket event.
  1907. * src/AbstractCommand.cc
  1908. * src/PeerAbstractCommand.cc
  1909. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1910. Log microseconds.
  1911. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1912. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1913. Replaced HelpItem.cc with OptionHandler.cc.
  1914. * po/POTFILES.in
  1915. Updated po files with 'make update-po'
  1916. * po/aria2c.pot
  1917. * po/*.po
  1918. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1919. Removed possible values from the text.
  1920. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  1921. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Removed unused preferences:
  1923. PREF_NO_PREALLOCATION
  1924. PREF_STDOUT_LOG
  1925. PREF_TRACKER_MAX_TRIES
  1926. PREF_DIRECT_DOWNLOAD_TIMEOUT
  1927. PREF_MIN_SEGMENT_SIZE
  1928. * src/option_processing.cc
  1929. * src/prefs.cc
  1930. * src/prefs.h
  1931. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1932. Integrated HelpItem into OptionParser to ease the workload for adding
  1933. new options. Removed default value from usage text.
  1934. * src/HelpItem.cc: Removed.
  1935. * src/HelpItem.h: Removed.
  1936. * src/HelpItemFactory.cc: Removed.
  1937. * src/HelpItemFactory.h: Removed.
  1938. * src/Makefile.am
  1939. * src/Makefile.in
  1940. * src/NameMatchOptionHandler.h
  1941. * src/OptionHandler.cc
  1942. * src/OptionHandler.h
  1943. * src/OptionHandlerFactory.cc
  1944. * src/OptionHandlerImpl.h
  1945. * src/OptionParser.cc
  1946. * src/OptionParser.h
  1947. * src/TagContainer.cc: Removed.
  1948. * src/TagContainer.h: Removed.
  1949. * src/TaggedItem.cc: Removed.
  1950. * src/TaggedItem.h: Removed.
  1951. * src/main.cc
  1952. * src/option_processing.cc
  1953. * src/usage_text.h
  1954. * src/version_usage.cc
  1955. * test/HelpItemTest.cc: Removed.
  1956. * test/Makefile.am
  1957. * test/Makefile.in
  1958. * test/OptionHandlerTest.cc
  1959. * test/OptionParserTest.cc
  1960. * test/TagContainerTest.cc: Removed.
  1961. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1962. Moved `TransferStat stat = ...' to inside the `if' clause.
  1963. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1964. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1965. Fixed the bug that a block in a piece is requested when same block is
  1966. already requested to the same peer in end game mode.
  1967. * src/BtRequestFactory.h
  1968. * src/DefaultBtInteractive.cc
  1969. * src/DefaultBtRequestFactory.cc
  1970. * src/DefaultBtRequestFactory.h
  1971. * src/DefaultPieceStorage.cc
  1972. * src/DefaultPieceStorage.h
  1973. * src/PieceStorage.h
  1974. * src/UnknownLengthPieceStorage.cc
  1975. * src/UnknownLengthPieceStorage.h
  1976. * test/DefaultBtRequestFactoryTest.cc
  1977. * test/DefaultPieceStorageTest.cc
  1978. * test/MockBtRequestFactory.h
  1979. * test/MockPieceStorage.h
  1980. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1981. Removed _uploadLength and _downloadLength from PeerSessionResource
  1982. and use PeerStat::_sessionUploadLength and
  1983. PeerStat::_sessionDownloadLength.
  1984. * src/PeerSessionResource.cc
  1985. * src/PeerSessionResource.h
  1986. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1987. Fixed the bug that prefixLength of split bucket which doesn't include
  1988. local node ID is incremented.
  1989. * src/DHTBucket.cc
  1990. * src/DHTBucket.h
  1991. * test/DHTBucketTest.cc
  1992. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1993. Added cookies.sqlite to EXTRA_DIST
  1994. * test/Makefile.am
  1995. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1996. Added Turkish translation. Updated French, German, Russian and
  1997. Simplified Chinese translations. Thanks to all translators.
  1998. * po/LINGUAS
  1999. * po/de.po
  2000. * po/fr.po
  2001. * po/ru.po
  2002. * po/tr.po
  2003. * po/zh_CN.po
  2004. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2005. Added deliminating text to the beginning of the log so that one can find
  2006. where the log starts easily.
  2007. * src/main.cc
  2008. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2009. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2010. to fix compile error when async DNS is not enabled by configuration.
  2011. * src/AbstractCommand.cc
  2012. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. If establishing conneciton to a server is failed, then mark error on
  2014. its ServerStat.
  2015. Added the cause of error to log when error event occurred.
  2016. Moved message string to message.h for translation.
  2017. * src/AbstractCommand.cc
  2018. * src/AbstractCommand.h
  2019. * src/FtpNegotiationCommand.cc
  2020. * src/HttpRequestCommand.cc
  2021. * src/PeerAbstractCommand.cc
  2022. * src/message.h
  2023. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2024. Added the function to get error message from socket.
  2025. * src/SocketCore.cc
  2026. * src/SocketCore.h
  2027. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2028. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2029. * src/RequestGroupMan.cc
  2030. * src/RequestGroupMan.h
  2031. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2032. If error event is received in epoll, then abort download immediately.
  2033. * src/AbstractCommand.cc
  2034. * src/Command.cc
  2035. * src/Command.h
  2036. * src/DownloadEngine.cc
  2037. * src/PeerAbstractCommand.cc
  2038. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2039. Added usage message for --uri-selector, --server-stat-of,
  2040. --server-stat-in, --server-stat-timeout options.
  2041. * src/HelpItemFactory.cc
  2042. * src/usage_text.h
  2043. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2044. Added upper limit of FTP response buffer. The current implementation
  2045. uses 4096bytes as a limit.
  2046. * src/FtpConnection.cc
  2047. * src/FtpConnection.h
  2048. * test/FtpConnectionTest.cc
  2049. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2050. Use non-blocking socket for TCP communication to avoid possible
  2051. blocking due to buffer full.
  2052. * src/AbstractProxyRequestCommand.cc
  2053. * src/FtpConnection.cc
  2054. * src/FtpConnection.h
  2055. * src/FtpNegotiationCommand.cc
  2056. * src/FtpNegotiationCommand.h
  2057. * src/HttpConnection.cc
  2058. * src/HttpConnection.h
  2059. * src/HttpRequestCommand.cc
  2060. * src/InitiatorMSEHandshakeCommand.cc
  2061. * src/InitiatorMSEHandshakeCommand.h
  2062. * src/MSEHandshake.cc
  2063. * src/MSEHandshake.h
  2064. * src/Makefile.am
  2065. * src/PeerConnection.cc
  2066. * src/PeerConnection.h
  2067. * src/PeerInteractionCommand.cc
  2068. * src/PeerListenCommand.cc
  2069. * src/ReceiverMSEHandshakeCommand.cc
  2070. * src/ReceiverMSEHandshakeCommand.h
  2071. * src/SocketBuffer.cc
  2072. * src/SocketBuffer.h
  2073. * src/SocketCore.cc
  2074. * src/SocketCore.h
  2075. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2076. Call setStatusRealtime() in constructor.
  2077. * src/RealtimeCommand.cc
  2078. * src/RealtimeCommand.h
  2079. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2080. Call Download::setNoWait(true) to execute newly created command without
  2081. a pause.
  2082. * src/AbstractCommand.cc
  2083. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2084. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2085. found' error from HTTP/FTP server NUM times without getting single
  2086. bytes of data, then force the download to fail.
  2087. Basically aria2 tris all URIs available. So if long list of URIs are
  2088. specified in Metalink, then aria2 will take a long time to fail
  2089. eventually if all URIs are outdated. This option eases this situation
  2090. to limit the number of servers to try.
  2091. * src/FtpNegotiationCommand.cc
  2092. * src/HelpItemFactory.cc
  2093. * src/HttpResponseCommand.cc
  2094. * src/OptionHandlerFactory.cc
  2095. * src/PeerStat.h
  2096. * src/RequestGroup.cc
  2097. * src/RequestGroup.h
  2098. * src/SegmentMan.cc
  2099. * src/SegmentMan.h
  2100. * src/option_processing.cc
  2101. * src/prefs.cc
  2102. * src/prefs.h
  2103. * src/usage_text.h
  2104. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2105. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2106. response even if more than one response is in it.
  2107. * src/FtpConnection.cc
  2108. * src/FtpConnection.h
  2109. * test/FtpConnectionTest.cc
  2110. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2111. Merged from stable-0.15
  2112. * m4/libcares.m4
  2113. Use pkg-config
  2114. * m4/sqlite3.m4
  2115. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2116. Removed unnecessary if statement.
  2117. * src/DefaultPieceStorage.cc (initPieceStorage)
  2118. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2119. Added --connect-timeout option to specify connect timeout in seconds.
  2120. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2121. connecting to BitTorrent peer is not controlled by this option.
  2122. * src/AbstractProxyRequestCommand.cc
  2123. * src/FtpNegotiationCommand.cc
  2124. * src/HelpItemFactory.cc
  2125. * src/HttpRequestCommand.cc
  2126. * src/OptionHandlerFactory.cc
  2127. * src/option_processing.cc
  2128. * src/prefs.cc
  2129. * src/prefs.h
  2130. * src/usage_text.h
  2131. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2132. Added help message for -R option.
  2133. * src/HelpItemFactory.cc
  2134. * src/usage_text.h
  2135. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2136. Added the message that the time is in local time zone.
  2137. * src/RequestGroup.cc
  2138. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2139. Implemented the ability to get timestamp from remote FTP server using
  2140. MDTM command described in RFC3659.
  2141. * src/FtpConnection.cc
  2142. * src/FtpConnection.h
  2143. * src/FtpNegotiationCommand.cc
  2144. * src/FtpNegotiationCommand.h
  2145. * test/FtpConnectionTest.cc
  2146. * test/Makefile.am
  2147. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2148. Implemented the ability to get timestamp from remote HTTP server and
  2149. apply it to local file. To enable this feature, --remote-time option
  2150. is added. No usage text has been written yet.
  2151. If several servers returns difference timestamp, then aria2 uses latest
  2152. one.
  2153. * src/CopyDiskAdaptor.cc
  2154. * src/CopyDiskAdaptor.h
  2155. * src/DirectDiskAdaptor.cc
  2156. * src/DirectDiskAdaptor.h
  2157. * src/DiskAdaptor.h
  2158. * src/File.cc
  2159. * src/File.h
  2160. * src/HttpHeader.cc
  2161. * src/HttpHeader.h
  2162. * src/HttpResponse.cc
  2163. * src/HttpResponse.h
  2164. * src/HttpResponseCommand.cc
  2165. * src/HttpResponseCommand.h
  2166. * src/MultiDiskAdaptor.cc
  2167. * src/MultiDiskAdaptor.h
  2168. * src/OptionHandlerFactory.cc
  2169. * src/RequestGroup.cc
  2170. * src/RequestGroup.h
  2171. * src/RequestGroupMan.cc
  2172. * src/option_processing.cc
  2173. * src/prefs.cc
  2174. * src/prefs.h
  2175. * test/CopyDiskAdaptorTest.cc
  2176. * test/FileTest.cc
  2177. * test/Makefile.am
  2178. * test/Makefile.in
  2179. * test/MultiDiskAdaptorTest.cc
  2180. * test/TestUtil.cc
  2181. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2182. Fixed the bug that DiskWriterEntry is not created when its
  2183. FileEntry.isRequested() is false and it doesn't share a piece with
  2184. other FileEntries that are requested. This bug causes segmentation fault
  2185. in the end.
  2186. * src/MultiDiskAdaptor.cc
  2187. * src/MultiDiskAdaptor.h
  2188. * src/MultiFileAllocationIterator.cc
  2189. * test/MultiDiskAdaptorTest.cc
  2190. * test/MultiFileAllocationIteratorTest.cc
  2191. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2192. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2193. called if the number of file entries are greater than max open files.
  2194. * src/AbstractSingleDiskAdaptor.cc
  2195. * src/AbstractSingleDiskAdaptor.h
  2196. * src/DiskAdaptor.h
  2197. * src/MultiDiskAdaptor.cc
  2198. * src/MultiDiskAdaptor.h
  2199. * test/MultiDiskAdaptorTest.cc
  2200. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Added a constuctor that receives struct timeval.
  2202. Added operator<.
  2203. * src/TimeA2.cc
  2204. * src/TimeA2.h
  2205. * test/TimeTest.cc
  2206. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2207. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2208. * src/CookieParser.cc
  2209. * test/CookieParserTest.cc
  2210. * test/HttpResponseTest.cc
  2211. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. Implmented the functions to parse date.
  2213. * src/TimeA2.cc
  2214. * src/TimeA2.h
  2215. * test/TimeTest.cc
  2216. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2217. Added "Firefox3 Cookie" feature to FeatureConfig
  2218. * src/FeatureConfig.cc
  2219. * src/FeatureConfig.h
  2220. * test/FeatureConfigTest.cc
  2221. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2222. Bump up version number to 0.16.0b
  2223. * configure.ac
  2224. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2225. Use pkg-config if is is available.
  2226. * m4/openssl.m4
  2227. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2228. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2229. * src/BtAnnounce.h
  2230. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2231. If an error occurred with a URI, remove identical URI from remaining
  2232. URI list because it is likely that same error occurred in the end and it
  2233. is waste of time.
  2234. * src/AbstractCommand.cc
  2235. * src/RequestGroup.cc
  2236. * src/RequestGroup.h
  2237. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2238. Removed wrong comment.
  2239. * src/DefaultPeerStorage.cc
  2240. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2241. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2242. Added return value of getpid() to argument of srand() to achieve more
  2243. randomized value.
  2244. * src/SimpleRandomizer.cc
  2245. * src/SimpleRandomizer.h
  2246. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2247. Contact tracker frequently when the number of connections are 0 and
  2248. download is not finished yet.
  2249. * src/ActivePeerConnectionCommand.cc
  2250. * src/BtAnnounce.h
  2251. * src/DefaultBtAnnounce.cc
  2252. * src/DefaultBtAnnounce.h
  2253. * test/MockBtAnnounce.h
  2254. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2255. Moved threshold values to UTPexExtensionMessage.
  2256. * src/DefaultBtInteractive.cc
  2257. * src/Peer.cc
  2258. * src/Peer.h
  2259. * src/UTPexExtensionMessage.cc
  2260. * src/UTPexExtensionMessage.h
  2261. * test/UTPexExtensionMessageTest.cc
  2262. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Added _incoming member to Peer class and made it true if the peer
  2264. initiated connection. Don't add those peer to UTPex message.
  2265. If extended handshake is received, assign _incoming to false.
  2266. * src/DefaultBtInteractive.cc
  2267. * src/HandshakeExtensionMessage.cc
  2268. * src/Peer.cc
  2269. * src/Peer.h
  2270. * src/PeerListenCommand.cc
  2271. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2272. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2273. Encoding Decoder. Removed size threshold for turning off on the fly
  2274. inflation because resulting file may or may not be inflated depending
  2275. on the file size and I think it is not expected by users.
  2276. This change fixes segmentation fault when Metalink file contains gzipped
  2277. file and its filesize is provided.
  2278. * src/HttpResponseCommand.cc
  2279. * src/HttpResponseCommand.h
  2280. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2281. Made Cookie immutable.
  2282. * src/Cookie.cc
  2283. * src/Cookie.h
  2284. * src/CookieParser.cc
  2285. * src/CookieParser.h
  2286. * src/CookieStorage.cc
  2287. * test/CookieParserTest.cc
  2288. * test/CookieStorageTest.cc
  2289. * test/NsCookieParserTest.cc
  2290. * test/Sqlite3MozCookieParserTest.cc
  2291. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2292. Removed CookieBox, CookieBoxFactory.
  2293. * src/CookieBox.cc
  2294. * src/CookieBox.h
  2295. * src/CookieBoxFactory.cc
  2296. * src/CookieBoxFactory.h
  2297. * src/Makefile.am
  2298. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2299. Use CookieStorage class instead of CookieBox class.
  2300. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2301. * src/AbstractProxyRequestCommand.cc
  2302. * src/CookieStorage.cc
  2303. * src/DownloadEngine.cc
  2304. * src/DownloadEngine.h
  2305. * src/HttpConnection.cc
  2306. * src/HttpConnection.h
  2307. * src/HttpRequest.cc
  2308. * src/HttpRequest.h
  2309. * src/HttpRequestCommand.cc
  2310. * src/HttpResponse.cc
  2311. * src/HttpResponseCommand.cc
  2312. * src/HttpSkipResponseCommand.cc
  2313. * src/Makefile.am
  2314. * src/MultiUrlRequestInfo.cc
  2315. * src/Request.cc
  2316. * src/Request.h
  2317. * src/main.cc
  2318. * test/AllTest.cc
  2319. * test/CookieStorageTest.cc
  2320. * test/CookieTest.cc
  2321. * test/HttpRequestTest.cc
  2322. * test/HttpResponseTest.cc
  2323. * test/Makefile.am
  2324. * test/NsCookieParserTest.cc
  2325. * test/Sqlite3MozCookieParserTest.cc
  2326. * test/nscookietest.txt
  2327. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Updated
  2329. * test/Cookies.sqlite
  2330. * test/nscookietest.txt
  2331. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2332. Added tests for CookieStorage::load()
  2333. * test/CookieStorageTest.cc
  2334. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2335. Added CookieStorage class which is based on RFC2109 and manages cookies
  2336. more strictly than CookieBox and CookieBoxFactory class.
  2337. * src/CookieStorage.cc
  2338. * src/CookieStorage.h
  2339. * src/Cookie.cc
  2340. * src/Cookie.h
  2341. * test/CookieStorageTest.cc
  2342. * test/CookieTest.cc
  2343. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2344. Fixed the bug that commands are created more than the number of pieces.
  2345. * src/RequestGroup.cc
  2346. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2347. Fixed infinite loop bug in FTP when SIZE command failed.
  2348. * src/FtpNegotiationCommand.cc
  2349. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Removed DirectDiskAdaptorTest.h
  2351. * test/Makefile.am
  2352. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2353. Fixed chunk checksum validation cannot detect trailing garbage data.
  2354. BUG#2074141
  2355. * src/AbstractSingleDiskAdaptor.cc
  2356. * src/AbstractSingleDiskAdaptor.h
  2357. * src/CheckIntegrityEntry.cc
  2358. * src/CheckIntegrityEntry.h
  2359. * src/DiskAdaptor.h
  2360. * src/MultiDiskAdaptor.cc
  2361. * src/MultiDiskAdaptor.h
  2362. * src/RequestGroup.cc
  2363. * test/DirectDiskAdaptorTest.cc
  2364. * test/MultiDiskAdaptorTest.cc
  2365. * test/TestUtil.cc
  2366. * test/TestUtil.h
  2367. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2368. Bump up version number of dht.dat file to 3. In version 3 format, time
  2369. is stored in 64bit, network byte order.
  2370. New build can load old format(version 2) but it saves the file in new
  2371. format. It means once you used new build, your dht.dat becomes
  2372. incompatible with older build.
  2373. * src/DHTRoutingTableDeserializer.cc
  2374. * src/DHTRoutingTableSerializer.cc
  2375. * test/DHTRoutingTableSerializerTest.cc
  2376. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2377. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2378. * test/Makefile.am
  2379. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2380. Bump up version number of .aria2 control file to 0001.
  2381. New aria2 can still load version 0000 file but it saves the file in
  2382. version 0001 format. It means that new aria2 can resume download
  2383. started by old aria2 but the opposite is not true.
  2384. * src/DefaultBtProgressInfoFile.cc
  2385. * src/DefaultBtProgressInfoFile.h
  2386. * test/DefaultBtProgressInfoFileTest.cc
  2387. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2388. Added ntoh64 and hton64 as inline functions.
  2389. * src/Util.cc
  2390. * test/UtilTest.cc
  2391. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2392. Added sqlite3 depenency and Firefox3 cookie support.
  2393. * README
  2394. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2395. State that firefox3 cookie is supported explicitly in the usage.
  2396. * src/usage_text.h
  2397. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2398. Externalized message.
  2399. * src/RequestGroupMan.cc
  2400. * src/message.h
  2401. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2402. Save temporary file first and rename to the destination on success.
  2403. Added test cases.
  2404. * src/RequestGroupMan.cc
  2405. * test/RequestGroupManTest.cc
  2406. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Fixed the bug that the number of connected peer is exceeding the limit
  2408. (55 by default) in seeding mode.
  2409. Multiplied 0.8 to _maxUploadSpeedLimit.
  2410. * src/ActivePeerConnectionCommand.cc
  2411. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2412. Clear table item.
  2413. * src/Dictionary.cc
  2414. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Fixed error handling of lseek.
  2416. * src/AbstractDiskWriter.cc
  2417. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2418. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2419. style cookie file.
  2420. * src/usage_text.h
  2421. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2423. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2424. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2425. * src/Util.cc
  2426. * src/Util.h
  2427. * src/CookieParser.cc
  2428. * test/UtilTest.cc
  2429. * test/CookieParserTest.cc
  2430. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2431. Separate the implementation to load old mozilla format of cookie to
  2432. NsCookieParser class.
  2433. * src/CookieBoxFactory.cc
  2434. * src/CookieBoxFactory.h
  2435. * src/NsCookieParser.cc
  2436. * src/NsCookieParser.h
  2437. * test/NsCookieParserTest.cc
  2438. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2439. Made parse() const
  2440. * src/Sqlite3MozCookieParser.cc
  2441. * src/Sqlite3MozCookieParser.h
  2442. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2443. Added firefox3 cookie support based on the patch submitted by
  2444. tizianomueller.
  2445. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2446. this functionality.
  2447. * configure.ac
  2448. * m4/sqlite3.m4
  2449. * src/CookieBoxFactory.cc
  2450. * src/CookieBoxFactory.h
  2451. * src/Makefile.am
  2452. * src/Makefile.in
  2453. * src/Sqlite3MozCookieParser.cc
  2454. * src/Sqlite3MozCookieParser.h
  2455. * src/main.cc
  2456. * test/CookieBoxFactoryTest.cc
  2457. * test/Makefile.am
  2458. * test/Makefile.in
  2459. * test/Sqlite3MozCookieParserTest.cc
  2460. * test/badcookies.sqlite
  2461. * test/cookies.sqlite
  2462. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2463. Added Danish and Greek translations.
  2464. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2465. Great thanks to all translators.
  2466. * po/LINGUAS
  2467. * po/el.po
  2468. * po/da.po
  2469. * po/es.po
  2470. * po/ca.po
  2471. * po/nn.po
  2472. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2473. Fixed man page: --follow-bittorrent should be --follow-torrent
  2474. * doc/aria2c.1.txt
  2475. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2476. Fixed: numCommand is less than the value specified in -C option.
  2477. * src/RequestGroup.cc
  2478. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2479. Fixed occasional assertion failure in PieceSegment.
  2480. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2481. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2482. creation of duplicate segments and one of the segment was finished then
  2483. assertion failure was caused.
  2484. * src/SegmentMan.cc
  2485. * test/SegmentManTest.cc
  2486. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2487. Added options to load/save the server's performance/status to a file
  2488. and the timeout to drop their data.
  2489. --server-stat-of=FILE specifies the file to which performance data
  2490. is saved.
  2491. --server-stat-if=FILE specifies the file to read previously saved
  2492. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2493. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2494. TIMEOUT is specified in seconds and the default value is 24hours.
  2495. * src/MultiUrlRequestInfo.cc
  2496. * src/OptionHandlerFactory.cc
  2497. * src/RequestGroupMan.cc
  2498. * src/RequestGroupMan.h
  2499. * src/ServerStatMan.cc
  2500. * src/ServerStatMan.h
  2501. * src/option_processing.cc
  2502. * src/prefs.cc
  2503. * src/prefs.h
  2504. * test/ServerStatManTest.cc
  2505. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2507. * src/ServerStatMan.cc
  2508. * src/ServerStatMan.h
  2509. * test/ServerStatManTest.cc
  2510. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. Implemented ServerStatMan::load(...) function and its test case.
  2512. * src/ServerStat.cc
  2513. * src/ServerStat.h
  2514. * src/ServerStatMan.cc
  2515. * test/ServerStatManTest.cc
  2516. * test/ServerStatTest.cc
  2517. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2518. Use time_t instead of int32_t. Use int64_t where milli second is
  2519. expected.
  2520. * src/TimeA2.cc
  2521. * src/TimeA2.h
  2522. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2523. Implemented ServerStatMan::save(...) function and its test case.
  2524. * src/ServerStat.cc
  2525. * src/ServerStat.h
  2526. * src/ServerStatMan.cc
  2527. * src/ServerStatMan.h
  2528. * test/ServerStatManTest.cc
  2529. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2530. Now aria2 uses name attribute in Metalink as local filename in
  2531. BitTorrent downloads. BUG#2033999
  2532. * src/BtContext.h
  2533. * src/BtDependency.cc
  2534. * src/DefaultBtContext.cc
  2535. * src/DefaultBtContext.h
  2536. * src/SingleFileDownloadContext.cc
  2537. * src/SingleFileDownloadContext.h
  2538. * test/BtDependencyTest.cc
  2539. * test/DefaultBtContextTest.cc
  2540. * test/MockBtContext.h
  2541. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. Added AC_C_BIGENDIAN
  2543. * src/configure.ac
  2544. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2545. Limited numCommand less than or equal to the number of piece.
  2546. * src/RequestGroup.cc
  2547. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2548. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2549. directive.
  2550. * test/DefaultPieceStorageTest.cc
  2551. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2552. Fixed memory leak in test code
  2553. * test/AnnounceListTest.cc
  2554. * test/DefaultPeerListProcessorTest.cc
  2555. * test/DefaultPeerStorageTest.cc
  2556. * test/MetaFileUtilTest.cc
  2557. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2558. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2559. * src/DefaultPieceStorage.cc
  2560. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2561. Initialized _directIOAllowed
  2562. * src/MultiDiskAdaptor.cc
  2563. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2564. Fixed memory leak
  2565. * src/GZipDecoder.cc
  2566. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2567. Fixed memory leak
  2568. * src/MetalinkParserStateMachine.cc
  2569. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Fixed memory leak
  2571. * src/Dictionary.cc
  2572. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2573. Fixed memory leak
  2574. * src/IteratableChunkChecksumValidator.h
  2575. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2576. Fixed unmatched malloc/free.
  2577. * src/IteratableChunkChecksumValidator.cc
  2578. * src/IteratableChecksumValidator.cc
  2579. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2580. Removed max chunk size check. This change fixes BUG#2040169
  2581. * src/ChunkedDecoder.cc
  2582. * src/ChunkedDecoder.h
  2583. * test/ChunkedDecoderTest.cc
  2584. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2585. Implemented download speed based URI selection algorithm.
  2586. Introduced new option --uri-selector.
  2587. If --uri-selector=feedback is given, aria2 uses download speed observed
  2588. in the previous downloads and chooses fastest server in the URI list.
  2589. Currently at most 10 URIs are considered to introduce randomeness for
  2590. finding better servers. The speed is average download speed in the
  2591. downloads.
  2592. On the other hand, if --uri-selector=inorder is given, which is default,
  2593. URI is tried in order in URI list.
  2594. The usage text for the new option has not been written yet.
  2595. * src/AbstractCommand.cc
  2596. * src/DownloadCommand.cc
  2597. * src/DownloadEngine.cc
  2598. * src/DownloadEngineFactory.cc
  2599. * src/InOrderURISelector.cc
  2600. * src/InOrderURISelector.h
  2601. * src/OptionHandlerFactory.cc
  2602. * src/PeerStat.h
  2603. * src/RequestGroup.cc
  2604. * src/RequestGroup.h
  2605. * src/RequestGroupMan.cc
  2606. * src/RequestGroupMan.h
  2607. * src/SegmentMan.cc
  2608. * src/SegmentMan.h
  2609. * src/ServerStat.cc
  2610. * src/ServerStat.h
  2611. * src/ServerStatMan.cc
  2612. * src/ServerStatMan.h
  2613. * src/ServerStatURISelector.cc
  2614. * src/ServerStatURISelector.h
  2615. * src/URISelector.h
  2616. * src/option_processing.cc
  2617. * src/prefs.cc
  2618. * src/prefs.h
  2619. * test/InOrderURISelectorTest.cc
  2620. * test/RequestGroupManTest.cc
  2621. * test/ServerStatManTest.cc
  2622. * test/ServerStatURISelectorTest.cc
  2623. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2624. * Release 0.15.1+2
  2625. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2626. Bump up version number to 0.15.1+2
  2627. * configure.ac
  2628. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2629. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2630. * m4/aria2_arg.m4
  2631. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2632. * Release 0.15.1+1
  2633. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Bump up version number to 0.15.1+1
  2635. * configure.ac
  2636. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2637. Fixed the bug that causes segmentaion fault when resuming download
  2638. using metalink without size tag. Reproducible only using HTTP URI.
  2639. * src/HttpResponseCommand.cc
  2640. * src/FtpNegotiationCommand.cc
  2641. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2642. * Release 0.15.1
  2643. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Updated Bulgarian and French translations, thanks to all translators.
  2645. * po/bg.po
  2646. * po/fr.po
  2647. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2648. Bump up version number to 0.15.1
  2649. * configure.ac
  2650. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2651. Avoid repeated call of gettimeofday() when calculating speed.
  2652. * src/SpeedCalc.cc
  2653. * src/SpeedCalc.h
  2654. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2655. Removed writable check when socket's send buffer is full in BitTorrent
  2656. downloads to lower CPU usage.
  2657. * src/PeerInteractionCommand.cc
  2658. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2659. Fixed broken gzip inflation.
  2660. Turn off segmented downloading if gzip content is smaller than or equal
  2661. to 1MiB and inflate the data on the fly, because HTTP response header
  2662. doesn't contain the length of inflated file we can't determin where
  2663. the chunk of data should be written.
  2664. On the other hand, if gzip content is larger than 1MB, then turn off
  2665. on the fly inflation, because some servers returns "content-type: gzip"
  2666. for *.tgz, *.gz files.
  2667. * src/DownloadCommand.cc
  2668. * src/HttpResponseCommand.cc
  2669. * src/HttpResponseCommand.h
  2670. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2671. Applied tizianomueller's patch to fix compile error.
  2672. * test/BitfieldManTest.cc
  2673. * test/BtRequestMessageTest.cc
  2674. * test/DefaultBtContextTest.cc
  2675. * test/DefaultDiskWriterTest.cc
  2676. * test/DefaultPieceStorageTest.cc
  2677. * test/HttpHeaderProcessorTest.cc
  2678. * test/HttpResponseTest.cc
  2679. * test/Metalink2RequestGroupTest.cc
  2680. * test/MetalinkParserControllerTest.cc
  2681. * test/MetalinkProcessorTest.cc
  2682. * test/PeerSessionResourceTest.cc
  2683. * test/UtilTest.cc
  2684. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. * Release 0.15.0
  2686. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2687. Reordered src files in POTFILES.in so that usage text appears first.
  2688. * po/POTFILES.in
  2689. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Bump up version number to 0.15.0
  2691. * configure.ac
  2692. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2693. Added Bulgarian translation.
  2694. Updated Catalan, Spanish, French and Japanese translations.
  2695. Thanks to all translators.
  2696. * po/LINGUAS
  2697. * po/bg.po
  2698. * po/ca.po
  2699. * po/es.po
  2700. * po/fr.po
  2701. * po/ja.po
  2702. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2703. Updated feature list. Added libz for dependency section.
  2704. Added a description about unit testing using CppUnit.
  2705. * README
  2706. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2707. Added a test for libz. Quoted where it is necessary.
  2708. * build_test.sh
  2709. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2710. Added GZip to `Enabled Features' list.
  2711. * src/FeatureConfig.cc
  2712. * src/FeatureConfig.h
  2713. * test/FeatureConfigTest.cc
  2714. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2715. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2716. the transfer has not yet started.
  2717. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2718. * src/SegmentMan.cc
  2719. * src/SegmentMan.h
  2720. * test/SegmentManTest.cc
  2721. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2722. Cache last calculated average download/upload speed.
  2723. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2724. cached value.
  2725. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2726. * src/PeerStat.h
  2727. * src/SpeedCalc.cc
  2728. * src/SpeedCalc.h
  2729. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2730. Call parseUrl directly.
  2731. * src/Request.cc (resetUrl)
  2732. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. Supported absolute/relative path in Location header field.
  2734. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2735. * src/HttpHeader.cc
  2736. * src/HttpHeader.h
  2737. * src/HttpResponse.cc
  2738. * src/HttpSkipResponseCommand.cc
  2739. * src/Request.cc
  2740. * test/HttpHeaderTest.cc
  2741. * test/HttpResponseTest.cc
  2742. * test/RequestTest.cc
  2743. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2744. Changed help text for --load-cookie option.
  2745. * doc/aria2c.1.txt
  2746. * src/usage_text.h
  2747. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2748. Regenerated test/Makefile.in to remove stale ChangeLog.
  2749. * test/Makefile.in
  2750. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2751. Updated po files.
  2752. * po/aria2c.pot
  2753. * po/*.po
  2754. * po/*.gmo
  2755. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2756. Bump up version number to 0.15.0b
  2757. * configure.ac
  2758. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2759. Externalize messages.
  2760. * src/RequestGroupMan.cc
  2761. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  2762. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Use File::exists() instead of File::isFile() to allow non-regular file
  2764. such as block special files.
  2765. * src/AbstractDiskWriter.cc
  2766. * src/MultiDiskWriter.cc
  2767. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2768. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  2769. * src/gai_strerror.h
  2770. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2771. Fixed compile error. Thanks gknauf for the patch.
  2772. * src/asctime_r.c
  2773. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2774. Included asctime_r.h from a2time.h.
  2775. * src/a2time.h
  2776. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2777. Added a message "aria2 doesn't verify signature" to log message when
  2778. signature file is saved.
  2779. * src/RequestGroupMan.cc
  2780. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. Added the ability to save signature when download is completed if
  2782. signature is available. The filename of signature file is the path to
  2783. download file followed by ".sig". If it already exists, then signature
  2784. will not be saved.
  2785. * src/RequestGroupMan.cc
  2786. * src/Signature.cc
  2787. * test/SignatureTest.cc
  2788. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2789. Updated the descriptions for --bt-seed-unverified.
  2790. * doc/aria2c.1
  2791. * doc/aria2c.1.html
  2792. * doc/aria2c.1.txt
  2793. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2794. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  2795. that this is not going to verify files using piece hashes.
  2796. * src/HelpItemFactory.cc
  2797. * src/OptionHandlerFactory.cc
  2798. * src/RequestGroup.cc
  2799. * src/option_processing.cc
  2800. * src/prefs.cc
  2801. * src/prefs.h
  2802. * src/usage_text.h
  2803. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2804. Added the ability to retrieve signature from Metalink file.
  2805. A retrieved signature is stored in Signature class and it is held by
  2806. DownloadContext class. Note that aria2 doesn't verify signature.
  2807. * src/DownloadContext.cc
  2808. * src/DownloadContext.h
  2809. * src/Makefile.am
  2810. * src/Makefile.in
  2811. * src/Metalink2RequestGroup.cc
  2812. * src/MetalinkEntry.cc
  2813. * src/MetalinkEntry.h
  2814. * src/MetalinkParserController.cc
  2815. * src/MetalinkParserController.h
  2816. * src/MetalinkParserStateMachine.cc
  2817. * src/MetalinkParserStateMachine.h
  2818. * src/Signature.cc
  2819. * src/Signature.h
  2820. * src/SignatureMetalinkParserState.cc
  2821. * src/SignatureMetalinkParserState.h
  2822. * src/VerificationMetalinkParserState.cc
  2823. * src/VerificationMetalinkParserState.h
  2824. * test/Metalink2RequestGroupTest.cc
  2825. * test/MetalinkParserControllerTest.cc
  2826. * test/MetalinkProcessorTest.cc
  2827. * test/test.xml
  2828. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2829. Close DiskAdaptor after renaming file.
  2830. * src/RequestGroup.cc
  2831. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2832. Corrected indentation
  2833. * src/DefaultBtProgressInfoFile.cc
  2834. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2835. Moved the calls of std::ios::exceptions() inside of try-catch block
  2836. because if an error occurred in constructor of std::fstream, then
  2837. exception is thrown immediately when std::ios::exceptions() is called
  2838. which results unhandled exception and aria2c aborts.
  2839. * src/DefaultBtProgressInfoFile.cc
  2840. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2841. Added the test for the previous change in DefaultBtContext.cc
  2842. * test/DefaultBtContextTest.cc
  2843. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Fixed the bug that causes infinite loop when the number of pieces are
  2845. fewer than allowed fast set size which is 10 by default.
  2846. * src/DefaultBtContext.cc
  2847. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Updated the descriptions for -j, -s. Added --bt-seed.
  2849. * doc/aria2c.1
  2850. * doc/aria2c.1.html
  2851. * doc/aria2c.1.txt
  2852. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2854. aria2 seeds previously downloaded files without validating piece hashs.
  2855. * src/HelpItemFactory.cc
  2856. * src/OptionHandlerFactory.cc
  2857. * src/RequestGroup.cc
  2858. * src/option_processing.cc
  2859. * src/prefs.cc
  2860. * src/prefs.h
  2861. * src/usage_text.h
  2862. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Updated DESCRIPTION of man page.
  2864. * doc/aria2c.1
  2865. * doc/aria2c.1.html
  2866. * doc/aria2c.1.txt
  2867. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2868. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  2869. Don't define `struct addrinfo' when __sun is defined.
  2870. * src/getaddrinfo.h
  2871. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  2873. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  2874. second argument is of type `struct _stati64'. Otherwise it is defined as
  2875. `struct stat'.
  2876. * src/AbstractDiskWriter.cc
  2877. * src/File.cc
  2878. * src/File.h
  2879. * src/a2io.h
  2880. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2881. Fixed the compile error in hurd-i386
  2882. See the original bug report:
  2883. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  2884. * src/a2io.h
  2885. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2886. Code cleanup.
  2887. * src/PeerAbstractCommand.cc
  2888. * src/PeerAbstractCommand.h
  2889. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Removed TransferEncoding.
  2891. * src/DownloadCommand.cc
  2892. * src/DownloadCommand.h
  2893. * src/HttpResponseCommand.cc
  2894. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2895. Updated po files.
  2896. * po/aria2c.pot
  2897. * po/*.po
  2898. * po/*.gmo
  2899. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2900. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  2901. * src/A2STR.cc
  2902. * src/A2STR.h
  2903. * src/ChunkedDecoder.cc
  2904. * src/ChunkedDecoder.h
  2905. * src/ChunkedEncoding.cc: Removed
  2906. * src/ChunkedEncoding.h: Removed
  2907. * src/DownloadCommand.cc
  2908. * src/DownloadCommand.h
  2909. * src/HttpDownloadCommand.cc
  2910. * src/HttpResponse.cc
  2911. * src/HttpResponse.h
  2912. * src/HttpResponseCommand.cc
  2913. * src/HttpSkipResponseCommand.cc
  2914. * src/HttpSkipResponseCommand.h
  2915. * src/Makefile.am
  2916. * src/TransferEncoding.h: Removed
  2917. * test/ChunkedDecoderTest.cc
  2918. * test/ChunkedEncodingTest.cc: Removed
  2919. * test/HttpResponseTest.cc
  2920. * test/Makefile.am
  2921. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2922. Use append instead of insert.
  2923. * src/GZipDecoder.cc
  2924. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2925. Updated doc
  2926. * src/Decoder.h
  2927. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2928. Updated usage text for -s option.
  2929. * src/usage_text.h
  2930. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2931. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  2932. * src/Request.cc
  2933. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2934. Cleaned up configure.ac.
  2935. * configure.ac
  2936. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2937. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  2938. AC_ARG_ENABLE.
  2939. * configure.ac
  2940. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2941. Added gzip, deflate decoding support in HTTP using libz. If compiled
  2942. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  2943. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  2944. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  2945. fly and writes decoded data to a local disk.
  2946. * README
  2947. * README.html
  2948. * configure.ac
  2949. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  2950. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  2951. * m4/libz.m4
  2952. * src/Decoder.h
  2953. * src/DownloadCommand.cc
  2954. * src/DownloadCommand.h
  2955. * src/Exception.h
  2956. * src/GZipDecoder.cc
  2957. * src/GZipDecoder.h
  2958. * src/HttpHeader.cc
  2959. * src/HttpHeader.h
  2960. * src/HttpRequest.cc
  2961. * src/HttpRequest.h
  2962. * src/HttpResponse.cc
  2963. * src/HttpResponse.h
  2964. * src/HttpResponseCommand.cc
  2965. * src/Makefile.am
  2966. * test/GZipDecoderTest.cc
  2967. * test/HttpRequestTest.cc
  2968. * test/HttpResponseTest.cc
  2969. * test/Makefile.am
  2970. * test/Makefile.in
  2971. * test/gzip_decode_test.gz
  2972. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2973. Clarified usage of -j option.
  2974. * src/usage_text.h
  2975. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Disabled getting size from the response of RETR.
  2977. If SIZE command failed, then disable resuming and segmented downloading.
  2978. * src/FtpConnection.cc
  2979. * src/FtpConnection.h
  2980. * src/FtpNegotiationCommand.cc
  2981. * src/FtpNegotiationCommand.h
  2982. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Use digits to find first byte of file size, which makes the intention
  2984. of the code clearer.
  2985. * src/FtpConnection.cc
  2986. Don't call validateTotalLength() when size is 0.
  2987. * src/FtpNegotiationCommand.cc
  2988. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Updated po files.
  2990. * po/aria2c.pot
  2991. * po/*.gmo
  2992. * po/*.po
  2993. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2994. Clarified usage text for --split option.
  2995. * src/usage_text.h
  2996. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2997. Bump up version number to 0.15.0dev. "dev" means "development"
  2998. version, which means I started the development of the next release!
  2999. * src/configure.ac
  3000. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. If FTP server returns negative response with REST raw command and
  3002. requested range is not 0, throw exception. If requested range is 0,
  3003. continue download a file from 0 byte.
  3004. * src/FtpNegotiationCommand.cc
  3005. * src/FtpNegotiationCommand.h
  3006. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3007. Supported FTP server which don't recognize SIZE raw command.
  3008. If SIZE raw command is failed, aria2 will try to get file size
  3009. from the response of RETR raw command. If both attempts are failed,
  3010. then resuming and segmented downloading are disabled.
  3011. * src/FtpConnection.cc
  3012. * src/FtpConnection.h
  3013. * src/FtpNegotiationCommand.cc
  3014. * src/FtpNegotiationCommand.h
  3015. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3016. * Release 0.14.0+1
  3017. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3018. Bump up version number to 0.14.0+1
  3019. * src/configure.ac
  3020. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Fixed the code that refers static member variable from non-static
  3022. context.
  3023. * src/DefaultPeerStorage.cc
  3024. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3025. * Release 0.14.0
  3026. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Added build test script
  3028. * build_test.sh
  3029. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Updated ja.po
  3031. * src/ja.po
  3032. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3033. Bump up version number to 0.14.0
  3034. * src/configure.ac
  3035. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3036. Updated ja.po and fr.po. Great thanks for french translators and
  3037. Sebastien WILLEMIJNS.
  3038. * po/fr.po
  3039. * po/ja.po
  3040. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3041. Added configure option to enable/disable epoll support.
  3042. * configure.ac
  3043. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Updated man page.
  3045. * doc/aria2c.1.txt
  3046. * doc/aria2c.1
  3047. * doc/aria2c.1.html
  3048. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Added missing default value '5' to the usage of --split option.
  3050. * src/HelpItemFactory.cc
  3051. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Filled up pieces based on the number of missing blocks, rather than
  3053. simplay the number of piece * block length.
  3054. * src/BtRequestFactory.h
  3055. * src/DefaultBtInteractive.cc
  3056. * src/DefaultBtInteractive.h
  3057. * src/DefaultBtRequestFactory.cc
  3058. * src/DefaultBtRequestFactory.h
  3059. * src/Piece.cc
  3060. * src/Piece.h
  3061. * test/BitfieldManTest.cc
  3062. * test/DefaultBtRequestFactoryTest.cc
  3063. * test/MockBtRequestFactory.h
  3064. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Made _epEvents a member variable.
  3066. * src/DownloadEngine.cc
  3067. * src/DownloadEngine.h
  3068. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. Cancel download if http redirect is bounded more than 20 times.
  3070. * src/AbstractCommand.cc
  3071. * src/HttpSkipResponseCommand.cc
  3072. * src/Request.cc
  3073. * src/Request.h
  3074. * test/RequestTest.cc
  3075. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Fixed unhandled exception(removed keyword `new').
  3077. * src/SocketCore.cc (initEPOLL)
  3078. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Removed visit(const MetaEntry*)
  3080. * src/MetaEntryVisitor.h:
  3081. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3082. and made them virtual.
  3083. * src/BencodeVisitor.h
  3084. * src/BencodeVisitor.cc
  3085. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3086. Updated po files.
  3087. * po/aria2c.pot
  3088. * po/*.po
  3089. * po/*.gmo
  3090. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3092. the number of socket to watch out.
  3093. * src/PeerInteractionCommand.cc
  3094. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. When there is not enough space in disk when writing a chunk of data,
  3096. aria2 now prints the message to the console to warn user and aborts
  3097. its download. Not all downloads are canceled because some downloads
  3098. may use another disk or partition. BUG#1640332
  3099. * src/AbstractDiskWriter.cc
  3100. * src/PeerAbstractCommand.cc
  3101. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3102. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3103. setHaltRequested(true) to cancel download.
  3104. * src/PeerInteractionCommand.h
  3105. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3106. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3107. socket from int to sock_t as sockets are unsigned in Windows.
  3108. For AsyncNameResolver, DownloadEngine, I did additional modification
  3109. for the portion of the code changed according to epoll support.
  3110. I defined sock_t in a2netcompat.h to use sock_t without including
  3111. SocketCore.h.
  3112. * src/AsyncNameResolver.cc
  3113. * src/AsyncNameResolver.h
  3114. * src/DownloadEngine.cc
  3115. * src/DownloadEngine.h
  3116. * src/SocketCore.cc
  3117. * src/SocketCore.h
  3118. * src/a2netcompat.h
  3119. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3121. changes in the patch were applied.
  3122. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3123. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3124. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3125. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3126. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3127. a2io.h and common.h were modified.
  3128. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3129. MinGW.
  3130. * src/common.h: Changed off_t to 64 bit in MinGW.
  3131. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3133. only a2netcompat.h is modified.
  3134. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3135. directives.
  3136. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3137. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3138. only gai_strerror.h is modified.
  3139. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3140. winsock errors in MinGW.
  3141. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3142. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3143. follow sources are applied.
  3144. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3145. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3146. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3147. I included locale.h from Platform.cc.
  3148. * src/main.cc: Moved common setup/teardown code to Platform class.
  3149. * test/AllTest.cc: Use Platform class.
  3150. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3151. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3153. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3154. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3155. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3157. aria2-0.13.2+1-mingw-2.patch.
  3158. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3159. systems which don't have termious.h. I moved the directive inside of
  3160. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3161. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3162. anyway.
  3163. * src/asctime_r.h
  3164. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3165. I added 2nd argument to the prototype declaration.
  3166. * src/StringFormat.cc: Get rid of vasprintf.
  3167. * src/getaddrinfo.h: Fixed constants.
  3168. * configure.ac: Added the check for asctime_r function.
  3169. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3170. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3171. Added writable test for Socket when the sending message is in progress.
  3172. Usually the sending message is piece message. Without wriable check,
  3173. upload latency is dropped to more than 1sec.
  3174. * src/PeerInteractionCommand.cc
  3175. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Create only requested files and files which shares a piece with
  3177. requested file in multi-torrent downloads. Directory structures are
  3178. also created in the same rule.
  3179. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3180. DiskWriterEntry as in the previous implementation.
  3181. * src/MultiDiskWriter.cc
  3182. * src/MultiFileAllocationIterator.cc
  3183. * src/MultiFileAllocationIterator.h
  3184. * test/MultiFileAllocationIteratorTest.cc
  3185. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Commented out -lprofiler
  3187. * src/Makefile.am
  3188. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3189. Bump up version number to 0.14.0b.
  3190. * src/configure.ac
  3191. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. Actively establish connection to peers in seeding, when peer cache
  3193. is not full and max upload speed limit is not reached.
  3194. * src/ActivePeerConnectionCommand.cc
  3195. * src/ActivePeerConnectionCommand.h
  3196. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3197. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3198. to make room more fleshy, recently found peers.
  3199. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3200. it.
  3201. * src/DefaultPeerStorage.cc
  3202. * test/DefaultPeerStorageTest.cc
  3203. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3204. Returns cached data only when the previous receiveHandshake() is called
  3205. with peek = true.
  3206. * src/PeerConnection.cc (receiveHandshake)
  3207. * src/PeerConnection.h (receiveHandshake)
  3208. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Changed default value of -s option from 1 to 5.
  3210. Also max value of -s option is changed from 5 to 16.
  3211. * src/HelpItemFactory.cc
  3212. * src/OptionHandlerFactory.cc
  3213. * src/option_processing.cc
  3214. * src/usage_text.h
  3215. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Changed -s options behavior. Now it means the number of connections
  3217. made simultaneously in each http/ftp download.
  3218. If 1 URL is specified, the behavior is the same with old implementation.
  3219. If -s N is given and more than N URLs are specified, first N URLs are
  3220. used and remaining URLs are used for backup. If less than N URLs are
  3221. specified, some of URLs are used more than once so that totally N
  3222. connections are made simultaneously.
  3223. * src/main.cc
  3224. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Included missing iosfwd or ostream header.
  3226. * src/RequestGroupMan.cc
  3227. * src/TaggedItem.cc
  3228. * src/TaggedItem.h
  3229. * src/Util.cc
  3230. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3232. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3233. * src/HttpConnection.cc: Included missing sstream.
  3234. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3235. Added --bt-max-open-files option.
  3236. * src/DefaultPieceStorage.cc
  3237. * src/HelpItemFactory.cc
  3238. * src/MultiDiskAdaptor.cc
  3239. * src/MultiDiskAdaptor.h
  3240. * src/OptionHandlerFactory.cc
  3241. * src/option_processing.cc
  3242. * src/prefs.cc
  3243. * src/prefs.h
  3244. * src/usage_text.h
  3245. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Fixed the bug that aria2 aborts when a path to a directory is given
  3247. in command-line.
  3248. * src/ProtocolDetector.cc
  3249. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3250. Limited the number files opened in each BitTorrent download. The default
  3251. value is 100. The option to change this value will be added.
  3252. * src/MultiDiskAdaptor.cc
  3253. * src/MultiDiskAdaptor.h
  3254. * src/MultiFileAllocationIterator.cc
  3255. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3256. Fixed the bug that HTTP downloads don't start with old libraries.
  3257. * src/HttpHeaderProcessor.cc
  3258. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3259. Use empty() instead of size() > 0.
  3260. * src/HttpConnection.cc
  3261. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3262. Drop connection if the incoming peer ID is the same with localhost's
  3263. one. The previous implementation drops connection when incoming peer's
  3264. IP address is the same with localhost's one.
  3265. * src/PeerListenCommand.cc
  3266. * src/DefaultBtInteractive.cc
  3267. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Returns cached data without checking whether socket is readable
  3269. if the cache is available.
  3270. * src/PeerConnection.cc (receiveHandshake)
  3271. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3272. Included stdint.h
  3273. * src/common.h
  3274. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Removed duplicate HAVE_GETTIMEOFDAY
  3276. * src/Makefile.am
  3277. * src/Makefile.in
  3278. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Use interval as a minInterval when minInterval is not supplied.
  3280. * src/DefaultBtAnnounce.cc
  3281. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3283. attempt is failed, then 2nd attempt get kicked out more quickly.
  3284. And it is now static const member of DefaultBtAnnounce.
  3285. * src/DefaultBtAnnounce.h
  3286. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3288. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3289. * src/ActivePeerConnectionCommand.cc
  3290. * src/BtConstants.h
  3291. * src/BtRuntime.h
  3292. * src/DHTGetPeersCommand.cc
  3293. * src/DefaultBtAnnounce.cc
  3294. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3295. BtRuntime::MAX_PEERS.
  3296. * src/DefaultPeerStorage.h
  3297. * src/InitiatorMSEHandshakeCommand.cc
  3298. * src/PeerInitiateConnectionCommand.cc
  3299. * src/PeerInteractionCommand.cc
  3300. * src/PeerReceiveHandshakeCommand.cc
  3301. * src/TrackerWatcherCommand.cc
  3302. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3303. Always Connect to _numNewConnection
  3304. * src/ActivePeerConnectionCommand.cc
  3305. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3306. Made `begin' unsigned int.
  3307. * src/GrowSegment.h
  3308. * src/Piece.cc
  3309. * src/Piece.h
  3310. * src/PiecedSegment.cc
  3311. * src/PiecedSegment.h
  3312. * src/Segment.h
  3313. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Calculate piece hash when data is arrived if the data is arrived in
  3315. order. This removes additional read operation for hash calculation.
  3316. If the data is arrived in out of order, the hash is calucated when the
  3317. piece is completed. This is the same behavior as the old implementation.
  3318. * src/BtPieceMessage.cc
  3319. * src/DefaultBtProgressInfoFile.cc
  3320. * src/DefaultPieceStorage.cc
  3321. * src/DownloadCommand.cc
  3322. * src/DownloadCommand.h
  3323. * src/DownloadEngine.cc
  3324. * src/GrowSegment.cc
  3325. * src/GrowSegment.h
  3326. * src/Piece.cc
  3327. * src/Piece.h
  3328. * src/PiecedSegment.cc
  3329. * src/PiecedSegment.h
  3330. * src/Segment.h
  3331. * test/PieceTest.cc
  3332. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Try to keep the ordering of outgoing piece message.
  3334. * src/DefaultBtMessageDispatcher.cc
  3335. (DefaultBtMessageDispatcher::sendMessages)
  3336. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3337. Fixed busy loop when error/hup epoll events occur.
  3338. * src/AbstractCommand.cc
  3339. * src/PeerAbstractCommand.cc
  3340. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Added --bt-request-peer-speed-limit option, which was a constant
  3342. SLOW_SPEED_THRESHOLD.
  3343. * src/ActivePeerConnectionCommand.cc
  3344. * src/ActivePeerConnectionCommand.h
  3345. * src/BtConstants.h
  3346. * src/HelpItemFactory.cc
  3347. * src/OptionHandlerFactory.cc
  3348. * src/PeerReceiveHandshakeCommand.cc
  3349. * src/option_processing.cc
  3350. * src/prefs.cc
  3351. * src/prefs.h
  3352. * src/usage_text.h
  3353. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3354. Removed repeated call of getTopDirPath(). Instead, call it once and
  3355. cache the result.
  3356. * src/MultiDiskAdaptor.cc
  3357. * src/MultiDiskAdaptor.h
  3358. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3359. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Fixed compile error on debian etch.
  3361. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3362. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3363. it is undefined.
  3364. * src/Util.cc (ULLONG_MAX)
  3365. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Added epoll support. Use epoll if it is available. If not, use select.
  3367. When async dns is enabled in compile time, epoll support is enabled
  3368. only when aria2 is built with c-ares. This condition statement is
  3369. defined in a2io.h.
  3370. Currently aria2 supports both c-ares and ares, but ares is maintained
  3371. for quite a while and debian already has c-ares package, ares support
  3372. will be dropped in the future version.
  3373. * configure.ac
  3374. * src/AbstractCommand.cc
  3375. * src/AsyncNameResolver.cc
  3376. * src/AsyncNameResolver.h
  3377. * src/Command.cc
  3378. * src/Command.h
  3379. * src/DownloadEngine.cc
  3380. * src/DownloadEngine.h
  3381. * src/PeerAbstractCommand.cc
  3382. * src/SocketCore.cc
  3383. * src/SocketCore.h
  3384. * src/a2io.h
  3385. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3386. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3387. directive.
  3388. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3389. Do not do write operation to /dev/null file.
  3390. * src/LogFactory.cc
  3391. * src/SimpleLogger.cc
  3392. Replaced vasprintf with vsnprintf
  3393. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3394. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. * src/BtRequestMessage.cc
  3396. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3397. for segmentation fault caused by previous commit.
  3398. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3399. Reduced the usage of gettimeofday().
  3400. * src/DefaultBtMessageDispatcher.cc
  3401. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3402. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3403. * src/RequestSlot.cc
  3404. * src/RequestSlot.h
  3405. (RequestSlot::isTimeout)
  3406. Made RequestSlot have a reference to Piece object to avoid find
  3407. Piece repeatedly.
  3408. * src/DefaultBtMessageDispatcher.cc
  3409. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3410. * src/RequestSlot.cc
  3411. * src/RequestSlot.h
  3412. (RequestSlot::getPiece)
  3413. * test/DefaultBtMessageDispatcherTest.cc
  3414. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3415. * src/TimeA2.cc
  3416. * src/TimeA2.h
  3417. (Time::difference): New function.
  3418. (Time::elapsed): Done optimization.
  3419. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3420. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3421. directive.
  3422. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3423. * src/option_processing.cc: Added missing `defined' keyword to #if
  3424. directive.
  3425. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3426. Bump up version number to 0.13.2+1
  3427. * src/configure.ac
  3428. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3429. Refactored broken outstanding piece handling.
  3430. * src/DefaultPieceStorage.cc
  3431. * src/DefaultPieceStorage.h
  3432. * src/Piece.cc
  3433. * src/Piece.h
  3434. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3435. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3436. name collision of static variable and predefined macro.
  3437. * src/BtContext.cc
  3438. * src/BtContext.h
  3439. * src/CookieBoxFactory.cc
  3440. * src/CookieBoxFactory.h
  3441. * src/CookieParser.cc
  3442. * src/CookieParser.h
  3443. * src/DefaultBtContext.cc
  3444. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3445. * src/RequestGroup.cc
  3446. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3447. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3448. * Release 0.13.2
  3449. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3451. * po/fr.po
  3452. * po/ja.po
  3453. * po/aria2c.pot
  3454. * po/*.po
  3455. * po/*.gmo
  3456. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3457. Bump up version number to 0.13.2
  3458. * src/configure.ac
  3459. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3460. Refactord.
  3461. * src/RequestGroupMan.cc
  3462. (removeStoppedGroup)
  3463. (fillRequestGroupFromReserver)
  3464. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3465. Fixed compile error on Ubuntu.
  3466. * src/BtPieceMessage.cc
  3467. * src/MessageDigestHelper.cc
  3468. * src/Util.cc
  3469. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3470. Fixed compile error when configured with --disable-bittorrent
  3471. * test/DownloadHandlerFactoryTest.cc
  3472. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3473. Done make update-po
  3474. * po/aria2c.pot
  3475. * po/*.po
  3476. * po/*.gmo
  3477. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Bump up version number to 0.13.2rc.
  3479. * src/configure.ac
  3480. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Made option name bold. Updated SYNOPSIS to make it more readable.
  3482. * doc/aria2c.1.txt
  3483. * doc/aria2c.1
  3484. * doc/aria2c.1.html
  3485. * src/version_usage.cc
  3486. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Refactored. Use std::string instead of size and char*.
  3488. * Data.cc
  3489. * Data.h
  3490. * test/Data.cc
  3491. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3492. Added trimSelf(). Rewritten trim() to use trimSelf().
  3493. * Util.cc
  3494. * Util.h
  3495. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3497. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Fixed compile error when configured with --disable-metalink.
  3499. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3500. * test/FeatureConfigTest.cc
  3501. * test/DownloadHandlerFactoryTest.cc
  3502. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Fixed compile error when configured with --without-gnutls
  3504. --without-openssl
  3505. * src/main.cc
  3506. * test/DefaultBtProgressInfoFileTest.cc
  3507. * test/SegmentManTest.cc
  3508. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3509. Fixed compile error with OpenSSL.
  3510. * src/IteratableChunkChecksumValidator.cc
  3511. * src/LibsslDHKeyExchange.h
  3512. * src/MessageDigestHelper.cc
  3513. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. Revert the default value of --max-concurrent-downloads to 5.
  3515. Revert the default value of --metalink-servers to 5.
  3516. Man pages was also updated.
  3517. * src/option_processing.cc
  3518. * doc/aria2c.1.txt
  3519. * doc/aria2c.1.html
  3520. * doc/aria2c.1
  3521. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Returns const reference:
  3523. DownloadContext::getPieceHash, DownloadContext::getName,
  3524. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3525. BtContext::getInfoHashAsString,
  3526. * src/BtContext.h
  3527. * src/DefaultBtContext.cc
  3528. * src/DefaultBtContext.h
  3529. * src/DownloadContext.h
  3530. * src/SingleFileDownloadContext.h
  3531. * test/MockBtContext.h
  3532. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3533. * src/RequestGroup.h (getDir): Removed.
  3534. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3535. Returns const reference. The internal urlencode function was optimized
  3536. a little bit.
  3537. * src/Request.cc
  3538. * src/Request.h
  3539. * src/HttpRequest.cc
  3540. * src/HttpRequest.h
  3541. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3542. Defined option name and possible values as std::string to reduce
  3543. temporary string object creation in runtime.
  3544. * src/HelpItemFactory.cc
  3545. * src/LogFactory.cc
  3546. * src/Option.cc
  3547. * src/OptionHandlerFactory.cc
  3548. * src/option_processing.cc
  3549. * src/prefs.cc
  3550. * src/prefs.h
  3551. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Return const reference.
  3553. * src/DownloadHandlerConstants.cc
  3554. * src/DownloadHandlerConstants.h
  3555. (getMetalinkExtensions)
  3556. (getMetalinkContentTypes)
  3557. (getBtExtensions)
  3558. (getBtContentTypes)
  3559. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3560. * src/HttpHeader.cc (get): Rewritten.
  3561. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Make HttpHeader::getFirst(...) return const reference.
  3563. * src/HttpHeader.cc
  3564. * src/HttpHeader.h
  3565. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3567. it with V_TRUE.
  3568. * src/DefaultPieceStorage.cc
  3569. * src/DownloadCommand.cc
  3570. * src/FtpNegotiationCommand.cc
  3571. * src/HttpRequest.cc
  3572. * src/InitiateConnectionCommand.cc
  3573. * src/RequestGroup.cc
  3574. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Made Option::get(...) return const reference of std::string.
  3576. * src/Option.cc
  3577. * src/Option.h
  3578. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Replaced std:copy with insert.
  3580. * src/DefaultBtMessageDispatcher.cc
  3581. * src/DefaultPieceStorage.cc
  3582. * src/DownloadEngineFactory.cc
  3583. * src/RequestGroup.cc
  3584. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. Included SocketCore.h to fix compiler warning.
  3586. * src/InitiateConnectionCommand.cc
  3587. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Put piece selection strategy algorithm to RarestPieceSelector class,
  3589. Added a switch to choose whether randomized selection so that unit
  3590. tests emit same results in, possibly, win32.
  3591. * src/DefaultPieceStorage.cc
  3592. * src/DefaultPieceStorage.h
  3593. * src/RarestPieceSelector.cc
  3594. * src/RarestPieceSelector.h
  3595. * test/DefaultPieceStorageTest.cc
  3596. * test/RarestPieceSelectorTest.cc
  3597. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Don't pool connection if HTTP proxy is enabled.
  3599. * src/FtpFinishDownloadCommand.cc
  3600. * src/FtpNegotiationCommand.cc
  3601. * src/HttpSkipResponseCommand.cc
  3602. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3604. * src/AbstractCommand.cc
  3605. * src/AbstractCommand.h
  3606. * src/ActivePeerConnectionCommand.cc
  3607. * src/FtpInitiateConnectionCommand.cc
  3608. * src/HttpInitiateConnectionCommand.cc
  3609. * src/InitiateConnectionCommandFactory.cc
  3610. * src/PeerAbstractCommand.cc
  3611. * src/PeerAbstractCommand.h
  3612. * src/PeerInitiateConnectionCommand.cc
  3613. * src/TrackerWatcherCommand.cc
  3614. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3615. Sort RequestSlot in ascending order and manipulate them using
  3616. lower_bound.
  3617. * src/DefaultBtMessageDispatcher.cc
  3618. * src/DefaultBtMessageDispatcher.h
  3619. (getMessageQueue): Added const qualifier.
  3620. (getRequestSlots): Added const qualifier.
  3621. (sendMessages): Use empty() instead of size().
  3622. (doCancelSendingPieceAction): Use HandleEvent object.
  3623. (doAbortOutstandingRequestAction): Rewritten.
  3624. (doChokedAction): Rewritten.
  3625. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3626. (isOutstandingRequest): Rewritten.
  3627. (getOutstandingRequest): Rewritten.
  3628. (removeOutstandingRequest): Rewritten.
  3629. (addOutstandingRequest): Rewritten.
  3630. * src/RequestSlot.cc
  3631. * src/RequestSlot.h
  3632. (operator=): Rewritten.
  3633. (operator!=): New function.
  3634. (operator<): New function.
  3635. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. * src/DefaultBtRequestFactory.cc
  3637. (doChokedAction): Rewritten.
  3638. (removeCompletedPiece): Rewritten.
  3639. (removeTargetPiece): Rewritten.
  3640. (createRequestMessages): Added the debug log.
  3641. (createRequestMessagesOnEndGame: Added the debug log.
  3642. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3643. Added the debug log message.
  3644. * src/BtPieceMessage.cc (doReceivedAction)
  3645. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3646. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3647. used lower_bound to process them rather than linear search.
  3648. * src/DHTPeerAnnounceStorage.cc
  3649. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3651. peer has at least one completed piece.
  3652. * src/Peer.cc
  3653. * src/Peer.h
  3654. * src/PeerInteractionCommand.cc
  3655. * src/PeerSessionResource.cc
  3656. * src/PeerSessionResource.h
  3657. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. Removed unnecessary sorting
  3659. * src/DefaultPieceStorage (DefaultPieceStorage)
  3660. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Rewritten the portion of the code that mangaes allowed fast indexes.
  3662. * src/PeerSessionResource.cc
  3663. * src/PeerSessionResource.h
  3664. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3665. Removed the invalid string including '\r' from ru.po and
  3666. did make update-po.
  3667. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3668. Added --log-level and --summary-interval to man page.
  3669. * doc/aria2c.1.txt
  3670. * doc/aria2c.1.html
  3671. * doc/aria2c.1
  3672. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Added --log-level option to specify log level. Log messages under
  3674. the specified level are not output. Default value is `debug'.
  3675. * src/HelpItemFactory.cc
  3676. * src/LogFactory.cc
  3677. * src/LogFactory.h
  3678. * src/Logger.h
  3679. * src/OptionHandlerFactory.cc
  3680. * src/SimpleLogger.cc
  3681. * src/SimpleLogger.h
  3682. * src/main.cc
  3683. * src/option_processing.cc
  3684. * src/prefs.h
  3685. * src/usage_text.h
  3686. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. Print download progress summary of all parallel downloads in specified
  3688. interval, default 60 secs. While aria2 could download several files
  3689. in parallel (see -j option), it displayed just first download progress,
  3690. and the other downloads are hidden from the users. This new feature
  3691. prints all downloads currently in-progress to the console so that you
  3692. can check the status of all downloads. The interval can be adjusted
  3693. by --summary-interval option.
  3694. The progress readout is now cut so that all fits in the one line of
  3695. console.
  3696. * src/ConsoleStatCalc.cc
  3697. * src/ConsoleStatCalc.h
  3698. * src/HelpItemFactory.cc
  3699. * src/OptionHandlerFactory.cc
  3700. * src/RequestGroupMan.cc
  3701. * src/RequestGroupMan.h
  3702. * src/main.cc
  3703. * src/option_processing.cc
  3704. * src/prefs.h
  3705. * src/usage_text.h
  3706. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3708. * src/DownloadEngine.cc (DownloadEngine)
  3709. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3711. defined.
  3712. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3713. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3714. Use erase+lower_bound+insert instead of sort.
  3715. * src/DefaultPieceStorage.cc (addPieceStats)
  3716. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3717. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3718. * src/A2STR.cc
  3719. * src/A2STR.h
  3720. * src/OptionParser.cc (parse)
  3721. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Defined fake filename `[tracker.announce]' as static const std::string.
  3723. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3724. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Defined default filename `index.html' as static const std::string
  3726. * src/SingleFileDownloadContext.cc
  3727. * src/SingleFileDownloadContext.h
  3728. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Defined "[MEMORY]" as static const std::string.
  3730. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3731. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Defined control file's version number as static const std::string.
  3733. * src/DefaultBtProgressInfoFile.cc
  3734. * src/DefaultBtProgressInfoFile.h
  3735. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. Use Request::METHOD_GET
  3737. * src/RequestGroup.cc (createNextCommandWithAdj)
  3738. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3739. Defined "OK", "ERR", "INPR" as static const std::string
  3740. * src/RequestGroupMan.cc (showDownloadResults)
  3741. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3742. Defined default client used in extended handshake as static const
  3743. std::string
  3744. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3745. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3747. * src/HttpConnection.cc (eraseConfidentialInfo)
  3748. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Defined default ftp user and password as static const std::string
  3750. * src/AuthConfigFactory.cc
  3751. * src/AuthConfigFactory.h
  3752. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Defined strings used in netrc as static const std::string
  3754. * src/Netrc.cc
  3755. * src/Netrc.h
  3756. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Defined HTTP status as static const std::string
  3758. * src/AbstractProxyResponseCommand.cc
  3759. * src/HttpHeader.cc
  3760. * src/HttpHeader.h
  3761. * src/HttpResponse.cc
  3762. * src/HttpResponseCommand.cc
  3763. * src/HttpSkipResponseCommand.cc
  3764. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3765. Defined "\r\n", "A", "I" as static const std::string
  3766. * src/A2STR.cc
  3767. * src/A2STR.h
  3768. * src/FtpConnection.cc
  3769. * src/FtpConnection.h
  3770. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3771. Added COLON_C(".") and used it in Request::parseUrl()
  3772. * src/A2STR.cc
  3773. * src/A2STR.h
  3774. * src/Request.cc (parseUrl)
  3775. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Changed the type of padName from `const std::string&' to `const char*'.
  3777. * src/MSEHandshake.cc (verifyPadLength)
  3778. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3779. Defined "sha1" as static const std::string.
  3780. * src/MetalinkParserController.cc
  3781. * src/MetalinkParserController.h
  3782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Defined message digest algorithm name as static const std::string
  3784. * src/DHTTokenTracker.cc
  3785. * src/DHTUtil.cc
  3786. * src/DefaultBtContext.cc
  3787. * src/MSEHandshake.cc
  3788. * src/MessageDigestHelper.cc
  3789. * src/Peer.cc
  3790. * src/messageDigest.cc
  3791. * src/messageDigest.h
  3792. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3793. Made string literals used in SAX parser static const std::string.
  3794. * src/FileMetalinkParserState.cc
  3795. * src/FileMetalinkParserState.h
  3796. * src/FilesMetalinkParserState.cc
  3797. * src/FilesMetalinkParserState.h
  3798. * src/InitialMetalinkParserState.cc
  3799. * src/InitialMetalinkParserState.h
  3800. * src/MetalinkMetalinkParserState.cc
  3801. * src/MetalinkMetalinkParserState.h
  3802. * src/PiecesMetalinkParserState.cc
  3803. * src/PiecesMetalinkParserState.h
  3804. * src/ResourcesMetalinkParserState.cc
  3805. * src/ResourcesMetalinkParserState.h
  3806. * src/VerificationMetalinkParserState.cc
  3807. * src/VerificationMetalinkParserState.h
  3808. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  3810. * src/A2STR.cc
  3811. * src/A2STR.h
  3812. * src/File.cc
  3813. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Defined static const std::string IP("ip"), PORT("port") and use them
  3815. instead of string literals.
  3816. * src/DefaultPeerListProcessor.cc
  3817. * src/DefaultPeerListProcessor.h
  3818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Made string literals for torrent file processing static const
  3820. std::string.
  3821. * src/BtContext.cc
  3822. * src/BtContext.h
  3823. * src/DefaultBtContext.cc
  3824. * src/DefaultBtContext.h
  3825. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Made string literal for tracker response static const std::string
  3827. * src/BtAnnounce.cc
  3828. * src/BtAnnounce.h
  3829. * src/DefaultBtAnnounce.cc
  3830. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Use DHTMessage::T instead of "t".
  3832. * src/DHTMessageTracker.cc (messageArrived)
  3833. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Made keyName static const. Made trimmed charset static const
  3835. std::string.
  3836. * src/Util.cc (getContentDispositionFilename)
  3837. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3838. Made USER_AGENT const. Made "/" static const std::string.
  3839. * src/A2STR.cc
  3840. * src/A2STR.h
  3841. * src/HttpRequest.cc
  3842. * src/HttpRequest.h
  3843. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Made string listeral to static const std::string:
  3845. "Content-Range", "Content-Length"
  3846. * src/HttpHeader.cc
  3847. * src/HttpHeader.h
  3848. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3849. Made string listeral to static const std::string.
  3850. * src/HttpConnection.cc
  3851. * src/HttpHeader.cc
  3852. * src/HttpHeader.h
  3853. * src/HttpResponse.cc
  3854. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3855. Made string listeral to static const std::string.
  3856. * src/A2STR.cc
  3857. * src/A2STR.h
  3858. * src/SimpleLogger.cc
  3859. * src/SimpleLogger.h
  3860. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3861. Made string literal to static const std::string.
  3862. Rewritten CookieParser::setField.
  3863. * src/A2STR.cc
  3864. * src/A2STR.h
  3865. * src/CookieBoxFactory.cc
  3866. * src/CookieBoxFactory.h
  3867. * src/CookieParser.cc
  3868. * src/CookieParser.h
  3869. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Made string literal to static const std::string
  3871. * src/DHTAbstractMessage.cc
  3872. * src/DHTAnnouncePeerMessage.cc
  3873. * src/DHTAnnouncePeerMessage.h
  3874. * src/DHTAnnouncePeerReplyMessage.cc
  3875. * src/DHTAnnouncePeerReplyMessage.h
  3876. * src/DHTFindNodeMessage.cc
  3877. * src/DHTFindNodeMessage.h
  3878. * src/DHTFindNodeReplyMessage.cc
  3879. * src/DHTFindNodeReplyMessage.h
  3880. * src/DHTGetPeersMessage.cc
  3881. * src/DHTGetPeersMessage.h
  3882. * src/DHTGetPeersReplyMessage.cc
  3883. * src/DHTGetPeersReplyMessage.h
  3884. * src/DHTMessage.cc
  3885. * src/DHTMessage.h
  3886. * src/DHTMessageFactoryImpl.cc
  3887. * src/DHTMessageReceiver.cc
  3888. * src/DHTPingMessage.cc
  3889. * src/DHTPingMessage.h
  3890. * src/DHTPingReplyMessage.cc
  3891. * src/DHTPingReplyMessage.h
  3892. * src/DHTQueryMessage.cc
  3893. * src/DHTQueryMessage.h
  3894. * src/DHTResponseMessage.cc
  3895. * src/DHTResponseMessage.h
  3896. * src/DHTUnknownMessage.cc
  3897. * src/DHTUnknownMessage.h
  3898. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Made string literal to static const std::string
  3900. * src/BtChokeMessage.cc (toString)
  3901. * src/BtHaveAllMessage.cc (toString)
  3902. * src/BtHaveNoneMessage.cc (toString)
  3903. * src/BtInterestedMessage.cc (toString)
  3904. * src/BtNotInterestedMessage.cc (toString)
  3905. * src/BtUnchokeMessage.cc (toString)
  3906. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3907. Replaced "" with static const variable A2STR::NIL.
  3908. Replaced string comparison against "" with std::string::empty().
  3909. Added PROTO_* to Request class and use them as a protocol string
  3910. constant.
  3911. Made "started", "stopped", "completed" static const variable in
  3912. AnnounceList class.
  3913. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3914. Updated translations. Great thanks to translators.
  3915. * po/ca.po
  3916. * po/de.po
  3917. * po/fr.po
  3918. * po/it.po
  3919. * po/ja.po
  3920. * po/ru.po
  3921. * po/zh_CN.po
  3922. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3923. Updated man page; categorized options and fixed typo.
  3924. * doc/aria2c.1.txt
  3925. * doc/aria2c.1.html
  3926. * doc/aria2c.1
  3927. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3928. Removed const ref
  3929. * src/MetalinkEntry.cc (AddProtocolPreference)
  3930. * src/RequestGroup.cc (FindServerHostByHostname)
  3931. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Rewritten Accept-Features handling.
  3933. * src/HttpRequestCommand.cc (createHttpRequest)
  3934. * src/a2functional.h
  3935. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3936. Changed method signature:
  3937. DHTAbstractNodeLookupTask::toEntries
  3938. * src/DHTAbstractNodeLookupTask.cc
  3939. * src/DHTAbstractNodeLookupTask.h
  3940. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Changed method signature:
  3942. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  3943. * src/BtContext.h
  3944. * src/DefaultBtContext.cc
  3945. * src/DefaultBtContext.h
  3946. * src/DefaultBtInteractive.cc
  3947. * test/DefaultBtContextTest.cc
  3948. * test/MockBtContext.h
  3949. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3950. Changed method signature:
  3951. MultiFileAllocationIterator::makeDiskWriterEntries
  3952. * src/MultiFileAllocationIterator.cc
  3953. * src/MultiFileAllocationIterator.h
  3954. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3955. Changed method sinature:
  3956. MetalinkEntry::toFileEntry,
  3957. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  3958. Metalinker::queryEntry
  3959. * src/Metalink2RequestGroup.cc
  3960. * src/MetalinkEntry.cc
  3961. * src/MetalinkEntry.h
  3962. * src/MetalinkHelper.cc
  3963. * src/MetalinkHelper.h
  3964. * src/Metalinker.cc
  3965. * src/Metalinker.h
  3966. * src/main.cc
  3967. * test/MetalinkHelperTest.cc
  3968. * test/MetalinkerTest.cc
  3969. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3970. Changed method sinature:
  3971. RequestGroup::getURIs
  3972. * src/RequestGroup.cc
  3973. * src/RequestGroup.h
  3974. * test/Metalink2RequestGroupTest.cc
  3975. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. Changed method signature:
  3977. PeerListProcessor::extractPeer
  3978. * src/CompactPeerListProcessor.cc
  3979. * src/CompactPeerListProcessor.h
  3980. * src/DefaultBtAnnounce.cc
  3981. * src/DefaultPeerListProcessor.cc
  3982. * src/DefaultPeerListProcessor.h
  3983. * src/DelegatingPeerListProcessor.cc
  3984. * src/DelegatingPeerListProcessor.h
  3985. * src/PeerListProcessor.h
  3986. * src/UTPexExtensionMessage.cc
  3987. * test/DefaultPeerListProcessorTest.cc
  3988. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Changed method signature:
  3990. BtRequestFactory::createRequestMessages,
  3991. BtRequestFactory::createRequestMessagesOnEndGame
  3992. * src/BtRequestFactory.h
  3993. * src/DefaultBtInteractive.cc
  3994. * src/DefaultBtRequestFactory.cc
  3995. * src/DefaultBtRequestFactory.h
  3996. * test/DefaultBtRequestFactoryTest.cc
  3997. * test/MockBtRequestFactory.h
  3998. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3999. Changed method signature:
  4000. PieceStorage::getInFlightPieces
  4001. * src/DefaultBtProgressInfoFile.cc
  4002. * src/DefaultPieceStorage.cc
  4003. * src/DefaultPieceStorage.h
  4004. * src/PieceStorage.h
  4005. * src/UnknownLengthPieceStorage.cc
  4006. * src/UnknownLengthPieceStorage.h
  4007. * test/DefaultBtProgressInfoFileTest.cc
  4008. * test/MockPieceStorage.h
  4009. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Changed method signature:
  4011. PostDownloadHandler::getNextRequestGroups
  4012. Metalink2RequestGroup::generate
  4013. RequestGroup::postDownloadProcessing
  4014. * src/BtPostDownloadHandler.cc
  4015. * src/BtPostDownloadHandler.h
  4016. * src/Metalink2RequestGroup.cc
  4017. * src/Metalink2RequestGroup.h
  4018. * src/MetalinkPostDownloadHandler.cc
  4019. * src/MetalinkPostDownloadHandler.h
  4020. * src/PostDownloadHandler.h
  4021. * src/RequestGroup.cc
  4022. * src/RequestGroup.h
  4023. * src/RequestGroupMan.cc
  4024. * src/main.cc
  4025. * test/BtPostDownloadHandlerTest.cc
  4026. * test/Metalink2RequestGroupTest.cc
  4027. * test/MetalinkPostDownloadHandlerTest.cc
  4028. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Rewritten AccRequestGroup
  4030. * src/main.cc
  4031. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Rewritten.
  4033. * src/TaggedItem.cc (toTagString)
  4034. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4035. Rewritten Accept-Features handling.
  4036. * src/HttpRequestCommand.cc (createHttpRequest)
  4037. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Rewritten accept types handling.
  4039. * HttpRequest.cc (createRequest)
  4040. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Rewritten
  4042. * src/FeatureConfig.cc (featureSummary)
  4043. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Changed method signature:
  4045. PeerStorage::getActivePeers
  4046. * src/DHTPeerAnnounceEntry.cc
  4047. * src/DefaultPeerStorage.cc
  4048. * src/DefaultPeerStorage.h
  4049. * src/PeerStorage.h
  4050. * test/DefaultPeerStorageTest.cc
  4051. * test/MockPeerStorage.h
  4052. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Changed method signature:
  4054. DHTPeerAnnounceStorage::getPeers,
  4055. DHTPeerAnnounceEntry::getPeers
  4056. * src/DHTGetPeersMessage.cc
  4057. * src/DHTPeerAnnounceEntry.cc
  4058. * src/DHTPeerAnnounceEntry.h
  4059. * src/DHTPeerAnnounceStorage.cc
  4060. * src/DHTPeerAnnounceStorage.h
  4061. * test/DHTAnnouncePeerMessageTest.cc
  4062. * test/DHTPeerAnnounceEntryTest.cc
  4063. * test/DHTPeerAnnounceStorageTest.cc
  4064. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. Changed method signature:
  4066. NameResolver::resolve
  4067. * src/DHTEntryPointNameResolveCommand.cc
  4068. * src/InitiateConnectionCommand.cc
  4069. * src/NameResolver.cc
  4070. * src/NameResolver.h
  4071. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4072. Changed method signature:
  4073. PieceStorage::getAdvertisedPieceIndexes
  4074. * src/DefaultBtInteractive.cc
  4075. * src/DefaultPieceStorage.cc
  4076. * src/DefaultPieceStorage.h
  4077. * src/PieceStorage.h
  4078. * src/UnknownLengthPieceStorage.h
  4079. * test/MockPieceStorage.h
  4080. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4081. Changed method signature:
  4082. SegmentMan::getInFlightSegment
  4083. * src/AbstractCommand.cc
  4084. * src/SegmentMan.cc
  4085. * src/SegmentMan.h
  4086. * test/SegmentManTest.cc
  4087. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Changed method signature:
  4089. DHTAbstractNodeLookupTask::getNodesFromMessage
  4090. * src/DHTAbstractNodeLookupTask.cc
  4091. * src/DHTAbstractNodeLookupTask.h
  4092. * src/DHTNodeLookupTask.cc
  4093. * src/DHTNodeLookupTask.h
  4094. * src/DHTPeerLookupTask.cc
  4095. * src/DHTPeerLookupTask.h
  4096. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4098. * src/AbstractCommand.cc
  4099. * src/BtCheckIntegrityEntry.cc
  4100. * src/BtCheckIntegrityEntry.h
  4101. * src/BtFileAllocationEntry.cc
  4102. * src/BtFileAllocationEntry.h
  4103. * src/BtSetup.cc
  4104. * src/BtSetup.h
  4105. * src/CheckIntegrityCommand.cc
  4106. * src/CheckIntegrityEntry.h
  4107. * src/ChecksumCheckIntegrityEntry.cc
  4108. * src/ChecksumCheckIntegrityEntry.h
  4109. * src/DHTSetup.cc
  4110. * src/DHTSetup.h
  4111. * src/DownloadEngine.cc
  4112. * src/FileAllocationCommand.cc
  4113. * src/FileAllocationEntry.h
  4114. * src/RequestGroup.cc
  4115. * src/RequestGroup.h
  4116. * src/RequestGroupMan.cc
  4117. * src/RequestGroupMan.h
  4118. * src/StreamCheckIntegrityEntry.cc
  4119. * src/StreamCheckIntegrityEntry.h
  4120. * src/StreamFileAllocationEntry.cc
  4121. * src/StreamFileAllocationEntry.h
  4122. * src/TrackerWatcherCommand.cc
  4123. * src/a2functional.h
  4124. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Changed method signature:
  4126. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4127. DHTBucket::getGoodNodes,
  4128. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4129. * src/BNode.cc
  4130. * src/BNode.h
  4131. * src/DHTAbstractNodeLookupTask.cc
  4132. * src/DHTAutoSaveCommand.cc
  4133. * src/DHTBucket.cc
  4134. * src/DHTBucket.h
  4135. * src/DHTBucketRefreshTask.cc
  4136. * src/DHTFindNodeMessage.cc
  4137. * src/DHTGetPeersMessage.cc
  4138. * src/DHTRoutingTable.cc
  4139. * src/DHTRoutingTable.h
  4140. * test/BNodeTest.cc
  4141. * test/DHTBucketTest.cc
  4142. * test/DHTRoutingTableTest.cc
  4143. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. In piece selection functions, Pass std::deque<...> by reference rather
  4145. than returning it.
  4146. * src/BitfieldMan.cc
  4147. * src/BitfieldMan.h
  4148. * src/DefaultBtRequestFactory.cc
  4149. * src/DefaultPieceStorage.cc
  4150. * src/Piece.cc
  4151. * src/Piece.h
  4152. * test/BitfieldManTest.cc
  4153. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4154. Implemented rarest piece first piece selection strategy.
  4155. * src/AbstractBtMessage.cc
  4156. * src/AbstractBtMessage.h
  4157. * src/BitfieldMan.cc
  4158. * src/BitfieldMan.h
  4159. * src/BtBitfieldMessage.cc
  4160. * src/BtHaveAllMessage.cc
  4161. * src/BtHaveMessage.cc
  4162. * src/DefaultPieceStorage.cc
  4163. * src/DefaultPieceStorage.h
  4164. * src/PeerInteractionCommand.cc
  4165. * src/PieceStorage.h
  4166. * src/UnknownLengthPieceStorage.h
  4167. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Rewritten readData and writeData.
  4169. * src/MultiDiskAdaptor.cc
  4170. * src/MultiDiskAdaptor.h
  4171. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Move \n out of the message "Usage: ...".
  4173. * src/version_usage.cc
  4174. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Bump up version number to 0.13.2b.
  4176. * configure.ac
  4177. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Added const qualifier to argument Exception& e.
  4179. * src/Logger.h
  4180. * src/SimpleLogger.cc
  4181. * src/SimpleLogger.h
  4182. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4183. Pool connection when CWD, SIZE command fails.
  4184. * src/FtpNegotiationCommand.cc
  4185. * src/FtpNegotiationCommand.h
  4186. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4188. * src/HttpResponseCommand.cc
  4189. * src/HttpSkipResponseCommand.cc
  4190. * src/HttpSkipResponseCommand.h
  4191. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Pool connection when a server returns 4xx, 5xx responses.
  4193. * src/HttpNullDownloadCommand.cc
  4194. * src/HttpNullDownloadCommand.h
  4195. * src/HttpResponse.cc
  4196. * src/HttpResponse.h
  4197. * src/HttpResponseCommand.cc
  4198. * src/HttpResponseCommand.h
  4199. * test/HttpResponseTest.cc
  4200. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Print usage when no URL is specifed or bad command-line option is
  4202. specified.
  4203. * src/HelpItemFactory.cc
  4204. * src/help_tags.h
  4205. * src/option_processing.cc
  4206. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Removed duplicate log message.
  4208. * src/AbstractCommand.cc (asyncResolveHostname)
  4209. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4211. Changed -j option's default value from 5 to 1.
  4212. Added new examples using protocol auto detection feature.
  4213. Removed -T, -M usage where it can be omitted.
  4214. * doc/aria2c.1.txt
  4215. * doc/aria2c.1.html
  4216. * doc/aria2c.1.txt
  4217. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Updated command-line usage text, so that it tells users that they
  4219. can specify any number of torrent files and metalink files in
  4220. command-line.
  4221. * src/version_usage.cc
  4222. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Changed the default value of -j option to 1.
  4224. * src/HelpItemFactory.cc
  4225. * src/option_processing.cc
  4226. * src/usage_text.h
  4227. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Added the ability to reuse connection in FTP and it is enabled by
  4229. default. It can be disabled by --ftp-reuse-connection=false option.
  4230. * src/Command.cc
  4231. * src/DownloadCommand.cc
  4232. * src/FtpDownloadCommand.cc
  4233. * src/FtpDownloadCommand.h
  4234. * src/FtpFinishDownloadCommand.cc
  4235. * src/FtpFinishDownloadCommand.h
  4236. * src/FtpInitiateConnectionCommand.cc
  4237. * src/FtpNegotiationCommand.cc
  4238. * src/FtpNegotiationCommand.h
  4239. * src/HelpItemFactory.cc
  4240. * src/Makefile.am
  4241. * src/Makefile.in
  4242. * src/OptionHandlerFactory.cc
  4243. * src/option_processing.cc
  4244. * src/prefs.h
  4245. * src/usage_text.h
  4246. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Call Command::transitStatus() before calling Command::execute(),
  4248. so that the status change made in execute() is not cleared.
  4249. * src/DownloadEngine.cc
  4250. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Removed forward declaration of SocketCore class.
  4252. * src/HttpDownloadCommand.h
  4253. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4254. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4255. in InitiateConnectionCommandFactory. They should be set only when
  4256. the protocol is HTTP or HTTPS.
  4257. * src/InitiateConnectionCommandFactory.cc
  4258. * src/RequestGroup.cc
  4259. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Fixed infinite loop in checksum checking.
  4261. * src/IteratableChecksumValidator.cc
  4262. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Set _supportsPersistentConnection to true by default.
  4264. * src/Request.cc
  4265. * src/RequestGroup.cc
  4266. * test/HttpRequestTest.cc
  4267. * test/RequestTest.cc
  4268. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4269. Added timeout to socket pool. The default timeout is 15 seconds,
  4270. which is the same value Apache uses.
  4271. * src/DownloadEngine.cc
  4272. * src/DownloadEngine.h
  4273. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4274. Fixed misuse of multimap::find()
  4275. * src/HttpHeader.cc
  4276. * test/HttpHeaderTest.cc
  4277. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4279. option.
  4280. The asynchronous DNS is not capable of IPv6 yet.
  4281. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4282. least for HTTP download.
  4283. * src/AbstractCommand.cc
  4284. * src/AbstractCommand.h
  4285. * src/AsyncNameResolver.cc
  4286. * src/AsyncNameResolver.h
  4287. * src/DHTEntryPointNameResolveCommand.cc
  4288. * src/DHTEntryPointNameResolveCommand.h
  4289. * src/DownloadEngine.cc
  4290. * src/DownloadEngine.h
  4291. * src/FtpInitiateConnectionCommand.cc
  4292. * src/FtpInitiateConnectionCommand.h
  4293. * src/HelpItemFactory.cc
  4294. * src/HttpInitiateConnectionCommand.cc
  4295. * src/HttpInitiateConnectionCommand.h
  4296. * src/InitiateConnectionCommand.cc
  4297. * src/InitiateConnectionCommand.h
  4298. * src/Makefile.am
  4299. * src/Makefile.in
  4300. * src/NameResolver.cc
  4301. * src/NameResolver.h
  4302. * src/OptionHandlerFactory.cc
  4303. * src/SocketCore.cc
  4304. * src/SocketCore.h
  4305. * src/Util.cc
  4306. * src/Util.h
  4307. * src/option_processing.cc
  4308. * src/prefs.h
  4309. * src/usage_text.h
  4310. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. Updated man page: --quiet, --header were added.
  4312. --metalink-servers and --enable-http-keep-alive option were updated.
  4313. * doc/aria2c.1
  4314. * doc/aria2c.1.html
  4315. * doc/aria2c.1.txt
  4316. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Enable HTTP keep-alive by default.
  4318. * src/HelpItemFactory.cc
  4319. * src/option_processing.cc
  4320. * src/usage_text.h
  4321. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Disable http keep-alive if the remote server is not HTTP/1.1.
  4323. * src/HttpConnection.cc
  4324. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Receive content body of 302 response so that the connection can be
  4326. reused later when http keep-alive is enabled.
  4327. * src/HttpNullDownloadCommand.cc
  4328. * src/HttpNullDownloadCommand.h
  4329. * src/HttpResponseCommand.cc
  4330. * src/HttpResponseCommand.h
  4331. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4332. const SharedHandle<Request> -> const SharedHandle<Request>&
  4333. * src/FtpDowndloadCommand.cc
  4334. * src/FtpDowndloadCommand.h
  4335. * src/HttpDownloadCommand.cc
  4336. * src/HttpDownloadCommand.h
  4337. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Fixed the bug that the control file(.aria2 file) is not renamed
  4339. according to tryAutoFileRenaming().
  4340. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4341. its control file exist, use them and continue download.
  4342. The old implementation didn't take into account of control file's
  4343. existence, so basically you couldn't continue download of renamed file.
  4344. * src/BtProgressInfoFile.h
  4345. * src/DefaultBtProgressInfoFile.cc
  4346. * src/DefaultBtProgressInfoFile.h
  4347. * src/NullProgressInfoFile.h
  4348. * src/RequestGroup.cc
  4349. * test/DefaultBtProgressInfoFileTest.cc
  4350. * test/MockBtProgressInfoFile.h
  4351. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Change the default value of --metalink-servers option from `5' to `1'.
  4353. * src/HelpItemFactory.cc
  4354. * src/option_processing.cc
  4355. * src/usage_text.h
  4356. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Reimplemented transparent metalink using Accept request header.
  4358. * src/HttpRequest.cc
  4359. * src/HttpRequest.h
  4360. * src/HttpRequestCommand.cc
  4361. * src/Metalink2RequestGroup.cc
  4362. * src/RequestGroup.cc
  4363. * src/RequestGroup.h
  4364. * test/HttpRequestTest.cc
  4365. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4366. Bump up version number to 0.13.2a
  4367. * configure.ac
  4368. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Updated configure.ac using the result of autoscan.
  4370. * configure.ac
  4371. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4372. Fixed compilation error without gcrypt/openssl.
  4373. * src/DownloadCommand.cc
  4374. * src/DownloadCommand.h
  4375. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4376. Reorganized version information so that it can be displayed in a
  4377. standard terminal screen without scrolling.
  4378. Removed http, ftp from Configuration section, because they are always
  4379. enabled.
  4380. * src/FeatureConfig.cc
  4381. * src/FeatureConfig.h
  4382. * src/main.cc
  4383. * src/messageDigest.cc
  4384. * src/messageDigest.h
  4385. * src/version_usage.cc
  4386. * test/FeatureConfigTest.cc
  4387. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Masked user ID in log.
  4389. * src/FtpConnection.cc (sendUser)
  4390. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4391. Removed query part from filename in HTTP download. The query part means
  4392. the substring after "?" in URL. Firefox seems do the same thing.
  4393. A query part is sometimes very long and not suitable to filename,
  4394. so I think it is better to remove it from filename.
  4395. * src/HttpRequest.cc
  4396. * src/HttpRequest.h
  4397. * src/Request.cc
  4398. * src/Request.h
  4399. * test/HttpRequestTest.cc
  4400. * test/RequestTest.cc
  4401. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4402. Rewritten Exception class. Throw exception object, not its pointer and
  4403. catch by reference, so that remove problematic delete operator for
  4404. catched exception.
  4405. * src/Exception.cc
  4406. * src/Exception.h
  4407. * test/ExceptionTest.cc
  4408. * src/*: All files throwing/catching exception.
  4409. * test/*: All files throwing/catching exception.
  4410. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Now auto protocol detection is enabled without -Z option.
  4412. But there is a important difference between with/without -Z optoin.
  4413. For example, if you type:
  4414. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4415. then, aria2 interprets there are 3 request groups:
  4416. (1) http://host/file, http://mirror/file <-- multi-source download
  4417. (2) file1.torrent
  4418. (3) file2.metalink
  4419. On the other hand, if you invoke above command with -Z option, it is
  4420. interpreted as 4 request groups:
  4421. (1) http://host/file
  4422. (2) file1.torrent
  4423. (3) file2.metalink
  4424. (4) http://mirror/file
  4425. I think usually user don't mix multi-source URLs and torrent files, so
  4426. there is no big problem here.
  4427. * src/main.cc
  4428. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4429. Fixed the bug that causes segmentaion fault when reading XML containing
  4430. unescapsed character like '&'.
  4431. Also a modification was made which avoids adding unnecessary
  4432. characters stack and appending unused string.
  4433. * src/ExpatMetalinkProcessor.cc
  4434. * src/FileMetalinkParserState.h
  4435. * src/FilesMetalinkParserState.h
  4436. * src/FinMetalinkParserState.h
  4437. * src/HashMetalinkParserState.h
  4438. * src/InitialMetalinkParserState.h
  4439. * src/LanguageMetalinkParserState.h
  4440. * src/MetalinkMetalinkParserState.h
  4441. * src/MetalinkParserState.h
  4442. * src/MetalinkParserStateMachine.cc
  4443. * src/MetalinkParserStateMachine.h
  4444. * src/OSMetalinkParserState.h
  4445. * src/PieceHashMetalinkParserState.h
  4446. * src/PiecesMetalinkParserState.h
  4447. * src/ResourcesMetalinkParserState.h
  4448. * src/SizeMetalinkParserState.h
  4449. * src/SkipTagMetalinkParserState.h
  4450. * src/URLMetalinkParserState.h
  4451. * src/VerificationMetalinkParserState.h
  4452. * src/VersionMetalinkParserState.h
  4453. * src/XML2SAXMetalinkProcessor.cc
  4454. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Added StringFormat class, which internally calls vasprintf.
  4456. operator<< is defined for this class, so it can be used with iostream
  4457. classes nicely. SimpleLogger and following functions are rewritten
  4458. using StringFormat class.
  4459. Besides, now Logger class's methods are non-const, many classes
  4460. that has a const Logger* as a member variable are modified to remove
  4461. const qualifier from the variable declaration.
  4462. * src/HelpItemFactory.cc
  4463. * src/Request.cc
  4464. * src/SimpleLogger.cc
  4465. * src/StringFormat.cc
  4466. * src/StringFormat.h
  4467. * src/Util.cc
  4468. * src/option_processing.cc
  4469. * src/version_usage.cc
  4470. * test/StringFormatTest.cc
  4471. * src/*.h: The classes that has const Logger* as a member variable.
  4472. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4474. failed. Also fixed memory link when exception is thrown there.
  4475. * src/main.cc (AccRequestGroup)
  4476. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Added build-in "Accept-Features" support. For now only "metalink" is
  4478. used in this header field.
  4479. This "metalink" value is removed from the list when connecting URLs
  4480. fed by metalink file to avoid loop in "transparent" metlaink.
  4481. * src/HttpRequest.cc
  4482. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4483. header is also held in this variable. Also renamed setUserHeaders as
  4484. addHeader and it was rewritten to add header not just to clear the old
  4485. value.
  4486. * src/HttpRequestCommand.cc
  4487. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4488. from "Accept-Features" list.
  4489. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4490. default.
  4491. * src/RequestGroup.h
  4492. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4493. * src/a2functional.h: Included <string> because Concat class depends on
  4494. it.
  4495. * test/HttpRequestTest.cc
  4496. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Added comment
  4498. * src/RequestGroup.cc (createNextCommand)
  4499. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Capitalized METHOD_GET and METHOD_HEAD
  4501. * src/Request.cc
  4502. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Added getDownloadResults() method
  4504. * src/RequestGroupMan.cc
  4505. * src/RequestGroupMan.h
  4506. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4507. Fixed the bug that aria2 exits when commands is empty() but
  4508. _routineCommands are not.
  4509. * src/DownloadEngine.cc
  4510. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Use the default value pulled from Option object in HelpItemFactory.
  4512. except options whose defualt value is embedded in a usage text.
  4513. * src/HelpItemFactory.cc
  4514. * src/HelpItemFactory.h
  4515. * src/option_processing.cc
  4516. * src/version_usage.cc
  4517. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Added --quiet option to make aria2 quiet (no console output).
  4519. --quiet option is tagged with ADVANCED.
  4520. * src/HelpItemFactory.cc
  4521. * src/LogFactory.cc
  4522. * src/LogFactory.h
  4523. * src/MultiUrlRequestInfo.cc
  4524. * src/MultiUrlRequestInfo.h
  4525. * src/NullStatCalc.h: New class. This class prints nothing.
  4526. * src/OptionHandlerFactory.cc
  4527. * src/main.cc
  4528. * src/option_processing.cc
  4529. * src/prefs.h
  4530. * src/usage_text.h
  4531. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4532. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4533. * src/HelpItemFactory.cc (createHelpItems):
  4534. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4535. Fixed compilation error in ExpatMetalinkProcessor.cc
  4536. * src/ExpatMetalinkProcessor.cc
  4537. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4538. Reuse socket if the origin server supports HTTP keep-alive and
  4539. --enable-http-keep-alive or --enable-http-pipelining is given.
  4540. The current implementation doesn't reuse the connections established
  4541. against proxy server.
  4542. * src/AbstractCommand.cc
  4543. * src/DownloadEngine.cc
  4544. * src/DownloadEngine.h
  4545. * src/HttpDownloadCommand.cc
  4546. * src/HttpInitiateConnectionCommand.cc
  4547. * src/HttpResponseCommand.cc
  4548. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4549. Rewritten HTTP keep-alive and pipelining routine.
  4550. * src/AbstractCommand.cc
  4551. * src/HttpConnection.cc
  4552. * src/HttpDownloadCommand.cc
  4553. * src/HttpRequest.cc
  4554. * src/HttpRequestCommand.cc
  4555. * src/HttpResponseCommand.cc
  4556. * src/Request.cc
  4557. * src/Request.h
  4558. * src/RequestGroup.cc
  4559. * test/HttpRequestTest.cc
  4560. * test/HttpResponseTest.cc
  4561. * test/RequestTest.cc
  4562. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Added missing setUserHeaders call
  4564. * src/HttpRequestCommand.cc
  4565. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4567. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4568. waste of time because it is more likey false.
  4569. * src/FileAllocationDispatcherCommand.cc (execute)
  4570. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Now HTTP status and version are a member variable of HttpHeader.
  4572. HTTP status is processed as a string, not integer.
  4573. * src/AbstractProxyResponseCommand.cc
  4574. * src/HttpConnection.cc
  4575. * src/HttpHeader.cc
  4576. * src/HttpHeader.h
  4577. * src/HttpHeaderProcessor.cc
  4578. * src/HttpHeaderProcessor.h
  4579. * src/HttpResponse.cc
  4580. * src/HttpResponse.h
  4581. * test/HttpHeaderProcessorTest.cc
  4582. * test/HttpResponseTest.cc
  4583. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4584. Added --header option. You can specify any number of additional HTTP headers
  4585. like:
  4586. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4587. Unlike other commad-line option, you can use --header option multiple times.
  4588. * src/HelpItemFactory.cc
  4589. * src/HttpRequest.{cc, h}
  4590. * src/HttpRequestCommand.cc
  4591. * src/OptionHandlerFactory.cc
  4592. * src/OptionHandlerImpl.h
  4593. * src/option_processing.cc
  4594. * src/prefs.h
  4595. * src/usage_text.h
  4596. * test/HttpRequestTest.cc (testUserHeaders)
  4597. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Eliminates the time lag between sequential downloads and commands in
  4599. the same RequestGroup.
  4600. In old implementation, aria2 occasionally waits 1 seconds before
  4601. executing next command or RequestGroup.
  4602. This is really a waste of time, and new implementation eliminates
  4603. this unnecessary time lag.
  4604. * src/AbstractCommand.cc
  4605. * src/AutoSaveCommand.cc
  4606. * src/CheckIntegrityCommand.cc
  4607. * src/Command.{cc, h}
  4608. * src/DownloadEngine.{cc, h}
  4609. * src/DownloadEngineFactory.cc
  4610. * src/FileAllocationCommand.cc
  4611. * src/FileAllocationDispatcherCommand.cc
  4612. * src/FillRequestGroupCommand.cc
  4613. * src/FtpInitiateConnectionCommand.cc
  4614. * src/HaveEraseCommand.cc
  4615. * src/HttpInitiateConnectionCommand.cc
  4616. * src/HttpResponseCommand.cc
  4617. * src/RealtimeCommand.cc
  4618. * src/RequestGroup.cc
  4619. * src/RequestGroupMan.cc
  4620. * src/StreamFileAllocationEntry.cc
  4621. * src/TimeBasedCommand.{cc, h}
  4622. * src/TimedHaltCommand.cc
  4623. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4625. keyword explicit and SharedHandle's default constructor initializes
  4626. its internal obj to null, old implementation initializes it using
  4627. obj's default constructor.
  4628. To assign null, write SharedHandle<T> x(...); x.reset();
  4629. TODO: test/SharedHandleTest.cc needs more tests.
  4630. * src/SharedHandle.h
  4631. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4632. Fixed type in man page.
  4633. * doc/aria2c.1.txt
  4634. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4636. * src/SimpleLogger.{cc, h}
  4637. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Implemented auto protocol detection.
  4639. Now you can do:
  4640. aria2c -Z http://host/file file1.torrent file2.metalink
  4641. (Note: -Z option is required for auto protcol detection.)
  4642. Then aria2c downloads 3 files simultaneously:
  4643. 1. http://host/file
  4644. 2. file1.torrent <-- read local torrent file
  4645. 3. file2.metalink <-- read local Metalink file.
  4646. Same thing goes with -i option. Assume your uris.txt contans:
  4647. http://host/file
  4648. file1.torrent
  4649. file2.metalink
  4650. Then you can do: aria2c -i uris.txt
  4651. (Note: -Z option is not needed if -i option is given.)
  4652. * src/main.cc
  4653. * src/ProtocolDetector.{cc, h}
  4654. * test/ProtocolDetectorTest.cc
  4655. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4657. installed
  4658. * src/ARC4Encryptor.h
  4659. * src/ARC4Decryptor.h
  4660. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Renamed argument from 'errno' to 'err', since errno is confused with
  4662. errno defined in errno.h.
  4663. * src/LibgcryptARC4Decryptor.h
  4664. * src/LibgcryptARC4Context.h
  4665. * src/LibgcryptDHKeyExchange.h
  4666. * src/LibgcryptARC4Encryptor.h
  4667. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Rewritten choking algorithm.
  4669. * src/PeerChokeCommand.{cc, h}
  4670. * src/BtInterestedMessage.cc
  4671. * src/PeerSessionResource.{cc, h}
  4672. * src/DefaultPeerStorage.{cc, h}
  4673. * src/BtNotInterestedMessage.cc
  4674. * src/DefaultBtMessageDispatcher.{cc, h}
  4675. * src/BtMessageDispatcher.h
  4676. * src/Peer.{cc, h}
  4677. * src/BtLeecherStateChoke.{cc, h}
  4678. * src/BtSetup.cc
  4679. * src/BtSeederStateChoke.{cc, h}
  4680. * src/PeerStorage.h
  4681. * test/MockPeerStorage.h
  4682. * test/MockBtMessageDispatcher.h
  4683. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4684. Fixed compilation error on x84-64 platform.
  4685. * src/AuthConfig.cc: Included ostream.
  4686. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Rewritten getBasename() and getDirname(), without standard library
  4688. basename(), dirname().
  4689. * src/File.cc
  4690. * test/FileTest.cc
  4691. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Added Simplified Chinese translation. Also updated the following
  4693. translations: Polish, Dutch, German. Great thanks to all translators.
  4694. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. Suppress content-range error when 'Content-Range' response header
  4696. doesn't contains bytes-unit specifier 'bytes'
  4697. * src/HttpHeader.cc (getRange)
  4698. * test/HttpHeaderTest.cc
  4699. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Fixed compilation error with g++-4.3
  4701. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Added missing include files for MinGW
  4703. * test/HttpHeaderProcessorTest.cc
  4704. * test/DHTRoutingTableSerializerTest.cc
  4705. * test/DHTRoutingTableDeserializerTest.cc
  4706. * test/UriListParserTest.cc
  4707. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4708. Now download line is printed nicely with no garbage at the end of
  4709. line. I use ioctl to get the columns of terminal.
  4710. If stdout is redirected to another device, instead of carriage return,
  4711. end of line '\n' character is used. This is feature request#1909659
  4712. * src/ConsoleStatCalc.cc (calculateStat)
  4713. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Included a2time.h
  4715. * src/DHTMessageDispatcher.h
  4716. * src/DHTMessageEntry.h
  4717. * src/DHTReplaceNodeTask.h
  4718. * src/DHTMessageTracker.h
  4719. * src/Util.h
  4720. * src/CookieBox.h
  4721. * src/SocketCore.h
  4722. * src/DefaultBtMessageDispatcher.h
  4723. * src/SocketCore.cc
  4724. * src/Util.cc
  4725. * src/DHTPingTask.h
  4726. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4727. Fixed high memory footprint when DHT is enabled.
  4728. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4729. queued than it is processed and the queue is getting longer. As a
  4730. consequence, momory usage is increased.
  4731. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4732. replacement cache in DHTBucket which is described in Kademlia paper.
  4733. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4734. DHTReplaceNodeTask.
  4735. * src/DHTBucket.{h, cc}
  4736. (cacheNode): New function.
  4737. (getCachedNodes): New function.
  4738. (dropNode): Push back cached node to _nodes.
  4739. * test/DHTBucketTest.cc
  4740. (testCacheNode): New test
  4741. (testDropNode): New test
  4742. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4744. the unused 4KB memory when ssl is not used.
  4745. * src/SocketCore.cc
  4746. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. Added summary log for peer announce storage.
  4748. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4749. Removed cast
  4750. * src/DefaultPeerStorage.cc (addPeer)
  4751. Log exception message
  4752. * src/DHTMessageTracker.cc (handleTimeout)
  4753. Fixed casting
  4754. * test/HttpRequestTest.cc
  4755. * test/MetalinkProcessorTest.cc
  4756. * test/PieceTest.cc
  4757. * test/MetalinkEntryTest.cc
  4758. * test/SequenceTest.cc
  4759. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4760. * src/ParameterizedStringParser.cc (createLoop):
  4761. Removed unused variable sstep.
  4762. * src/AlphaNumberDecorator.h (decode): Rewritten.
  4763. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. * src/Util.{h, cc}
  4765. (parseUInt): New function.
  4766. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  4767. The actual range is uint32_t.
  4768. * test/UtilTest.cc
  4769. * src/ParameterizedStringParser.cc:
  4770. Use Util::parseUInt() for loop variables.
  4771. * test/ParameterizedStringParserTest.cc
  4772. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  4773. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Rewritten the functions for binding port.
  4775. * src/DHTConnectionImpl.{h, cc}
  4776. * src/PeerListenCommand.{h, cc}
  4777. * src/DHTSetup.cc
  4778. * src/BtSetup.cc
  4779. * test/DHTConnectionImplTest.cc
  4780. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. type cleanup for allmost all remaining files.
  4782. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Type clarification
  4784. * src/PeerSessionResource.{h, cc}
  4785. * src/DefaultPieceStorage.{h, cc}
  4786. * src/Peer.{h, cc}
  4787. * test/PeerSessionResourceTest.cc
  4788. Use div function
  4789. * src/BtPieceMessage.cc (erasePieceOnDisk)
  4790. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4791. Type clarification
  4792. * src/DefaultPeerStorage.{h, cc}
  4793. * test/DefaultPeerStorageTest.cc
  4794. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Type clarification: size_t for length or size, uint64_t for file
  4796. length, off_t for file offset.
  4797. * src/DefaultBtProgressInfoFile.cc
  4798. * src/DefaultBtContext.{h, cc}
  4799. * src/DefaultBtInteractive.cc
  4800. * src/DownloadCommand.{h, cc}
  4801. * src/IteratableChunkChecksumValidator.{h, cc}
  4802. * src/SegmentMan.{h, cc}
  4803. * src/SingleFileDownloadContext.{h, cc}
  4804. * src/IteratableChecksumValidator.{h, cc}
  4805. * src/BtContext.h
  4806. * src/IteratableValidator.h
  4807. * src/DownloadContext.h
  4808. * test/SingleFileDownloadContextTest.cc
  4809. * test/DefaultBtContextTest.cc
  4810. * test/MockBtContext.h
  4811. * test/Metalink2RequestGroupTest.cc
  4812. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4813. Type clarification: size_t for length or size, uint64_t for file
  4814. length, off_t for file offset.
  4815. * src/PiecedSegment.cc
  4816. * src/GrowSegment.h
  4817. * src/DefaultBtRequestFactory.h
  4818. * src/DefaultBtProgressInfoFile.cc
  4819. * src/UnknownLengthPieceStorage.h
  4820. * src/DefaultPieceStorage.cc
  4821. * src/UnknownLengthPieceStorage.cc
  4822. * src/DefaultBtInteractive.cc
  4823. * src/GrowSegment.cc
  4824. * src/BitfieldMan.h
  4825. * src/DownloadCommand.cc
  4826. * src/BtRequestFactory.h
  4827. * src/PiecedSegment.h
  4828. * src/DefaultPieceStorage.h
  4829. * src/Piece.cc
  4830. * src/DefaultBtRequestFactory.cc
  4831. * src/PieceStorage.h
  4832. * src/Segment.h
  4833. * src/Piece.h
  4834. * src/BitfieldMan.cc
  4835. * src/Util.cc
  4836. * test/DefaultBtProgressInfoFileTest.cc
  4837. * test/DefaultPieceStorageTest.cc
  4838. * test/MockPieceStorage.h
  4839. * test/BtRequestMessageTest.cc
  4840. * test/DefaultBtMessageDispatcherTest.cc
  4841. * test/BitfieldManTest.cc
  4842. * test/GrowSegmentTest.cc
  4843. * test/PieceTest.cc
  4844. * test/SegmentTest.cc
  4845. * test/SegmentManTest.cc
  4846. * test/DefaultBtRequestFactoryTest.cc
  4847. * test/MockBtRequestFactory.h
  4848. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Fixed compilation error with --disable-nls
  4850. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4851. in gettext.h causes the problem.
  4852. * src/common.h
  4853. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Removed subPiece related functions.
  4855. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4856. * src/DefaultPieceStorage.{h, cc}
  4857. * test/PieceTest.cc
  4858. * test/DefaultPieceStorageTest.cc
  4859. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Use unsigned char for data store.
  4861. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Bump up version number to 0.13.0+1
  4863. * configure.ac
  4864. * Release 0.13.0+1
  4865. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Changed inactive connection timeout to 120.
  4867. To accept more mulually interested peers, disconnect peer when there
  4868. is no interest between us after certain time passed.
  4869. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  4870. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Fixed the bug that aria2 only uses first dns server in resolv.conf
  4872. when compiled with async DNS support.
  4873. * src/DownloadEngine.cc
  4874. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  4875. value '10' will be a little bit short when some DNS servers are
  4876. offline and several DNS servers are tried. It should be configured
  4877. by command-line option.
  4878. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4879. Merged Ross's mingw patch.
  4880. * src/DHTRoutingTableDeserializer.cc
  4881. * src/DHTRoutingTableSerializer.cc
  4882. * src/Platform.{h, cc}
  4883. * src/timegm.h
  4884. * src/gettimeofday.h
  4885. * src/getaddrinfo.h
  4886. * src/SocketCore.h
  4887. * src/common.h
  4888. * src/inet_aton.h
  4889. * src/DownloadEngine.h
  4890. * src/gai_strerror.h
  4891. * src/a2netcompat.h
  4892. * configure.ac
  4893. * configure
  4894. * aclocal.m4
  4895. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Included missing iostream.
  4897. * test/AllTest.cc
  4898. * test/BtDependencyTest.cc
  4899. * test/BtExtendedMessageTest.cc
  4900. * test/DHTConnectionImplTest.cc
  4901. * test/DHTMessageFactoryImplTest.cc
  4902. * test/DHTMessageTrackerEntryTest.cc
  4903. * test/DHTNodeTest.cc
  4904. * test/DHTRoutingTableSerializerTest.cc
  4905. * test/DefaultBtAnnounceTest.cc
  4906. * test/DefaultBtContextTest.cc
  4907. * test/DefaultBtMessageFactoryTest.cc
  4908. * test/DefaultExtensionMessageFactoryTest.cc
  4909. * test/HandshakeExtensionMessageTest.cc
  4910. * test/HttpResponseTest.cc
  4911. * test/MetalinkProcessorTest.cc
  4912. * test/MultiFileAllocationIteratorTest.cc
  4913. * test/SocketCoreTest.cc
  4914. * test/UTPexExtensionMessageTest.cc
  4915. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Reorganized includes.
  4917. * src/NameResolver.cc
  4918. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Fixed compilation error without ares/c-ares
  4920. * src/NameResolver.h:
  4921. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4922. Added a test for large file.
  4923. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  4924. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4925. Fixed the bug that file size is ignored if size > INT32_MAX
  4926. * src/SizeMetalinkParserState.cc (endElement):
  4927. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4928. Bump up version number to 0.13.0
  4929. * configure.ac
  4930. * Release 0.13.0
  4931. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Updated Makfefile.am to make 'make dist' work.
  4933. Now packaged filename is aria2c-VERSION.tar.bz2.
  4934. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  4935. Added LICENSE.OpenSSL to dist_noinst_DATA.
  4936. Large file support is now configured by configure script.
  4937. * configure.ac
  4938. Removed unsused source files
  4939. * src/
  4940. * test/
  4941. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  4942. Peer.h and BtContext.h respectively.
  4943. * src/Peer.h
  4944. * src/BtContext.h
  4945. Updated translations.
  4946. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  4947. translations. Great thanks to all translators!;)
  4948. * po/*.{po, gmo}
  4949. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  4951. statically declared sha1 MessageDigestContext.
  4952. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  4953. initialization of short-lived MessageDigestContext.
  4954. * src/MessageDigestHelper.{h, cc}
  4955. * src/main.cc
  4956. Now DownloadCommand has a reference to MessageDigestContext to avoid
  4957. the initialization of MessageDigestContext every time in validating
  4958. chunk checksum.
  4959. * src/DownloadCommand.{h, cc}
  4960. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4961. Add a file descriptor which connected to fast peer(latency<1500) to
  4962. select(). This change reduced CPU load.
  4963. * src/PeerInteractionCommand.cc
  4964. * src/DefaultBtInteractive.{h, cc}
  4965. * src/BtInteractive.h
  4966. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Fixed the previous insufficient fix for possible busy loop.
  4968. * src/MSEHandshake.cc (identifyHandshakeType)
  4969. Removed unused functions.
  4970. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4971. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Fixed possible busy loop if first 20 bytes are not received for a few
  4973. minutes.
  4974. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4975. * src/ReceiverMSEHandshakeCommand.cc
  4976. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4977. Fixed compilation error
  4978. * src/ExpatMetalinkProcessor.cc
  4979. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4980. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4981. * src/DHTBucket.cc
  4982. Removed unnecessary cast.
  4983. * src/HandshakeExtensionMessage.cc
  4984. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4986. is missing.
  4987. * src/OptionHandlerFactory.cc
  4988. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. Fixed the bug that HAVE message is not sent for a piece they are
  4990. downloaded fom http/ftp server before any BitTorrent handshake is done
  4991. with peers.
  4992. * src/DefaultBtInteractive.cc
  4993. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4995. * src/Makefile.am
  4996. * src/Makefile.in
  4997. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Updated README. Added html version of README and man page.
  4999. * README
  5000. * README.html
  5001. * readme2html: Shell script to generate README.html from README using
  5002. asciidoc.
  5003. * doc/aria2c.1.html
  5004. * doc/makeman: Added the line to generate aria2c.1.html
  5005. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. Fixed offset calculation.
  5007. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5008. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Rewritten itos and uitos using template. llitos and ullitos are
  5010. replaced with itos and uitos respectively.
  5011. * src/Util.{h, cc}
  5012. * test/UtilTest.cc
  5013. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5015. of the number of bytes required for storing public key and shared
  5016. secret.
  5017. * src/LibgcryptDHKeyExchange.h
  5018. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5019. * src/MSEHandshake.cc
  5020. * test/DHKeyExchangeTest.cc
  5021. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Removed since they are not used.
  5023. * src/Xml2MetalinkProcessor.{h, cc}
  5024. * src/Socket.cc
  5025. * src/SegmentSplitter.{h, cc}
  5026. * test/Xml2MetalinkProcessorTest.cc
  5027. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Fixed the bug that prevents aria2 from stopping other than by pressing
  5029. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5030. option. aria2 doesn't stop even after --seed-time is satisfied and
  5031. continues to output blank lines in the console.
  5032. * src/ReceiverMSEHandshakeCommand.cc
  5033. * src/PeerReceiveHandshakeCommand.cc
  5034. * src/PeerListenCommand.cc
  5035. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Bump up version number to 0.13.0rc
  5037. * configure.ac
  5038. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. Updated man page and some usage text.
  5040. * doc/aria2c.1.txt
  5041. * src/usage_text.h
  5042. * po/*.{po, gmo}
  5043. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Updated translations. Added Finnish and Hebrew translations.
  5045. Great thanks to all translators!
  5046. * po/*.{po, gmo}
  5047. * po/LINGUAS
  5048. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Log more detailed information about each message.
  5050. * src/DHTQueryMessage.{h, cc}
  5051. * src/DHTGetPeersMessage.{h, cc}
  5052. * src/DHTFindNodeReplyMessage.{h, cc}
  5053. * src/DHTGetPeersReplyMessage.{h, cc}
  5054. * src/DHTAnnouncePeerMessage.{h, cc}
  5055. * src/DHTResponseMessage.{h, cc}
  5056. * src/DHTFindNodeMessage.{h, cc}
  5057. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Use constants defined in prefs.h
  5059. * src/option_processing.cc
  5060. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5062. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Make room for future enchancements for IPv6 addresses.
  5064. Bump up version number of dht.dat file format to 2.
  5065. Not compatible with previous version.
  5066. * src/DHTRoutingTableSerializer.cc
  5067. * src/DHTRoutingTableDeserializer.cc
  5068. * test/DHTRoutingTableSerializerTest.cc
  5069. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5070. Added handling for the return values from
  5071. PeerMessageUtil::createcompact().
  5072. * src/DefaultBtContext.cc (computeFastSet):
  5073. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Fixed abort when peer's ip address is IPv4-mapped address.
  5075. * src/DefaultBtContext.cc (computeFastSet)
  5076. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5077. cannot handle IPv4-mapped addresses.
  5078. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5079. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Proper return value handling for OpenSSL functions.
  5081. * src/LibsslDHKeyExchange.h
  5082. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5083. Random bytes generation using libgcrypt and OpenSSL.
  5084. * src/DHTUtil.{h, cc}
  5085. * test/DHTUtilTest.cc
  5086. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5087. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5088. received.
  5089. * src/DHTMessageReceiver.cc (receiveMessage)
  5090. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Fixed the bug that a return code is always 0. BUG#1897704
  5092. If error occurred during the download or there exist unfinished
  5093. downloads, aria2 returns with code 1.
  5094. * src/RequestGroupMan.{h, cc}
  5095. * src/MultiUrlRequestInfo.{h, cc}
  5096. * src/main.cc
  5097. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5098. IPv6 support for SocketCore class.
  5099. TODO: In SocketCore::establishConnection(), this is insufficient to
  5100. determin the failure of connect() here because the socket is
  5101. non-blocking state. The next addresses should be tried after select().
  5102. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5103. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5104. instead which address family independent.
  5105. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5106. information in a compact peer format which is for IPv4 only.
  5107. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5108. this is a spec of BitTorrent protocol.
  5109. * src/SocketCore.{h, cc}
  5110. * src/PeerMessageUtil.cc
  5111. * test/SocketCoreTest.cc
  5112. * test/PeerMessageUtilTest.cc
  5113. * test/DHTConnectionImplTest.cc
  5114. Handle IPv4-mapped addresses.
  5115. * src/DHTNode.cc: Now identity is determined by node id.
  5116. * src/DHTMessageTrackerEntry.cc
  5117. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5118. should handle it.
  5119. * src/DHTRoutingTableDeserializer.cc
  5120. * src/DHTMessageFactoryImpl.cc
  5121. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5122. Change the unit of --stop option from a minute to a second.
  5123. * src/usage_text.h
  5124. * src/DownloadEngineFactory.cc
  5125. * src/OptionHandlerFactory.cc
  5126. * src/message.h
  5127. * src/TimedHaltCommand.cc
  5128. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. Make listening socket non-block mode.
  5130. * src/FtpConnection.cc
  5131. * src/FtpNegotiationCommand.{h, cc}
  5132. * src/PeerListenCommand.cc
  5133. Fixed the bug that cause slow ftp negotiation.
  5134. * src/FtpNegotiationCommand.{h, cc}
  5135. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Added basic tag to --enable-dht, --dht-listen-port option.
  5137. * src/HelpItemFactory.cc (createHelpItems)
  5138. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5139. Updated text.
  5140. * src/usage_text.h
  5141. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5143. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Determin _threadtholdSpeed in each constructor for
  5145. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5146. * src/ActivePeerConnectionCommand.{h, cc}
  5147. * src/PeerReceiveHandshakeCommand.{h, cc}
  5148. * src/BtSetup.cc
  5149. * src/BtConstants.h
  5150. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Added --bt-min-crypto-level and --bt-require-crypto options.
  5152. * src/OptionHandlerFactory.cc
  5153. * src/MSEHandshake.cc
  5154. * src/HelpItemFactory.cc
  5155. * src/option_processing.cc
  5156. * src/ReceiverMSEHandshakeCommand.cc
  5157. * src/prefs.h
  5158. * src/DefaultBtAnnounce.cc
  5159. * src/InitiatorMSEHandshakeCommand.cc
  5160. * src/usage_text.h
  5161. * test/MSEHandshakeTest.cc
  5162. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Bump version number to 0.13.0b
  5164. * configure.ac
  5165. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Updated doc.
  5167. * src/MessageDigestHelper.h:
  5168. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Use raw message digest as a token instead of its hexadecimal
  5170. representation.
  5171. * src/DHTTokenTracker.cc (generateToken)
  5172. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Added Message Stream Encryption(MSE) support.
  5174. Currently, aria2 accepts incoming connections with Obfuscation Header
  5175. and legacy BitTorrent Header and establishes connections with
  5176. Obfuscation Header first and if failed then retry with legacy
  5177. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5178. choose ARC4. The new option to change the default behavior is planned.
  5179. For tracker extension, "supportcrypto=1" is added statically.
  5180. * src/PeerInitiateConnectionCommand.{h, cc}
  5181. * src/PeerConnection.{h, cc}
  5182. * src/HandleRegistry.h
  5183. * src/SocketCore.h
  5184. * src/PeerReceiveHandshakeCommand.{h, cc}
  5185. * src/BtRegistry.{h, cc}
  5186. * src/PeerListenCommand.cc
  5187. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5188. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5189. * src/MSEHandshake.{h, cc}
  5190. * src/ARC4Encryptor.h
  5191. * src/ARC4Decryptor.h
  5192. * src/LibgcryptARC4Encryptor.h
  5193. * src/LibgcryptARC4Decryptor.h
  5194. * src/LibgcryptARC4Context.h
  5195. * src/LibsslARC4Encryptor.h
  5196. * src/LibsslARC4Decryptor.h
  5197. * src/LibsslARC4Context.h
  5198. * src/DHKeyExchange.h
  5199. * src/LibgcryptDHKeyExchange.h
  5200. * src/LibsslDHKeyExchange.h
  5201. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5202. * test/DefaultBtAnnounceTest.cc
  5203. * test/ARC4Test.cc
  5204. * test/DHKeyExchangeTest.cc
  5205. Removed prepareForRetry() because it is not used.
  5206. * src/PeerAbstractCommand.{h, cc}
  5207. * src/PeerInteractionCommand.{h, cc}
  5208. * src/PeerInitiateConnectionCommand.{h, cc}
  5209. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Added the ability to load nodes from torrent file. These nodes are
  5211. added to the routing table when downloading that torrent.
  5212. * src/BtContext.h
  5213. * src/DefaultBtContext.{h, cc}
  5214. * src/DHTSetup.cc
  5215. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5216. hostname and port pair, and resolves all of them.
  5217. * src/NameResolver.{h, cc}: Added reset().
  5218. * src/RequestGroup.cc
  5219. * test/DefaultBtContextTest.cc
  5220. * test/MockBtContext.h
  5221. Removed assert() from DefaultBtContext and throw exception instead.
  5222. * src/DefaultBtContext.cc
  5223. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Fixed segmentation fault bug when exiting if dht is disabled.
  5225. * src/RequestGroup.cc
  5226. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. Fixed typo in log message and define the message in message.h
  5228. * src/TimedHaltCommand.cc
  5229. * src/message.h
  5230. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Included RecoverableException.h to fix compilation error.
  5232. * test/DHTMessageFactoryImplTest.cc
  5233. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5234. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5235. * test/DHTPingMessageTest.cc
  5236. * test/DHTGetPeersMessageTest.cc
  5237. * test/DHTFindNodeMessageTest.cc
  5238. * test/DHTAnnouncePeerMessageTest.cc
  5239. * test/MockDHTMessage.h
  5240. * test/MockDHTMessageFactory.h
  5241. * test/MockDHTMessageDispatcher.h: New class.
  5242. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5244. virtual.
  5245. * src/DHTMessageDispatcher.h
  5246. * src/DHTMessageDispatcherImpl.{h, cc}
  5247. * src/DHTSetup.cc
  5248. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Adding handling of DHT error message. Just log error message and
  5250. throw exception.
  5251. * src/DHTMessageFactoryImpl.cc
  5252. * test/DHTMessageFactoryImplTest.cc
  5253. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5254. Added handling of dynamic cast failure.
  5255. * src/DHTNodeLookupTask.cc
  5256. * src/DHTPeerLookupTask.cc
  5257. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Added the ability to stop aria2 itself when given time has passed
  5259. from start. Use --stop option to specify time in minutes.
  5260. When 0 is given, this feature is disabled.
  5261. * src/OptionHandlerFactory.cc
  5262. * src/TimeBasedCommand.h: Make _interval protected scope.
  5263. * src/HelpItemFactory.cc
  5264. * src/option_processing.cc
  5265. * src/prefs.h
  5266. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5267. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5268. Without this modification, the result list shows "ERR" when aria2 is
  5269. stopped by --stop option. It should be "INPR".
  5270. * src/DownloadEngine.{h, cc}
  5271. * src/DownloadEngineFactory.cc
  5272. * src/usage_text.h
  5273. * src/TimedHaltCommand.{h, cc}: New class.
  5274. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Bootstrap through node added by port message.
  5276. Currently bootstrap is executed if the number of buckets in routing
  5277. table is 1.
  5278. * src/BtPortMessage.{h, cc}
  5279. * src/DefaultBtMessageFactory.{h, cc}
  5280. * src/PeerInteractionCommand.cc
  5281. * test/BtPortMessageTest.cc
  5282. * test/MockDHTTask.h
  5283. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Extract the Peer class's member variables, which are only needed after
  5285. PeerInteractionCommand, into PeerSessionResource class.
  5286. This class is instantiated in PeerInteractionCommand class's ctor and
  5287. released in its dtor.
  5288. This will make Peer class lightweight and uses less memory for peers
  5289. which are not connected and wait in the queue.
  5290. * src/PeerChokeCommand.cc
  5291. * src/PeerSessionResource.{h, cc}
  5292. * src/PeerInteractionCommand.cc
  5293. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5294. * src/DefaultBtInteractive.cc
  5295. * src/BtPieceMessage.cc
  5296. * src/BtInterestedMessage.cc
  5297. * src/BtUnchokeMessage.cc
  5298. * src/DefaultPeerStorage.{h, cc}
  5299. * src/PeerInitiateConnectionCommand.cc
  5300. * src/ActivePeerConnectionCommand.cc
  5301. * src/BtNotInterestedMessage.cc
  5302. * src/DefaultBtMessageDispatcher.cc
  5303. * src/BtChokeMessage.cc
  5304. * src/BtRequestMessage.cc
  5305. * src/Peer.{h, cc}
  5306. * src/BtRegistry.h
  5307. * src/TrackerWatcherCommand.cc
  5308. * src/PeerReceiveHandshakeCommand.cc
  5309. * test/BtExtendedMessageTest.cc
  5310. * test/BtAllowedFastMessageTest.cc
  5311. * test/BtCancelMessageTest.cc
  5312. * test/DefaultPieceStorageTest.cc
  5313. * test/BtBitfieldMessageTest.cc
  5314. * test/BtHaveMessageTest.cc
  5315. * test/BtNotInterestedMessageTest.cc
  5316. * test/BtRequestMessageTest.cc
  5317. * test/PeerSessionResourceTest.cc
  5318. * test/DefaultBtMessageDispatcherTest.cc
  5319. * test/PeerTest.cc
  5320. * test/BtInterestedMessageTest.cc
  5321. * test/BtRejectMessageTest.cc
  5322. * test/BtChokeMessageTest.cc
  5323. * test/DefaultPeerStorageTest.cc
  5324. * test/BtHaveNoneMessageTest.cc
  5325. * test/BtHaveAllMessageTest.cc
  5326. * test/DefaultExtensionMessageFactoryTest.cc
  5327. * test/BtUnchokeMessageTest.cc
  5328. * test/DefaultBtMessageFactoryTest.cc
  5329. * test/HandshakeExtensionMessageTest.cc
  5330. * test/UTPexExtensionMessageTest.cc
  5331. * test/DefaultBtRequestFactoryTest.cc
  5332. * test/BtPieceMessageTest.cc
  5333. Removed typedef PeerStats.
  5334. * src/PeerStat.h
  5335. * src/SegmentMan.cc
  5336. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. Added std namespace to copy, remove_copy, back_inserter,
  5338. front_inserter.
  5339. * src/RequestGroupMan.cc
  5340. * src/DefaultPieceStorage.cc
  5341. * src/StreamFileAllocationEntry.cc
  5342. * src/BtFileAllocationEntry.cc
  5343. * src/RequestGroup.cc
  5344. * src/MetalinkEntry.cc
  5345. * src/DelegatingPeerListProcessor.cc
  5346. * src/DefaultBtRequestFactory.cc
  5347. * src/DefaultBtMessageDispatcher.cc
  5348. * src/version_usage.cc: Included <algorithm>
  5349. * src/main.cc
  5350. * src/MetalinkParserController.cc
  5351. * src/DefaultBtContext.cc
  5352. * src/DownloadEngineFactory.cc
  5353. * src/a2algo.h
  5354. Removed.
  5355. * test/StreamUriListParserTest.cc
  5356. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5358. ActivePeerConnectionCommand when it is given and
  5359. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5360. * src/ActivePeerConnectionCommand.{h, cc}
  5361. * src/BtSetup.cc
  5362. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5363. Only add socket to DownloadEngine's select routine when peer or
  5364. localhost is unchoked and interested. This lowers CPU usage a
  5365. little bit.
  5366. * src/PeerInteractionCommand.cc
  5367. * src/PeerAbstractCommand.{h, cc}
  5368. * src/BtInteractive.h
  5369. * src/DefaultBtInteractive.{h, cc}
  5370. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5371. Revert previous change because get_peers message is needed for
  5372. announce_peer anyway.
  5373. * src/DHTGetPeersCommand.cc
  5374. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Request peers thought DHT only when download hasn't finished.
  5376. * src/DHTGetPeersCommand.cc
  5377. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5379. * src/DHTBucketRefreshTask.{h, cc}
  5380. * src/DHTSetup.cc
  5381. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5383. standard classes.
  5384. Included string.h where mem* function are used.
  5385. Added namespace aria2.
  5386. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Create directory before saving DHT routing table.
  5388. Now ios::failure is now handled properly.
  5389. * src/DHTAutoSaveCommand.cc
  5390. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Removed unnecessary cerr.
  5392. * src/DownloadEngine.cc
  5393. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Catch exception inside DHTMessageReceiver::receiveMessage().
  5395. Log unknown message.
  5396. * src/DHTMessageReceiver.{h, cc}
  5397. * src/DHTMessageFactory.h
  5398. * src/DHTMessageFactoryImpl.{h, cc}
  5399. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5400. * src/DHTInteractionCommand.cc
  5401. * src/DHTUnknownMessage.{h, cc}
  5402. * test/DHTUnknownMessageTest.cc
  5403. * test/MockDHTMessageFactory.h
  5404. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Commented out ip address comparison because a host can have multiple
  5406. ip addresses and it is hard to predict the hostname is resolved into
  5407. which one.
  5408. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5409. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. * po/Makefile.in: Removed since this is generated by configure.
  5411. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5412. Fixed compiler warning about redefinition of SIZE_MAX.
  5413. Use common.h instead of config.h directly here.
  5414. * src/Platform.{h, cc}
  5415. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5416. here.
  5417. * common.h
  5418. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5419. Updated gettext related files.
  5420. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5421. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5422. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Added DHT functionality, compatible with mainline.
  5424. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5425. You may need to specify entry point to DHT network using
  5426. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5427. Use --dht-listen-port to specify port number. Make sure that your
  5428. firewall configuration can pass through UDP traffic to the port.
  5429. The routing table is saved in $HOME/.aria2/dht.dat.
  5430. * src/DHT*
  5431. * src/BNode.{h, cc}
  5432. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5433. particular torrent.
  5434. * src/Data.cc: Rewritten ctor.
  5435. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5436. --dht-entry-point.
  5437. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5438. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5439. ends, remove BtContext from DHTPeerAnnounceStorage.
  5440. * src/BtPortMessage.{h, cc}: Rewritten.
  5441. * src/message.h
  5442. * src/OptionHandlerImpl.cc
  5443. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5444. --dht-entry-point.
  5445. * src/Dictionary.{h, cc} (remove): New function.
  5446. * src/prefs.h
  5447. * src/DefaultBtMessageFactory.h
  5448. * src/BtHandshakeMessage.cc
  5449. * src/ActivePeerConnectionCommand.cc
  5450. * src/SocketCore.{h, cc}: Added datagram socket support.
  5451. * src/DefaultBtMessageFactory.cc
  5452. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5453. Create DHT commands.
  5454. * src/BtMessageFactory.h
  5455. * src/PeerMessageUtil.{h, cc}
  5456. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5457. Fixed the bug that log file is not written when configuration file doesn't exist.
  5458. This is caused by using Logger class before LogFactory is not configured.
  5459. BUG #1875079
  5460. * src/option_processing.cc
  5461. Warning message "configuration doesn't exist" is only printed when --conf is
  5462. given.
  5463. * src/option_processing.cc
  5464. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5466. ShaVisitor is now deprecated and slated to be removed.
  5467. * src/DefaultBtContext.cc
  5468. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5469. Externalize message to message.h
  5470. * src/Platform.cc
  5471. * src/message.h
  5472. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. Set default domain and default path to cookie.
  5474. * src/HttpResponse.cc
  5475. * src/CookieBox.{h, cc}
  5476. * src/CookieParser.{h, cc}
  5477. * test/CookieParserTest.cc
  5478. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5479. Added --no-conf and --conf-path command-line option.
  5480. --no-conf option disables loading aria2.conf file.
  5481. --conf-path option changes the configuration file path. The default
  5482. file path is $HOME/.aria2/aria2.conf
  5483. Added a warning message when the configuration file is not found.
  5484. * src/HelpItemFactory.cc
  5485. * src/option_processing.cc
  5486. * src/prefs.h
  5487. * src/usage_text.h
  5488. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Added the message to inform users that other help categories are
  5490. available in -h option.
  5491. * src/version_usage.cc
  5492. * src/TagContainer.{h, cc}
  5493. * test/TagContainerTest.cc
  5494. * src/TaggedItem.{h, cc}
  5495. * test/TaggedItemTest.cc
  5496. * src/HelpItem.h
  5497. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5498. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5499. from PiecedSegment's ctor.
  5500. Previously Piece::getAllMissingBlockIndexes() is called from
  5501. PiecedSegment() but it is rather expensive since only first element is
  5502. used.
  5503. * src/PiecedSegment.cc
  5504. * src/Piece.{h, cc}
  5505. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5507. each time these functions are called.
  5508. * src/BitfieldMan.{h, cc}
  5509. * test/BitfieldManTest.cc
  5510. * src/array_fun.h
  5511. * test/array_funTest.cc
  5512. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5513. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5514. filtered. Removed unnecessary cast to int32_t.
  5515. * src/BitfieldMan.{h, cc}
  5516. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5518. payload length(4bytes) are received. This happens because lenbufLength
  5519. is not updated in this particular case and successive call of
  5520. receiveMessage() overwrites payload length with bytes recieved which
  5521. are payload body.
  5522. * src/PeerConnection.{h, cc}
  5523. * src/message.h
  5524. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5525. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5526. peer if there are peers that have same ipaddr and port.
  5527. I've experiened segmentation fault and "pure virtual function was
  5528. called" error.
  5529. * src/Peer.h
  5530. * test/PeerTest.cc
  5531. * src/DefaultPeerStorage.cc
  5532. * test/DefaultPeerStorageTest.cc
  5533. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Removed a call to isPowerOf() because it is no longer necessary here
  5535. and a request block is not always power of 2.
  5536. BUG#1866924
  5537. * src/PeerMessageUtil.cc (checkLength)
  5538. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5539. Fixed the bug that always first found Segment is removed from
  5540. usedSegmentEntries. Removed unused functions.
  5541. * src/SegmentMan.{h, cc}
  5542. * test/SegmentManTest.cc
  5543. Fixed the bug that ServerHost is not removed.
  5544. * src/RequestGroup.cc
  5545. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Fixed the bug that SegmentMan::completeSegment() is not called
  5547. even if Segment is complete when --lowest-speed-limit is enabled.
  5548. BUG#1864525
  5549. * src/DownloadCommand.{h, cc}
  5550. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Fixed: hash algorithm 'sha1' is always used.
  5552. * src/DownloadCommand.cc (validatePieceHash)
  5553. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Added --enable-peer-exchange command-line option.
  5555. * src/OptionHandlerFactory.cc
  5556. * src/HelpItemFactory.cc
  5557. * src/option_processing.cc
  5558. * src/usage_text.h
  5559. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5560. Move extension from BtRuntime to ExtensionMessageFactory, because
  5561. extension can be specified per peer, not per torrent.
  5562. * src/DefaultBtInteractive.cc
  5563. * src/BtRuntime.h
  5564. * src/ExtendedMessagingAware.h
  5565. * src/ExtensionMessageFactory.h
  5566. * src/DefaultExtensionMessageFactory.cc
  5567. * test/DefaultExtensionMessageFactoryTest.cc
  5568. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Added categorized option help. Specify category using --help option.
  5570. Also added the ability to search options in forward match.
  5571. * src/HelpItem.{h, cc}
  5572. * test/HelpItemTest.cc
  5573. * src/HelpItemFactory.{h, cc}
  5574. * src/TagContainer.{h, cc}
  5575. * test/TagContainerTest.cc
  5576. * src/option_processing.cc
  5577. * src/prefs.h
  5578. * src/TaggedItem.{h, cc}
  5579. * test/TaggedItemTest.cc
  5580. * src/version_usage.cc
  5581. * src/help_tags.h
  5582. * src/usage_text.h
  5583. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5584. Fixed segmentation fault when bad torrent metainfo is parsed.
  5585. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5586. and then throw exception or skip it.
  5587. * src/DefaultBtContext.{h, cc}
  5588. * test/DefaultBtContextTest.cc
  5589. * src/AnnounceList.cc
  5590. * src/CompactPeerListProcessor.cc
  5591. * src/message.h
  5592. * src/DefaultBtAnnounce.{h, cc}
  5593. * test/DefaultBtAnnounceTest.cc
  5594. * src/BencodeVisitor.cc
  5595. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Added missing "B"(=Byte). So now the message looks like this:
  5597. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5598. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5599. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Show the seed ratio after torrent downloads.
  5601. For example, after torrent download completed and --seed-time and
  5602. --seed-ratio conditions are fulfilled, following message is printed
  5603. right after "Download complete: .....":
  5604. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5605. * src/RequestGroupMan.cc
  5606. * src/RequestGroup.{h, cc}
  5607. * src/message.h
  5608. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Remove a defunct control file. A defunct control file means that while
  5610. it exists, but the corresponding download file is missing.
  5611. After its removal, a download restarts from the beginning.
  5612. * src/RequestGroup.cc
  5613. * src/message.h
  5614. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Allocate bitfield in Peer when it is really used. More specifically,
  5616. bitfield in Peer is allocated after the connection is established and
  5617. deallocated when the connection is dropped.
  5618. Since 2 parameters(piece length and total length) was removed from the
  5619. constructor of Peer class, many test classes were modified accordingly.
  5620. See svn log for more detailed information.
  5621. * src/PeerInteractionCommand.cc
  5622. * src/CompactPeerListProcessor.cc
  5623. * src/Peer.cc
  5624. * src/DefaultPeerListProcessor.cc
  5625. * src/PeerListenCommand.cc
  5626. * src/PeerReceiveHandshakeCommand.cc
  5627. Fixed memory leak
  5628. * src/Piece.cc
  5629. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5631. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5632. command-line options.
  5633. * src/option_processing.cc
  5634. * src/ActivePeerConnectionCommand.cc
  5635. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. Send have message to peer if it already has the piece.
  5637. * src/BtHaveMessage.{h, cc}
  5638. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5640. port.
  5641. * src/DefaultPeerStorage.{h, cc}
  5642. * test/DefaultPeerStorageTest.cc
  5643. * src/HandshakeExtensionMessage.cc
  5644. * test/HandshakeExtensionMessageTest.cc
  5645. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5646. * src/PeerStorage.h
  5647. * test/MockPeerStorage.h
  5648. * src/PeerListenCommand.cc
  5649. * src/PeerReceiveHandshakeCommand.cc
  5650. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Added --metalink-enable-unique-protocol option.
  5652. * src/Metalink2RequestGroup.cc
  5653. * src/option_processing.cc
  5654. * src/prefs.h
  5655. * src/version_usage.cc
  5656. * doc/aria2c.1.txt
  5657. * doc/aria2c.1
  5658. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Allow a peer in incomingPeer to be added peers.
  5660. * src/DefaultPeerStorage.cc
  5661. * test/DefaultPeerStorageTest.cc
  5662. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5664. I could reproduce this bug in following procedure:
  5665. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5666. 2. Restart aria2.
  5667. 3. You see the download stopped around 99%.
  5668. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5669. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5670. If timeout is reached, then _nextCommand is unused and it may contains
  5671. segments and they won't be canceled. Actually, timeout is not needed
  5672. here because if the server dropped connection, then retry is made.
  5673. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Added uTorrent compatible Peer Exchange.
  5675. * src/BencodeVisitor.{h, cc}
  5676. * test/BencodeVisitorTest.cc
  5677. * src/BtConstants.h
  5678. * src/BtContext.h: Added 'private' flag.
  5679. * src/BtExtendedMessage.{h, cc}
  5680. * test/BtExtendedMessageTest.cc
  5681. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5682. reserved field.
  5683. * test/BtHandshakeMessageTest.cc
  5684. * src/BtMessageFactory.h
  5685. * src/BtRegistry.h
  5686. * src/BtRuntime.h: This class holds default extension message IDs for
  5687. aria2. By default, aria2 uses ID 8 for ut_pex.
  5688. * src/DefaultBtContext.cc
  5689. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5690. When it is true, aria2 enables ut_pex. This value is set by
  5691. PeerInteractionCommand.
  5692. * src/DefaultBtMessageFactory.{h, cc}
  5693. * test/DefaultBtMessageFactoryTest.cc
  5694. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5695. handling to DefaultBtInteractive class.
  5696. * src/DefaultExtensionMessageFactory.{h, cc}
  5697. * test/DefaultExtensionMessageFactoryTest.cc
  5698. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5699. the container(peers and incomingPeers. The equality is determined by
  5700. Peer::id).
  5701. * test/DefaultPeerStorageTest.cc
  5702. * src/ExtensionMessage.h
  5703. * test/MockExtensionMessage.h
  5704. * src/ExtensionMessageFactory.h
  5705. * test/MockExtensionMessageFactory.h
  5706. * src/HandshakeExtensionMessage.{h, cc}
  5707. * test/HandshakeExtensionMessageTest.cc
  5708. * src/MetaEntry.h
  5709. * src/Peer.{h, cc}
  5710. * src/PeerInteractionCommand.cc
  5711. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5712. addIncomingPeer.
  5713. * src/PeerMessageUtil.{h, cc}
  5714. * src/PeerObject.h
  5715. * src/UTPexExtensionMessage.{h, cc}
  5716. * test/UTPexExtensionMessageTest.cc
  5717. * src/message.h
  5718. * src/prefs.h
  5719. Fixed the bug that returns incomplete data when it contains null
  5720. character. A convenient constructor was also added.
  5721. * src/Data.{h, cc}
  5722. Rewritten.
  5723. * src/CompactPeerListProcessor.cc
  5724. Fixed typos.
  5725. * src/message.h
  5726. * src/MetaFileUtil.cc
  5727. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Added "Status Legend" label to the explanation text of 'stat' in
  5729. download result and moved it to the last. BUG#1848214
  5730. * src/RequestGroupMan.cc
  5731. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5733. * src/Makefie.am
  5734. * test/Makefile.am
  5735. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Fixed the bug that prevents aria2 from loading cookie file when expire
  5737. value is greater than 2^31-1. BUG#1851066
  5738. * src/CookieBoxFactory.cc
  5739. * test/CookieBoxFactoryTest.cc
  5740. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Fixed possible memory leak when an exception is thrown.
  5742. * src/XML2SAXMetalinkProcessor.cc
  5743. Added Expat support. If both libxml2 and Expat are installed, then
  5744. libxml2 is used by default.
  5745. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5746. ExpatMetalinkProcessor according to the configuration.
  5747. * src/ExpatMetalinkProcessor.{h, cc}
  5748. * src/main.cc: Removed libxml2 specific header and init/free function.
  5749. * src/MetalinkProcessorFactory.{h, cc}
  5750. * src/MetalinkHelper.cc
  5751. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5752. * src/MetalinkProcessor.h
  5753. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5754. MetalinkProcessorTest is used instead.
  5755. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5756. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5757. MetalinkProcessorFactory::newInstance().
  5758. * m4/libexpat.m4
  5759. * configure.ac: Added configuration options for libexpat.
  5760. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. Disabled -s option in metalink download.
  5762. * src/Metalink2RequestGroup.cc
  5763. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5764. If several protocols are available for a mirror in metalink file,
  5765. aria2 now use one of them. --metalink-preferred-protocol option was
  5766. added to specify the preference of protocol.
  5767. * src/AbstractCommand.cc
  5768. * src/OptionHandlerFactory.cc
  5769. * src/ServerHost.{h, cc}
  5770. * src/Metalink2RequestGroup.cc
  5771. * src/RequestGroup.{h, cc}
  5772. * test/RequestGroupTest.cc
  5773. * src/option_processing.cc
  5774. * src/prefs.h
  5775. * src/HttpResponseCommand.cc
  5776. * src/MetalinkResource.{h, cc}
  5777. * src/FtpNegotiationCommand.cc
  5778. * src/MetalinkEntry.{h, cc}
  5779. * src/MetalinkEntryTest.cc
  5780. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Code cleanup and added debug log.
  5782. * src/PeerConnection.cc
  5783. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Compiler error fix: applied the patch by Tiziano Mueller
  5785. * src/RequestGroup.cc
  5786. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Fixed the bug: only first announce URL is tried in AnnounceTier,
  5788. in stopped and completed event.
  5789. * src/AnnounceList.{h, cc}
  5790. * test/AnnounceListTest.cc
  5791. * src/DefaultBtAnnounce.cc
  5792. * test/DefaultBtAnnounceTest.cc
  5793. Sorted URLs.
  5794. * test/Metalink2RequestGroupTest.cc
  5795. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Removed unnecessary string copy. Updated doc and corrected indentation.
  5797. * src/Base64.cc
  5798. Fixed compilation warnings
  5799. * test/DataTest.cc
  5800. * test/HttpRequestTest.cc
  5801. * test/MetaFileUtilTest.cc
  5802. * test/RequestTest.cc
  5803. * Release 0.12.0
  5804. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Updated translations
  5806. * po/{de,fr,ja,nl,ru}.po
  5807. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  5808. translations. Many thanks to translators.
  5809. * po/{ca,es,it,pt_BR,sv}.po
  5810. * po/LINGUAS
  5811. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Added a notice about URL
  5813. * src/version_usage.cc
  5814. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5815. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5816. aria2 repeatedly sends stopped request when tracker returns error code.
  5817. * src/AnnounceList.cc
  5818. * test/AnnounceListTest.cc
  5819. * src/AnnounceTier.h
  5820. Added a message when ctrl-c is hit.
  5821. Now second ctrl-c is also handled in signal handler.
  5822. * src/RequestGroupMan.{h, cc}
  5823. * src/RequestGroup.{h, cc}
  5824. * src/MultiUrlRequestInfo.cc
  5825. * src/DownloadEngine.cc
  5826. * src/TrackerWatcherCommand.cc
  5827. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Code cleanup
  5829. * src/Base64.cc (encode)
  5830. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Changed Direct/IO enable/disable procesure in file allocation routine.
  5832. * src/SingleFileAllocationIterator.cc
  5833. (SingleFileAllocationIterator):
  5834. Disable directIO if offset is not multiple of 512.
  5835. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5836. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5837. Enable created SingleFileAllocationIterator's directIO.
  5838. * src/FileAllocationEntry.cc
  5839. (FileAllocationEntry): Enable directIO here.
  5840. (~FileAllocationEntry): Disable directIO here.
  5841. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5842. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5843. * src/Peer.{h, cc}
  5844. * src/DefaultPieceStorage.cc
  5845. * test/DefaultPieceStorageTest.cc
  5846. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5847. Rewritten direct I/O support routine
  5848. * src/SingleFileAllocationIterator.cc
  5849. * src/MultiDiskAdaptor.{h, cc}
  5850. * src/ByteArrayDiskWriter.h
  5851. * src/AbstractSingleDiskAdaptor.h
  5852. * src/AbstractDiskWriter.cc
  5853. * src/DefaultPieceStorage.cc
  5854. * src/DiskWriter.h
  5855. * src/BinaryStream.h
  5856. * src/IteratableChunkChecksumValidator.cc
  5857. * src/IteratableChecksumValidator.cc
  5858. * src/CheckIntegrityEntry.cc
  5859. * src/FileAllocationEntry.cc
  5860. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5861. Fixed typo
  5862. * src/version_usage.cc
  5863. Updated doc
  5864. * doc/aria2c.1.txt
  5865. * doc/aria2c.1
  5866. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5867. Fixed compile error without message digest support.
  5868. * src/FileMetalinkParserState.cc
  5869. * src/MetalinkParserController.{h, cc}
  5870. * test/XML2SAXMetalinkProcessorTest.cc
  5871. * test/MetalinkParserControllerTest.cc
  5872. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. Enable direct I/O support in checksum checking.
  5874. * src/IteratableChunkChecksumValidator.{h, cc}
  5875. * test/IteratableChunkChecksumValidatorTest.cc
  5876. * src/CheckIntegrityEntry.cc
  5877. * src/PieceHashCheckIntegrityEntry.cc
  5878. * src/IteratableChecksumValidator.{h, cc}
  5879. * src/BtCheckIntegrityEntry.cc: Added doc.
  5880. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Added --allow-piece-length-change option.
  5882. * src/DefaultBtProgressInfoFile.cc
  5883. * test/DefaultBtProgressInfoFileTest.cc
  5884. * src/OptionHandlerFactory.cc
  5885. * src/option_processing.cc
  5886. * src/prefs.h
  5887. * src/version_usage.cc
  5888. * doc/aria2c.1.txt
  5889. * doc/aria2c.1
  5890. Fixed: duplicated result entry appears when exception is thrown in
  5891. RequestGroup::createInitiateConnectionCommand().
  5892. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  5893. Add RequestGroup to _requestGroup after RequetGroup::
  5894. createInitiateConnectionCommand() succeeds.
  5895. Externalized message
  5896. * src/XML2SAXMetalinkProcessor.cc
  5897. * src/message.h
  5898. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5899. Forced download abort when received negative response from http/ftp
  5900. server.
  5901. * src/HttpResponseCommand.cc
  5902. * src/FtpNegotiationCommand.cc
  5903. * src/HttpResponse.cc
  5904. * src/FtpConnection.cc
  5905. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  5907. the predecessor, Xml2MetalinkParser class.
  5908. I tested them against 94KB metalink file with 1234 chunk checksums.
  5909. The new one parsed it in 22msec, while it took 6000msec with old one.
  5910. * src/XML2SAXMetalinkProcessor.{h, cc}
  5911. * test/XML2SAXMetalinkProcessorTest.cc
  5912. * src/MetalinkParserController.{h, cc}
  5913. * test/MetalinkParserControllerTest.cc
  5914. * src/MetalinkParserState.h: Also added 16 subclasses.
  5915. * src/main.cc
  5916. * src/Metalink2RequestGroup.cc
  5917. * src/MetalinkHelper.cc
  5918. * src/MetalinkEntry.cc
  5919. * src/ChunkChecksum.h
  5920. Rewritten Base64 class for better performance.
  5921. * src/Base64.{h, cc}
  5922. * test/Base64Test.cc
  5923. * src/HttpRequest.cc
  5924. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Fixed the bug#1841757: aria2 will connect to server to only get
  5926. file size.
  5927. * src/StreamFileAllocationEntry.cc
  5928. * src/option_processing.cc
  5929. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  5930. downloads.
  5931. * src/FtpNegotiationCommand.cc
  5932. Suppressed wrong message when finding PreDownloadHandler
  5933. * src/RequestGroup.cc
  5934. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Updated usage
  5936. * src/version_usage.cc
  5937. Updated man page
  5938. * doc/aria2c.1.txt
  5939. * doc/aria2c.1
  5940. Updated po files
  5941. * po/aria2c.pot
  5942. * po/*.po
  5943. * po/*.gmo
  5944. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Eliminated g++-4.2 warning
  5946. * src/DownloadHandlerConstants.{h, cc}
  5947. * src/Util.cc
  5948. * test/MetaFileUtilTest.cc
  5949. * test/PStringBuildVisitorTest.cc
  5950. Fixed bug: --check-integrity doesn't work for multi file torrent.
  5951. * src/RequestGroup.cc
  5952. * src/BtCheckIntegrityEntry.cc
  5953. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. Fixed a2io.h
  5955. * src/a2io.h
  5956. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. Added direct I/O support. The current implementation uses O_DIRECT,
  5958. which is not posix standard and is tested on linux 2.6.21.
  5959. Currently only file allocation uses direct I/O.
  5960. * src/SingleFileAllocationIterator.{h, cc}
  5961. * test/SingleFileAllocationIteratorTest.cc
  5962. * src/MultiFileAllocationIterator.{h, cc}
  5963. * test/MultiFileAllocationIteratorTest.cc
  5964. * src/BinaryStream.h
  5965. * src/DiskWriter.h
  5966. * src/AbstractDiskWriter.{h, cc}
  5967. * src/ByteArrayDiskWriter.h
  5968. * src/DiskAdaptor.h
  5969. * src/AbstractSingleDiskAdaptor.{h, cc}
  5970. * src/MultiDiskAdaptor.{h, cc}
  5971. * src/FileAllocationEntry.cc
  5972. * src/Util.{h, cc}
  5973. * src/OptionHandlerFactory.cc
  5974. * src/prefs.h
  5975. * src/version_usage.cc
  5976. * src/option_processing.cc
  5977. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5978. handleException.
  5979. * src/MultiFileAllocationIterator.cc
  5980. Added EINTR handling
  5981. * src/SocketCore.cc
  5982. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5983. Updated usage
  5984. * src/version_usage.cc
  5985. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Applied Ross's patch for MinGW port.
  5987. * src/DownloadEngine.h
  5988. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5989. Set Content-Type to SingleFileDownloadContext when http response is
  5990. received.
  5991. * src/HttpResponseCommand.cc
  5992. * src/HttpResponse.{h, cc}
  5993. * test/HttpResponseTest.cc
  5994. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Rewritten to add content-type support.
  5996. * src/DownloadHandler.{h, cc}
  5997. * src/BtPostDownloadHandler.{h, cc}
  5998. * test/BtPostDownloadHandlerTest.cc
  5999. * src/MetalinkPostDownloadHandler.{h, cc}
  6000. * test/MetalinkPostDownloadHandlerTest.cc
  6001. * src/PostDownloadHandler.{h, cc}
  6002. * src/DownloadHandlerConstants.{h, cc}
  6003. * src/RequestGroup.cc
  6004. * src/HttpResponseCommand.cc
  6005. * src/FtpNegotiationCommand.cc
  6006. * src/SingleFileDownloadContext.{h, cc}
  6007. * src/RequestGroup.h
  6008. * src/RequestGroupCriteria.h
  6009. * src/ContentTypeRequestGroupCriteria.h
  6010. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6011. If it is give, metalink/torrent file is not written to the disk, but
  6012. just is kept in memory. Parsing is occurred on memory.
  6013. * src/MetalinkHelper.{h, cc}
  6014. * src/MetalinkProcessor.h
  6015. * src/Xml2MetalinkProcessor.{h, cc}
  6016. * test/Xml2MetalinkProcessorTest.cc
  6017. * src/DownloadHandlerFactory.{h, cc}
  6018. * test/DownloadHandlerFactoryTest.cc
  6019. * src/PreDownloadHandler.{h, cc}
  6020. * src/OptionHandlerFactory.cc
  6021. * src/DefaultBtContext.{h, cc}
  6022. * test/DefaultBtContextTest.cc
  6023. * src/version_usage.cc
  6024. * src/Metalink2RequestGroup.{h, cc}
  6025. * src/RequestGroup.{h, cc}
  6026. * src/a2functional.h
  6027. * test/a2functionalTest.cc
  6028. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6029. * src/OptionHandlerImpl.h
  6030. * src/prefs.h
  6031. * src/Util.{h, cc}
  6032. * test/UtilTest.cc
  6033. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6034. memory usage.
  6035. * src/RequestGroupMan.{h, cc}
  6036. * src/DownloadEngine.cc
  6037. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6038. WeakHandle to SharedHandle because WeakHandle could be null.
  6039. * src/RequestGroup.{h, cc}
  6040. * src/DownloadEngineFactory.cc
  6041. * src/DownloadResult.h
  6042. Set totalLength after download finished
  6043. * src/UnknownLengthPieceStorage.{h, cc}
  6044. Keep torrent file specified in metalink in memory.
  6045. * src/Metalink2RequestGroup.cc
  6046. * src/BtDependency.cc
  6047. * src/TrueRequestGroupCriteria.h
  6048. Fixed the bug: seekg is used where seekp should be used.
  6049. * src/ByteArrayDiskWriter.cc
  6050. * test/ByteArraydiskWriterTest.cc
  6051. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Fixed syntax error
  6053. * test/SequenceTest.cc
  6054. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6056. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6057. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6058. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6059. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Added the check to see whether ares_host_callback accepts timeouts
  6061. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6062. * src/NameResolver.{h, cc}
  6063. * m4/libcares.m4
  6064. * configure.ac: Set C++ for language choice.
  6065. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Fixed: compilation fails without c-ares/ares
  6067. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6068. Generate http/ftp commands only when download is incomplete.
  6069. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6070. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Corrected typo. Examples are removed since they are available in man
  6072. page.
  6073. * src/version_usage.cc
  6074. Updated man page.
  6075. * doc/aria2c.1
  6076. * doc/aria2c.1.txt
  6077. * doc/makeman: Commented out sed command.
  6078. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Throw DlAbortEx when a remote file is not found.
  6080. * src/HttpResponse.cc
  6081. * src/FtpNegotiationCommand.cc
  6082. * src/message.h
  6083. Overwrite an existing file if --allow-overwrite=true is given.
  6084. * src/RequestGroup.cc
  6085. Removed unused functions
  6086. * src/AbstractCommand.h
  6087. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. Removed 'extern' from 'extern typedef ...' in src/*.h
  6089. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Updated usage
  6091. * src/version_usage.cc
  6092. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Trim announce URL
  6094. * src/DefaultBtContext.cc
  6095. * test/ShaVisitorTest.cc
  6096. Trim argument s. Give trimed s to exception constructor.
  6097. * src/Util.cc (parseInt)(parseLLInt)
  6098. * test/UtilTest.cc
  6099. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Set precision back to 1.
  6101. * src/ConsoleStatCalc.cc (calculateStat)
  6102. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Replaced strtol with Util::parseInt
  6104. * src/ChunkedEncoding.cc
  6105. * src/HttpConnection.cc
  6106. * src/CookieBoxFactory.cc
  6107. * src/ParameterizedStringParser.cc
  6108. * src/Util.cc
  6109. * test/UtilTest.cc
  6110. * test/OptionHandlerTest.cc
  6111. * src/Request.cc
  6112. Throw exception when empty string is given. The message for exception
  6113. changed.
  6114. * src/Util.cc (parseInt)(parseLLInt)
  6115. * src/message.h
  6116. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6118. set to 1.
  6119. * src/ConsoleStatCalc.cc (calculateStat)
  6120. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6121. Preallocate non-requested file which is adjacent forward to requested
  6122. file('requested' files means the files given in --select-file option)
  6123. if they share a same piece.
  6124. This fixes long pause in the file system which doesn't support sparse
  6125. files like FAT32 while downloading.
  6126. * src/MultiFileAllocationIterator.{h, cc}
  6127. * test/MultiFileAllocationIteratorTest.cc
  6128. * src/FileEntry.{h, cc}
  6129. Removed unused _option.
  6130. * src/MultiDiskAdaptor.h
  6131. * test/MultiDiskAdaptorTest.cc
  6132. * src/DefaultPieceStorage.cc
  6133. Set the default value of --seed-ratio to 1.0.
  6134. If 0.0 is given, then seeding continues regardless of share ratio.
  6135. * src/version_usage.cc
  6136. * src/option_processing.cc
  6137. * src/BtSetup.cc
  6138. * doc/aria2c.1.txt
  6139. * doc/aria2c.1
  6140. Fixed: Selective download is not working in BitTorrent
  6141. * src/RequestGroup.cc
  6142. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6143. * src/PieceStorage.h
  6144. * test/MockPieceStorage.h
  6145. * src/UnknownLengthPieceStorage.h
  6146. * src/DefaultPieceStorage.{h, cc}
  6147. * src/Metalink2RequestGroup.cc
  6148. * src/RequestGroup.cc
  6149. * src/Sequence.h
  6150. * test/SequenceTest.cc
  6151. * src/IntSequence.h
  6152. * src/message.h
  6153. * src/Util.{h, cc}
  6154. * test/UtilTest.cc
  6155. Added new function 'parse' to catch exception thrown by subclass's
  6156. parseArg
  6157. * src/OptionHandler.h
  6158. * src/OptionParser.cc
  6159. * src/NameMatchOptionHandler.h
  6160. * src/OptionHandlerImpl.h
  6161. * test/OptionHandlerTest.cc
  6162. Added IntegerRangeOptionHandler. Used for --listen-port and
  6163. --select-file. Now --listen-port accepts range of port.
  6164. * src/OptionHandlerFactory.cc
  6165. * src/version_usage.cc
  6166. * src/OptionHandlerImpl.h
  6167. * src/option_processing.cc
  6168. * src/BtSetup.cc
  6169. * src/PeerListenCommand.{h, cc}
  6170. * doc/aria2c.1.txt
  6171. * doc/aria2c.1
  6172. Implemented operator< for Exception class to provide easy way to print
  6173. exception stack trace.
  6174. * src/Exception.{h, cc}
  6175. * src/main.cc
  6176. * src/option_processing.cc
  6177. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. * src/version_usage.cc
  6179. (showVersion): Reworked.
  6180. (showUsage): Added examples.
  6181. Removed Hint for total length and file name.
  6182. * src/Metalink2RequestGroup.cc
  6183. * src/RequestGroup.{h, cc}
  6184. * src/HttpResponseCommand.cc
  6185. * src/FtpNegotiationCommand.cc
  6186. Now --follow-torrent and --follow-metalink option work properly.
  6187. * src/RequestGroup.cc
  6188. Updated man page
  6189. * doc/aria2c.1.txt
  6190. * doc/aria2c.1
  6191. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Removed.
  6193. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6194. Use Segment::operator==()
  6195. * src/HttpConnection.cc
  6196. * src/Segment.h
  6197. Updated usage
  6198. * src/version_usage.cc
  6199. Added EINTR treatment.
  6200. * src/SocketCore.cc
  6201. * src/AbstractDiskWriter.cc
  6202. Rewritten.
  6203. * src/Util.cc (rangedFileCopy)
  6204. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Fixed typo.
  6206. * src/version_usage.cc
  6207. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6208. Implemented. Now -c option works fine.
  6209. * src/DefaultPieceStorage.cc (markPiecesDone)
  6210. * test/DefaultPieceStorageTest.cc
  6211. Removed.
  6212. * src/SegmentMan.{h, cc}
  6213. (markAllPiecesDone)
  6214. (markPieceDone)
  6215. Synchronized po files with
  6216. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6217. * src/fr.po
  6218. * src/ru.po
  6219. * src/de.po
  6220. * src/ja.po
  6221. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. Added ifdef and some modifications to compile without BitTorrent,
  6223. Metalink, MessageDigest
  6224. support.
  6225. * src/PieceHashCheckIntegrityEntry.cc
  6226. * src/MetalinkEntry.h
  6227. * src/version_usage.cc
  6228. * src/main.cc
  6229. * src/DownloadEngine.{h, cc}
  6230. * src/Metalink2RequestGroup.cc
  6231. * src/Peer.cc
  6232. * src/RequestGroup.cc
  6233. * src/MetalinkHelper.cc
  6234. * test/DefaultPieceStorageTest.cc
  6235. * test/MetalinkPostDownloadHandlerTest.cc
  6236. * test/Metalink2RequestGroupTest.cc
  6237. Hide TOTAL SPD when all downloads complete.
  6238. * src/ConsoleStatCalc.cc
  6239. Log target system information.
  6240. * src/main.cc
  6241. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Now --metalink-location accepts a comma-deliminated list of locations.
  6243. * src/MetalinkEntry.{h, cc}
  6244. * test/MetalinkEntryTest.cc
  6245. * src/version_usage.cc
  6246. * src/Metalink2RequestGroup.cc
  6247. * src/Xml2MetalinkProcessor.cc
  6248. * test/Xml2MetalinkProcessorTest.cc
  6249. * doc/aria2c.1.txt
  6250. * doc/aria2c.1
  6251. * src/Util.cc (toUpper)(toLower): Rewritten.
  6252. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Added the ability to detect duplicate download entry which is about to
  6254. download the same file other RequestGroup is downloading.
  6255. * src/RequestGroup.cc
  6256. * src/HttpResponseCommand.cc
  6257. * src/FtpNegotiationCommand.cc
  6258. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6259. Recalculates download progress when loading a control file,
  6260. if the piece length of DownloadContext is different from the one saved
  6261. in the control file. Currently in-flight pieces are ignored.
  6262. * src/DefaultBtProgressInfoFile.cc
  6263. * test/DefaultBtProgressInfoFileTest.cc
  6264. * src/Util.{h, cc}
  6265. * test/UtilTest.cc
  6266. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Do not rotate tiers in announce-list.
  6268. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6269. AnnounceList::allTiersFailed() used instead to detect whether all
  6270. tiers are tried and failed.
  6271. * test/DefaultBtAnnounceTest.cc
  6272. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6273. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6274. * test/AnnounceListTest.cc
  6275. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6276. clause. Catch RecoverableException instead of DlRetryEx instead.
  6277. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Implemented checksum validation feature(1 checksum for each file)
  6279. The validation takes place after the download.
  6280. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6281. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6282. * src/CheckIntegrityCommand.cc: Changed log message.
  6283. * src/Metalink2RequestGroup.cc: Set checksum to
  6284. SingleFileDownloadContext.
  6285. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6286. PieceHashCheckIntegrity class.
  6287. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6288. PieceHashCheckIntegrity class.
  6289. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6290. * src/IteratableValidator.h: New class.
  6291. * src/message.h
  6292. * src/CheckIntegrityEntry.{h, cc}
  6293. * src/IteratableChunkChecksumValidator.{h, cc}
  6294. * src/SingleFileDownloadContext.h
  6295. * src/DownloadCommand.cc
  6296. --allow-overwrite=true is no longer needed to check file integrity
  6297. before download in BitTorrent download.
  6298. * src/RequestGroup.cc (getInitialCommand)
  6299. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6300. throws exception.
  6301. * src/RequestGroupMan.cc (getInitialCommands)
  6302. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. urlencode the given url inside Request::parseUrl(...)
  6304. * src/Request.{h, cc}
  6305. * src/Util.{h, cc}
  6306. * test/RequestTest.cc
  6307. Removed #!metalink3! notation support because it is deleted from
  6308. the metalink specification.
  6309. * src/Request.{h, cc}
  6310. * test/RequestTest.cc
  6311. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Don't connect server before checking file integrity at startup, if
  6313. filesize and output file path are known.
  6314. * src/AbstractCommand.cc
  6315. * src/StreamFileAllocationEntry.cc
  6316. * src/Metalink2RequestGroup.cc
  6317. * src/RequestGroup.{h, cc}
  6318. * src/HttpResponseCommand.cc
  6319. * src/FtpNegotiationCommand.cc
  6320. Added DownloadFailureException. If it is thrown, RequestGroup should
  6321. halt.
  6322. * src/AbstractCommand.cc
  6323. * src/DownloadFailureException.h
  6324. * src/RequestGroup.cc
  6325. Catch RecoverableException, instead of DlAbortEx.
  6326. * src/RequestGroupMan.cc
  6327. * src/FillRequestGroupCommand.cc
  6328. * src/MetaFileUtil.cc
  6329. * src/IteratableChunkChecksumValidator.cc
  6330. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6331. getGID())
  6332. * src/CheckIntegrityCommand.cc
  6333. * src/message.h
  6334. Print gid instead of idx.
  6335. * src/RequestGroupMan.cc
  6336. Removed exception throwers declaration.
  6337. * src/DirectDiskAdaptor.{h, cc}
  6338. * src/SocketCore.{h, cc}
  6339. * src/MultiDiskAdaptor.{h, cc}
  6340. * src/HttpConnection.{h, cc}
  6341. * src/HttpResponse.{h, cc}
  6342. * src/DiskAdaptor.{h, cc}
  6343. * src/CopyDiskAdaptor.{h, cc}
  6344. * src/MultiDiskAdaptor.{h, cc}
  6345. * src/HttpHeaderProcessor.{h, cc}
  6346. * src/AbstractSingleDiskAdaptor.{h, cc}
  6347. * src/Util.{h, cc}
  6348. * test/UtilTest.cc
  6349. * src/DefaultDiskWriter.{h, cc}
  6350. * src/FtpConnection.{h, cc}
  6351. * src/AbstractDiskWriter.{h, cc}
  6352. Removed duplicate code.
  6353. * src/StreamCheckIntegrityEntry.cc
  6354. Removed unnecessary include.
  6355. * src/DiskWriter.h
  6356. Included Exception.h
  6357. * src/option_processing.cc
  6358. Included 2 files and added doc
  6359. * src/TrackerWatcherCommand.cc
  6360. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6361. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Changed CheckIntegrityEntry interface so that it can define
  6363. the action when all the chunk checksums are valid.
  6364. * src/CheckIntegrityEntry.h
  6365. * src/StreamCheckIntegrityEntry.{h, cc}
  6366. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6367. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6368. to exit rather than doing seeding. So, it would be good to toggle this
  6369. behavior.
  6370. * src/CheckIntegrityCommand.cc
  6371. * src/AbstractCommand.cc
  6372. * src/RequestGroup.cc
  6373. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Reflect the download length of in-flight pieces.
  6375. It makes the download length readout more precise.
  6376. * src/DefaultPieceStorage.{h, cc}
  6377. * test/DefaultPieceStorageTest.cc
  6378. * src/a2functional.h
  6379. * test/a2functionalTest.cc
  6380. Lower CPU load when --max-download-limit is used.
  6381. There is up and down in speed indicator when enabling
  6382. http-pipelining but a download goes well. I think the problem is that
  6383. because http-pipelining is enabled, DownloadCommand is created for
  6384. each segment and in its constructor, PeerStat::downloadStart() is
  6385. called. In PeerStat::downloadStart(), speed calculation object is
  6386. reseted, which makes download speed zero.
  6387. * src/DownloadCommand.cc
  6388. Rewritten using accumulate.
  6389. * src/RequestGroupMan.cc (calculateStat)
  6390. Code clearnup.
  6391. * src/FtpNegotiationCommand.cc
  6392. * src/HttpResponseCommand.cc
  6393. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Fixed: Can not resume: aria2 reports download already finished.
  6395. * src/AbstractCommand.{h, cc}
  6396. * src/HttpResponseCommand.cc
  6397. * src/FtpNegotiateCommand.cc
  6398. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Now a file is stored in the directory specified in .metalnk file
  6400. (file[@name]).
  6401. * src/Metalink2RequestGroup.cc
  6402. Create the directory structure when opening the file if it doesn't
  6403. exist.
  6404. * src/AbstractDiskWriter.cc
  6405. * src/Util.{h, cc}
  6406. * src/File.h
  6407. * test/UtilTest.cc
  6408. Removed file name comparison
  6409. * src/Metalink2RequestGroup.cc
  6410. * src/HttpResponseCommand.cc
  6411. Rewritten using Util::mkdirs()
  6412. * src/FileEntry.cc (setupDir)
  6413. * test/FileEntryTest.cc
  6414. Updated doc
  6415. * src/SingleFileDownloadContext.h
  6416. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Now SleepCommand dispatches nextCommand when halt is requested.
  6418. It avoids a possible long wait after hitting CTRL-C.
  6419. * src/SleepCommand.{h, cc}
  6420. * src/RequestGroupAware.{h, cc}
  6421. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6423. to open listen port, then remove the port number from the tracker
  6424. request.
  6425. * src/DefaultBtAnnounce.cc
  6426. * test/DefaultBtAnnounceTest.cc
  6427. * test/MockPieceStorage.h
  6428. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6429. them more testable.
  6430. * src/DefaultBtAnnounce.{h, cc}
  6431. * src/DefaultBtContext.{h, cc}
  6432. * src/Util.{h, cc}
  6433. * test/DefaultBtAnnounceTest.cc
  6434. * test/DefaultBtContextTest.cc
  6435. * test/UtilTest.cc
  6436. Added 'B' to upload bytes readout.
  6437. * src/ConsoleStatCalc.cc
  6438. Now the listen port for BitTorrent download is opened when it is
  6439. needed.
  6440. * src/DownloadEngineFactory.cc
  6441. * src/BtSetup.{h, cc}
  6442. * src/PeerListenCommand.{h, cc}
  6443. Now an exception thrown while parsing tracker response is now logged.
  6444. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6445. called, which means no retry is made in this case, assuming a tracker
  6446. has a problem.
  6447. * src/TrackerWatcherCommand.cc
  6448. Fixed: downloading a file whose length is unkown fails.
  6449. * src/DownloadCommand.cc
  6450. Simplified prepareForNextSegment()
  6451. * src/DownloadCommand.cc
  6452. Updated
  6453. * po/POTFILES.in
  6454. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Re-implemented a file listing for Metalink, which was dropped while
  6456. http/ftp/torrent integration was being implemented.
  6457. * src/MetalinkHelper.{h, cc}: New class.
  6458. * test/MetalinkHelperTest.cc
  6459. * src/main.cc
  6460. * src/Metalink2RequestGroup.cc
  6461. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Added the ability to display the detailed torrent file information.
  6463. Now -S option gives not only a file listing, but also total download
  6464. length, info hash, announce URI, piece length, the number of pieces,
  6465. and mode(single or multi-torrent).
  6466. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6467. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6468. KiB)
  6469. * test/UtilTest.cc
  6470. * src/main.cc
  6471. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Added ftp://USER:PASSWD@Servername automatic parsing.
  6473. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6474. _password. Recognize username and password in URI.
  6475. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6476. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6477. * src/RequestFactory.{h, cc}: Removed.
  6478. * src/AuthConfigFactory.{h, cc}: New class.
  6479. * src/FtpConnection.cc: Use AuthConfigFactory.
  6480. * src/HttpRequest.cc: Use AuthConfigFactory.
  6481. * test/HttpRequestTest.cc: Updated.
  6482. * test/RequestTest.cc: Updated.
  6483. * test/AuthConfigFactoryTest.cc: New class.
  6484. * test/RequestFactoryTest.cc: Removed.
  6485. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Use RequestGroup::allDownloadFinished() to decide whether the control
  6487. file should be removed or saved.
  6488. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6489. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6490. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Use File::renameTo()
  6492. * src/DefaultBtProgressInfoFile.cc
  6493. Added --no-file-allocation-limit command-line option.
  6494. * src/version_usage.cc
  6495. * src/option_processing.cc
  6496. * src/OptionHandlerFactory.cc
  6497. * src/RequestGroup.{h, cc}
  6498. * src/BtCheckIntegrityEntry.cc
  6499. * src/StreamCheckIntegrityEntry.cc
  6500. * src/prefs.h
  6501. * doc/aria2c.1.txt
  6502. * doc/aria2c.1
  6503. Now prealloc is the default value for --file-allocation option.
  6504. * src/version_usage.cc
  6505. * src/option_processing.cc
  6506. * doc/aria2c.1.txt
  6507. * doc/aria2c.1
  6508. Don't URL-encode user-agent.
  6509. * src/HttpRequest.cc
  6510. Updated translations
  6511. * po/LINGUAS: Added nl for Dutch translation.
  6512. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6513. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6514. * po/POTFILES.in: Updated.
  6515. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Added the ability to recognize url-list in a torrent file.
  6517. The retrieved URLs are attached to the corresponding FileEntry.
  6518. * src/DefaultBtContext.{h, cc}
  6519. * src/FileEntry.{h, cc}
  6520. * test/DefaultBtContextTest.cc
  6521. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6523. after the download finishes.
  6524. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6526. the data smaller than block length.
  6527. A block length can be specified by constructor's argument.
  6528. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6529. Get a missing piece in the range of given FileEntry. This function is
  6530. not used in the program yet.
  6531. * src/Util.h: Added some macros.
  6532. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Added HTTP/1.1 keep alive and pipelining support.
  6534. See --enable-http-keep-alive and --enable-http-pipelining option.
  6535. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6536. Segment.
  6537. * src/HttpDownloadCommand.{h, cc}
  6538. * src/OptionHandlerFactory.cc
  6539. * src/HttpConnection.{h, cc}
  6540. * src/version_usage.cc
  6541. * src/HttpInitiateConnectionCommand.cc
  6542. * src/FtpInitiateConnectionCommand.cc
  6543. * src/Segment.h
  6544. * src/HttpRequestCommand.{h, cc}
  6545. * src/option_processing.cc
  6546. * src/prefs.h
  6547. * src/HttpResponseCommand.cc
  6548. * src/SegmentMan.{h, cc}
  6549. * src/FtpNegotiateCommand.cc
  6550. * src/HttpProxyResponseCommand.cc
  6551. * src/Request.cc
  6552. * src/HttpRequest.cc
  6553. * src/DownloadCommand.cc
  6554. * test/HttpRequestTest.cc
  6555. * test/RequestTest.cc
  6556. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6558. finished.
  6559. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6561. catching it inside the method.
  6562. When no file entry is found in a metalink without querying user
  6563. preferences, throw the exception with the error message that suggests
  6564. metalink file is probably broken.
  6565. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6566. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6568. processed.
  6569. * src/RequestGroupMan.cc (removeStoppedGroup)
  6570. Added debug message.
  6571. * src/BtPostDownloadHandler.cc
  6572. * src/MetalinkPostDownloadHandler.cc
  6573. * src/PostDownloadHandler.{h, cc}
  6574. * src/RequestGroup.cc
  6575. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6577. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6579. stops and there are any unfinished or in-progress downloads.
  6580. Added the legend of "stat".
  6581. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. Throw exception when chunck checksum verification fails.
  6583. * src/DownloadCommand.cc (validatePieceHash): New function.
  6584. * src/PiecedSegment.{h, cc} (clear): New function.
  6585. * src/GrowSegment.{h, cc} (clear): New function.
  6586. * src/Segment.h (clear): New function.
  6587. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6588. * test/SegmentTest.cc
  6589. * test/GrowSegmentTest.cc
  6590. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Do not send referer when redirected.
  6592. * src/Request.cc (redirectUrl)
  6593. * test/RequestTest.cc
  6594. * test/HttpRequestTest.cc
  6595. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Implemented BitTorrent/http/ftp integrated download.
  6597. I've rewritten lots of files and now some headers have forward
  6598. class declarations to reduce compile time.
  6599. The implementation is extremely alpha stage, I recommend to use this
  6600. for testing purpose only.
  6601. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Fixed the compilation error on 64bit platform.
  6603. * test/HttpHeaderProcessorTest.cc
  6604. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Merged Ross's patch that fixes compilation problem in MinGW
  6606. * test/DefaultBtProgressInfoFileTest.cc
  6607. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Updated fr.po by sebone
  6609. * po/fr.po
  6610. Updated man page.
  6611. * doc/aria2c.1.txt
  6612. * Release 0.11.3
  6613. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6615. failure in Metalink.
  6616. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6617. Automatically save *.aria2 control file of http/ftp download in every
  6618. 60 seconds.
  6619. * src/AutoSaveCommand.{h, cc}: New class.
  6620. * src/TimeBasedCommand.{h, cc}: New class.
  6621. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6622. Disable parameterized URI support by default. Added -P option to
  6623. enable the feature.
  6624. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6625. * src/OptionHandlerFactory.cc
  6626. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6627. Updated Japanese translation.
  6628. * po/ja.po
  6629. Updated man page.
  6630. * doc/aria2c.1.txt
  6631. * Release 0.11.3-rc
  6632. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6634. it is successful, then renamed to *.aria2.
  6635. This prevents *.aria2 file from being truncated or corrupted when
  6636. file system becomes out of space.
  6637. * src/DefaultBtProgressInfoFile.cc (save)
  6638. * src/SegmentMan.cc (save)
  6639. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6640. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Reduced the fragmentation of bitfield in http/ftp download.
  6642. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6643. * test/BitfieldManTest.cc
  6644. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Added the ability to disable segmented download in .metalink.
  6646. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6647. 'url' tag.
  6648. * src/MetalinkEntry.{h, cc}
  6649. * src/RequestResource.{h, cc}
  6650. * src/MetalinkRequestInfo.cc
  6651. * src/Xml2MetalinkProcessor.cc
  6652. * test/Xml2MetalinkProcessorTest.cc
  6653. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Added parameterized URI support.
  6655. * src/main.cc: -Z option added.
  6656. * src/OptionHandlerFactory.cc
  6657. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6658. * src/PStringDatum.h: New class.
  6659. * src/PStringSegment.{h,cc}: New class.
  6660. * src/PStringNumLoop.h: New class.
  6661. * src/PStringSelect.h: New class.
  6662. * src/NumberDecorator.h: New class.
  6663. * src/FixedWidthNumberDecorator.h: New class.
  6664. * src/AlphaNumberDecorator.h: New class.
  6665. * src/PStringVisitor.h: New class.
  6666. * src/PStringBuildVisitor.{h,cc}: New class.
  6667. * src/ParameterizedStringParser.{h,cc}: New class.
  6668. * src/Util.{h,cc}
  6669. (isNumber): New function.
  6670. (isLowercase): New function.
  6671. (isUppercase): New function.
  6672. (alphaToNum): New function.
  6673. * test/ParameterizedStringParserTest.cc: New class.
  6674. * test/AlphaNumberDecoratorTest.cc: New class.
  6675. * test/PStringBuildVisitorTest.cc: New class.
  6676. * test/UtilTest.cc
  6677. (testIsNumber): New function.
  6678. (testIsLowercase): New function.
  6679. (testIsUppercase): New function.
  6680. (testAlphaToNum): New function.
  6681. Added '\n' after the error message
  6682. * src/RequestInfo.h (printDownloadAbortMessage)
  6683. Added auto file renaming feature in http(s)/ftp download.
  6684. * src/main.cc: Added --auto-file-renaming command-line option.
  6685. * src/OptionHandlerFactory.cc
  6686. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6687. * src/RequestGroup.{h, cc}
  6688. (shouldCancelDownloadForSafety): Rewritten
  6689. (tryAutoFileRenaming): New function.
  6690. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6691. * src/HttpResponseCommand.cc
  6692. (executeInternal): Removed the call to RequestGroupMan::
  6693. isSameFileBeingDownloaded()
  6694. * src/FtpNegotiateCommand.cc
  6695. (recvSize): Removed the call to RequestGroupMan::
  6696. isSameFileBeingDownloaded()
  6697. * test/RequestGroupTest.cc: New class.
  6698. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6700. IO.
  6701. * src/DefaultBtProgressInfoFile.cc
  6702. * src/MetaFileUtil.cc
  6703. * src/SimpleLogger.cc
  6704. * src/SegmentMan.cc
  6705. * src/Util.cc
  6706. * src/Platform.cc
  6707. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6709. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6711. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6712. Fixed the bug that prevents file allocation is not done when
  6713. dowloading multi-torrent file.
  6714. * src/AbstractDiskWriter.cc (openFile)
  6715. Increase the maximum number of -j option from 15 to 45.
  6716. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6717. Added fr.po, thanks to Charles Landemaine.
  6718. * po/fr.po
  6719. * po/LINGUAS
  6720. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6721. gcc 3.4.4 support:
  6722. * src/DefaultBtContext.cc: int32_t -> int
  6723. * src/main.cc: int -> int32_t, int32_t -> int
  6724. * src/messageDigest.h: uint32_t -> unsigned int
  6725. * src/NameResolver.h: int32_t -> int
  6726. * src/PeerConnection.cc: int -> int32_t
  6727. * src/SpeedCalc.cc: int32_t -> int
  6728. * src/TrackerUpdateCommand.h: int -> int32_t
  6729. * src/Util.cc: int32_t -> int
  6730. * src/Util.h: int32_t -> int
  6731. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6732. * test/AnnounceListTest.cc: int -> int32_t
  6733. * test/ChunkedEncodingTest.cc: int -> int32_t
  6734. * test/DataTest.cc: int -> int32_t
  6735. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6736. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6737. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6738. * test/FeatureConfigTest.cc: int -> int32_t
  6739. * test/MetalinkEntryTest.cc: int -> int32_t
  6740. * test/MockBtRequestFactory.h: int -> int32_t
  6741. * test/MockPieceStorage.h: int -> int32_t
  6742. * test/OptionTest.cc: int -> int32_t
  6743. * test/RequestTest.cc: int -> int32_t
  6744. * test/SegmentManTest.cc: int -> int32_t
  6745. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6746. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6747. Move sleep functions to Util class:
  6748. * src/Util.cc
  6749. (sleep): New function.
  6750. (usleep): New function.
  6751. * src/DownloadCommand.cc: sleep -> Util::sleep
  6752. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6753. MinGW build enhancements. The following files are added:
  6754. * src/timegm.{c,h}
  6755. Changes to support the above new files:
  6756. * configure.ac
  6757. * src/Makefile.am
  6758. * src/a2time.h
  6759. * src/Util.cc:
  6760. * src/strptime.c: Added support for %Z option.
  6761. Fixed MinGW non-blocking bug.
  6762. * src/SocketCore.cc
  6763. * src/HttpRequestCommand.cc
  6764. Miscellenous build fixes/enhancements.
  6765. * configure.ac: Added summary report.
  6766. * src/Platform.h: Tweaked #include's.
  6767. * src/a2netcompat.h: Tweaked #include's.
  6768. * src/strptime.h: Tweaked #include's.
  6769. * src/gai_strerror.c: Tweaked #include's.
  6770. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  6771. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  6772. * src/gettimeofday.h: Added HAVE_CONFIG_H
  6773. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Increased the initial connection size in BitTorrent download to 40.
  6775. * src/BtRuntime.h
  6776. Added the usage message of --peer-id-prefix option.
  6777. * src/main.cc
  6778. * Release 0.11.2
  6779. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. MessageDigestHelper is introduced in order to simplify the use
  6781. of message digest. Removed repeated code.
  6782. The message digest algorithm is now specified by string, like "sha1",
  6783. "md5".
  6784. * src/messageDigest.{h, cc}
  6785. * src/MessageDigestHelper.{h, cc}: New class.
  6786. * src/DefaultPieceStorage.cc
  6787. * src/DefaultBtContext.{h, cc}
  6788. (computeFastSet): New function.
  6789. (setInfoHash): Added for unit testing.
  6790. (setNumPieces): Added for unit testing.
  6791. * src/DefaultBtInteractive.cc
  6792. * src/BtPieceMessage.cc
  6793. * src/Peer.cc
  6794. * src/Checksum.h
  6795. * src/message.h
  6796. * src/IteratableChecksumValidator.h
  6797. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  6798. inside it.
  6799. * src/SegmentMan.{h, cc}
  6800. (checkIntegrity): Removed.
  6801. * src/IteratableChunkChecksumValidator.{h, cc}
  6802. * src/Util.h
  6803. (sha1Sum): Removed.
  6804. (simpleMessageDigest): Removed.
  6805. (fileChecksum): Removed.
  6806. (computeFastSet): Removed.
  6807. * src/ShaVisitor.cc
  6808. * src/ChunkChecksum.h
  6809. * src/DownloadCommand.cc
  6810. Removed messageDigest virtual functions.
  6811. * src/MultiDiskAdaptor.{h, cc}
  6812. * src/DiskAdaptor.h
  6813. * src/ByteArrayDiskWriter.h
  6814. * src/DiskWriter.h
  6815. * src/DiskAdaptorWriter.h
  6816. * src/AbstractSingleDiskAdaptor.{h, cc}
  6817. * src/AbstractDiskWriter.{h, cc}
  6818. Fixed comilation error when message digest is disabled.
  6819. * src/MetalinkEntry.{h, cc}
  6820. * src/MetalinkRequestInfo.cc
  6821. Removed srandom and random.
  6822. * src/SimpleRandomizer.h
  6823. Added size() virtual function to DiskAdaptor
  6824. * src/MultiDiskAdaptor.h
  6825. Fixed the bug that causes that files are not opened correctly in
  6826. multi-file torrent.
  6827. * src/TorrentRequestInfo.cc
  6828. * src/MultiDiskAdaptor.cc
  6829. Added SHA256 support
  6830. * src/messageDigest.cc
  6831. * src/Xml2MetalinkProcessor.cc
  6832. Show supported message digest algorithms
  6833. * src/main.cc
  6834. Updated contact info.
  6835. * src/main.cc
  6836. Applied Ross's patch
  6837. * src/a2netcompat.h
  6838. * src/main.cc
  6839. Fixed the bug that prevents a remote metalink from not being processed
  6840. even if '-o foo.metalink' is specified.
  6841. * src/MetalinkRequestInfo.cc
  6842. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. Merged Dan's patch:
  6844. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6845. Use va_copy to avoid core dump on amd64:
  6846. * src/SimpleLogger.cc
  6847. Updated contact info.
  6848. * src/main.cc
  6849. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6850. digest is not available.
  6851. * src/MetalinkEntry.h
  6852. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Make a2netcompat.h include a2io.h to fix compilation error:
  6854. * src/a2netcompat.h
  6855. * src/SocketCore.cc: Removed include of a2io.h
  6856. * src/Util.cc: Removed include of a2io.h
  6857. Gather time related functions to a2time.h:
  6858. * src/a2time.h: New file.
  6859. * src/DefaultPeerStorage.cc
  6860. * src/SimpleLogger.cc
  6861. * src/Util.{h, cc}
  6862. * src/SimpleRandomizer.h
  6863. * src/TimeA2.{h,cc}
  6864. * src/DownloadCommand.cc
  6865. * src/main.cc
  6866. Removed #ifdef __MINGW32__ since gai_strerror is included in
  6867. a2netcompat.h:
  6868. * src/NameResolver.cc
  6869. Fixed compilation error without openssl:
  6870. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  6871. Added default block to suppress compiler warnings:
  6872. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  6873. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  6874. MinGW build enhancements. The following files are added:
  6875. * src/gai_strerror.{c,h}
  6876. * src/gettimeofday.{c,h}
  6877. Changes to support the above new files:
  6878. * configure.ac
  6879. * src/Makefile.am
  6880. * src/a2netcompat.h
  6881. * src/TimeA2.cc
  6882. * src/DefaultPeerStorage.cc
  6883. * src/NameResolver.cc: removed mingw_strerror() function.
  6884. * src/SocketCore.cc: removed mingw_strerror() function.
  6885. Miscellaneous MinGW build fixes.
  6886. * src/a2io.h: Use _lseeki64() instead of lseek()
  6887. * src/common.h
  6888. * src/DefaultFileAllocator.cc
  6889. * src/GlowFileAllocator.cc
  6890. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  6891. * src/NameResolver.cc
  6892. (callback): Changed int32_t to int.
  6893. (resolve): Changed int32_t to int.
  6894. * src/Platform.cc
  6895. * src/Platform.h
  6896. * test/MultiDiskWriterTest.cc
  6897. * test/PeerMessageUtilTest.cc
  6898. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  6899. Other enhancements and fixes.
  6900. * src/HttpRequestCommand.cc
  6901. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  6902. * src/SocketCore.cc:
  6903. (error): New function to abstract errno/WSAGetLastError().
  6904. (errorMsg): New function to abstract errno/WSAGetLastError().
  6905. (initiateSecureConnection): Added more detailed error reporting.
  6906. * src/SocketCore.h: Added private variable blocking, to allow
  6907. proper handling of OpenSSL psuedo-errors.
  6908. * src/message.h
  6909. (EX_SSL_INIT_FAILURE)
  6910. (EX_SSL_IO_ERROR)
  6911. (EX_SSL_PROTOCOL_ERROR)
  6912. (EX_SSL_UNKNOWN_ERROR)
  6913. (EX_SSL_CONNECT_ERROR)
  6914. (EX_SOCKET_BLOCKING)
  6915. (EX_SOCKET_NONBLOCKING)
  6916. (EX_SOCKET_UNKNOWN_ERROR)
  6917. * src/Util.cc
  6918. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  6919. reserved name.
  6920. (httpGMT): Fixed typo.
  6921. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Merged Ross's win32 patch(manually)
  6923. In the course of merging, following files are added.
  6924. * src/strptime.{h,c}
  6925. * src/libgen.{h,c}
  6926. * src/inet_aton.{h,c}
  6927. * src/Platform.{h,cc}
  6928. * src/localtime_r.{h,c}
  6929. * src/getaddrinfo.{h,c}
  6930. I've gethered network related things, and put them to following file:
  6931. * src/a2netcompat.h
  6932. Also io related things are put to following file:
  6933. * src/a2io.h
  6934. Changed %lld to %s because mingw32 doesn't recognize %lld.
  6935. * src/message.h
  6936. (MSG_ALLOCATION_COMPLETED)
  6937. (EX_TOO_LARGE_FILE)
  6938. (EX_SIZE_MISMATCH)
  6939. (EX_FILE_OFFSET_OUT_OF_RANGE)
  6940. (EX_INVALID_CHUNK_CHECKSUM)
  6941. (EX_INVALID_RANGE_HEADER)
  6942. * src/FileAllocationCommand.cc
  6943. * src/HttpResponse.cc
  6944. * src/RequestGroup.cc
  6945. * src/MultiDiskAdaptor.cc
  6946. * src/OptionHandlerImpl.h
  6947. * src/HttpResponseCommand.cc
  6948. * src/FtpNegotiateCommand.cc
  6949. * src/IteratableChecksumValidator.cc
  6950. * src/SegmentMan.cc
  6951. * src/ChunkChecksumValidator.cc
  6952. Added Randomizer::getRandomNumber(long int)
  6953. * src/Randomizer.h (getRandomNumber)
  6954. * src/SimpleRandomizer.h (getRandomNumber)
  6955. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  6956. * src/Util.cc (randomAlpha): Use this new function.
  6957. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Converted int's to in32_t. long long int's are also converted to
  6959. int64_t
  6960. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6961. Fixed the bug that prevents cookies from being sent to the server
  6962. if the domain of cookie is FQDN and starts with ".".
  6963. * src/Cookie.cc (match)
  6964. To add the ability to change peer id.
  6965. * src/DefaultBtContext.h
  6966. (_peerIdPrefix): New variable
  6967. (setPeerIdPrefix): New function.
  6968. * src/torrentRequestInfo.cc
  6969. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6970. DefaultBtContext.
  6971. * src/main.cc (main): Added peer-id-prefix command-line option.
  6972. The usage message is not added yet.
  6973. * src/DefaultBtContext.cc
  6974. (generatePeerId): Use _peerIdPrefix.
  6975. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6976. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Fixed the bug that prevents filename in content-disposition from
  6978. being retrieved when filename is not quoted.
  6979. * src/Util.cc (getContentDispositionFilename)
  6980. Fixed the bug that causes infinate loop and memory leak when file open
  6981. operation failed.
  6982. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6983. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Fixed the bug that causes segfault when all URIs specified are
  6985. unsupported.
  6986. * src/RequestGroupMan.cc (getInitialCommands)
  6987. Check if RequestGroup::createNextCommand() returns empty list of
  6988. commands.
  6989. * src/RequestGroup.cc (createNextCommand)
  6990. Change log level from info to error so that users can notice that
  6991. an error occurred.
  6992. Fixed the bug that causes segfault when a zero-sized file is
  6993. downloaded.
  6994. * src/BitfieldMan.cc (isAllBitSet)
  6995. Return true if bitfieldLength is 0.
  6996. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. * src/main.cc
  6998. (showUsage): Added 3 usage examples for metalink download.
  6999. Replace MetalinkChunkChecksum with ChunkChecksum.
  7000. * src/MetalinkChunkChecksum.h: Removed.
  7001. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7002. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7003. * src/Xml2MetalinkProcessor.cc
  7004. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7005. * src/MetalinkRequestInfo.cc (execute)
  7006. * Release 0.11.1
  7007. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. Reads URIs from stdin when "-i -" is specified.
  7009. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7010. * src/UriListParser.h, src/UriListParser.cc: New class.
  7011. * src/StreamUriListParser.h: New class.
  7012. * src/FileUriListParser.h: New class.
  7013. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7014. instead of UriFileListParser.
  7015. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Made console readout more readable.
  7017. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7018. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Fix the bug that causes -s option not to work.
  7020. * src/main.cc (main)
  7021. * src/a2algo.h: New file.
  7022. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Create directory structure specified in metalink file.
  7024. * src/RequestGroup.h, src/RequestGroup.cc
  7025. (initAndOpenFile): Create a directory to store files if it does not
  7026. exist.
  7027. (getDir): New function.
  7028. Added ETA and download speed for an individual file to readout.
  7029. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7030. * src/RequestGroup.h
  7031. (calculateDownloadSpeed): New function.
  7032. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Made -S option work with metalink file and provided selective download
  7034. to metalink.
  7035. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7036. (filename): Removed.
  7037. (file): New variable.
  7038. (size): Removed.
  7039. (operator=): Updated.
  7040. (getPath): New function.
  7041. (getLength): New function.
  7042. (toFileEntry): New function.
  7043. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7044. (execute): Use toStream.
  7045. (showFileEntry): Removed.
  7046. * src/MetalinkRequestInfo.h
  7047. (targetFiles): New variable.
  7048. (setTargetFiles): New variable.
  7049. * src/MetalinkRequestInfo.cc
  7050. (execute): Added the ability to print file information included in
  7051. a metalink file.
  7052. Added selective download mode to metalink.
  7053. * src/main.cc
  7054. (showUsage): Updated to denote that -S and --select-file options are
  7055. applicable to metalink.
  7056. * src/FileEntry.h
  7057. (operator=): New function.
  7058. (getBasename): New function.
  7059. (getDirname): New function.
  7060. * src/Util.h, src/Util.cc
  7061. (toStream): New function.
  7062. * src/Xml2MetalinkProcessor.cc: Updated.
  7063. Made aria2 work with metalink with directory structure.
  7064. * src/File.h, src/File.cc
  7065. (getBasename): New function.
  7066. (getDirname): New function.
  7067. * src/RequestGroup.h, src/RequestGroup.cc
  7068. (_topDir): New variable.
  7069. (setTopDir): New function.
  7070. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7071. Rewrote HTTP header parsing with stringstream.
  7072. * src/HttpConnection.h, src/HttpConnection.cc
  7073. (HttpRequestEntry): New class.
  7074. (headerBuf): Removed.
  7075. (headerBufLength): Removed.
  7076. (outstandingHttpRequests): Now its element type is
  7077. HttpRequestEntryHandle.
  7078. (findEndOfHeader): Removed.
  7079. (receiveResponse): Rewritten.
  7080. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7081. Updated doc for -j option to notice that it should be used with -i
  7082. option.
  7083. * src/main.cc (showUsage)
  7084. Removed unused classes.
  7085. * src/RequestInfo.h
  7086. (FileInfo): Removed.
  7087. (checksum): Removed.
  7088. (fileInfo): Removed.
  7089. (setChecksum): Removed.
  7090. (getChecksum): Removed.
  7091. (getFileInfo): Removed.
  7092. Use ISO units.
  7093. * src/ConsoleDownloadEngine.cc
  7094. * src/TorrentConsoleDownloadEngine.cc
  7095. * src/Util.cc (abbrevSize)
  7096. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Added the default listening ports to the help message.
  7098. * src/main.cc (showUsage)
  7099. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. Reduce the number of calls to gettimeofday to lower CPU load.
  7101. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7102. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7103. * src/Peer.h (calculateUploadSpeed): New function.
  7104. (calculateDownloadSpeed): New function.
  7105. * src/DefaultPeerStorage.cc
  7106. (CalculateStat): Added _now variable.
  7107. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7108. and Peer::calculateUploadSpeed(const struct timeval&)
  7109. Drop connection if no request or piece message is exchanged in
  7110. a certain interval.
  7111. * src/DefaultBtInteractive.h
  7112. (btRuntime): New variable.
  7113. (inactiveCheckPoint): New variable.
  7114. (checkActiveInteraction): New function.
  7115. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7116. request or piece message is received.
  7117. (checkActiveInteraction): New function.
  7118. (doInteractionProcessing): Call checkActiveInteraction.
  7119. Fixed the bug that causes remote Metalink and Torrent files are not
  7120. processed.
  7121. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7122. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Changed format of log file.
  7124. * src/SimpleLogger.cc
  7125. * Release 0.11.0
  7126. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. * src/AbstractCommand.cc
  7128. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7129. MSG_MAX_TRY from error to info.
  7130. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7131. * src/message.h
  7132. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7133. (MSG_DOWNLOAD_ABORTED): Added %s.
  7134. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7135. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7136. * src/PeerAbstractCommand.cc
  7137. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7138. * src/Request.h
  7139. (cookieBox): Made ShardHandle.
  7140. * src/RequestGroup.h, src/RequestGroup.cc
  7141. (createNextCommandWithAdj): New function.
  7142. * src/FileAllocationCommand.cc
  7143. (executeInternal): Use createNextCommandWithAdj().
  7144. * src/CheckIntegrityCommand.cc
  7145. (executeInternal): Use createNextCommandWithAdj().
  7146. Added --load-cookies command-option.
  7147. * src/OptionHandlerFactory.cc
  7148. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7149. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7150. Now aria2 can handle cookie's expiration date.
  7151. * src/Cookie.h (expires): Changed its type to time_t.
  7152. * src/main.cc: Added --load-cookies command-line option.
  7153. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7154. * src/Util.h, src/Util.cc (httpGMT): New function.
  7155. * src/Request.cc (Request): Initialize cookieBox using
  7156. CookieBoxFactory.
  7157. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7158. * src/CookieParser.h, src/CookieParser.cc: New class.
  7159. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7160. * src/HttpResponseCommand.cc
  7161. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7162. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7163. download.
  7164. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Added -j command-line option.
  7166. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7167. * src/main.cc
  7168. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7169. Rewritten using stringstream.
  7170. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7171. Rewritten using stringstream.
  7172. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Make download size shown in MB, KB.
  7174. * src/ConsoleDownloadEngine.h (sendStatistics)
  7175. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7176. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7177. Accept incoming connections if download rate is low.
  7178. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7179. (_lowestSpeedLimit): New variable.
  7180. (setLowestSpeedLimit): New function.
  7181. (execute): Accept incoming connections if download rate is low.
  7182. MAX_PEERS is ignored in this case.
  7183. Disable PREF_OUT in multiple concurrent download:
  7184. * src/RequestGroup.h, src/RequestGroup.cc
  7185. (setUserDefinedFilename): New function.
  7186. * src/DownloadEngineFactory.cc
  7187. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7188. concurrent download.
  7189. * src/DefaultSegmentManFactory.cc
  7190. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7191. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7193. Added its overloaded method.
  7194. * src/RequestGroup.h
  7195. (_numConcurrentCommand): New variable.
  7196. (setNumConcurrentCommand): New function.
  7197. * src/RequestGroup.cc
  7198. Abort download if same file is being downloaded concurrently.
  7199. * src/RequestGroup.h, src/RequestGroupMan.cc
  7200. (isSameFileBeingDownloaded): New function.
  7201. * src/HttpResponseCommand.cc (executeInternal)
  7202. * src/FtpNegotiateCommand.cc (recvSize)
  7203. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7204. * main.cc: Added help message for -i option.
  7205. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7207. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7208. * src/MetalinkEntry.h
  7209. (checksum): Changed to ChecksumHandle
  7210. * src/MetalinkRequestInfo.cc
  7211. (checksum): Changed to ChecksumHandle
  7212. * src/File.cc
  7213. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7214. * src/common.h
  7215. (DIR_OPEN_MODE): New definition
  7216. * src/RequestGroup.cc
  7217. (prepareForNextAction): Added an argument.
  7218. * src/message.h
  7219. (MSG_GOOD_CHECKSUM): New definition
  7220. (MSG_BAD_CHECKSUM): New definition
  7221. * src/HttpResponseCommand.cc
  7222. (handleDefaultEncoding): Continue download sequence in new
  7223. non-segmented download.
  7224. * src/FileAllocationEntry.h
  7225. (_nextDownloadCommand): New variable.
  7226. * src/DownloadCommand.cc
  7227. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7228. available.
  7229. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7230. * src/IteratableChecksumValidator.h,
  7231. src/IteratableChecksumValidator.cc: New class.
  7232. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7233. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Change file mode to 666:
  7235. * src/common.h (OPEN_MODE): New definition.
  7236. * src/File.cc
  7237. * src/Util.cc
  7238. * src/Directry.cc
  7239. * src/AbstractDiskWriter.cc
  7240. Change the level of log message "download aborted" to debug:
  7241. * src/PeerAbstractCommand.cc (execute)
  7242. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7243. * src/TrackerWatcherCommand.cc
  7244. (createCommand): Sleep some seconds after request failed.
  7245. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7246. then abort tracker request.
  7247. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. * Added the simultaneous download feature.
  7249. * src/main.cc: Print "Exception caught: " when exception is caught.
  7250. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7251. * src/ActivePeerConnectionCommand.cc
  7252. * src/PeerInteractionCommand.cc
  7253. * src/BtRuntime.h
  7254. (cuidCounter): Removed.
  7255. (getNewCuid): Removed.
  7256. * src/DownloadEngineFactory.cc
  7257. * src/PeerListenCommand.cc
  7258. * src/TrackerUpdateCommand.cc
  7259. * src/PeerInitiateConnectionCommand.cc
  7260. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. * src/PeerAbstractCommand.cc
  7262. (onAbort): Call PeerStorage::returnPeer()
  7263. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7264. (incomingPeers): New variable.
  7265. (addIncomingPeer): New function.
  7266. (returnPeer): New function.
  7267. (onErasingPeer): New function.
  7268. (addPeer): push_back -> push_front
  7269. (getActivePeers): Rewritten.
  7270. (calculateStat): Rewritten.
  7271. * src/PeerStorage.h
  7272. (TransferStat::copy): New function.
  7273. (TransferStat::TransferStat): New function.
  7274. (TransferStat::operator=): New function.
  7275. (addIncomingPeer): New function.
  7276. (returnPeer): New function.
  7277. * src/PeerListenCommand.cc
  7278. (execute): Use PeerStorage::addIncomingPeer() instead of
  7279. Peer::addPeer().
  7280. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Connect to a peer actively when download speed is lower than specified
  7282. speed in torrent download:
  7283. * src/ActivePeerConnectionCommand.h: New class.
  7284. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7286. * src/main.cc: Fixed the bug that prevents download if .netrc
  7287. doesn't exist.
  7288. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. To cache resolved hostname:
  7290. * src/AbstractCommand.h, src/AbstractCommand.cc
  7291. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7292. Added dns cache.
  7293. * src/FtpInitiateConnectionCommand.cc
  7294. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7295. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7296. NameResolver working without ares.
  7297. * src/TorrentRequestInfo.cc
  7298. (execute): Don't cache dns in torrent download.
  7299. * src/HttpInitiateConnectionCommand.cc
  7300. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7301. * src/DNSCache.h: New class.
  7302. * src/UrlRequestInfo.cc
  7303. (execute): Use dns cache.
  7304. In http request, suppress port number in http request header if port
  7305. is 80 or 443:
  7306. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7307. request header if port is 80 or 443.
  7308. (createProxyRequest): Allways send port number.
  7309. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7310. To add the command-line option which disables netrc support:
  7311. * src/OptionHandlerFactory.cc
  7312. (createOptionHandlers): Added PREF_NO_NETRC.
  7313. * src/main.cc: Added -n option.
  7314. * src/prefs.h (PREF_NO_NETRC): New definition.
  7315. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7316. V_TRUE.
  7317. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7318. is V_FALSE. This may get configurable in the future release.
  7319. To clear peer's error status by time basis:
  7320. * src/PeerAbstractCommand.cc
  7321. (onAbort): Call Peer::startBadCondition().
  7322. * src/Peer.h, src/Peer.cc
  7323. (error): Removed.
  7324. (_badConditionStartTime): New variable.
  7325. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7326. (startBadCondition): New function.
  7327. (isGood): New function.
  7328. * src/DefaultPeerStorage.cc
  7329. (addPeer): Use Peer::isGood().
  7330. (FindFinePeer): Use Peer::isGood().
  7331. Always include port number in http request header:
  7332. * src/HttpRequest.cc (getHostText): Always include port number in
  7333. http request header.
  7334. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. To the ability to read options from a config file:
  7336. * src/main.cc: Command-line parameter validation is delegated to
  7337. OptionHandler class.
  7338. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7339. * src/Option.h, src/Option.cc (clear): New function.
  7340. * src/OptionParser.h, src/OptionParser.cc: New class.
  7341. * src/OptionHandler.h: New class.
  7342. * src/NameMatchOptionHandler.h: New class.
  7343. * src/OptionHandlerImpl.h: New classes.
  7344. * src/prefs.h: '_' -> '-'
  7345. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7346. (FTP_PASV): New definition.
  7347. * src/Util.h, src/Util.cc (getRealSize): New function.
  7348. To disable netrc support if .netrc file does not have correct
  7349. permissions:
  7350. * src/File.h, src/File.cc (mode): New function.
  7351. To prevent confidential information to be logged:
  7352. * src/HttpConnection.h, src/HttpConnection.cc
  7353. (eraseConfidentialInfo): New function.
  7354. (sendRequest): Call eraseConfidentialInfo().
  7355. (sendProxyRequest): Call eraseConfidentialInfo().
  7356. * src/main.cc: Validate permissions of .netrc file.
  7357. To add --user-agent command-line option:
  7358. * src/main.cc: Added new command line option: --user-agent
  7359. * src/prefs.h (PREF_USER_AGENT): New definition.
  7360. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7361. parameter to HttpRequest object.
  7362. * src/AbstractProxyRequestCommand.cc
  7363. (executeInternal): Set user-agent option parameter to HttpRequest
  7364. object.
  7365. Marged the patches from Dan Fandrich.
  7366. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Use filename and size from Metalink file instead of sending HEAD
  7368. request:
  7369. * src/UrlRequestInfo.h
  7370. (_filename): New variable.
  7371. (_totalLength): New variable.
  7372. (setTotalLength): New variable.
  7373. (setFilename): New variable.
  7374. * src/MetalinkRequestInfo.cc
  7375. (execute): Set filename and size to UrlRequestInfo
  7376. * src/UrlRequestInfo.cc
  7377. (execute): Use filename and size from Metalink instead of seding
  7378. HEAD request to servers.
  7379. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. To add the ability to resume downloading a partially downloaded file
  7381. which is downloaded from the beginning:
  7382. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7383. takes this role.
  7384. * src/main.cc: Added -c option.
  7385. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7386. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7387. * src/prefs.h (PREF_CONTINUE): New definition.
  7388. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7389. * src/DefaultDiskWriter.cc
  7390. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7391. * src/AbstractDiskWriter.h
  7392. (glowFileAllocator): New variable.
  7393. * src/AbstractDiskWriter.cc
  7394. (openExistingFile): Now preallocate file space from the end of the
  7395. existing file if totalLength argument is specified and grater than 0.
  7396. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7397. to download exists in local, continue the download of the file.
  7398. --allow-overwrite=true is assumed in this context.
  7399. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7400. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7401. Throw exception if --check-integrity=true is specified but chunk
  7402. checksums are not provided:
  7403. * src/UrlRequestInfo.cc
  7404. Do not print URLs to stdout:
  7405. * src/UrlRequestInfo.cc
  7406. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. * src/Request.h: Use AuthResolver to get authentication information.
  7408. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7409. set to RequestFactory object.
  7410. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7411. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7412. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7413. create Request object.
  7414. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7415. To integrate Netrc into exsiting classes:
  7416. * src/Request.h
  7417. (_userDefinedAuthConfig): New variable.
  7418. (findNetrcAuthenticator): New function.
  7419. (segment): Removed.
  7420. (setUserDefinedAuthConfig): New function.
  7421. (resolveHttpAuthConfigItem): New function.
  7422. (resolveFtpAuthConfigItem): New function.
  7423. (resolveHttpProxyAuthConfigItem): New function.
  7424. * src/HttpRequest.h
  7425. (authConfig): Removed.
  7426. (proxyAuthConfig): Removed.
  7427. (setAuthConfig): Removed.
  7428. (setProxyAuthConfig): Removed.
  7429. * src/UrlRequest.h
  7430. (getHeadResult): Added a parameter: authConfigHandle
  7431. * src/common.h
  7432. (SingletonHolder.h): New include.
  7433. * src/main.cc
  7434. (Netrc.h): New include.
  7435. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7436. Added initial value of PREF_NETRC_PATH.
  7437. Added the initialization of netrc.
  7438. * src/AuthConfig.h: New class.
  7439. * src/prefs.h
  7440. (PREF_NETRC_PATH): New definition.
  7441. * src/HttpAuthConfig.h: Removed.
  7442. * src/Netrc.cc
  7443. (getRequiredNextToken): New function.
  7444. (skipMacdef): New function.
  7445. (parse): Rewritten.
  7446. * src/Netrc.h
  7447. (getRequiredNextToken): New function.
  7448. (skipMacdef): New function.
  7449. * src/Util.h, src/Util.cc
  7450. (getHomeDir): New function.
  7451. * src/TrackerWatcherComand.cc
  7452. (createRequestCommand): Use AuthConfig.
  7453. * src/FtpConnection.cc
  7454. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7455. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7456. * src/Request.cc
  7457. (findNetrcAuthenticator): New function.
  7458. (resolveHttpAuthConfigItem): New function.
  7459. (resolveFtpAuthConfigItem): New function.
  7460. (resolveHttpProxyAuthConfigItem): New function.
  7461. * src/UrlRequestInfo.cc: Use AuthConfig.
  7462. * src/HttpRequest.cc
  7463. (createRequest): Use authConfig.
  7464. (getProxyAuthString): Use authConfig.
  7465. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7466. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7467. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. To reduce overhead to find commands whose socket is either
  7469. readable or writable in the download engine loop:
  7470. * src/Command.h, src/Command.cc
  7471. (STATUS): New enum.
  7472. (status): New variable.
  7473. (statusMatch): New function.
  7474. (setStatusActive): New function.
  7475. (setStatusInactive): New function.
  7476. * src/DownloadEngine.h, src/DownloadEngine.cc
  7477. (executeCommand): New function.
  7478. (run): Simplified.
  7479. (waitData): Call Command::setStatusActive() when command's socket is
  7480. readable or writable.
  7481. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. To handle Segment as SegmentHandle:
  7483. * src/AbstractCommand.cc (execute): Rewritten.
  7484. * src/SegmentMan.h: Segment -> SegmentHandle
  7485. Introducded HttpResponse class, HttpRequest class to improve code
  7486. extensiveness and make it clear:
  7487. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7488. HttpResponse class.
  7489. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7490. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7491. * src/HttpConnection.cc: Contruction of http request were moved to
  7492. HttpRequest class.
  7493. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7494. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7495. * src/HttpAuthConfig.h: New class.
  7496. * src/Range.h: New class.
  7497. To make FtpTunnel{Request, Response}Command and
  7498. HttpProxy{Request, Response}Command derived from
  7499. AbstractProxy{Request, Response}Command:
  7500. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7501. Derived from AbstractProxyRequestCommand class.
  7502. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7503. Derived from AbstractProxyResponseCommand class.
  7504. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7505. Derived from AbstractProxyRequestCommand class.
  7506. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7507. Derived from AbstractProxyResponseCommand class.
  7508. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7509. : New class.
  7510. * src/AbstractProxyResponseCommand.h,
  7511. src/AbstractProxyResponseCommand.cc: New class.
  7512. To add netrc support:
  7513. * src/Netrc.h, src/Netrc.cc: New class.
  7514. * src/Util.h, src/Util.cc (split): New function.
  7515. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7516. "Content-Range" header instead of "Range" header.
  7517. * src/HttpHeader.h
  7518. (getStatus): Removed.
  7519. (setStatus): Removed.
  7520. * src/Segment.h
  7521. (getPositionToWrite): New function.
  7522. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7523. * src/HttpHeader.h
  7524. (Range.h): New include.
  7525. (status): New variable.
  7526. (HttpHeader): Initialized status with 0.
  7527. (getStatus): New function.
  7528. (setStatus): New function.
  7529. (getRange): New function.
  7530. (HttpHeaderHandle): New function.
  7531. * src/HttpHeader.cc
  7532. (getRange): New function.
  7533. * src/Request.h
  7534. (RequestWeakHandle): New definition.
  7535. * src/HttpConnection.h
  7536. (HttpConnectionHandle): New type definition.
  7537. * src/HttpConnection.cc
  7538. (receiveResponse): Set HTTP status to headers.
  7539. * src/main.cc
  7540. (showUsage): Fixed typo.
  7541. * src/Segment.h
  7542. (SegmentHandle): New type definition.
  7543. * src/BitfieldMan.h
  7544. (getMissingUnusedLength): New function.
  7545. * src/BitfieldMan.cc
  7546. (getMissingUnusedLength): New function.
  7547. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. To fix static initialization order problem:
  7549. * src/BitfieldManFactory.h
  7550. (defaultRandomizer): Removed.
  7551. (factory): New variable.
  7552. (getNewFactory): Removed.
  7553. (getFactoryInstance): New function.
  7554. (setDefaultRandomizer): Rewritten.
  7555. (getDefaultRandomizer): Rewritten.
  7556. * src/BitfieldManFactory.cc
  7557. (defaultRandomizer): Removed.
  7558. (factory): Initialized to 0.
  7559. (BitfieldManFactory): Initialized randomizer to 0.
  7560. * src/DefaultPieceStorage.cc
  7561. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7562. * src/Peer.cc
  7563. (Peer): getNewFactory() -> getFactoryInstance()
  7564. * src/SegmentMan.cc
  7565. (initBitfield): getNewFactory() -> getFactoryInstance()
  7566. * src/Piece.cc
  7567. (Piece): getNewFactory() -> getFactoryInstance()
  7568. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. To fix the bug that causes crash on Max OS X:
  7570. * src/SimpleRandomizer.h
  7571. (getInstance): Create new instance if the static variable is null.
  7572. * src/SimpleRandomizer.cc
  7573. (randomizer): Initialized to 0.
  7574. * src/BitfieldManFactory.h
  7575. (getNewFactory): Removed the call to setRandomizer().
  7576. To fix the miscalculation of the range of checksum:
  7577. * src/BitfieldMan.h
  7578. (isBitSetOffsetRange): New function.
  7579. * src/BitfieldMan.cc
  7580. (isBitSetOffsetRange): New function.
  7581. * src/SegmentMan.cc
  7582. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7583. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7584. * Release 0.10.1
  7585. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. To lower CPU usage in BitTorrent download when --max-upload-limit
  7587. command-line option specified:
  7588. * src/DefaultBtMessageDispatcher.cc
  7589. (sendMessages): Calculate uploading speed only when current message
  7590. is uploading data and is not sent yet.
  7591. * src/DefaultPeerStorage.h
  7592. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7593. * src/HttpResponseCommand.cc
  7594. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7595. This fixes compile error in Soralis 10.
  7596. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. To fix segfault in Metalink download:
  7598. * src/UrlRequestInfo.h
  7599. (filename): Removed.
  7600. (totalLength): Removed.
  7601. (setTotalLength): Removed.
  7602. (setFilename): Removed.
  7603. * src/MetalinkRequestInfo.cc
  7604. (execute): Do not set filename and totalLength to reqInfo.
  7605. Set chunk checksum to reqInfo if it is not null.
  7606. * src/HttpResponseCommand.cc
  7607. (executeInternal): Fixed filename in log.
  7608. (handleDefaultEncoding): Removed the call to initBitfield() and
  7609. markAllPiecesDone().
  7610. (handleOtherEncoding): Added HEAD method handling.
  7611. * src/FtpNegotiateCommand.cc
  7612. (executeInternal): Added SEQ_HEAD_OK handling.
  7613. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7614. return false.
  7615. * src/FtpNegotiateCommand.h
  7616. (SEQ_HEAD_OK): New definition.
  7617. * src/SegmentMan.cc
  7618. (initBitfield): Delete bitfield.
  7619. (isChunkChecksumValidationReady): Fixed the condition.
  7620. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7621. works fine.
  7622. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. * src/Xml2MetalinkProcessor.h
  7624. (xpathExists): New function.
  7625. * src/Xml2MetalinkProcessor.cc
  7626. (xpathExists): New function.
  7627. Not to send HEAD request if filename and size are available in Metalink
  7628. file:
  7629. * src/UrlRequestInfo.h
  7630. (filename): New variable.
  7631. (totalLength): New variable.
  7632. (setTotalLength): New function.
  7633. (setFilename): New function.
  7634. * src/MetalinkRequestInfo.cc
  7635. (execute): Set filename and size to UrlRequestInfo.
  7636. * src/MetalinkEntry.cc
  7637. (MetalinkEntry): Initialize size with 0.
  7638. * src/UrlRequestInfo.cc
  7639. (execute): Set filename and size to SegmentMan.
  7640. Not to download rest of the files after selected files are downloaded
  7641. in BitTorrent:
  7642. * src/PieceStorage.h
  7643. (allDownloadFinished): New function.
  7644. * src/DefaultBtAnnounce.cc
  7645. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7646. downloadFinished.
  7647. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7648. * src/DefaultPieceStorage.cc
  7649. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7650. Commented out the call to finishSelectiveDownloadingMode().
  7651. (downloadFinished): Call isFilteredAllBitSet() instead of
  7652. isAllBitSet().
  7653. (allDownloadFinished): New function.
  7654. * src/DefaultBtInteractive.cc
  7655. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7656. downloadFinished().
  7657. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7658. * src/TorrentDownloadEngine.cc
  7659. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7660. * src/BitfieldMan.h
  7661. (isFilteredAllBitSet): New function.
  7662. * src/ShareRatioSeedCriteria.h
  7663. (PieceStorage.h): New include.
  7664. (pieceStorage): New variable.
  7665. (evaluate):
  7666. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7667. * src/BitfieldMan.cc
  7668. (isFilteredAllBitSet): New function.
  7669. (isAllBitSet): Filter is not took into account.
  7670. Rename --force-truncate as --allow-overwrite:
  7671. * src/TorrentRequestInfo.cc
  7672. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7673. * src/main.cc
  7674. (showUsage): --force-truncate -> --allow-overwrite
  7675. * src/message.h
  7676. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7677. * src/prefs.h
  7678. (PREF_FORCE_TRUNCATE): Removed.
  7679. (PREF_ALLOW_OVERWRITE): New definition.
  7680. * src/SegmentMan.cc
  7681. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7682. * src/MetalinkRequestInfo.cc
  7683. (execute): Queueing message are now logged in info level.
  7684. * src/common.h
  7685. (LONG_LONG_MAX): Removed.
  7686. (LONG_LONG_MIN): Removed.
  7687. * src/HttpResponseCommand.cc
  7688. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7689. * src/FtpNegotiateCommand.cc
  7690. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7691. * src/main.cc
  7692. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7693. command-line option.
  7694. (main): Added --check-integriy and --realtime-chunk-checksum
  7695. command-line option.
  7696. --force-truncate -> --allow-overwrite
  7697. Set initial value of --check-integrity option to false.
  7698. Don't show usage when error occurs while persing command-line options.
  7699. Removed deprecated --upload-limit option.
  7700. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7702. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7703. * src/BtAllowedFastMessage.cc:
  7704. * src/BtBitfieldMessage.cc
  7705. * src/BtCancelMessage.cc
  7706. * src/BtChokeMessage.cc
  7707. * src/BtHaveAllMessage.cc
  7708. * src/BtHaveMessage.cc
  7709. * src/BtHaveNoneMessage.cc
  7710. * src/BtInterestedMessage.cc
  7711. * src/BtNotInterestedMessage.cc
  7712. * src/BtPieceMessage.cc
  7713. * src/BtPortMessage.cc
  7714. * src/BtRejectMessage.cc
  7715. * src/BtRequestMessage.cc
  7716. * src/BtSuggestPieceMessage.cc
  7717. * src/BtUnchokeMessage.cc
  7718. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7719. files are affected.
  7720. * src/ChunkChecksumValidator.cc
  7721. * src/SegmentMan.cc
  7722. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. To add chunk checksum validation:
  7724. * src/MetalinkEntry.h
  7725. (MetalinkChunkChecksum.h): New include.
  7726. (chunkChecksum): New variable.
  7727. * src/Request.h
  7728. (method): New variable.
  7729. (setMethod): New function.
  7730. (getMethod): New function.
  7731. (METHOD_GET): New static constant.
  7732. (METHOD_HEAD): New static constant.
  7733. * src/Xml2MetalinkProcessor.h
  7734. (getPieceHash): New function.
  7735. * src/PieceStorage.h
  7736. (markAllPiecesDone): New function.
  7737. (checkIntegrity): New function.
  7738. * src/FileAllocator.h
  7739. (NullFileAllocationMonitor.h): New include.
  7740. (FileAllocator): Initialize fileAllocationMonitor with new
  7741. NullFileAllocationMonitor().
  7742. * src/MultiDiskAdaptor.h
  7743. (messageDigest.h): Remove include.
  7744. (ctx): Removed.
  7745. (hashUpdate): Added ctx.
  7746. (MultiDiskAdaptor): Removed ctx.
  7747. (sha1Sum): Renamed as messageDigest.
  7748. (messageDigest): New function.
  7749. * src/UrlRequestInfo.h
  7750. (HeadResult): New class.
  7751. (digestAlgo): New variable.
  7752. (chunkChecksumLength): New variable.
  7753. (chunkChecksums): New variable.
  7754. (getHeadResult): New function.
  7755. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7756. (setDigestAlgo): New function.
  7757. (setChunkChecksumLength): New function.
  7758. (setChunkChecksums): New function.
  7759. * src/DefaultPieceStorage.cc
  7760. (DiskAdaptorWriter.h): New include.
  7761. (ChunkChecksumValidator.h): New include.
  7762. (markAllPiecesDone): New function.
  7763. (checkIntegrity): New function.
  7764. * src/DefaultBtContext.h
  7765. (getPieceHashes): New function.
  7766. * src/TorrentRequestInfo.cc
  7767. (execute): Try to validate chunk checksum if file already exists and
  7768. .aria2 file doesn't there and user allows aria2 to overwrite it.
  7769. * src/messageDigest.h
  7770. (~MessageDigestContext): Added digestFree().
  7771. * src/MetalinkRequestInfo.cc
  7772. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  7773. * src/DiskAdaptor.h
  7774. (messageDigest.h): New include.
  7775. (sha1Sum): Renamed as messageDigest.
  7776. (messageDigest): New function.
  7777. * src/DownloadCommand.h
  7778. (PeerStat.h): New include.
  7779. (maxDownloadSpeedLimit): New variable.
  7780. (startupIdleTime): New variable.
  7781. (lowestDownloadSpeedLimit): New variable.
  7782. (peerStat): New variable.
  7783. (setMaxDownloadSpeedLimit): New function.
  7784. (setStartupIdleTime): New function.
  7785. (setLowestDownloadSPeedLimit): New function.
  7786. * src/BtContext.h
  7787. (getPieceHashes): New function.
  7788. * src/main.cc
  7789. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  7790. option to true for testing purpose.
  7791. * src/BtPieceMessage.cc
  7792. (checkPieceHash): Use messageDigest
  7793. * src/DownloadEngine.cc
  7794. (SetDescriptor): Removed.
  7795. (AccumulateActiveCommand): Removed.
  7796. (waitData): Rewritten.
  7797. (updateFdSet): Rewritten.
  7798. * src/MultiDiskAdaptor.cc
  7799. (hashUpdate): Added ctx.
  7800. (sha1Sum): Renamed as messageDigest.
  7801. (messageDigest): New function.
  7802. * src/BitfieldMan.h
  7803. (isBitRangeSet): New function.
  7804. (unsetBitRange): New function.
  7805. * src/ByteArrayDiskWriter.h
  7806. (sha1Sum): Renamed as messageDigest.
  7807. (messageDigest): New function.
  7808. * src/ConsoleDownloadEngine.cc
  7809. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  7810. * src/DiskWriter.h
  7811. (messageDigest.h): New include.
  7812. (sha1Sum): Renamed as messageDigest.
  7813. (messageDigest): New function.
  7814. * src/ChunkChecksumValidator.h: New class.
  7815. * src/DiskAdaptorWriter.h: New class.
  7816. * src/prefs.h
  7817. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7818. (PREF_CHECK_INTEGRITY): New definition.
  7819. * src/HttpResponseCommand.cc
  7820. (handleDefaultEncoding): Added method "HEAD" handling.
  7821. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7822. (handleOtherEncoding):
  7823. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7824. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7825. startupIdleTime, lowestDownloadSpeedLimit to command.
  7826. * src/SegmentMan.h
  7827. (getSegmentEntryByIndex): New function.
  7828. (getSegmentEntryByCuid): New function.
  7829. (getSegmentEntryIteratorByCuid): New function.
  7830. (diskWriter): DiskWriter -> DiskWriterHandle
  7831. (pieceHashes): New variable.
  7832. (chunkHashLength): New variable.
  7833. (digestAlgo): New variable.
  7834. (FindPeerStat): Removed.
  7835. (getPeerStat): Rewritten.
  7836. (markAllPiecesDone): New function.
  7837. (checkIntegrity): New function.
  7838. (tryChunkChecksumValidation): New function.
  7839. (isChunkChecksumValidationReady): New function.
  7840. * src/BitfieldMan.cc
  7841. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7842. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7843. blocks to 0.
  7844. (isBitRangeSet): New function.
  7845. (unsetBitRange): New function.
  7846. * src/FtpNegotiateCommand.cc
  7847. (executeInternal): Set maxDownloadSpeedLimit,
  7848. startupIdleTime, lowestDownloadSpeedLimit to command.
  7849. (recvSize): Added method "HEAD" handling.
  7850. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7851. * src/AbstractSingleDiskAdaptor.cc
  7852. (sha1Sum): Renamed as messageDigest.
  7853. (messageDigest): New function.
  7854. * src/AbstractSingleDiskAdaptor.h
  7855. (sha1Sum): Renamed as messageDigest.
  7856. (messageDigest): New function.
  7857. * src/Util.h
  7858. (indexRange): New function.
  7859. * src/MetalinkEntry.cc
  7860. (MetalinkEntry): Initialized chunkChecksum to 0.
  7861. * src/ShaVisitor.cc
  7862. (~ShaVisitor): Removed the call to ctx.digestFree().
  7863. * src/SegmentMan.cc
  7864. (ChunkChecksumValidator.h): New include.
  7865. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  7866. to DIGEST_ALGO_SHA1.
  7867. (~SegmentMan): Removed diskWriter.
  7868. (FindSegmentEntryByIndex): Removed.
  7869. (FindSegmentEntryByCuid): Removed.
  7870. (checkoutSegment): Rewritten.
  7871. (findSlowerSegmentEntry): Rewritten.
  7872. (getSegment): Rewritten.
  7873. (updateSegment): Rewritten.
  7874. (completeSegment): Rewritten.
  7875. (markAllPiecesDone): New function.
  7876. (checkIntegrity): New function.
  7877. (isChunkChecksumValidationReady): New function.
  7878. (tryChunkChecksumValidation): New function.
  7879. * src/Xml2MetalinkProcessor.cc
  7880. (getEntry): Get size and set it to entry.
  7881. Get chunk checksum and set it to entry.
  7882. (getPieceHash): New function.
  7883. * src/Util.cc
  7884. (sha1Sum): Removed ctx.digestFree()
  7885. (fileChecksum): Removed ctx.digestFree()
  7886. (indexRange): New function.
  7887. * src/Request.cc
  7888. (METHOD_GET): New variable.
  7889. (METHOD_HEAD): New variable.
  7890. (Request): Added method.
  7891. * src/UrlRequestInfo.cc
  7892. (FatalException.h): New include.
  7893. (message.h): New include.
  7894. (operator<<): Added operator<< for class HeadResult.
  7895. (getHeadResult): New function.
  7896. (execute): Get filename and size in separate download engine.
  7897. * src/ChunkChecksumValidator.cc: New class.
  7898. * src/DownloadCommand.cc:
  7899. (DownloadCommand): Added peerStat.
  7900. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  7901. the value from Option.
  7902. The buffer size is now 16KB.
  7903. Use peerStat member instead of getting it from SegmentMan.
  7904. Use startupIdleTime member instead of gettingit from Option.
  7905. Added chunk checksum validation.
  7906. * src/AbstractDiskWriter.cc
  7907. (AbstractDiskWriter): Removed ctx.
  7908. (~AbstractDiskWriter): Removed ctx.digestFree()
  7909. (writeDataInternal): Returns the return value of write.
  7910. (readDataInternal): Returns the return value of read.
  7911. (sha1Sum): Renamed as messageDigest
  7912. (messageDigest): New function.
  7913. * src/AbstractDiwkWriter.h
  7914. (messageDigest.h): Removed include.
  7915. (ctx): Removed.
  7916. (sha1Sum): Renamed as messageDigest
  7917. (messageDigest): New function.
  7918. * src/DefaultPieceStorage.h
  7919. (markAllPiecesDone): New function.
  7920. (checkIntegrity): New function.
  7921. * src/NullFileAllocationMonitor.h: New class.
  7922. * src/MetalinkChunkChecksum.h: New class.
  7923. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. To decrease CPU usage in bittorrent download, calculation results in
  7925. BitfieldMan were cached and realtime fetching PeerObject was removed
  7926. with WeakHandle introduced. Option values are set to the objects
  7927. by setter before download begins.
  7928. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  7929. * src/DefaultBtRequestFactory.h
  7930. (dispatcher): BtMessageDispatcherHandle ->
  7931. BtMessageDispatcherWeakHandle.
  7932. (messageFactory): New variable.
  7933. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  7934. BtMessageDispatcherWeakHandle.
  7935. (setBtMessageFactory): New function.
  7936. * src/DefaultBtMessageDispatcher.cc:
  7937. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  7938. from Option.
  7939. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  7940. feating the value from Option.
  7941. Use messageFactory member.
  7942. * src/PeerInteractionCommand.cc
  7943. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  7944. Add reverse dependencies to factory object.
  7945. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  7946. dispatcher.
  7947. Set messageFactory to receiver.
  7948. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  7949. btInteractive.
  7950. Set receiver to peerObject.
  7951. Set maxDownloadSpeedLimit to this.
  7952. (executeInternal): Use maxDownloadSpeedLimit member.
  7953. * src/BtChokeMessage.cc
  7954. (doReceivedAction): Use dispatcher, requestFactory member.
  7955. (onSendComplete): Use dispatcher member.
  7956. * src/PeerInteractionCommand.h
  7957. (maxDownloadSpeedLimit): New variable.
  7958. * src/DefaultBtMessageReceiver.h
  7959. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7960. (dispatcher):
  7961. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7962. (messageFactory): New variable.
  7963. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7964. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7965. (setDispatcher):
  7966. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7967. (setBtMessageFactory): New function.
  7968. * src/DefaultBtInteractive.cc
  7969. (initiateHandshake): Use messageFactory member.
  7970. (addBitfieldMessageToQueue): Use messageFactory member.
  7971. (addAllowedFastMessageToQueue): Use messageFactory member.
  7972. (decideChoking): Use messageFactory member.
  7973. (checkHave): Use messageFactory member.
  7974. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7975. (receiveMessages): Use maxDownloadSpeedLimit member.
  7976. (decideInterest): Use messageFactory member.
  7977. * src/BtRequestMessage.cc
  7978. (doReceivedAction): Use messageFactory, dispatcher member.
  7979. (onQueued): Use dispatcher member.
  7980. * src/BtPieceMessage.cc
  7981. (doReceivedAction): Use dispatcher member.
  7982. (send): Use peerConnection member.
  7983. (onWrongPiece): Use requestFactory member.
  7984. (handleChokingEvent): Use messageFactory, dispatcher member.
  7985. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7986. * src/BtMessageDispatcher.h
  7987. (BtMessageDispatcherWeakHandle): New type definition.
  7988. * src/SimpleBtMessage.cc
  7989. (send): Use peerConnection member.
  7990. * src/BtRejectMessage.cc
  7991. (doReceivedAction): Use dispatcher member.
  7992. * src/DefaultBtMessageDispatcher.h
  7993. (Option.h): Removed include.
  7994. (messageFactory): New variable.
  7995. (option): Removed.
  7996. (maxUploadSpeedLimit): New variable.
  7997. (requestTimeout): New variable.
  7998. (DefaultBtMessageDispatcher): Removed option.
  7999. Added maxUploadSpeedLimit, requestTimeout.
  8000. (setOption): Removed.
  8001. (getOption): Removed.
  8002. (setMaxUploadSpeedLimit): New function.
  8003. (setRequestTimeout): New function.
  8004. (setBtMessageFactory): New function.
  8005. * src/DefaultBtInteractive.h
  8006. (btMessageReceiver):
  8007. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8008. (dispatcher):
  8009. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8010. (btRequestFactory):
  8011. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8012. (peerConnection):
  8013. PeerConnectionHandle -> PeerConnectionWeakHandle
  8014. (messageFactory): New variable.
  8015. (option): Removed.
  8016. (keepAliveInterval): New variable.
  8017. (maxDownloadSpeedLimit): New variable.
  8018. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8019. (setBtMessageReceiver):
  8020. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8021. (setDispatcher):
  8022. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8023. (setBtRequestFactory):
  8024. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8025. (setPeerConnection):
  8026. PeerConnectionHandle -> PeerConnectionWeakHandle
  8027. (setOption): Removed.
  8028. (setKeepAliveInterval): New function.
  8029. (setMaxDownloadSpeedLimit): New function.
  8030. (setBtMessageFactory): New function.
  8031. * src/BitfieldMan.h
  8032. (cachedNumMissingBlock): New variable.
  8033. (cachedNumFilteredBlock): New variable.
  8034. (cachedCompletedLength): New variable.
  8035. (cachedFilteredComletedLength): New variable.
  8036. (cachedFilteredTotalLength): New variable.
  8037. (countMissingBlockNow): New function.
  8038. (countFilteredBlockNow): New function.
  8039. (getFilteredTotalLengthNow): New function.
  8040. (getCompletedLengthNow): New function.
  8041. (getFilteredCompletedLengthNow): New function.
  8042. (updateCache): New function.
  8043. * src/AbstractBtMessage.h
  8044. (BtMessageDispatcher.h): New include.
  8045. (PeerConnection.h): New include.
  8046. (BtRequestFactory.h): New include
  8047. (BtMessageFactory.h): New include.
  8048. (dispatcher): New variable.
  8049. (messageFactory): New variable.
  8050. (peerConnection: New variable.
  8051. (setBtMessageDispatcher): New function.
  8052. (setPeerConnection): New function.
  8053. (setBtMessageFactory): New function.
  8054. (setBtRequestFactory): New function.
  8055. * src/DefaultBtMessageFactory.cc
  8056. (setCommonProperty): Set dispatcher, requestFactory, this,
  8057. peerConnection to msg.
  8058. * src/BtRegistry.h
  8059. (BT_MESSAGE_RECEIVER): New macro.
  8060. * src/PeerConnection.h
  8061. (PeerConnectionWeakHandle): New type definition.
  8062. * src/BtMessageFactory.h
  8063. (BtMessageFactoryWeakHandle): New type definition.
  8064. * src/BitfieldMan.cc
  8065. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8066. cachedCompletedLength, cachedFilteredComletedLength,
  8067. cachedFilteredTotalLength.
  8068. Call updateCache().
  8069. (countMissingBlock): Return cachedNumMissingBlock.
  8070. (countMissingBlockNow): New function.
  8071. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8072. (countFilteredBlockNow): New function.
  8073. (setBit): Call updateCache().
  8074. (unsetBit): Call updateCache().
  8075. (setBitfield): Call updateCache().
  8076. (clearAllBit): Call updateCache().
  8077. (setAllBit): Use setBitInternal instead of setBit.
  8078. Call updateCache().
  8079. (addFilter): Call updateCache().
  8080. (enableFilter): Call updateCache().
  8081. (disableFilter): Call updateCache().
  8082. (clearFilter): Call updateCache().
  8083. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8084. (getFilteredTotalLengthNow): New function.
  8085. (getCompletedLength): Return cachedCompletedLength.
  8086. (getCompletedLengthNow): New function.
  8087. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8088. (getFilteredCompletedLengthNow): New function.
  8089. (updateCache): New function.
  8090. * src/BtMessageReceiver.h
  8091. (BtMessageReceiverWeakHandle): New type definition.
  8092. * src/DefaultBtMessageReceiver.cc
  8093. (receiveHandshake): Use messageFactory member.
  8094. (sendHandshake): Use messageFactory member.
  8095. (receiveMessage): Use messageFactory member.
  8096. * src/DefaultBtMessageFactory.h
  8097. (dispatcher): New variable.
  8098. (requestFactory): New variable.
  8099. (peerConnection): New variablle.
  8100. (setBtMessageDispatcher): New function.
  8101. (setBtRequestFactory): New function.
  8102. (setPeerConnection): New function.
  8103. * src/SharedHandle.h
  8104. (RefCount): New class.
  8105. (WeakHandle): New class.
  8106. * src/PeerObject.h
  8107. (BtMessageReceiver.h): New include.
  8108. (PeerObject): Added btMessageReceiver.
  8109. (btMessageReceiver): New variable.
  8110. * src/Util.cc
  8111. (countBit): Simplified.
  8112. * src/BtCancelMessage.cc
  8113. (doReceivedAction): Use dispatcher member.
  8114. * src/BtRequestFactory.h
  8115. (BtRequestFactoryWeakHandle): New type definition.
  8116. * src/PeerStorage.h
  8117. (downloadSpeed): int -> uint32_t
  8118. (uploadSpeed): int -> uint32_t
  8119. (sessionDownloadLength): long long int -> uint64_t
  8120. (sessionUploadLength): long long int -> uint64_t
  8121. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. To add RecoverableException, FatalException:
  8123. * src/AbstractCommand.cc
  8124. (onAbort): Exception -> RecoverableException
  8125. * src/PeerAbstractCommand.h
  8126. (RecoverableException.h): New include.
  8127. (onAbort): Exception -> RecoverableException.
  8128. * src/PeerInteractionCommand.cc
  8129. (onAbort): Exception -> RecoverableException.
  8130. * src/PeerAbstractCommand.cc
  8131. (execute): Exception -> RecoverableException.
  8132. (onAbort): Exception -> RecoverableException.
  8133. * src/TorrentRequestInfo.cc
  8134. (execute): Exception -> RecoverableException.
  8135. * src/MetalinkRequestInfo.cc
  8136. (execute): Exception -> RecoverableException.
  8137. * src/MetaFileUtil.cc: RecoverableException.
  8138. * src/AbstractCommand.h
  8139. (onAbort): Exception -> RecoverableException.
  8140. * src/DlRetryEx.h: Exception -> RecoverableException.
  8141. * src/DlAbortEx.h: Exception -> RecoverableException.
  8142. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8143. * src/Util.cc: Exception -> RecoverableException.
  8144. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8145. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8146. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8147. To make ID static const int
  8148. * src/BtInterestedMessage.h
  8149. (ID_t): Removed.
  8150. (ID): New variable.
  8151. (getId): Made non-const.
  8152. * src/BtPieceMessage.h
  8153. (ID_t): Removed.
  8154. (ID): New variable.
  8155. (getId): Made non-const.
  8156. * src/BtChokeMessage.h
  8157. (ID_t): Removed.
  8158. (ID): New variable.
  8159. (getId): Made non-const.
  8160. * src/BtHaveAllMessage.h
  8161. (ID_t): Removed.
  8162. (ID): New variable.
  8163. (getId): Made non-const.
  8164. * src/BtKeepAliveMessage.h
  8165. (ID_t): Removed.
  8166. (ID): New variable.
  8167. (getId): Made non-const.
  8168. * src/BtHandshakeMessage.h
  8169. (ID): New variable.
  8170. (getId): Made non-const.
  8171. * src/BtSuggestPieceMessage.h
  8172. (ID_t): Removed.
  8173. (ID): New variable.
  8174. (getId): Made non-const.
  8175. * src/BtPortMessage.h
  8176. (ID_t): Removed.
  8177. (ID): New variable.
  8178. (getId): Made non-const.
  8179. * src/AbstractBtMessage.h
  8180. (id): Removed.
  8181. (AbstractBtMessage): Removed id.
  8182. (getId): Removed.
  8183. * src/BtHaveMessage.h
  8184. (ID_t): Removed.
  8185. (ID): New variable.
  8186. (getId): Made non-const.
  8187. * src/BtAllowedFastMessage.h
  8188. (ID_t): Removed.
  8189. (ID): New variable.
  8190. (getId): Made non-const.
  8191. * src/BtCancelMessage.h
  8192. (ID_t): Removed.
  8193. (ID): New variable.
  8194. (getId): Made non-const.
  8195. * src/BtNotInterestedMessage.h
  8196. (ID_t): Removed.
  8197. (ID): New variable.
  8198. (getId): Made non-const.
  8199. * src/BtChokeMessage.h
  8200. (ID_t): Removed.
  8201. (ID): New variable.
  8202. (getId): Made non-const.
  8203. * src/BtRejectMessage.h
  8204. (ID_t): Removed.
  8205. (ID): New variable.
  8206. (getId): Made non-const.
  8207. * src/BtBitfieldMessage.h
  8208. (ID_t): Removed.
  8209. (ID): New variable.
  8210. (getId): Made non-const.
  8211. * src/BtUnchokeMessage.h
  8212. (ID_t): Removed.
  8213. (ID): New variable.
  8214. (getId): Made non-const.
  8215. * src/BtRequestMessage.h
  8216. (ID_t): Removed.
  8217. (ID): New variable.
  8218. (getId): Made non-const.
  8219. * src/BtHaveMessage.h
  8220. (ID_t): Removed.
  8221. (ID): New variable.
  8222. (getId): Made non-const.
  8223. To add --force-truncate command-line option and a check whether
  8224. the file already exists:
  8225. * src/DirectDiskAdaptor.h
  8226. (getFilePath): Made virtual public.
  8227. * src/MultiDiskAdaptor.h
  8228. (File.h): New include.
  8229. (DiskWriterEntry::fileEntry): Made private.
  8230. (DiskWriterEntry::fileExists): New function.
  8231. (DiskWriterEntry::getFileEntry): New function.
  8232. (fileExists): New function.
  8233. (getFilePath): New function.
  8234. * src/TorrentRequestInfo.cc
  8235. (FatalException.h): New include.
  8236. (message.h): New include.
  8237. (RecoverableException.h): New include.
  8238. (execute): Added a check whether file is already exists or not.
  8239. * src/DiskAdaptor.h
  8240. (fileExists): New function.
  8241. (getFilePath): New function.
  8242. * src/main.cc
  8243. (showUsage): Added an explanation of --force-truncate command-line
  8244. option.
  8245. (main): Added --force-truncate command-line option.
  8246. * src/Exception.h
  8247. (setMsg): buf[256] -> buf[1024]
  8248. * src/CopyDiskWriter.h
  8249. (getFilePath): Made public virtual.
  8250. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8251. (fileExists): New function.
  8252. * src/DownloadEngineFactory.cc
  8253. (newTorrentConsoleEngine): Don't open file here.
  8254. * src/message.h
  8255. (EX_FILE_ALREADY_EXISTS): New definition.
  8256. * src/prefs.h
  8257. (PREF_FOECE_TRUNCATE): New definition.
  8258. * src/HttpResponseCommand.cc
  8259. (handleDefaultEncoding): Added a check whether the file already exists.
  8260. * src/SegmentMan.h
  8261. (fileExists): New function.
  8262. (shouldCancelDownloadForSafety): New function.
  8263. * src/FtpNegotiateCommand.cc
  8264. (recvSize): Added a check whether the file already exists.
  8265. * src/AbstractSingleDiskAdaptor.cc
  8266. (File.h): New include.
  8267. (fileExists): New function.
  8268. * src/AbstractSingleDiskAdaptor.h
  8269. (getFilePath): Removed.
  8270. (fileExists): New function.
  8271. * src/SegmentMan.cc
  8272. (fileExists): New function.
  8273. (shouldCancelDownloadForSafety): New function.
  8274. To fix regression bug in torrent downloading:
  8275. * src/DefaultBtRequestFactory.cc
  8276. (doChokedAction): New function.
  8277. * src/DefaultBtRequestFactory.h
  8278. (doChokedAction): New function.
  8279. * src/DefaultBtMessageDispatcher.cc
  8280. (doChokedAction): Do not delete request if its target is in allowed
  8281. fast set.
  8282. * src/DefaultBtInteractive.cc
  8283. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8284. (sendKeepAlive): Send keep alive message even if the outgoing message
  8285. queue is not empty.
  8286. (decideInterest): Simplified the code.
  8287. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8288. it is already called when BtChokeMessage is received from a peer.
  8289. * src/BtRequestFactory.h
  8290. (doChokedAction): New function.
  8291. To clean up code:
  8292. * src/PeerInteractionCommand.h
  8293. (executeInternal): Added virtual keyword explicitly.
  8294. (prepareForRetry): Added virtual keyword explicitly.
  8295. (prepareForNextPeer): Added virtual keyword explicitly.
  8296. (onAbort): Added virtual keyword explicitly.
  8297. * src/RequestSlot.cc
  8298. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8299. * src/BtPieceMessage.cc
  8300. (doReceivedAction): Added a debug log of piece's bitfield.
  8301. * src/Piece.h
  8302. (getBitfieldLength): New function.
  8303. * src/ByteArrayDiskWriter.cc
  8304. (clear): Added buf = 0 to avoid double free corruption.
  8305. * src/FileAllocator.cc
  8306. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8307. Added cp.reset().
  8308. * src/BitfieldMan.h
  8309. (operator=): Rewritten.
  8310. * src/BitfieldMan.cc
  8311. (BitfieldMan): Initialized bitfield, useBitfield.
  8312. * src/PeerConnection.cc
  8313. (receiveMessage): Added a call to socket->readable() after getting
  8314. message length to avoid possible EOF.
  8315. * src/Util.cc
  8316. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8317. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8318. To add an ability to pre-allocate file space:
  8319. * src/DirectDiskAdaptor.h: Rewritten.
  8320. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8321. * src/MultiDiskAdaptor.h: Rewritten.
  8322. * src/DefaultPieceStorage.cc
  8323. (MultiDiskWriter.h): Removed include.
  8324. (PreAllocationDiskWriter.h): Removed include.
  8325. (FileAllocationMonitor.h): New include.
  8326. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8327. (initStorage): Rewritten.
  8328. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8329. * src/FileAllocator.h: New class.
  8330. * src/FileAllocator.cc: New class.
  8331. * src/FileAllocationMonitor.h: New class.
  8332. * src/FileAllocationMonitor.cc: New class.
  8333. * src/ConsoleFileAllocationMonitor.h: New class.
  8334. * src/ConsoleFileAllocationMonitor.cc: New class.
  8335. * src/AbstractSingleDiskAdaptor.h: New class.
  8336. * src/AbstractSingleDiskAdaptor.cc: New class.
  8337. * src/DiskAdaptor.h
  8338. (Directory.h): Removed include.
  8339. (DiskWriter.h): Removed include.
  8340. (FileEntry.h): Removed include.
  8341. (diskWriter): Removed.
  8342. (DiskAdaptor): Removed diskWriter.
  8343. (openFile): Made pure virtual.
  8344. (closeFile): Made pure virtual.
  8345. (openExistingFile): Made pure virtual.
  8346. (initAndOpenFile): Made pure virtual.
  8347. (writeData): Made pure virtual.
  8348. (readData): Made pure virtual.
  8349. (sha1Sum): Made pure virtual.
  8350. (getStoreDir): Returns const reference of storeDir.
  8351. (DiskAdaptorHandle): New type definition.
  8352. * src/main.cc
  8353. (ConsoleFileAllocationMonitor.h): New include.
  8354. (showUsage): Added default value description of -s option.
  8355. Added the description of --file-allocation option.
  8356. (main): Set default value of --file-allocation option to 'none'.
  8357. Added --file-allocation command-line option.
  8358. Setup FileAllocationMonitorFactory.
  8359. * src/FtpInitiateConnectionCommand.cc
  8360. (executeInternal): Removed diskWriter related processing, which was
  8361. moved to FtpNegotiationCommand.cc.
  8362. * src/DirectDiskAdaptor.cc
  8363. (getFilePath): Made non-const.
  8364. * src/CopyDiskAdaptor.h
  8365. (DiskAdaptor.h): Removed include.
  8366. (DiskWriter.h): Removed include.
  8367. (AbstractSingleDiskAdaptor.h): New include.
  8368. (getFilePath): Made non-const. Added virtual keyword.
  8369. (CopyDiskAdaptor): Removed diskWriter.
  8370. (getTempFile): Returns const reference.
  8371. (CopyDiskAdaptorHandle): New type definition.
  8372. * src/ByteArrayDiskWriter.cc
  8373. (clear): Simplified.
  8374. (initAndOpenFile): Rewritten.
  8375. (openFile): Call initAndOpenFile()
  8376. * src/MultiDiskAdaptor.cc: Rewritten.
  8377. * src/DownloadEngineFactory.cc
  8378. (FileAllocator.h): New include.
  8379. (FileAllocationMonitor.h): New include.
  8380. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8381. create DefaultDiskWriter with file allocator.
  8382. * src/DiskWriter.h
  8383. (initAndOpenFile): Added totalLength argument.
  8384. (openFile): Added totalLength argument.
  8385. * src/prefs.h
  8386. (PREF_FILE_ALLOCATION): New definition.
  8387. (V_PREALLOC): New definition.
  8388. (V_NONE): New definition.
  8389. * src/HttpResponseCommand.cc
  8390. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8391. size.
  8392. * src/FtpNegotiateCommand.cc
  8393. (Util.h): New include.
  8394. (recvSize): Open file here.
  8395. * src/Util.h
  8396. (ullitos): New function.
  8397. * src/CopyDiskWriter.h
  8398. (getFilePath): Made non-const.
  8399. * src/DefaultDiskWriter.h
  8400. (Option.h): New include.
  8401. (totalLength): Removed.
  8402. (DefaultDiskWriter): Removed totalLength.
  8403. (initAndOpenFile): Added totalLength argument.
  8404. (DefaultDiskWriterHandle): New type definition.
  8405. (createNewDiskWriter): New function.
  8406. * src/Util.cc
  8407. (ullitos): New function.
  8408. * src/DefaultDiskWriter.cc
  8409. (message.h): New include.
  8410. (FileAllocator.h): New include.
  8411. (prefs.h): New include.
  8412. (Util.h): New include.
  8413. (DefaultDiskWriter): Removed totalLength.
  8414. (initAndOpenFile): Added file allocation.
  8415. (createNewDiskWriter): New function. Just for temporary solution.
  8416. It will be rewritten later.
  8417. * src/DiskAdaptor.cc
  8418. (DiskAdaptor): Removed diskWriter.
  8419. * src/AbstractDiskWriter.cc
  8420. (LogFactory.h): New include.
  8421. (AbstractDiskWriter): Added fileAllocator, logger.
  8422. (openFile): Added totalLength argument.
  8423. * src/AbstractDiskWriter.h
  8424. (FileAllocator.h): New include.
  8425. (Logger.h): New include.
  8426. (fileAllocator): New variable.
  8427. (logger): New variable.
  8428. (openFile): Added totalLength argument. Added virtual keyword
  8429. explicitly.
  8430. (openExistingFile): Added totalLength argument. Added virtual keyword
  8431. explicitly.
  8432. (closeFile): Added virtual keyword explicitly.
  8433. (sha1Sum): Added virtual keyword explicitly.
  8434. (writeData): Added virtual keyword explicitly.
  8435. (readData): Added virtual keyword explicitly.
  8436. (setFileAllocator): New function.
  8437. * src/DefaultPieceStorage.h
  8438. (FileAllocator.h): New include.
  8439. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8440. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8441. * src/FileProgressMonitor.h: New class.
  8442. To compile aria2 on PC-BSD:
  8443. * src/DefaultBtContext.cc
  8444. (libgen.h): New include.
  8445. To fix memory leak:
  8446. * src/Exception.h
  8447. (~Exception): Delete cause. Fixed memory leak.
  8448. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Rewritten a portion of bittorrent implementation:
  8450. * src/BtMessageValidator.h: New class.
  8451. * src/BtBitfieldMessageValidator.h: New class.
  8452. * src/BtHandshakeMessageValidator.h: New class.
  8453. * src/BtRequestMessageValidator.h: New class.
  8454. * src/BtSuggestPieceMessageValidator.h: New class.
  8455. * src/BtAllowedFastMessageValidator.h: New class.
  8456. * src/BtRejectMessageValidator.h: New class.
  8457. * src/BtCancelMessageValidator.h: New class.
  8458. * src/BtPieceMessageValidator.h: New class.
  8459. * src/BtHaveMessageValidator.h: New class.
  8460. * src/BtEventListener.h: New class.
  8461. * src/AbstractBtEventListener.h: New class.
  8462. * src/BtEvent.h: New class.
  8463. * src/BtChokingEvent.h: New class.
  8464. * src/BtChokedEvent.h: New class.
  8465. * src/BtCancelSendingPieceEvent.h: New class.
  8466. * src/BtAbortOutstandingRequestEvent.h: New class.
  8467. * src/Randomizer.h: New class.
  8468. * src/SimpleRandomizer.h: New class.
  8469. * src/BtMessage.h: New class.
  8470. * src/AbstractBtMessage.h: New class.
  8471. * src/SimpleBtMessage.h: New class.
  8472. * src/BtHaveMessage.h: New class.
  8473. * src/BtInterestedMessage.h: New class.
  8474. * src/BtAllowedFastMessage.h: New class.
  8475. * src/BtUnchokeMessage.h: New class.
  8476. * src/BtCancelMessage.h: New class.
  8477. * src/BtNotInterestedMessage.h: New class.
  8478. * src/BtChokeMessage.h: New class.
  8479. * src/BtHaveNoneMessage.h: New class.
  8480. * src/BtHandshakeMessage.h: New class.
  8481. * src/BtSuggestPieceMessage.h: New class.
  8482. * src/BtHaveMessage.h: New class.
  8483. * src/BtPieceMessage.h: New class.
  8484. * src/BtHaveAllMessage.h: New class.
  8485. * src/BtKeepAliveMessage.h: New class.
  8486. * src/BtPortMessage.h: New class.
  8487. * src/BtRejectMessage.h: New class.
  8488. * src/BtBitfieldMessage.h: New class.
  8489. * src/BtRequestMessage.h: New class.
  8490. * src/DefaultBtRequestFactory.h: New class.
  8491. * src/DefaultBtMessageReceiver.h: New class.
  8492. * src/BtInteractive.h: New class.
  8493. * src/BtMessageDispatcher.h: New class.
  8494. * src/DefaultBtMessageDispatcher.h: New class.
  8495. * src/DefaultBtInteractive.h: New class.
  8496. * src/BitfieldManFactory.h: New class.
  8497. * src/HandleRegistry.h: New class.
  8498. * src/BtMessageFactory.h: New class.
  8499. * src/BtMessageReceiver.h: New class.
  8500. * src/DefaultBtMessageFactory.h: New class.
  8501. * src/PeerObject.h: New class.
  8502. * src/BtRequestFactory.h: New class.
  8503. * src/SuggestPieceMessage.h: Removed.
  8504. * src/PortMessage.h: Removed.
  8505. * src/SuggestPieceMessage.h: Removed.
  8506. * src/KeepAliveMessage.h: Removed.
  8507. * src/HandshakeMessage.h: Removed.
  8508. * src/PeerInteraction.h: Removed.
  8509. * src/UnchokeMessage.h: Removed.
  8510. * src/PieceMessage.h: Removed.
  8511. * src/RequestMessage.h: Removed.
  8512. * src/InterestedMessage.h: Removed.
  8513. * src/HaveMessage.h: Removed.
  8514. * src/CancelMessage.h: Removed.
  8515. * src/RejectMessage.h: Removed.
  8516. * src/AllowedFastMessage.h: Removed.
  8517. * src/HaveNoneMessage.h: Removed.
  8518. * src/SimplePeerMessage.h: Removed.
  8519. * src/HaveAllMessage.h: Removed.
  8520. * src/BitfieldMessage.h: Removed.
  8521. * src/PeerMessageFactory.h: Removed.
  8522. * src/NotInterestedMessage.h: Removed.
  8523. * src/ChokeMessage.h: Removed.
  8524. * src/PeerMessage.h: Removed.
  8525. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. To know root cause of exception:
  8527. * src/Exception.h
  8528. (cause): New variable.
  8529. (Exception): Added a parameter.
  8530. (getMsg): Return const reference to msg.
  8531. (getCause): New function.
  8532. * src/DlRetryEx.h
  8533. (DlRetryEx): Added a parameter 'cause'.
  8534. Added an overloaded constructor.
  8535. (DlAbortEx): Added a parameter 'cause'.
  8536. Added an overloaded constructor.
  8537. * src/SimpleLogger.cc
  8538. (writeLog): Log nested exception messages recursively.
  8539. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. * src/DefaultBtProgressInfoFile.cc
  8541. (load): Fixed memory leak when the infohash doesn't match.
  8542. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. * src/DefaultPeerStorage.cc
  8544. (calculateStat): Simplified the code by combining 2 loops into 1.
  8545. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8547. for BitTorrent download:
  8548. * src/PeerAbstractCommand.cc
  8549. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8550. * src/main.cc:
  8551. (timeoutSpecified): Removed.
  8552. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8553. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8554. * src/TorrentRequestInfo.cc
  8555. (timeoutSpecified): Removed.
  8556. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8557. timeout value.
  8558. * src/prefs.h
  8559. (PREF_BT_TIMEOUT): New definition.
  8560. Delete unused variables:
  8561. * src/TorrentRequestInfo.cc
  8562. (requestInfo): Removed.
  8563. Move setSignalHander to Util::setGlobalSignalHandler:
  8564. * src/TorrentRequestInfo.cc:
  8565. setSignalHander -> Util::setGlobalSignalHandler
  8566. * src/main.cc
  8567. (setSignalHander): Removed.
  8568. (main): setSignalHander -> Util::setGlobalSignalHandler
  8569. * src/Util.h
  8570. (setGlobalSignalHandler): New function.
  8571. * src/Util.cc
  8572. (setGlobalSignalHandler): New function.
  8573. * src/UrlRequestInfo.cc:
  8574. setSignalHander -> Util::setGlobalSignalHandler
  8575. Reset peer status in order to exit gracefully:
  8576. * src/PeerAbstractCommand.cc
  8577. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8578. To fix the bug that causes the number of bytes uploaded is not saved
  8579. to .aria2 file:
  8580. * src/DefaultPeerStorage.h
  8581. (removedPeerSessionDownloadLength): New variable.
  8582. (removedPeerSessionUploadLength): New variable.
  8583. * src/DefaultPeerStorage.cc
  8584. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8585. removedPeerSessionUploadLength(0).
  8586. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8587. through all peers, and then add removedPeerSessionDownloadLength(
  8588. removedPeerSessionUploadLength) to it.
  8589. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8590. (to) the peer to removedPeerSessionDownloadLength
  8591. (removedPeerSessionUploadLength).
  8592. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8593. To add Metalink location option:
  8594. * src/MetalinkRequestInfo.cc
  8595. (execute): Call MetalinkEntry::setLocationPreference()
  8596. * src/main.cc
  8597. (showUsage): Added the help message for --metalink-location option.
  8598. (main): Added --metalink-location option.
  8599. * src/prefs.h
  8600. (PREF_METALINK_LOCATION): New definition.
  8601. * src/MetalinkEntry.cc
  8602. (AddLocationPreference): New function object.
  8603. (setLocationPreference): New function.
  8604. * src/Xml2MetalinkProcessor.cc
  8605. (getResource): Set location attribute to MetalinkResource
  8606. To show URLs to download
  8607. * src/UrlRequestInfo.h
  8608. (printUrls): New function.
  8609. To add multiple <file> Metalink support:
  8610. * src/MetalinkEntry.h
  8611. (MetalinkResources): Removed.
  8612. (setLocationPreference): New function.
  8613. (MetalinkEntryHandle): New type definition.
  8614. (MetalinkEntries): New type definition.
  8615. * src/Xml2MetalinkProcessor.h
  8616. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8617. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8618. (parseFile): Metalinker* -> MetalinkerHandle
  8619. * src/UrlRequestInfo.h
  8620. (execute): RequestInfo* -> RequestInfos
  8621. * src/MetalinkRequestInfo.cc
  8622. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8623. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8624. (execute): RequestInfo* -> RequestInfos
  8625. Added multiple <file> support. Print filename when it is queued.
  8626. * src/MetalinkRequestInfo.h
  8627. (execute): RequestInfo* -> RequestInfos
  8628. (getDownloadEngine): Removed.
  8629. * src/RequestInfo.h
  8630. (RequestInfoHandle): New type definition.
  8631. (RequestInfos): New type definition.
  8632. (execute): RequestInfo* -> RequestInfos
  8633. (getDownloadEngine): Removed.
  8634. * src/MetalinkResource.h
  8635. (MetalinkResourceHandle): New type definition.
  8636. (MetalinkResources): New type definition.
  8637. * src/MetalinkEntry.cc
  8638. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8639. because the element is now of type MetalinkResourceHandle.
  8640. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8641. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8642. (dropUnsupportedResource): Removed the deletion of the elements of
  8643. resources because the element is now of type MetalinkResourceHandle.
  8644. * src/Xml2MetalinkProcessor.cc
  8645. (parseFile): Metalinker* -> MetalinkerHandle
  8646. MetalinkEntry* -> MetalinkEntryHandle
  8647. Removed try-catch block.
  8648. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8649. MetalinkResource* -> MetalinkResourceHandle
  8650. Removed try-catch block.
  8651. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8652. Free result by using xmlXPathFreeObject()
  8653. * src/Metalinker.cc
  8654. (~Metalinker): Removed the deletion of entries.
  8655. MetalinkEntry* -> MetalinkEntryHandle
  8656. (queryEntry): Add multiple <file> Metalink support.
  8657. * src/Metalinker.h
  8658. (MetalinkEntries): Removed.
  8659. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8660. * src/MetalinkProcessor.h
  8661. (parseFile): Metalinker* -> MetalinkerHandle
  8662. Bug fixes:
  8663. * src/PeerChokeCommand.cc
  8664. (execute): cat01->cat02
  8665. * src/DefaultPieceStorage.cc
  8666. (DefaultPieceStorage): Added diskAdaptor(0)
  8667. * src/TrackerWatcherComand.cc:
  8668. (execute): Use btAnnounce->noMoreAnnounce()
  8669. to determin whether the function returns true or not.
  8670. * src/TrackerUpdateCommand.cc:
  8671. (execute): Use btAnnounce->noMoreAnnounce()
  8672. to determin whether the function returns true or not.
  8673. * src/FtpConnection.cc
  8674. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8675. This is the fix of the busy loop bug.
  8676. * src/DownloadCommand.cc
  8677. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8678. cached PeerStat.
  8679. The value of "name" entry in torrent file is now set by
  8680. *DiskAdaptor::setTopDir(...) methods.
  8681. * src/MultiDiskAdaptor.h
  8682. (topDir): New variable.
  8683. (setTopDir): New function.
  8684. (getTopDir): New function.
  8685. * src/MultiDiskAdaptor.cc
  8686. (getFilePath): Concat storDir, "/" and topDir.
  8687. (mkdir): Use getFilePath() to get the directory path for output.
  8688. * src/DefaultPieceStorage.cc
  8689. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8690. CopyDiskAdaptor.
  8691. * src/CopyDiskAdaptor.h
  8692. (topDir): New variable.
  8693. (setTopDir): New function.
  8694. (getTopDir): New function.
  8695. * src/CopyDiskAdaptor.cc
  8696. (fixFilename): Updated.
  8697. Misc
  8698. * src/UrlRequestInfo.h
  8699. (e): Removed.
  8700. (UrlRequestInfo): Removed e.
  8701. (getDownloadEngine): Removed.
  8702. * src/UrlRequestInfo.cc
  8703. (handler): Rewritten.
  8704. (printUrls): New function.
  8705. (execute): Call printUrls().
  8706. * src/HandshakeMessage.cc
  8707. (check): peerinteraction->getBtContext() -> btContext
  8708. * src/PeerInteraction.h
  8709. (getBtContext): Removed.
  8710. * src/TorrentRequestInfo.h
  8711. (execute): RequestInfo* -> RequestInfos
  8712. (getDownloadEngine): Removed.
  8713. * src/TorrentRequestInfo.cc
  8714. (haltRequested): Removed.
  8715. (btHaltRequested): New variable.
  8716. (torrentHandler): haltRequested -> btHaltRequested
  8717. (execute): RequestInfo* -> RequestInfos
  8718. * src/TorrentConsoleDownloadEngine.cc
  8719. (afterEachIteration): haltRequested -> btHaltRequested.
  8720. * src/ConsoleDownloadEngine.h
  8721. (initStatistics): Added virtual.
  8722. (calculateStatistics): Added virtual.
  8723. (onEndOfRun): Added virtual.
  8724. (afterEachIteration): Added virtual.
  8725. * src/ConsoleDownloadEngine.cc
  8726. (haltRequested): New variable.
  8727. (afterEachIteration): New function.
  8728. * src/main.cc
  8729. (requestInfo): Removed.
  8730. * src/SegmentMan.cc
  8731. (findSlowerSegmentEntry): Refactored.
  8732. * Release 0.9.0
  8733. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8735. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8736. * src/TorrentMan.h: Removed.
  8737. * src/TorrentMan.cc: Removed.
  8738. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8739. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8740. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8741. * src/PeerAbstractCommand.cc: Use btRuntime.
  8742. * src/BtContextAwareCommand.h: New class.
  8743. * src/FileEntry.h: Added accessor methods for following variables.
  8744. (path): Made private.
  8745. (length): Made private.
  8746. (offset): Made private.
  8747. (extracted): Made private.
  8748. (requested): Made private.
  8749. (FileEntries): New definition.
  8750. (FileEntryHandle): New definition.
  8751. * src/FileEntry.cc: New file.
  8752. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8753. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8754. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8755. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8756. * src/PieceStorage.h: New file.
  8757. * src/PeerInteractionCommand.h: Use btContext.
  8758. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8759. btRuntime.
  8760. * src/DefaultBtProgressInfoFile.h: New file.
  8761. * src/DefaultBtProgressInfoFile.cc: New file.
  8762. * src/File.cc
  8763. (Util.h): New include.
  8764. (mkdirs): New function.
  8765. * src/MultiDiskAdaptor.h
  8766. (mkdir): New function.
  8767. * src/PeerListProcessor.h
  8768. (Peers): Removed.
  8769. * src/PeerInteraction.h
  8770. (torrentMan): Removed.
  8771. (btContext): New variable.
  8772. (peerStorage): New variable.
  8773. (pieceStorage): New variable.
  8774. (btAnnounce): New variable.
  8775. (getTorrentMan): Removed.
  8776. (getBtContext): New function.
  8777. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  8778. btAnnounce.
  8779. * src/HandshakeMessage.h
  8780. (TorrentMan.h): Removed.
  8781. * src/HandshakeMessage.cc: Use btContext.
  8782. * src/DefaultBtAnnounce.cc: New file.
  8783. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8784. * src/DefaultPieceStorage.cc: New file.
  8785. * src/DefaultBtContext.h: New file.
  8786. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8787. Use the accessor methods of FileEntry.
  8788. * src/CookieBox.cc: Updated to use Util::slice().
  8789. * src/PieceMessage.cc: Use btContext, pieceStorage.
  8790. * src/common.h (SharedHandle.h): New include.
  8791. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  8792. pieceStorage.
  8793. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  8794. * src/DiskAdaptor.h
  8795. (topDir): Removed.
  8796. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  8797. (setTopDir): Removed.
  8798. (getTopDir): Removed.
  8799. * src/BtContext.h: New file.
  8800. * src/DefaultPeerStorage.h: New file.
  8801. * src/PieceMessage.h (TorrentMan.h): Removed.
  8802. * src/RequestMessage.h (TorrentMan.h): Removed.
  8803. * src/TorrentDownloadEngine.h
  8804. (uploadLength): New variable.
  8805. (btContext): New variable.
  8806. (btRuntime): New variable.
  8807. (pieceStorage): New variable.
  8808. (peerStorage): New variable.
  8809. (btAnnounce): New variable.
  8810. (btProgressInfoFile): New variable.
  8811. (torrentMan): Removed.
  8812. (setBtContext): New function.
  8813. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8814. peerStorage, btAnnounce, btProgressInfoFile.
  8815. * src/Piece.h
  8816. (toString): New function.
  8817. (Pieces): New type definition.
  8818. * src/Peer.h
  8819. (active): New variable.
  8820. (Peer): Added active.
  8821. (activate): Set active to true.
  8822. (deactivate): Set active to false.
  8823. (isActive): New function.
  8824. (Peers): New type definition.
  8825. * src/DirectDiskAdaptor.cc
  8826. (getFilePath): Use the accessor methods of FileEntry.
  8827. * src/TorrentConsoleDownloadEngine.h
  8828. (afterEachIteration): New function.
  8829. * src/TorrentConsoleDownloadEngine.cc
  8830. (haltRequested): New variable.
  8831. (sendStatistics): Use pieceStorage, btRuntime.
  8832. (afterEachIteration): New function.
  8833. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8834. * src/Directry.h
  8835. (Directory): New function.
  8836. (DirectoryHandle): New type definition.
  8837. * src/BtProgressInfoFile.h: New file.
  8838. * src/RequestMessage.cc: Use pieceStorage.
  8839. * src/BtRuntime.h: New file.
  8840. * src/DefaultBtContext.cc: New file.
  8841. * src/BitfieldMan.h
  8842. (getCompletedLength): New function(private).
  8843. (getCompletedLength): New function.
  8844. (getFilteredCompletedLength): New function.
  8845. * src/BitfieldMan.h
  8846. (getCompletedLength): New function(private).
  8847. (getCompletedLength): New function.
  8848. (getFilteredCompletedLength): New function.
  8849. * src/MultiDiskAdaptor.cc
  8850. (mkdir): New function.
  8851. (openFile): Call mkdir().
  8852. (initAndOpenFile): Call mkdir().
  8853. * src/CancelMessage.h
  8854. (TorrentMan.h): Removed.
  8855. * src/RejectMessage.h
  8856. (TorrentMan.h): Removed.
  8857. * src/DownloadEngineFactory.cc
  8858. (DefaultPieceStorage.h): New include.
  8859. (DefaultPeerStorage.h): New include.
  8860. (DefaultBtAnnounce.h): New include.
  8861. (DefaultBtProgressInfoFile.h): New include.
  8862. (newTorrentConsoleEngine): Rewritten.
  8863. * src/ShareRatioSeedCriteria.h
  8864. (torrentMan): Removed.
  8865. (btContext): New variable.
  8866. (peerStorage): New variable.
  8867. (btRuntime): New variable.
  8868. (evaluate): Use btContext, btRuntime, peerStorage.
  8869. * src/AnnounceTier.h: New file.
  8870. * src/BtAnnounce.h: New file.
  8871. * src/BtRegistry.h: New file.
  8872. * src/PeerInitiateConnectionCommand.h: Added btContext.
  8873. * src/PeerConnection.h (TorrentMan.h): Removed.
  8874. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  8875. * src/Util.h
  8876. (slice): Added an argument.
  8877. * src/Util.cc
  8878. (slice): Added an argument to control whether trim is made or not.
  8879. * src/PeerStorage.h: New file.
  8880. * src/BtRegistry.cc: New file.
  8881. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  8882. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  8883. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  8884. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  8885. * src/TorrentRequestInfo.h
  8886. (e): Removed.
  8887. (showFileEntry): Added an argument.
  8888. (getDownloadEngine): Return 0.
  8889. * src/DefaultBtAnnounce.h: New file.
  8890. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  8891. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  8892. * src/PeerMessageFactory.h
  8893. (btContext): New variable.
  8894. (pieceStorage): New variable.
  8895. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  8896. btAnnounce.
  8897. * src/DiskAdaptor.cc
  8898. (DiskAdaptor): Removed topDir.
  8899. (~DiskAdaptor): Removed topDir.
  8900. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  8901. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  8902. * src/File.h (mkdirs): New function.
  8903. * src/DefaultPeerStorage): New file.
  8904. * src/DownloadEngineFactory.h
  8905. (newTorrentConsoleEngine): Use btContext.
  8906. * src/BtContextAwareCommand.cc: New file.
  8907. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  8908. * src/PeerMessage.h
  8909. (btContext): New variable.
  8910. (peerStorage): New variable.
  8911. (pieceStorage): New variable.
  8912. (setBtContext): New function.
  8913. * src/Directry.cc
  8914. (Directory): New function.
  8915. (createDir): Do nothing if name.size() == 0.
  8916. * src/AnnounceList.h
  8917. (AnnounceTier): Removed.
  8918. (AnnounceTiers): Removed.
  8919. * src/DefaultPieceStorage.h: New file.
  8920. * src/Piece.cc (toString): New function.
  8921. To fix typo:
  8922. * src/main.cc (showVersion): Fixed typo.
  8923. To fix compile warning:
  8924. * src/DelegatingPeerListProcessor.cc
  8925. (canHandle): Added "return false".
  8926. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  8928. make the process of announce request testable.
  8929. * src/TrackerWatcherCommand.h
  8930. (TimeA2.h): Removed.
  8931. (interval): Removed.
  8932. (checkPoint): Removed.
  8933. (createRequestCommand): Added an argument 'url'.
  8934. (TrackerWatherCommand): Removed interval.
  8935. (createCommand): New function.
  8936. * src/DownloadEngineFactory.cc
  8937. (newTorrentConsoleEngine): Updated according to the changes in
  8938. TrackerWatherCommand.
  8939. * src/TorrentMan.cc
  8940. (DelegatingPeerListProcessor.h): New includes.
  8941. (TorrentMan): Added the initialization of announceInterval.
  8942. (isStoppedAnnounceReady): New function.
  8943. (isCompletedAnnounceReady): New function.
  8944. (isDefaultAnnounceReady): New function.
  8945. (isAnnounceReady): New function.
  8946. (getAnnounceUrl): New function.
  8947. (announceStart): New function.
  8948. (announceFailure): New function.
  8949. (announceSuccess): New function.
  8950. (isAllAnnounceFailed): New function.
  8951. (resetAnnounce): New function.
  8952. (processAnnounceResponse): New function.
  8953. (needMorePeerConnection): New function.
  8954. (noMoreAnnounce): New function.
  8955. * src/TrackerUpdateCommand.h
  8956. (getTrackerResponse): int->size_t
  8957. * src/TorrentMan.h
  8958. (isStoppedAnnounceReady): New function.
  8959. (isCompletedAnnounceReady): New function.
  8960. (isDefaultAnnounceReady): New function.
  8961. (announceInterval): New variable.
  8962. (isAnnounceReady): New function.
  8963. (getAnnounceUrl): New function.
  8964. (announceStart): New function.
  8965. (announceFailure): New function.
  8966. (announceSuccess): New function.
  8967. (isAllAnnounceFailed): New function.
  8968. (resetAnnounce): New function.
  8969. (processAnnounceResponse): New function.
  8970. (needMorePeerConnection): New function.
  8971. (noMoreAnnounce): New function.
  8972. * src/TrackerWatcherCommand.cc
  8973. (TrackerWatherCommand): Removed interval and checkPoint.
  8974. (execute): Rewritten.
  8975. (createCommand): New function.
  8976. (createRequestCommand): Rewritten.
  8977. * src/TrackerUpdateCommand.cc
  8978. (MetaFileUtil.h): Removed.
  8979. (DelegatingPeerListProcessor.h): Removed.
  8980. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8981. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. Request -> RequestHandle:
  8983. * src/HttpResponseCommand.h: Request->RequestHandle
  8984. * src/AbstractCommand.cc: Request->RequestHandle
  8985. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8986. * src/HttpRequestCommand.cc: Request->RequestHandle
  8987. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8988. * src/AbstractCommand.h: Request->RequestHandle
  8989. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8990. * src/HttpResponseCommand.cc: Request->RequestHandle
  8991. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8992. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8993. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8994. * src/HttpConnection.h: Request->RequestHandle
  8995. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8996. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8997. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8998. * src/DownloadCommand.h: Request->RequestHandle
  8999. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9000. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9001. * src/HttpRequestCommand.h: Request->RequestHandle
  9002. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9003. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9004. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9005. * src/HttpDownloadCommand.h: Request->RequestHandle
  9006. * src/FtpConnection.cc: Request->RequestHandle
  9007. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9008. * src/UrlRequestInfo.cc: Request->RequestHandle
  9009. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9010. * src/HttpConnection.h: Request->RequestHandle
  9011. * src/DownloadCommand.cc: Request->RequestHandle
  9012. * src/FtpConnection.h: Request->RequestHandle
  9013. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9014. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9015. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9016. * src/Request.h
  9017. (SharedHandle.h): New include.
  9018. (RequestHandle): New type definition.
  9019. (Requests): Redefined.
  9020. To add MULTITRACKER support:
  9021. * src/TrackerWatcherCommand.h
  9022. (createRequestCommand): New function.
  9023. * src/DownloadEngineFactory.cc
  9024. (newTorrentConsoleEngine): Removed req.
  9025. * src/prefs.h
  9026. (PREF_TRACKER_MAX_TRIES): New definition.
  9027. * src/TorrentMan.cc
  9028. (TorrentMan): Removed req. Added trackerNumTry.
  9029. (~TorrentMan): Removed req.
  9030. (setupInternal1): Added announceList.
  9031. * src/TorrentRequestInfo.cc
  9032. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9033. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9034. * src/main.cc
  9035. (main): Added PREF_TRACKER_MAX_TRIES.
  9036. * src/TorrentMan.h
  9037. (Request.h): Removed.
  9038. (AnnounceList.h): New include.
  9039. (trackerNumTry): New variable.
  9040. (req): Removed.
  9041. (announceList): New variable.
  9042. * src/TrackerWatcherCommand.cc
  9043. (execute): Rewritten.
  9044. (createRequestCommand): New function.
  9045. * src/TrackerUpdateCommand.cc
  9046. (execute): Updated with the use of AnnounceList.
  9047. * src/AnnounceList.cc: New class.
  9048. * src/AnnounceList.h: New class.
  9049. To fix typo:
  9050. * src/prefs.h
  9051. (PREF_MAX_TRIES): max_try->max_tries
  9052. To not to decode "+" as space in URL decode:
  9053. * src/Util.cc
  9054. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9055. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. To add timeout to async name resolution:
  9057. * src/AbstractCommand.h
  9058. (nameResolveFinished): New function. This is not elegant way. It needs
  9059. to be more refined.
  9060. (nameResolverCheck): New variable.
  9061. * src/AbstractCommand.cc
  9062. (AbstractCommand): Added nameResolverCheck.
  9063. (execute): Added the check whether the name resolution has finished.
  9064. (setNameResolverCheck): Set nameResolverCheck to true.
  9065. (disableNameResolverCheck): Set nameResolverCheck to false.
  9066. (nameResolverFinished): New function.
  9067. * src/FtpInitiateConnectionCommand.h
  9068. (nameResolverFinished): New function.
  9069. * src/FtpInitiateConnectionCommand.cc
  9070. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9071. * src/HttpInitiateConnectionCommand.h
  9072. (nameResolverFinished): New function.
  9073. * src/HttpInitiateConnectionCommand.cc
  9074. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9075. * src/prefs.h
  9076. (PREF_DNS_TIMEOUT): New definition.
  9077. * src/main.cc
  9078. (main): Added PREF_DNS_TIMEOUT.
  9079. To add the support for a non-compact response from a tracker:
  9080. * src/PeerListProcessor.h: New class.
  9081. * src/DefaultPeerListProcessor.h: New class.
  9082. * src/DefaultPeerListProcessor.cc: New class.
  9083. * src/CompactPeerListProcessor.h: New class.
  9084. * src/CompactPeerListProcessor.cc: New class.
  9085. * src/DelegatingPeerListProcessor.h: New class.
  9086. * src/DelegatingPeerListProcessor.cc: New class.
  9087. * src/TorrentMan.cc
  9088. (addPeer): New function(overload).
  9089. (addPeer): Delete unused peers only when new peer is added.
  9090. * src/TorrentMan.h
  9091. (PeerListProcessor.h): Included.
  9092. (Peers): Removed.
  9093. (addPeer): New function(overload).
  9094. * src/TrackerUpdateCommand.cc
  9095. (netinet/in.h): Removed.
  9096. (DelegatingPeerListProcessor.h): Included.
  9097. (execute): Updated to use DelegatingPeerListProcessor.
  9098. To fix the memory leak in TorrentMan::peers:
  9099. * src/PeerAbstractCommand.cc
  9100. (onAbort): Added peer->resetStatus().
  9101. * src/Peer.h
  9102. (resetStatus): Made public.
  9103. To improve the precision of the speed calculation:
  9104. * src/SpeedCalc.h
  9105. (nextInterval): New variable.
  9106. * src/SpeedCalc.cc
  9107. (reset): Added nextInterval.
  9108. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9109. (changeSw): Set nextInterval to 15 seconds relative to the current
  9110. instant time.
  9111. * src/main.cc
  9112. (showVersion): Updated.
  9113. (showUsage): Updated.
  9114. * Release 0.8.1
  9115. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9116. * src/main.cc
  9117. (showUsage): Commented out --min-segment-size option.
  9118. (main): Commented out --min-segment-size option.
  9119. * Release 0.8.0
  9120. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. * src/*.{h,cc}:
  9122. Added an exception to the license which allows linking with OpenSSL.
  9123. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. * src/AbstractCommand.cc
  9125. (execute): Check whether the download has finished before checking
  9126. socket status.
  9127. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9128. Do not exit even if no segment is available.
  9129. * src/prefs.h
  9130. (PREF_STARTUP_IDLE_TIME): New definition.
  9131. * src/PeerInteractionCommand.cc
  9132. (executeInternal): Removed max speed limit. Because it performs bad.
  9133. (receiveMessages): Added max speed limit. This was better than above,
  9134. but still a little bit to be desired. Sometimes the download speed
  9135. became much faster than I specified.
  9136. * src/SpeedCalc.h
  9137. (start): New variable.
  9138. (accumulatedLength): New variable.
  9139. (getAvgSpeed): New function.
  9140. * src/SpeedCalc.cc
  9141. (reset): Added start, accumulatedLength.
  9142. (update): Added calculation of an average speed.
  9143. (getAvgSpeed): New function.
  9144. * src/DownloadCommand.h
  9145. (sw): Removed.
  9146. * src/main.cc
  9147. (main): Added PREF_STARTUP_IDLE_TIME.
  9148. * src/PeerStat.h
  9149. (STATUS): Added REQUEST_IDLE.
  9150. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9151. (getAvgDownloadSpeed): New function
  9152. (requestIdle): New function.
  9153. * src/SegmentMan.h
  9154. (SegmentEntryHandle): New type definition.
  9155. (SegmentEntries): Now holds SegmentEntryHandle.
  9156. (findSlowerSegmentEntry): New funtion.
  9157. * src/SegmentMan.cc
  9158. (save): Updated according to the changes in SegmentEntries.
  9159. (read): Updated according to the changes in SegmentEntries.
  9160. (FindSegmentEntryByIndex): Updated according to the changes in
  9161. SegmentEntries.
  9162. (FindSegmentEntryByCuid): Updated according to the changes in
  9163. SegmentEntries.
  9164. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9165. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9166. Renamed uitr as itr.
  9167. (findSlowerSegmentEntry): New function.
  9168. (getSegment): Updated according to the changes in SegmentEntries.
  9169. Added the feature that cancels the segment with slow server and fast
  9170. one takes it over.
  9171. (cancelSegment): Updated according to the changes in SegmentEntries.
  9172. (getDownloadLength): Updated according to the changes in
  9173. SegmentEntries.
  9174. (init): Assigned 0 to bitfield after deleting it.
  9175. * src/DownloadCommand.cc
  9176. (STARTUP_IDLE_TIME): Removed.
  9177. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9178. * src/PeerChokeCommand.cc
  9179. (optUnchokingPeer): Updated according to the changes in Peer.
  9180. (ResetDelta): Removed.
  9181. (UploadFaster): Updated according to the changes in Peer.
  9182. (DownloadFaster): Updated according to the changes in Peer.
  9183. (execute): I clarify the meaning of "upload" and "download" here.
  9184. "upload" means the transfer from localhost to remote host.
  9185. "download" means the transfer from remote host to localhost.
  9186. Based on this rule, I swapped orderByUploadRate and
  9187. orderByDownloadRate.
  9188. * src/PeerInteractionCommand.cc
  9189. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9190. (executeInternal): Removed the argument of
  9191. peerInteraction->sendMessages().
  9192. (receiveMessages): Rewritten download speed limit.
  9193. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9194. * src/HttpResponseCommand.cc
  9195. (handleDefaultEncoding): If file size is unknown in torrent request,
  9196. do not call segmentMan->initBitfield() here.
  9197. Disabled persistent connection feature in torrent request.
  9198. * src/UrlRequestInfo.h
  9199. (UrlRequestInfo): Removed const qualifier from option.
  9200. * src/TorrentMan.h
  9201. (TransferStat): New class.
  9202. (deltaDownloadLength): Removed.
  9203. (deltaUploadLength): Removed.
  9204. (addDeltaDownloadLength): Removed.
  9205. (getDeltaDownloadLength): Removed.
  9206. (resetDeltaDownloadLength): Removed.
  9207. (addDeltaUploadLength): Removed.
  9208. (getDeltaUploadLength): Removed.
  9209. (resetDeltaUploadLength): Removed.
  9210. (addActivePeer): Added peer->activate().
  9211. (deleteActivePeer): Added peer->deactivate().
  9212. (calculateStat): New function.
  9213. * src/TorrentMan.cc
  9214. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9215. (calculateStat): New function.
  9216. * src/PeerInteraction.h
  9217. (uploadLimit): Removed.
  9218. (option): New variable.
  9219. (setUploadLimit): Removed.
  9220. (getUploadSpeed): Removed.
  9221. (sendMessages): Removed the argument "currentUploadSpeed".
  9222. * src/PeerInteraction.cc
  9223. (prefs.h): Included.
  9224. (PeerInteraction): Removed uploadLimit. Added option.
  9225. (sendMessages): Rewritten upload speed limit.
  9226. (sendHandshake): Removed the argument from sendMessages().
  9227. (sendBitfield): Removed the argument from sendMessages().
  9228. * src/PeerAbstractCommand.cc
  9229. (execute): Commented out the portion of upload limit.
  9230. (onAbort): Removed peer->resetStatus().
  9231. * src/TorrentRequestInfo.cc
  9232. (timeoutSpecified): Declared extern.
  9233. (execute): Set timeout to 180 if timeout is not specified by.
  9234. command-line.
  9235. * src/PieceMessage.cc
  9236. (receivedAction): Added peer->updateDownloadLength().
  9237. Removed peer->addPeerUpload().
  9238. Removed torrentMan->addDeltaDownloadLength().
  9239. (send): Added peer->updateUploadLength().
  9240. Removed peer->addPeerDownload().
  9241. Removed torrentMan->addDeltaUploadLength().
  9242. * src/main.cc
  9243. (timeoutSpecified): New variable.
  9244. (main): Set timeoutSpecified to false.
  9245. If the command-line option "--upload-limit" is specified, then
  9246. timeoutSpecified is set to true. This option will remain in the next
  9247. release, but be deprecated in the future release.
  9248. * src/TorrentRequestInfo.h
  9249. (TorrentRequestInfo): Removed const qualifier from op.
  9250. * src/PeerStat.h
  9251. (uploadSpeed): New variable.
  9252. (PeerStat): Added default value to cuid.
  9253. (calculateUploadSpeed): New function.
  9254. (updateUploadLength): New function.
  9255. (getMaxUploadSpeed): New function.
  9256. (getAvgUploadSpeed): New function.
  9257. (reset): Added uploadSpeed. Set status to IDLE.
  9258. * src/TorrentDownloadEngine.h
  9259. (cp): Declared as Time.
  9260. (sessionDownloadLengthArray): Removed.
  9261. (sessionUploadLengthArray): Removed.
  9262. (currentCp): Removed.
  9263. (lastCalcStat): New variable
  9264. (lastElapsed): Removed.
  9265. (sessionDownloadLength): Removed.
  9266. (calculateStat): New function.
  9267. * src/TorrentDownloadEngine.cc
  9268. (initStatistics): Removed lastElapsed, cp[],
  9269. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9270. currentCp, sessionDownloadLength.
  9271. Added cp.reset() and lastCalcStat.reset().
  9272. (calculateSpeed): Changed the name of the argument.
  9273. (calculateStatistics): Rewritten.
  9274. (calculateStat): New function.
  9275. * src/Peer.h
  9276. (PeerStat.h): Included.
  9277. (peerUpload): Removed.
  9278. (peerDownload): Removed.
  9279. (peerStat): New variable.
  9280. (sessionUploadLength): New variable.
  9281. (sessionDownloadLength): New variable.
  9282. (deltaUpload): Removed.
  9283. (deltaDownload): Removed.
  9284. (resetStatus): Made private.
  9285. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9286. Removed peerUpload, peerDownload.
  9287. (updateUploadLength): New function.
  9288. (addDeltaUpload): Removed.
  9289. (updateDownloadLength): New function.
  9290. (resetDeltaUpload): Removed.
  9291. (getDeltaUpload): Removed.
  9292. (addDeltaDownload): Removed.
  9293. (calculateUploadSpeed): New function.
  9294. (resetDeltaDownload): Removed.
  9295. (getDeltaDownload): Removed.
  9296. (calculateDownloadSpeed): New function.
  9297. (getSessionUploadLength): New function.
  9298. (getSessionDownloadLength): New function.
  9299. (activate): New function.
  9300. (deactivate): New function.
  9301. (addPeerUpload): Removed.
  9302. (setPeerUpload): Removed.
  9303. (getPeerUpload): Removed.
  9304. (addPeerDownload): Removed.
  9305. (setPeerDownload): Removed.
  9306. (getPeerDownload): Removed.
  9307. * src/Peer.cc
  9308. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9309. * src/MetalinkRequestInfo.h
  9310. (MetalinkRequestInfo): Removed const qualifier from op.
  9311. * src/RequestInfo.h
  9312. (op): Removed const qualifier.
  9313. (RequestInfo): Removed const qualifier from op.
  9314. * src/prefs.h
  9315. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9316. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9317. * src/PeerInteractionCommand.cc
  9318. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9319. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9320. * src/PeerInteraction.cc
  9321. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9322. * src/main.cc
  9323. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9324. Added the description of "--max-download-limit" option.
  9325. Removed the description of "--upload-limit" option.
  9326. Added the description of "--max-upload-limit" option.
  9327. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9328. Added "--max-download-limit" option and "--max-upload-limit" option.
  9329. Added the warning message if "--upload-limit" option is used.
  9330. * src/DownloadCommand.cc
  9331. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9332. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. To rewrite segment download mechanism for HTTP/FTP download.
  9334. Use BitfieldMan to manage segment download.
  9335. * src/HttpResponseCommand.h
  9336. (executeInternal): Pass the reference of segment.
  9337. * src/AbstractCommand.cc
  9338. (prepareForRetry): Call segmentMan->cancelSegment here.
  9339. (onAbort): Call segmentMan->cancelSegment here.
  9340. * src/HttpDownloadCommand.cc
  9341. (prepareForNextSegment): New function.
  9342. * src/DownloadEngineFactory.cc
  9343. (newConsoleEngine): Removed splitter.
  9344. (newTorrentConsoleEngine): Removed splitter.
  9345. * src/Request.h
  9346. (segment): Renamed from seg.
  9347. * src/FtpInitiateConnectionCommand.h
  9348. (executeInternal): Pass the reference of segment.
  9349. * src/AbstractCommand.h
  9350. (executeInternal): Pass the reference of segment.
  9351. * src/pref.h
  9352. (PREF_SEGMENT_SIZE): New definition.
  9353. * src/HttpProxyRequestCommand.h
  9354. (executeInternal): Pass the reference of segment.
  9355. * src/HttpResponseCommand.cc
  9356. (checkResponse): Allowed status 206 when a request range starts 0.
  9357. (handleDefaultEncoding): Rewritten the code related to Segment.
  9358. (handleOtherEncoding): Rewritten the code related to Segment.
  9359. * src/SegmentMan.h
  9360. (SegmentEntry): New class.
  9361. (SegmentEntries): New type definition.
  9362. (bitfield): New variable.
  9363. (usedSegmentEntries): New variable.
  9364. (onNullBitfield): New function.
  9365. (checkoutSegment): New function.
  9366. (segments): Removed.
  9367. (splitter): Removed.
  9368. (unregisterId): Removed.
  9369. (getSegment): New function(overload)
  9370. (getDownloadedSize): Removed.
  9371. (cancelSegment): New function.
  9372. (completeSegment): New function.
  9373. (initBitfield): New function.
  9374. (hasSegment): New function.
  9375. (getDownloadLength): New function.
  9376. * src/BitfieldMan.h
  9377. (getStartIndex): New function.
  9378. (getEndIndex): New function.
  9379. (getMissingUnusedIndex): New function(overload).
  9380. (getSparseMissingUnusedIndex): New function.
  9381. * src/BitfieldMan.cc
  9382. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9383. (getMissingUnusedIndex): New function(overload).
  9384. (Range): New class.
  9385. (getStartIndex): New function.
  9386. (getEndIndex): New function.
  9387. (getSparseMissingUnusedIndex): New function.
  9388. (isBitSetInternal): Return false if the given index is less than 0.
  9389. * src/HttpInitiateConnectionCommand.h
  9390. (executeInternal): Pass the reference of segment.
  9391. * src/FtpNegotiateCommand.h
  9392. (executeInternal): Pass the reference of segment.
  9393. * src/FtpNegotiateCommand.cc
  9394. (recvSize): Initialize bitfield here.
  9395. * src/FtpTunnelResponseCommand.h
  9396. (executeInternal): Pass the reference of segment.
  9397. * src/HttpConnection.cc
  9398. (createRequest): Rewritten range header processing.
  9399. * src/DownloadCommand.h
  9400. (executeInternal): Pass the reference of segment.
  9401. (prepareForRetry): Removed.
  9402. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9403. function.
  9404. * src/main.cc
  9405. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9406. * src/SegmentMan.cc
  9407. (SegmentMan): Added bitfield. Removed splitter.
  9408. (~SegmentMan): Added bitfield. Removed splitter.
  9409. (unregisterId): Removed.
  9410. (getSegment): Rewritten.
  9411. (updateSegment): Rewritten.
  9412. (save): Rewritten.
  9413. (read): Rewritten.
  9414. (finished): Rewritten.
  9415. (getDownloadedSize): Removed.
  9416. (initBitfield): New function.
  9417. (FindSegmentEntryByIndex): New function object.
  9418. (FindSegmentEntryByCuid): New function object.
  9419. (checkoutSegment): New function.
  9420. (onNullBitfield): New function.
  9421. (getSegment): New function(overload).
  9422. (CancelSegment): New function object.
  9423. (cancelSegment): New function.
  9424. (completeSegment): New function.
  9425. (hasSegment): New function.
  9426. (getDownloadLength): New function.
  9427. * src/FtpInitiateConnectionCommand.cc
  9428. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9429. * src/Segment.h: Rewritten.
  9430. * src/Segment.cc (operator<<): New function.
  9431. * src/HttpDownloadCommand.h
  9432. (prepareForNextSegment): New function.
  9433. * src/Request.cc
  9434. (resetUrl): Made segment null.
  9435. * src/DownloadEngine.cc
  9436. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9437. * src/HttpProxyRequestCommand.h
  9438. (executeInternal): Pass the reference of segment.
  9439. * src/DownloadCommand.cc
  9440. (executeInternal): Rewritten the code related to Segment.
  9441. (prepareForRetry): Removed.
  9442. (prepareForNextSegment): Rewritten.
  9443. * src/FtpTunnelResponseCommand.h
  9444. (executeInternal): Pass the reference of segment.
  9445. To add HTTP 1.1 persistent connection support(experimental)
  9446. * src/HttpRequestCommand.cc
  9447. (executeInternal): Disable keep alive if it is disabled by
  9448. configuration.
  9449. * src/Request.h
  9450. (keepAlive): New variable.
  9451. (isKeepAlive): New function.
  9452. (setKeepAlive): New function.
  9453. * src/pref.h
  9454. (PREF_HTTP_KEEP_ALIVE): New definition.
  9455. * src/HttpResponseCommand.cc
  9456. (executeInternal): Check the remote server supports keep alive.
  9457. * src/HttpConnection.cc
  9458. (createRequest): Send "Connection: close" only if keep alive is
  9459. disabled.
  9460. * src/main.cc
  9461. (main):
  9462. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9463. To add max download speed limit:
  9464. * src/pref.h
  9465. (PREF_MAX_SPEED_LIMIT): New definition.
  9466. * src/PeerInteractionCommand.cc
  9467. (executeInternal): Added max download speed limit. Not tested yet.
  9468. * src/SegmentMan.h
  9469. (PeerStats): New type definition.
  9470. (peerStats): New variable.
  9471. (registerPeerStat): New function.
  9472. (FindPeerStat): New function object.
  9473. (getPeerStat): New function.
  9474. (calculateDownloadSpeed): New function.
  9475. * src/SpeedCalc.h: New class.
  9476. * src/SpeedCalc.cc: New class.
  9477. * src/main.cc
  9478. (main):
  9479. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9480. download speed is not restricted).
  9481. * src/PeerStat.h: New class.
  9482. * src/SegmentMan.cc
  9483. (registerPeerStat): New function.
  9484. (calculateDownloadSpeed): New function.
  9485. * src/DownloadCommand.cc
  9486. (STARTUP_IDLE_TIME): New definition.
  9487. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9488. downloadStart.
  9489. (~DownloadCommand): Call peerStat->downloadStop.
  9490. (executeInternal): Added download speed limitter. Rewritten lowest
  9491. speed limitter.
  9492. * src/HttpConnection.cc
  9493. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9494. * src/AbstractCommand.cc
  9495. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9496. Added hostname to the error message.
  9497. * src/ConsoleDownloadEngine.cc
  9498. (calculateStatistics): Initialize psize with dlSize.
  9499. * src/PieceMessage.cc
  9500. (receivedAction): Do not call peerInteraction->abortPiece here.
  9501. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9502. * src/BitfieldMan.h
  9503. (clearAllUseBit): New function.
  9504. (setAllUseBit): New function.
  9505. * src/BitfieldMan.cc
  9506. (clearAllBit): Do not clear useBitfield here.
  9507. (clearAllUseBit): New function.
  9508. (setAllUseBit): New function.
  9509. * src/Piece.cc
  9510. (clearAllBlock): Call bitfield->clearAllUseBit().
  9511. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. To make filename URL-decoded:
  9513. * src/HttpResponseCommand.h: Updated doc.
  9514. * src/HttpResponseCommand.cc
  9515. (determinFilename): Made filename URL-decoded.
  9516. * src/FtpInitiateConnectionCommand.cc
  9517. (executeInternal): Made filename URL-decoded.
  9518. * src/Util.h (urldecode): New function.
  9519. * src/Util.cc (urldecode): New function.
  9520. To fix a bug that caused assertion failure in ares_strerror:
  9521. * src/NameResolver.cc (callback): Fixed the bug.
  9522. * Release 0.7.3
  9523. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. To add --seed-time and --seed-ratio command-line option:
  9525. * src/Option.h (getAsDouble): New function.
  9526. * src/Option.cc (getAsDouble): New function.
  9527. * src/SeedCheckCommand.h: New class.
  9528. * src/SeedCheckCommand.cc: New class.
  9529. * src/DownloadEngineFactory.cc
  9530. (SeedCheckCommand.h): Included.
  9531. (UnionSeedCriteria.h): Included.
  9532. (TimeSeedCriteria.h): Included.
  9533. (ShareRatioSeedCriteria.h): Included.
  9534. (newTorrentConsoleEngine): Added the processing of seed option.
  9535. * src/SeedCriteria.h: New class.
  9536. * src/ShareRatioSeedCriteria.h: New class.
  9537. * src/TimeSeedCriteria.h: New class.
  9538. * src/UnionSeedCriteria.h: New class.
  9539. * src/prefs.h
  9540. (PREF_SEED_TIME): New definition.
  9541. (PREF_SEED_RATIO): New definition.
  9542. * src/main.cc
  9543. (showUsage): Added --seed-time and --seed-ratio option.
  9544. (main): Added --seed-time and --seed-ratio option.
  9545. Made default log file name "/dev/null".
  9546. * src/SharedHandle.h
  9547. (SharedHandle): Copy constructor. Made it assignable from the
  9548. SharedHandle of the subclasses.
  9549. (operator=): Made it assignable from the SharedHandle of the
  9550. subclasses.
  9551. (getRefCount): New function.
  9552. To add notice log level and the switch to write log to stdout. This
  9553. switch is configurable per log level.
  9554. * src/Logger.h
  9555. (notice): New function.
  9556. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9557. constant.
  9558. * src/LogFactory.cc
  9559. (getInstance): The use of NullLogger was removed. A log message with
  9560. notice log level was made written to stdout along with log file.
  9561. * src/NullLogger.h
  9562. (notice): New function.
  9563. * src/SimpleLogger.h
  9564. (writeHeader): Added the 'file' argument.
  9565. (writeLog): Added the 'file' argument.
  9566. (writeFile): New function.
  9567. (stdoutField): New variable.
  9568. (SimpleLogger): Removed the default constructor.
  9569. (SimpleLogger): Made the default value of logfile 0.
  9570. (debug): Added 'virtual' keyword.
  9571. (info): Added 'virtual' keyword.
  9572. (warn): Added 'virtual' keyword.
  9573. (error): Added 'virtual' keyword.
  9574. (notice): New function.
  9575. (setStdout): New function.
  9576. * src/SimpleLogger.cc
  9577. (WRITE_LOG): Replaced writeLog with writeFile.
  9578. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9579. (SimpleLogger): Removed the default constructor.
  9580. (setStdout): New function.
  9581. (writeLog): Added the handling of NOTICE log level.
  9582. (writeFile): New function.
  9583. (notice): New function.
  9584. * src/TorrentMan.h: Updated doc.
  9585. * src/BitfieldMan.h: Updated doc.
  9586. * src/TrackerWatcherCommand.cc
  9587. (execute): Return true if error occurred in the request to the tracker
  9588. and halt is requested.
  9589. * src/TrackerUpdateCommand.cc
  9590. (execute): Return true if error occurred in the request to the tracker
  9591. and halt is requested.
  9592. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9593. DownloadEngine:
  9594. * src/TorrentConsoleDownloadEngine.h
  9595. (onSelectiveDownloadingCompletes): Removed.
  9596. * src/TorrentConsoleDownloadEngine.cc
  9597. (onSelectiveDownloadingCompletes): Removed.
  9598. * src/TorrentDownloadEngine.h
  9599. (onEndOfRun): Added 'virtual' keyword.
  9600. (afterEachIteration): Removed.
  9601. (onSelectiveDownloadingCompletes): Removed.
  9602. * src/TorrentDownloadEngine.cc
  9603. (onEndOfRun): Removed filenameFixed.
  9604. (afterEachIteration): Removed.
  9605. * src/TorrentMan.cc
  9606. (completePiece): Call onDownloadComplete here.
  9607. (onDownloadComplete): Added 2 log messages.
  9608. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9610. * src/NameResolver.h: Added the prototype declaration of callback().
  9611. To support c-ares library:
  9612. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9613. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9614. * src/FtpInitiateConnectionCommand.h:
  9615. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9616. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9617. * src/HttpInitiateConnectionCommand.h:
  9618. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9619. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9620. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9621. #1542285 by tizianomueller)
  9622. * src/HttpInitiateConnectionCommand.cc:
  9623. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9624. * src/FtpInitiateConnectionCommand.cc:
  9625. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9626. * src/DownloadEngine.h:
  9627. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9628. * src/DownloadEngine.cc:
  9629. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9630. To fix the bug that causes compilation failure with metalink-support
  9631. disabled(bug#1543587):
  9632. * src/main.cc: Fixed with the patch by tizianomueller.
  9633. * Release 0.7.2
  9634. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. * src/main.cc
  9636. (main): Added a message to inform users that aria2 is starting to
  9637. verify checksum.
  9638. * src/RequestInfo.cc
  9639. (printDownloadAbortMessage): Added a message to inform users that
  9640. transfer can be resumed.
  9641. * src/FeatureConfig.cc
  9642. (FEATURE_ASYNC_DNS): New definition.
  9643. (FeatureConfig): Added aysnc DNS entry.
  9644. To replace CommandUuid with Command* in SocketEntry and
  9645. NameResolverEntry:
  9646. * src/DownloadEngine.h
  9647. (CommandUuids): Removed.
  9648. (SocketEntry::commandUuid): Removed.
  9649. (SocketEntry::command): New variable.
  9650. (SocketEntry::SocketEntry): Updated.
  9651. (SocketEntry::operator==): Updated.
  9652. (NameResolverEntry::commandUuid): Removed.
  9653. (NameResolverEntry::command): New variable.
  9654. (NameResolverEntry::NameResolverEntry): Updated.
  9655. (NameResolverEntry::operator==): Updated.
  9656. (waitData): Changed the argument type.
  9657. (addSocketForReadCheck): Changed the argument type.
  9658. (deleteSocketForReadCheck): Changed the argument type.
  9659. (addSocketForWriteCheck): Changed the argument type.
  9660. (deleteSocketForWriteCheck): Changed the argument type.
  9661. (addNameResolverCheck): Changed the argument type.
  9662. (deleteNameResolverCheck): Changed the argument type.
  9663. * src/DownloadEngine.cc
  9664. (FindCommand): Removed.
  9665. (run): Removed activeUuid. Added activeCommands instead.
  9666. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9667. (AccumulateActiveCommand): New function object.
  9668. (waitData): Use AccumulateActiveCommand.
  9669. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9670. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9671. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9672. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9673. (addNameResolverCheck): Use Command instead of CommandUuid.
  9674. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9675. * src/AbstractCommand.cc
  9676. (disableReadCheckSocket): Updated according to the changes in
  9677. DownloadEngine.
  9678. (setReadCheckSocket): Updated according to the changes in
  9679. DownloadEngine.
  9680. (disableWriteCheckSocket): Updated according to the changes in
  9681. DownloadEngine.
  9682. (setWriteCheckSocket): Updated according to the changes in
  9683. DownloadEngine.
  9684. (setNameResolverCheck): Updated according to the changes in
  9685. DownloadEngine.
  9686. (disableNameResolverCheck): Updated according to the changes in
  9687. DownloadEngine.
  9688. * src/AbstractCommand.cc
  9689. (disableReadCheckSocket): Updated according to the changes in
  9690. DownloadEngine.
  9691. (setReadCheckSocket): Updated according to the changes in
  9692. DownloadEngine.
  9693. (disableWriteCheckSocket): Updated according to the changes in
  9694. DownloadEngine.
  9695. (setWriteCheckSocket): Updated according to the changes in
  9696. DownloadEngine.
  9697. * release 0.7.1
  9698. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. To handle the case where some BitTorrent tracker requires all letters
  9700. except for [A-Za-z0-9] is URL encoded.
  9701. * src/Util.h
  9702. (torrentUrlencode): New function.
  9703. * src/Util.cc
  9704. (ctype.h): Included.
  9705. (torrentUrlencode): New function.
  9706. * src/TrackerWatcherCommand.cc
  9707. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9708. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. To add asynchronous DNS support(libares):
  9710. * src/AbstractCommand.h
  9711. (setNameResolverCheck): New function.
  9712. (disableNameResolverCheck): New function
  9713. (resolveHostname): New function.
  9714. * src/AbstractCommand.cc
  9715. (setNameResolverCheck): New function.
  9716. (disableNameResolverCheck): New function
  9717. (resolveHostname): New function.
  9718. * src/FtpInitiateConnectionCommand.h
  9719. (nameResolver): New function.
  9720. * src/FtpInitiateConnectionCommand.cc
  9721. (Util.h): Included.
  9722. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9723. disableWriteCheckSocket.
  9724. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9725. (executeInternal): Added async DNS support.
  9726. * src/HttpInitiateConnectionCommand.h
  9727. (nameResolver): New function.
  9728. * src/HttpInitiateConnectionCommand.cc
  9729. (DlRetryEx.h): Included.
  9730. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9731. disableWriteCheckSocket.
  9732. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9733. (executeInternal): Added async DNS support.
  9734. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9735. by extern "C" declaration.
  9736. * src/NameResolver.cc: New class.
  9737. * src/Util.h:
  9738. (isNumberAndDotsNotation): New function
  9739. * src/Util.cc
  9740. (isNumberAndDotsNotation): New function.
  9741. * src/DownloadEngine.h
  9742. (NameResolver.h): Included.
  9743. (NameResolverEntry): New class.
  9744. (NameResolverEntries): New type definition.
  9745. (addNameResolverCheck): New function.
  9746. (deleteNameResolverCheck): New function.
  9747. * src/DownloadEngine.cc
  9748. (run): Initialize cp with 0.
  9749. (SetDescriptor::operator()): Added for NameResolverEntry.
  9750. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9751. (waitData): Check nameResolver entries.
  9752. (updateFdSet): Update fds in nameResolver entries.
  9753. (addNameResolverCheck): New function.
  9754. (deleteNameResolverCheck): new function.
  9755. * src/PeerInteractionCommand.cc
  9756. (executeInternal): Fixed wrong socket handling.
  9757. * src/main.cc
  9758. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9759. * src/Util.cc
  9760. (fileChecksum): Removed the call to ctx.digestReset().
  9761. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. * po/ru.po: Azamat sent me Russian translation.
  9763. * src/FtpNegotiateCommand.cc
  9764. (recvGreeting): Call disableWriteCheckSocket just after
  9765. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  9766. (recvRetr): Recognized status code 125 as a acceptable response code.
  9767. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  9768. case-insesitive filesystem(BUG#1531057).
  9769. * src/Time.h: Renamed as TimeA2.h.
  9770. * src/Time.cc: Renamed as TimeA2.cc.
  9771. * src/TimeA2.h: New class.
  9772. * src/TimeA2.cc: New class.
  9773. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  9774. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  9775. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  9776. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  9777. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  9778. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9779. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  9780. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  9781. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9782. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9783. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9784. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9785. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9786. * release 0.7.0
  9787. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. * src/PeerChokeCommand.h
  9789. (PeerChokeCommand): Rearranged the arguments.
  9790. * src/PeerChokeCommand.cc
  9791. (PeerChokeCommand): Rearranged the arguments.
  9792. * src/MetalinkEntry.h
  9793. (Checksum.h): Included.
  9794. (md5): Removed.
  9795. (sha1): Removed.
  9796. (checksum): New variable.
  9797. (operator=): Updated.
  9798. (check): Removed.
  9799. * src/prefs.h
  9800. (PREF_LOWEST_SPEED_LIMIT): New definition.
  9801. (PREF_FOLLOW_TORRENT): New definition.
  9802. (PREF_SELECT_FILE): New definition.
  9803. (PREF_FOLLOW_METALINK): New definition.
  9804. * src/MetalinkResource.h
  9805. (TYPE_HTTPS): Added to enum TYPE.
  9806. * src/TorrentMan.cc
  9807. (~TorrentMan): Rewritten.
  9808. * src/MultiDiskWriter.cc
  9809. (MultiDiskAdaptor): Updated according to the changes in
  9810. MessageDigestContext.
  9811. (~MultiDiskAdaptor): Updated according to the changes in
  9812. MessageDigestContext.
  9813. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9814. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9815. * src/Util.h
  9816. (fileChecksum): Updated according to the changes in
  9817. MessageDigestContext.
  9818. * src/Util.cc
  9819. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9820. (fileChecksum): Updated according to the changes in
  9821. MessageDigestContext.
  9822. * src/messageDigest.h: Rewritten.
  9823. * src/MetalinkEntry.cc
  9824. (check): Removed.
  9825. (Supported): Updated.
  9826. (dropUnsupportedResource): Fixed a memory leak.
  9827. * src/ShaVisitor.cc
  9828. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9829. (~ShaVisitor): Updated according to the changes in
  9830. MessageDigestContext.
  9831. (visit): Updated according to the changes in MessageDigestContext.
  9832. * src/main.cc
  9833. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9834. command-line option added.
  9835. * src/DownloadEngine.h
  9836. (SocketEntry): New class.
  9837. (SocketEntries): New definition.
  9838. (PairFind): Removed.
  9839. (SockCmdMap): Removed.
  9840. * src/DownloadEngine.cc
  9841. (DownloadEngine): Rewritten.
  9842. (~DownloadEngine): Rewritten.
  9843. (run): Renamed activeCommandUuids as activeUuids.
  9844. (SetDescriptor): Rewritten.
  9845. (AccumulateActiveCommandUuid): Removed.
  9846. (AccumulateActiveUuid): New function object.
  9847. (waitData): Rewritten.
  9848. (updateFdSet): Rewritten.
  9849. (addSocket): Rewritten.
  9850. (deleteSocket): Rewritten.
  9851. (addSocketForReadCheck): Rewritten.
  9852. (deleteSocketForReadCheck): Rewritten.
  9853. (addSocketForWriteCheck): Rewritten.
  9854. (deleteSocketForWriteCheck): Rewritten.
  9855. * src/Xml2MetalinkProcessor.cc
  9856. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9857. * src/DownloadCommand.cc
  9858. (executeInternal): Added the check routine for lowest speed limit.
  9859. * src/AbstractDiskWriter.cc
  9860. (AbstractDiskWriter): Updated according to the changes in
  9861. MessageDigestContext.
  9862. (~AbstractDiskWriter): Updated according to the changes in
  9863. MessageDigestContext.
  9864. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9865. * src/RequestInfo.h: New class.
  9866. * src/UrlRequestInfo.h: New class.
  9867. * src/UrlRequestInfo.cc: New class.
  9868. * src/TorrentRequestInfo.h: New class.
  9869. * src/TorrentRequestInfo.cc: New class.
  9870. * src/MetalinkRequestInfo.h: New class.
  9871. * src/MetalinkRequestInfo.cc: New class.
  9872. * src/Checksum.h: New class.
  9873. * src/DownloadEngineFactory.h: New class.
  9874. * src/DownloadEngineFactory.cc: New class.
  9875. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. * src/Option.h
  9877. (getAsBool): New function.
  9878. * src/Option.cc
  9879. (prefs.h): Included.
  9880. (defined): 0-length value is now recognized as undefined.
  9881. (getAsInt): Rewritten.
  9882. (getAsLLInt): Rewritten.
  9883. (getAsBool): New function.
  9884. * src/FeatureConfig.h: Rewritten.
  9885. * src/FeatureConfig.cc: Rewritten.
  9886. * src/prefs.h
  9887. (PREF_STDOUT_LOG): New definition.
  9888. (PREF_LOG): New definition.
  9889. (PREF_DIR): New definition.
  9890. (PREF_OUT): New definition.
  9891. (PREF_SPLIT): New definition.
  9892. (PREF_DAEMON): New definition.
  9893. (PREF_REFERER): New definition.
  9894. (PREF_TORRENT_FILE): New definition.
  9895. (PREF_LISTEN_PORT): New definition.
  9896. (PREF_METALINK_FILE): New definition.
  9897. (PREF_METALINK_VERSION): New definition.
  9898. (PREF_METALINK_LANGUAGE): New definition.
  9899. (PREF_METALINK_OS): New definition.
  9900. (PREF_METALINK_SERVERS): New definition.
  9901. * src/main.cc
  9902. (main): Following command-line parameters are now put into Option
  9903. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  9904. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  9905. metalinkLanguage, metalinkOs, metalinkServers
  9906. To fix the bug that aria2 can not handle http response header properly.
  9907. * src/HttpHeader.cc
  9908. (put): Made name lowercased.
  9909. (defined): Made name lowercased.
  9910. (getFirst): Made name lowercased.
  9911. (get): Made name lowercased.
  9912. (getFirstAsInt): Rewritten.
  9913. (getFirstAsLLInt): Rewritten.
  9914. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9915. * src/TorrentMan.h:
  9916. (advertisePiece): Updated doc.
  9917. (getAdvertisedPieceIndexes): Updated doc.
  9918. (removeAdvertisedPiece); New function.
  9919. * src/TorrentMan.cc
  9920. (FindElapsedHave): New function object.
  9921. (removeAdvertisedPiece): New function.
  9922. * src/HaveEraseCommand.h: New class.
  9923. * src/HaveEraseCommand.cc: New class.
  9924. * src/FeatureConfig.h: New class.
  9925. * src/FeatureConfig.cc: New class.
  9926. * src/Request.h
  9927. (defaultPorts): Removed.
  9928. * src/Request.cc
  9929. (FeatureConfig.h): Included.
  9930. (Request): Removed the statements related to defaultPorts.
  9931. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  9932. A default port number is now retrieved from FeatureConfig.
  9933. * src/main.cc
  9934. (HaveEraseCommand.h): Included.
  9935. (showVersion): Added the output of feature list.
  9936. (main): Added HaveEraseCommand to command queue in BitTorrent
  9937. downloading.
  9938. * src/PeerInteractionCommand.h
  9939. (chokeCheckPoint): Commented out.
  9940. (periodicExecPoint): New variable.
  9941. * src/PeerInteractionCommand.cc
  9942. (executeInternal): Following methods are now called in at least every
  9943. 0.5 seconds to reduce CPU usage:
  9944. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  9945. checkHave(), sendKeepAlive().
  9946. (checkLongTimePeerChoking): Commented out.
  9947. * src/BitfieldMan.h
  9948. (getNthBitIndex): Changed the method signature.
  9949. (getMissingIndexRandomly): Changed the method signature.
  9950. * src/BitfieldMan.cc
  9951. (getNthBitIndex): Rewritten
  9952. (getMissingIndexRandomly): Rewritten.
  9953. (hasMissingPiece): Rewritten.
  9954. (getMissingIndex): Refactored.
  9955. (getMissingUnusedIndex); Refactored.
  9956. (getMissingIndex): Refactored.
  9957. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9958. * src/PeerMessage.h
  9959. (Piece.h): Included.
  9960. (SharedHandle.h): Included.
  9961. (invalidate): New variable.
  9962. (uploading): New variable.
  9963. (isInvalidate): New function.
  9964. (isUploading): New function.
  9965. (onPush): New function.
  9966. (onChoked): New function.
  9967. (onCanceled): New function.
  9968. (onAbortPiece): New function.
  9969. (PeerMessageHandle): New type definition.
  9970. * src/PeerMessage.cc
  9971. (PeerMessage): Added the initialization for invalidate and uploading.
  9972. * src/CancelMessage.h
  9973. (CancelMessage): Rewritten.
  9974. * src/RejectMessage.h
  9975. (RejectMessage): Rewritten.
  9976. * src/Metalinker.h
  9977. (operator=): Defined.
  9978. * src/MetaEntry.h
  9979. (operator=): Defined.
  9980. * src/MetalinkResource.h
  9981. (operator=): Defined.
  9982. * src/AllowedFastMessage.h
  9983. (AllowedFastMessage): Rewritten.
  9984. * src/HandshakeMessage.h
  9985. (HandshakeMessage): New function(overload).
  9986. * src/HandshakeMessage.cc
  9987. (HandshakeMessage): Rewritten.
  9988. (init): New function.
  9989. * src/HaveMessage.h
  9990. (HaveMessage): Rewritten.
  9991. * src/Time.h
  9992. (operator=): Defined the function body here.
  9993. * src/Time.cc
  9994. (operator=): Removed.
  9995. * src/SocketCore.h
  9996. (operator==): Defined here.
  9997. (operator!=): Defined here.
  9998. (operator<): Defined here.
  9999. * src/SocketCore.cc
  10000. (operator==): Removed.
  10001. (operator<): Removed.
  10002. * src/BitfieldMan.h
  10003. (operator=): Defined the function body here.
  10004. * src/BitfieldMan.cc
  10005. (operator=): Removed.
  10006. * src/TorrentMan.h
  10007. (deleteErrorPeer): Removed.
  10008. (deleteUnusedPeer); New function.
  10009. * src/TorrentMan.cc
  10010. (addPeer): Call deleteUnusedPeer.
  10011. (deleteErrorPeer): Removed.
  10012. (deleteUnusedPeer): New function.
  10013. * src/PeerAbstractCommand.h
  10014. (setNoCheck): New function.
  10015. (noCheck): New variable.
  10016. * src/PeerAbstractCommand.cc
  10017. (PeerAbstractCommand): Added the initialization of noCheck.
  10018. (execute): Added a check for noCheck.
  10019. (setNoCheck): New function.
  10020. * src/Util.h
  10021. (stdio.h): Included.
  10022. * src/Util.cc
  10023. (unistd.h): Included.
  10024. * src/DefaultDiskWriter.cc
  10025. (unistd.h): Included.
  10026. * src/Peer.h
  10027. (operator==): Defined the function body here.
  10028. (operator!=): Defined the function body here.
  10029. * src/Peer.cc
  10030. (operator==): Removed.
  10031. (operator!=): Removed.
  10032. * src/Piece.h
  10033. (Piece): Defined the function body here(copy constructor).
  10034. (operator=): Defined the function body here.
  10035. (operator==): Defined the function body here.
  10036. * src/Piece.cc
  10037. (Piece): Removed(copy constructor).
  10038. (operator=): Removed.
  10039. (operator==): Removed.
  10040. * src/PeerMessageUtil.h
  10041. (ChokeMessage.h): Removed.
  10042. (UnchokeMessage.h): Removed.
  10043. (InterestedMessage.h): Removed.
  10044. (NotInterestedMessage.h): Removed.
  10045. (HaveMessage.h): Removed.
  10046. (BitfieldMessage.h): Removed.
  10047. (RequestMessage.h): Removed.
  10048. (CancelMessage.h): Removed.
  10049. (PieceMessage.h): Removed.
  10050. (HandshakeMessage.h): Removed.
  10051. (KeepAliveMessage.h): Removed.
  10052. (PortMessage.h): Removed.
  10053. (HaveAllMessage.h): Removed.
  10054. (HaveNoneMessage.h): Removed.
  10055. (PeerConnection.h): Removed.
  10056. (HandshakeMessage.h): Included.
  10057. * src/BitfieldMessage.h
  10058. (init): New function.
  10059. (BitfieldMessage): Rewritten.
  10060. (BitfieldMessage): New function(overload).
  10061. * src/RequestSlot.h
  10062. (operator=): Defined the function body here.
  10063. (operator==): Defined the function body here.
  10064. * src/RequestSlot.cc
  10065. (operator=): Removed.
  10066. (operator==): Removed.
  10067. To remove the dependency on the PeerMessage subclass from
  10068. PeerInteraction:
  10069. * src/PeerMessageFactory.h: New class.
  10070. * src/PeerMessageFactory.cc: New class.
  10071. * src/SimplePeerMessage.cc
  10072. (send): If invalidate is true then do nothing.
  10073. * src/PeerInteractionCommand.cc
  10074. (HandshakeMessage.h): Included.
  10075. (KeepAliveMessage.h): Included.
  10076. (ChokeMessage.h): Included.
  10077. (UnchokeMessage.h): Included.
  10078. (HaveMessage.h): Included.
  10079. (executeInternal): Call setNoCheck().
  10080. Removed setWriteCheckSocket(socket).
  10081. * src/PeerInteraction.h
  10082. (ChokeMessage.h): Removed.
  10083. (UnchokeMessage.h): Removed.
  10084. (InterestedMessage.h): Removed.
  10085. (NotInterestedMessage.h): Removed.
  10086. (HaveMessage.h): Removed.
  10087. (BitfieldMessage.h): Removed.
  10088. (RequestMessage.h): Removed.
  10089. (CancelMessage.h): Removed.
  10090. (PieceMessage.h): Removed.
  10091. (HandshakeMessage.h): Removed.
  10092. (KeepAliveMessage.h): Removed.
  10093. (PortMessage.h): Removed.
  10094. (HaveAllMessage.h): Removed.
  10095. (HaveNoneMessage.h): Removed.
  10096. (RejectMessage.h): Removed.
  10097. (AllowedFastMessage.h): Removed.
  10098. (SuggestPieceMessage.h): Removed.
  10099. (PeerMessageFactory.h): Included.
  10100. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10101. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10102. (PeerMessageFactory): New variable.
  10103. (createPeerMessage): Removed.
  10104. (createHandshakeMessage): Removed.
  10105. (setPeerMessageCommonProperty): Removed.
  10106. (addRequestSlot): New function.
  10107. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10108. (getPeerMessageFactory): New function.
  10109. (createRequestMessage): Removed.
  10110. (createCancelMessage): Removed.
  10111. (createPieceMessage): Removed.
  10112. (createHaveMessage): Removed.
  10113. (createChokeMessage): Removed.
  10114. (createUnchokeMessage): Removed.
  10115. (createInterestedMessage): Removed.
  10116. (createNotInterestedMessage): Removed.
  10117. (createBitfieldMessage): Removed.
  10118. (createKeepAliveMessage): Removed.
  10119. (createHaveAllMessage): Removed.
  10120. (createHaveNoneMessage): Removed.
  10121. (createRejectMessage): Removed.
  10122. (createAllowedFastMessage): Removed.
  10123. * src/PeerInteraction.cc
  10124. (PeerInteraction): Allocate PeerMessageFactory here.
  10125. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10126. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10127. PieceMessage::ID.
  10128. (addMessage): Simplified by using PeerMessage::onPush().
  10129. (addRequestSlot): New function.
  10130. (rejectAllPieceMessageInQueue): Simplified by using
  10131. PeerMessage::onChoked().
  10132. (rejectPieceMessageInQueue): Simplified by using
  10133. PeerMessage::onCanceled().
  10134. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10135. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10136. (createHandshakeMessage): Removed.
  10137. (createPeerMessage): Removed.
  10138. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10139. (setPeerMessageCommonProperty): Removed.
  10140. (createRequestMessage): Removed.
  10141. (createCancelMessage): Removed.
  10142. (createPieceMessage): Removed.
  10143. (createHaveMessage): Removed.
  10144. (createChokeMessage): Removed.
  10145. (createUnchokeMessage): Removed.
  10146. (createInterestedMessage): Removed.
  10147. (createNotInterestedMessage): Removed.
  10148. (createBitfieldMessage): Removed.
  10149. (createKeepAliveMessage): Removed.
  10150. (createHaveAllMessage): Removed.
  10151. (createHaveNoneMessage): Removed.
  10152. (createRejectMessage): Removed.
  10153. (createAllowedFastMessage): Removed.
  10154. * src/PieceMessage.h
  10155. (createRejectMessage): New function.
  10156. (PieceMessage): Rewritten.
  10157. (onChoked): New function.
  10158. (onCanceled): New function.
  10159. * src/PieceMessage.cc
  10160. (send): If invalidate is true then do nothing, just return.
  10161. (createRejectMessage): New function.
  10162. (onChoked): New function.
  10163. (onCanceled): New function.
  10164. * src/RequestMessage.h
  10165. (RequestMessage): Rewritten.
  10166. (onPush): New function.
  10167. (onAbortPiece): New function.
  10168. * src/RequestMessage.cc
  10169. (onPush): New function.
  10170. (onAbortPiece): New function.
  10171. Update fd_set when a socket is added or deleted in order to improve
  10172. performance:
  10173. * src/DownloadEngine.h
  10174. (rfdset): New variable.
  10175. (wfdset): New variable.
  10176. (updateFdSet): New function.
  10177. * src/DownloadEngine.cc
  10178. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10179. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10180. (waitData): Copy rfdset and wfdset.
  10181. (updateFdSet): New function.
  10182. (addSocket): Call updateFdSet.
  10183. (deleteSocket): Call updateFdSet.
  10184. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. To add the support for Metalink3.0 backward compatible links:
  10186. * src/Request.h
  10187. (SAFE_CHARS): Added '#'.
  10188. (METALINK_MARK): New definition.
  10189. * src/Request.cc
  10190. (parseUrl): Added the support for Metalink3.0 backward compatible
  10191. links.
  10192. etc
  10193. * src/PeerInteraction.cc
  10194. (MsgPushBack): Removed.
  10195. (sendMessages): Use STL copy and back_inserter.
  10196. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10197. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10198. * src/TorrentMan.h
  10199. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10200. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. * src/SharedHandle.h: New class.
  10202. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10203. * src/HttpResponseCommand.h
  10204. (HttpResponseCommand): Wrapped Socket.
  10205. * src/SocketCore.h
  10206. (operator==): New function.
  10207. (operator!=): New function.
  10208. (operator<): New function.
  10209. (getSockfd): New function.
  10210. (isOpen): New function.
  10211. (writeData): New function.
  10212. * src/SocketCore.cc
  10213. (operator==): New function.
  10214. (operator!=): New function.
  10215. (operator<): New function.
  10216. * src/AbstractCommand.h
  10217. (socket): Changed its type to SocketHandle.
  10218. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10219. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10220. (disableReadCheckSocket): New function.
  10221. (disableWriteCheckSocket): New function.
  10222. (readCheckTarget): Changed its type to SocketHandle.
  10223. (writeCheckTarget): Changed its type to SocketHandle.
  10224. (AbstractCommand): Replaced Socket with SocketHandle.
  10225. * src/AbstractCommand.cc
  10226. (AbstractCommand): Replaced Socket with SocketHandle.
  10227. (~AbstractCommand): Removed the deallocation for Socket object.
  10228. (disableReadCheckSocket): New function.
  10229. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10230. (disableWriteCheckSocket): New function.
  10231. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10232. * src/HttpDownloadCommand.cc
  10233. (DownloadCommand): Replaced Socket with SocketHandle.
  10234. * src/PeerAbstractCommand.h
  10235. (socket): Changed its type to SocketHandle.
  10236. (peer): Changed its type to PeerHandle.
  10237. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10238. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10239. (disableReadCheckSocket): New function.
  10240. (disableWriteCheckSocket): New function.
  10241. (readCheckTarget): Changed its type to SocketHandle.
  10242. (writeCheckTarget): Changed its type to SocketHandle.
  10243. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10244. Replaced Peer with PeerHandle.
  10245. * src/HttpRequestCommand.cc
  10246. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10247. Use disableReadCheckSocket.
  10248. * src/PeerInitiateConnectionCommand.h
  10249. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10250. * src/PeerChokeCommand.cc
  10251. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10252. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10253. (execute): Use PeerHandle.
  10254. * src/PeerConnection.h
  10255. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10256. (socket): Changed its type to SocketHandle.
  10257. (PeerConnection): Replaced Socket with SocketHandle.
  10258. * src/PeerConnection.cc
  10259. (PeerConnection): Replaced Socket with SocketHandle.
  10260. * src/PeerInteractionCommand.h
  10261. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10262. Replaced Peer with PeerHandle.
  10263. * src/PeerInteractionCommand.cc
  10264. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10265. Replaced Peer with PeerHandle.
  10266. (executeInternal): Use disableWriteCheckSocket.
  10267. Use HandshakeMessageHandle.
  10268. (receiveMessages): Use PeerMessageHandle.
  10269. (prepareForNextPeer): Use PeerHandle.
  10270. * src/HttpProxyRequestCommand.h
  10271. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10272. * src/HttpResponseCommand.cc
  10273. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10274. * src/TorrentMan.cc
  10275. (nullPeer): Added external reference.
  10276. (~TorrentMan): Removed the deallocation of the elements of peers.
  10277. (addPeer): Rewritten.
  10278. (isPeerAvailable): Use nullPeer.
  10279. (deleteOldpeers): Replaced with deleteErrorPeer.
  10280. (deleteErrorPeer): New function.
  10281. (getPeer): Use PeerHandle and nullPeer.
  10282. (hasMissingPiece): Replaced Peer with PeerHandle.
  10283. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10284. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10285. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10286. (getMissingPiece): Replaced Peer with PeerHandle.
  10287. * src/FtpNegotiateCommand.cc
  10288. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10289. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10290. (recvGreeting): Use disableWriteCheckSocket.
  10291. (recvPasv): Removed the allocation of Socket.
  10292. Use disableReadCheckSocket.
  10293. (sendRestPasv): Use disableWriteCheckSocket.
  10294. (recvRetr): Changed assertion.
  10295. * src/PeerInteraction.h
  10296. (SharedHandle.h): Included SharedHandle.h.
  10297. (PeerMessageHandle): New type definition.
  10298. (HandshakeMessageHandle): New type definition.
  10299. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10300. (peer): Changed its type to PeerHandle.
  10301. (createHandshakeMessage): Replaced HandshakeMessage with
  10302. HandshakeMessageHandle.
  10303. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10304. (PeerInteraction): Replaced Peer with PeerHandle.
  10305. Replaced Socket with SocketHandle.
  10306. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10307. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10308. (receiveHandshake): Replaced HandshakeMessage with
  10309. HandshakeMessageHandle.
  10310. * src/PeerInteraction.cc
  10311. (PeerInteraction): Replaced Peer with PeerHandle.
  10312. Replaced Socket with SocketHandle.
  10313. (~PeerInteraction): Removed the deallocation of the elements of
  10314. messageQueue.
  10315. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10316. (isSendingMessageInProgress): Replaced PeerMessage with
  10317. PeerMessageHandle.
  10318. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10319. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10320. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10321. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10322. (abortPiece): Use PeerMessageHandle.
  10323. (receiveHandshake): Replaced HandshakeMessage with
  10324. HandshakeMessageHandle. Removed try-catch block.
  10325. (createHandshakeMessage): Replaced HandshakeMessage with
  10326. HandshakeMessageHandle.
  10327. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10328. Removed try-catch block.
  10329. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10330. * src/HttpProxyResponseCommand.cc
  10331. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10332. * src/FtpTunnelResponseCommand.h
  10333. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10334. * src/HttpConnection.cc
  10335. (HttpConnection): Replaced Socket with SocketHandle.
  10336. * src/PeerAbstractCommand.cc
  10337. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10338. (~PeerAbstractCommand): Removed the deallocation of socket.
  10339. Use disableReadCheckSocket, disableWriteCheckSocket.
  10340. (disableReadCheckSocket): New function.
  10341. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10342. (disableWriteCheckSocket): New function.
  10343. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10344. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10345. * src/FtpTunnelRequestCommand.cc
  10346. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10347. (~FtpTunnelRequestCommand): Corrected indentation.
  10348. * src/DownloadCommand.h
  10349. (DownloadCommand): Replaced Socket with SocketHandle.
  10350. * src/PeerListenCommand.cc
  10351. (PeerListenCommand): Removed the initialization of socket.
  10352. (~PeerListenCommand): Removed the deallocation of socket.
  10353. (bindPort): Use SocketHandle.
  10354. (execute): Use SocketHandle and PeerHandle.
  10355. * src/FtpDowndloadCommand.cc
  10356. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10357. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10358. * src/main.cc
  10359. (main): Corrected indentation.
  10360. * src/HttpInitiateConnectionCommand.cc
  10361. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10362. (executeInternal): Removed the allocation of socket.
  10363. * src/HttpRequestCommand.h
  10364. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10365. * src/FtpNegotiationCommand.h
  10366. (dataSocket): Changed its type to SocketHandle.
  10367. (serverSocket): Changed its type to SocketHandle.
  10368. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10369. * src/TorrentMan.h
  10370. (MAX_PEER_UPDATE): Removed.
  10371. (MAX_PEERS): New definition.
  10372. (Peers): The element is now of type PeerHandle.
  10373. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10374. (getPeer): Replaced Peer with PeerHandle.
  10375. (deleteOldErrorPeers): Removed.
  10376. (deleteErrorPeer): New function.
  10377. (hasMissingPiece): Replaced Peer with PeerHandle.
  10378. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10379. (getMissingPiece): Replaced Peer with PeerHandle.
  10380. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10381. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10382. (addActivePeer): Replaced Peer with PeerHandle.
  10383. (deleteActivePeer): Replaced Peer with PeerHandle.
  10384. Added a check for the return value of find.
  10385. * src/FtpTunnelResponseCommand.cc
  10386. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10387. * src/FtpInitiateConnectionCommand.cc
  10388. (executeInternal): Removed the allocation of socket.
  10389. * src/DownloadEngine.h
  10390. (Sockets): An element is now of type SocketHandle.
  10391. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10392. (CommandUuids): New type definition.
  10393. (rsockets): Changed its type to SockCmdMap.
  10394. (wsockets): Changed its type to SockCmdMap.
  10395. (addSocket): Rewritten.
  10396. (deleteSocket): Rewritten.
  10397. (addSocketForReadCheck): Rewritten.
  10398. (deleteSocketForReadCheck): Rewritten.
  10399. (addSocketForWriteCheck): Rewritten.
  10400. (deleteSocketForWriteCheck): Rewritten.
  10401. (PairFind): New template class.
  10402. * src/HttpDownloadCommand.h
  10403. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10404. * src/FtpConnection.cc
  10405. (FtpConnection): Replaced Socket with SocketHandle.
  10406. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10407. block.
  10408. * src/InitiateConnectionCommandFactory.cc
  10409. (DlAbortEx.h): Included DlAbortEx.h.
  10410. (createInitiateConnectionCommand): Throw exception if the protocol of
  10411. requested URI is not supported.
  10412. * src/Peer.cc
  10413. (nullPeer): Changed its type to PeerHandle.
  10414. (operator==): New function.
  10415. (operator!=): New function.
  10416. * src/Peer.h
  10417. (SharedHandle.h): Included SharedHandle.h.
  10418. (operator==): New function.
  10419. (operator!=): New function.
  10420. (Peer): Added the default constructor.
  10421. Use resetStatus() to initialize member variables.
  10422. (nullPeer): Removed.
  10423. * src/TrackerUpdateCommand.cc
  10424. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10425. with MIN_PEERS.
  10426. * src/PeerListenCommand.h
  10427. (socket): Changed its type to SocketHandle.
  10428. * src/Command.h
  10429. (CommandUuid): New type definition.
  10430. (uuid): New variable.
  10431. (uuidGen): New variable.
  10432. (Command): Added the initialization of uuid.
  10433. (getUuid): New function.
  10434. * src/Socket.h
  10435. (Socket): Removed.
  10436. (SocketHandle): New type definition.
  10437. * src/DownloadEngine.h
  10438. (FindCommand): New function object.
  10439. (run): The portion of socket check was rewritten.
  10440. (SetDescriptor): New function object.
  10441. (AccumulateActiveCommandUuid): New function object.
  10442. (waitData): Rewritten.
  10443. (addSocket): Rewritten.
  10444. (deleteSocket): Rewritten.
  10445. (addSocketForReadCheck): Rewritten.
  10446. (addSocketForWriteCheck): Rewritten.
  10447. (deleteSocketForReadCheck): Rewritten.
  10448. (deleteSocketForWriteCheck): Rewritten.
  10449. * src/HttpProxyResponseCommand.h
  10450. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10451. * src/HttpConnection.h
  10452. (socket): Changed its type to SocketHandle.
  10453. (HttpConnection): Replaced Socket with SocketHandle.
  10454. * src/PeerInitiateConnectionCommand.cc
  10455. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10456. (executeInternal): Removed the allocation of socket.
  10457. (prepareForNextPeer): Use PeerHandle.
  10458. * src/PeerMessage.h
  10459. (peer): Changed its type to PeerHandle.
  10460. (getPeer): Replaced Peer with PeerHandle.
  10461. (setPeer): Replaced Peer with PeerHandle.
  10462. * src/DownloadCommand.cc
  10463. (DownloadCommand): Replaced Socket with SocketHandle.
  10464. * src/FtpConnection.h
  10465. (socket): Changed its type to SocketHandle.
  10466. (FtpConnection): Replaced Socket with SocketHandle.
  10467. (sendPort); Replaced Socket with SocketHandle.
  10468. * src/FtpDowndloadCommand.h
  10469. (ctrlSocket): Changed its type to SocketHandle.
  10470. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10471. * src/HttpProxyRequestCommand.cc
  10472. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10473. * src/FtpTunnelRequestCommand.h
  10474. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10475. etc
  10476. * src/PeerChokeCommand.h
  10477. (setAllPeerChoked): Removed.
  10478. (setAllPeerResetDelta): Removed.
  10479. * src/PeerChokeCommand.cc
  10480. (setAllPeerChoked): Removed.
  10481. (ChokePeer): New function object.
  10482. (setAllPeerResetDelta): Removed.
  10483. (ResetDelta): New function object.
  10484. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10485. (execute): Show download speed when the local node is a seeder.
  10486. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10487. using STL.
  10488. * src/TrackerWatcherCommand.h
  10489. (MIN_PEERS): Removed.
  10490. * src/TorrentMan.cc
  10491. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10492. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. To fix the bug that .aria2 file is not saved if downloading is stopped
  10494. by the errors:it results that aria2 can not resume downloading:
  10495. * src/main.cc
  10496. (normalDownload): Added the call to save().
  10497. (main): Added the deletion of the elements in 'reserved'.
  10498. To fix log:
  10499. * src/PeerInteraction.cc
  10500. (receiveHandshake): Fixed log.
  10501. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. To improve download performance in BitTorrent:
  10503. * src/TorrentMan.cc
  10504. (getPeer): Check the number of connections. Return nullPeer if
  10505. it is greater than MAX_PEER_UPDATE.
  10506. This code was originally here, but was removed in 0.5.1.
  10507. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. To improve the conditional compilation:
  10509. * src/MultiDiskWriter.h:
  10510. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10511. * src/MultiDiskWriter.cc:
  10512. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10513. * src/Util.h:
  10514. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10515. Added ENABLE_BITTORRENT around computeFastSet().
  10516. * src/Util.cc:
  10517. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10518. Added ENABLE_BITTORRENT around computeFastSet().
  10519. * src/messageDigest.h:
  10520. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10521. * src/ShaVisitor.h:
  10522. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10523. * src/ShaVisitor.cc:
  10524. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10525. * src/main.cc:
  10526. Added ENABLE_BITTORRENT around includes and blocks related to
  10527. BitTorrent.
  10528. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10529. digest support is not available.
  10530. * src/AbstractDiskWriter.h:
  10531. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10532. * src/AbstractDiskWriter.cc:
  10533. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10534. * src/MetalinkEntry.cc
  10535. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10536. support is not available.
  10537. To add command-line options for Metalink:
  10538. * src/main.cc:
  10539. Added metalink-version, metalink-language, metalink-os,
  10540. follow-metalink.
  10541. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10542. * src/main.cc: Use these definition.
  10543. * Release 0.6.0
  10544. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. To add Metalink support(http/ftp only):
  10546. * src/AbstractCommand.h
  10547. (tryReserved): New function.
  10548. * src/AbstractCommand.cc
  10549. (execute): Call tryReserved().
  10550. (tryReserved): New function.
  10551. * src/Request.h
  10552. (Requests): New type definition.
  10553. * src/SegmentMan.h
  10554. (reserved): New variable.
  10555. * src/Util.h
  10556. (fileChecksum): New function.
  10557. (toUpper): New function.
  10558. (toLower): New function.
  10559. * src/Util.cc
  10560. (messageDigest.h): Included.
  10561. (trim): Trim \r\n\t.
  10562. (fileChecksum): New function.
  10563. (toUpper): New function.
  10564. (toLower): New function.
  10565. * src/main.cc
  10566. (normalDownload): New function.
  10567. (main): Added 2 command-line options: metalink-file,
  10568. metalink-connection. Their usage has not been written yet.
  10569. * src/MetalinkProcessor.h: New class.
  10570. * src/Xml2MetalinkProcessor.h: New class.
  10571. * src/Xml2MetalinkProcessor.cc: New class.
  10572. * src/MetalinkEntry.h: New class.
  10573. * src/MetalinkEntry.cc: New class.
  10574. * src/MetalinkResource.h: New class.
  10575. * src/MetalinkResource.cc: New class.
  10576. To add md5 message digest checking:
  10577. * src/messageDigest.h: Rewritten.
  10578. * src/MultiDiskWriter.cc: Updated according to the changes in
  10579. messageDigest.h.
  10580. * src/ShaVisitor.cc: Updated according to the changes in
  10581. messageDigest.h.
  10582. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10583. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10584. messageDigest.h.
  10585. To fix a bug that causes segfault when the payload length in peer
  10586. message is less than 0:
  10587. * src/PeerConnection.cc:
  10588. (receiveMessage): Fixed the bug.
  10589. * src/PeerMessageUtil.cc
  10590. (checkLength): Throw an exception if length is less than or equals to
  10591. 0.
  10592. To add new interfaces to Base64 encoding/decoding:
  10593. * src/Base64.h
  10594. (part_encode): Changed the method signature.
  10595. (encode): New function(overload).
  10596. (decode): New function(overload).
  10597. * src/Base64.cc
  10598. (part_encode): Rewritten.
  10599. (encode): Rewritten.
  10600. (encode): New function(overload).
  10601. To prevent a peer to download same piece if there is an error in
  10602. checksum:
  10603. * src/PieceMessage.cc
  10604. (receivedAction): Call peerInteraction->abortPiece().
  10605. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. To fix the bug that causes same have message is sent many times to
  10607. a single peer.
  10608. * src/Time.cc
  10609. (isNewer): Use Util::difftv().
  10610. * src/Util.cc
  10611. (difftv): Added a cast to (long long int).
  10612. * src/TorrentMan.cc
  10613. (advertisePiece): Use push_front.
  10614. (getAdvertisedPieceIndexes): A performance improvement was made.
  10615. To fix the bug that sends tracker requests without a sleep interval
  10616. when the number of connections is less than 15.
  10617. * src/TrackerWatcherCommand.cc
  10618. (execute): Now the number of connections is not a factor to decide
  10619. whether or not a tracker request should be sent or not.
  10620. * src/Time.h
  10621. (setTimeInSec): New function.
  10622. * src/Time.cc
  10623. (setTimeInSec): New function.
  10624. etc.
  10625. * src/ChokeMessage.cc
  10626. (receivedAction): Removed peer->snubbing = false
  10627. * src/PeerConnection.h
  10628. (receiveHandshake): Updated doc.
  10629. * src/TorrentMan.h
  10630. (getAdvertisedPieceIndexes): Updated the method signature.
  10631. * src/TorrentMan.cc
  10632. (getAdvertisedPieceIndexes): Updated the method signature.
  10633. * src/Time.h
  10634. (getTimeInMicros): Added a cast to (long long int).
  10635. (getTimeInMillis): Added a cast to (long long int).
  10636. * Release 0.5.2
  10637. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10638. To make a listening socket non-block:
  10639. * src/SocketCore.h
  10640. (setNonBlockingMode): New function.
  10641. * src/SocketCore.cc
  10642. (setNonBlockingMode): New function.
  10643. (beginListen): Added a call to setNonBlockingMode().
  10644. (acceptConnection): Call setNonBlockingMode().
  10645. (setBlockingMode): Updated.
  10646. To handle tracker's NAT-checking:
  10647. * src/PeerConnection.cc
  10648. (receiveHandshake): 'msg' param is filled with received data and
  10649. its length is assigned to 'length' param, even if all handshake
  10650. message is not yet received.
  10651. * src/PeerInteractionCommand.cc
  10652. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10653. a new peer connects to localhost.
  10654. A call to peerInteraction->sendHandshake() was removed because
  10655. it is called from peerInteraction->receiveHandshake(true).
  10656. * src/PeerInteraction.h
  10657. (quickReplied): New variable.
  10658. (receiveHandshake): Added an argument.
  10659. * src/PeerInteraction.cc
  10660. (PeerInteraction): Added the initialization of quickReplied.
  10661. (receiveHandshake): Send handshake message as soon as the info hash
  10662. in a handshake message from a peer is correct.
  10663. To change the random part of peer id and key parameter:
  10664. * src/TorrentMan.h
  10665. (key): New variable.
  10666. * src/TorrentMan.cc
  10667. (setupInternal1): Use Util::randomAlpha() to generate random part
  10668. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10669. key is also generated by Util::randomAlpha() and it is now 8 character
  10670. long.
  10671. * src/Util.h
  10672. (randomAlpha): New function.
  10673. * src/Util.cc
  10674. (randomAlpha): New function.
  10675. * src/TrackerWatcherCommand.cc
  10676. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10677. Added no_peer_id=1.
  10678. Set snubbing flag to false when a choke message is received from a
  10679. snubbed peer.
  10680. * src/ChokeMessage.cc
  10681. (receivedAction): Set snubbing flag to false.
  10682. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10684. * src/SimpleLogger.h (writeHeader): New function.
  10685. * src/SimpleLogger.cc (writeHeader): New function.
  10686. (writeLog): Fixed the bug that causes segfaults if exception message
  10687. contains an unescaped "%" character.
  10688. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10689. when a tracker request fails.
  10690. * src/Request.cc (parseUrl): Query string is now handled properly.
  10691. * Release 0.5.1
  10692. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. To add Time class which represents a specific instant in time and
  10694. its precision is microseconds. Time checking procedures were rewritten
  10695. using this object.
  10696. * src/Time.h: New class.
  10697. * src/Time.cc: New class.
  10698. * src/AbstractCommand.h
  10699. (updateCheckPoint): Removed.
  10700. (isTimeoutDetected): Removed.
  10701. (checkPoint): Changed the type to Time.
  10702. (timeout): New variable.
  10703. (setTimeout): New function.
  10704. * src/AbstractCommand.cc
  10705. (AbstractCommand): Removed the initialization of checkPoint.
  10706. Added the initialization of timeout.
  10707. (updateCheckPoint): Removed.
  10708. (isTimeoutDetected): Removed.
  10709. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10710. * src/PeerChokeCommand.h
  10711. (checkPoint): Changed the type to Time.
  10712. * src/PeerChokeCommand.cc
  10713. (PeerChokeCommand): Removed the initialization of checkPoint.
  10714. (execute): Rewritten using Time object.
  10715. * src/TrackerWatcherCommand.h
  10716. (checkPoint): Changed the type to Time.
  10717. * src/TrackerWatcherCommand.cc
  10718. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10719. (execute): Rewritten.
  10720. * src/ConsoleDownloadEngine.h
  10721. (cp): Changed the type to Time.
  10722. (startup): Changed the type to Time.
  10723. * src/ConsoleDownloadEngine.cc
  10724. (initStatistics): Use cp.reset(), startup.reset().
  10725. (calculateStatistics): Rewritten using Time object.
  10726. * src/PeerAbstractCommand.h
  10727. (updateCheckPoint): Removed.
  10728. (isTimeoutDetected): Removed.
  10729. (checkPoint): Changed the type to Time.
  10730. * src/PeerAbstractCommand.cc
  10731. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10732. (updateCheckPoint): Removed.
  10733. (isTimeoutDetected): Removed.
  10734. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10735. * src/PeerInteractionCommand.cc
  10736. (PeerInteractionCommand): Removed the initializations of struct
  10737. timeval variables.
  10738. * src/PeerInteractionCommand.h
  10739. (keepAliveCheckPoint): Changed the type to Time.
  10740. (chokeCheckPoint): Changed the type to Time.
  10741. (freqCheckPoint): Changed the type to Time.
  10742. (haveCheckTime): Changed the type to Time.
  10743. * src/PeerInteractionCommand.cc
  10744. (executeInternal): Rewritten using Time object.
  10745. (detectMessageFlooding): Rewritten using Time object.
  10746. (checkLongTimePeerChoking): Rewritten using Time object.
  10747. (sendKeepAlive): Rewritten using Time object.
  10748. (checkHave): Rewritten using Time object.
  10749. * src/SleepCommand.h
  10750. (checkPoint): Changed the type to Time.
  10751. * src/SleepCommand.cc
  10752. (SleepCommand): Removed the initialization of checkPoint.
  10753. (execute): Rewritten using Time object.
  10754. * src/TorrentAutoSaveCommand.h
  10755. (checkPoint): Changed the type to Time.
  10756. * src/TorrentAutoSaveCommand.cc
  10757. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10758. (execute): Rewritten.
  10759. * src/DownloadCommand.h
  10760. (sw): Changed the type to Time.
  10761. * src/DownloadCommand.cc
  10762. (DownloadCommand): Removed the initialization of sw.
  10763. (executeInternal): Rewritten.
  10764. * src/RequestSlot.h
  10765. (dispatchedTime): Changed the type to Time.
  10766. * src/RequestSlot.cc
  10767. (RequestSlot): Removed the call to setDispatchedTime().
  10768. (setDispatchedTime): Rewirtten.
  10769. (isTimeout): Rewritten.
  10770. (getLatencyInMillis): Rewritten.
  10771. * src/TorrentDownloadEngine.h
  10772. (cp): Changed the type to Time[2].
  10773. (startup): Changed the type to Time.
  10774. * src/TorrentDownloadEngine.cc
  10775. (initStatistics): Rewritten.
  10776. (calculateStatistics): Rewritten.
  10777. * src/DownloadEngine.cc
  10778. (run): Rewritten.
  10779. To detect all attempts to connect to the tracker are failed:
  10780. * src/AbstractCommand.cc
  10781. (execute): Increment e->segmentMan->errors if a command aborted.
  10782. * src/SegmentMan.h
  10783. (errors): New variable.
  10784. * src/SegmentMan.cc
  10785. (SegmentMan): Added the initialization of errors.
  10786. (init): Added the initialization of errors.
  10787. * src/TrackerWatcherCommand.cc
  10788. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  10789. request was failed.
  10790. To handle snubbed peers:
  10791. * src/PeerChokeCommand.cc
  10792. (optUnchokingPeer): Snubbed peers don't get unchoked.
  10793. (execute): Snubbed peers don't get unchoked.
  10794. * src/PeerInteraction.h
  10795. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  10796. * src/PeerInteraction.cc
  10797. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  10798. back the requested 16k block in 60 seconds.
  10799. * src/PieceMessage.cc
  10800. (receivedAction): A peer's snubbed state is cleard if it sends
  10801. the requested 16k block in 60 seconds.
  10802. * src/Peer.h
  10803. (snubbing): New variable.
  10804. * src/Peer.cc
  10805. (resetStatus): Added snubbed = false.
  10806. To fix the bug that causes have message is not sent:
  10807. * src/PeerInteractionCommand.cc
  10808. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  10809. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  10810. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  10811. * src/TorrentMan.h
  10812. (HaveEntry): New class.
  10813. (advertisePiece): Rewritten.
  10814. (getAdvertisedPieceIndexes): Rewritten.
  10815. (Haves): Changed the type.
  10816. (getAdvertisedPieceIndexes): Added an argument.
  10817. Others:
  10818. * src/TorrentMan.h
  10819. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10820. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10821. * src/TorrentMan.cc
  10822. (getPeer): Don't check the number of connections here.
  10823. (setupInternal1): Changed peerId.
  10824. * src/PeerInteractionCommand.h
  10825. (KEEP_ALIVE_INTERVAL): New definition.
  10826. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10827. * src/main.cc
  10828. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10829. * src/DownloadEngine.h: Removed unnecessary header includes.
  10830. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. To fix the bug that causes segfaults if a tracker returns a zero-length
  10832. list as "peers":
  10833. * src/TrackerUpdateCommand.cc
  10834. (execute): Added a check to see wether the type of peers is Data*.
  10835. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. * Release 0.5.0
  10837. To fix compile issue with gcc3:
  10838. * src/CancelMessage.h
  10839. (ID): Renamed as ID_t
  10840. (ID_t): New enum.
  10841. * src/RejectMessage.h
  10842. (ID): Renamed as ID_t
  10843. (ID_t): New enum.
  10844. * src/SuggestPieceMessage.h
  10845. (ID): Renamed as ID_t
  10846. (ID_t): New enum.
  10847. * src/AllowedFastMessage.h
  10848. (ID): Renamed as ID_t
  10849. (ID_t): New enum.
  10850. * src/PortMessage.h
  10851. (ID): Renamed as ID_t
  10852. (ID_t): New enum.
  10853. * src/HaveNoneMessage.h
  10854. (ID): Renamed as ID_t
  10855. (ID_t): New enum.
  10856. * src/KeepAliveMessage.h
  10857. (ID): Renamed as ID_t
  10858. (ID_t): New enum.
  10859. * src/HaveAllMessage.h
  10860. (ID): Renamed as ID_t
  10861. (ID_t): New enum.
  10862. * src/UnchokeMessage.h
  10863. (ID): Renamed as ID_t
  10864. (ID_t): New enum.
  10865. * src/BitfieldMessage.h
  10866. (ID): Renamed as ID_t
  10867. (ID_t): New enum.
  10868. * src/PieceMessage.h
  10869. (ID): Renamed as ID_t
  10870. (ID_t): New enum.
  10871. * src/RequestMessage.h
  10872. (ID): Renamed as ID_t
  10873. (ID_t): New enum.
  10874. * src/NotInterestedMessage.h
  10875. (ID): Renamed as ID_t
  10876. (ID_t): New enum.
  10877. * src/ChokeMessage.h
  10878. (ID): Renamed as ID_t
  10879. (ID_t): New enum.
  10880. * src/InterestedMessage.h
  10881. (ID): Renamed as ID_t
  10882. (ID_t): New enum.
  10883. * src/HaveMessage.h
  10884. (ID): Renamed as ID_t
  10885. (ID_t): New enum.
  10886. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. * src/PeerAbstractCommand.h
  10888. (beforeSocketCheck): Removed.
  10889. * src/PeerAbstractCommand.cc
  10890. Modified in order to call executeInternal() even if socket check
  10891. and upload limit check fail.
  10892. * src/PeerInteractionCommand.h
  10893. (keepAlive): Removed.
  10894. (sendKeepAlive): New function.
  10895. (checkHave): New function.
  10896. (beforeSocketCheck): Removed.
  10897. * src/PeerInteractionCommand.cc
  10898. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  10899. calls to checkHave() and sendKeepAlive().
  10900. (keepAlive): Renamed to sendKeepAlive().
  10901. (sendKeepAlive): New function.
  10902. (beforeSocketCheck): Removed.
  10903. (checkHave): New function.
  10904. * src/BitfieldMan.cc
  10905. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  10906. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  10907. 0.
  10908. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  10909. * src/TorrentMan.h
  10910. (UsedPieces): Removed.
  10911. (Pieces): New type definition.
  10912. * src/Piece.h: Updated doc.
  10913. * src/Peer.h
  10914. (totalLength): Removed.
  10915. * src/Peer.cc
  10916. (updateLatency): Fixed the latency calculation.
  10917. * src/TorrentMan.cc
  10918. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  10919. than or equal to MAX_PEER_LIST_SIZE.
  10920. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  10921. then return false.
  10922. (deleteOldErrorPeers): Rewritten.
  10923. (deleteUsedPiece): Fixed the miss use of STL remove.
  10924. * src/PeerInteraction.h
  10925. (Pieces): Removed.
  10926. (deleteTimeoutRequestSlot): Removed.
  10927. (deleteCompletedRequestSlot): Removed.
  10928. (checkRequestSlot): New function.
  10929. * src/PeerInteraction.cc
  10930. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  10931. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  10932. (checkRequestSlot): New function.
  10933. * src/DownloadEngine.cc
  10934. (run): Clear activeSockets before calling waitData().
  10935. (waitData): Removed a call to activeSockets.clear().
  10936. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. To attempt to handle EINTR:
  10938. * src/SocketCore.cc
  10939. (isReadable): Added EINTR handling.
  10940. (isWritable): Added EINTR handling.
  10941. To improve the performance:
  10942. * src/AbstractCommand.cc
  10943. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10944. * src/PeerInteractionCommand.h
  10945. (receiveMessage): Renamed as receiveMessages().
  10946. (receiveMessages): New function.
  10947. * src/PeerInteractionCommand.cc
  10948. (executeInternal): receiveMessage loop is moved to new receiveMessages
  10949. () function. detectMessageFlooding() is moved here.
  10950. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  10951. (). The flooding detection for have message is comment out.
  10952. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  10953. Util::difftv().
  10954. (receiveMessage): Renamed as receiveMessages().
  10955. (receiveMessages): New function.
  10956. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  10957. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  10958. * src/SleepCommand.cc
  10959. (execute): Use Util::difftvsec() instead of Util::difftv().
  10960. * src/BitfieldMan.h
  10961. (getNthBitIndex): New function.
  10962. (hasMissingPiece): New function.
  10963. (getAllMissingIndexes): New function.
  10964. * src/BitfieldMan.cc
  10965. (countSetBit): Rewritten.
  10966. (getNthBitIndex): New function.
  10967. (getMissingIndexRandomly): Rewritten.
  10968. (hasMissingPiece): New function.
  10969. (getAllMissingIndexes): New function.
  10970. * src/TorrentMan.cc
  10971. (hasMissingPiece): New function.
  10972. (deleteUsedPiece): Rewritten using STL.
  10973. * src/PeerInteraction.cc
  10974. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10975. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10976. (addRequests): Updated the number of pending requests.
  10977. * src/PeerAbstractCommand.cc
  10978. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10979. (execute): Returns true if TorrentMan::isHalt() is true.
  10980. Corrected the condition of upload limit checking.
  10981. * src/Util.h
  10982. (countBit): New function.
  10983. * src/Util.cc
  10984. (nbits): New variable.
  10985. (countBit): New function.
  10986. * src/DownloadEngine.h
  10987. (SockCmdMap): New type definition.
  10988. (waitData): Added an argument.
  10989. (addSocket): Added an argument.
  10990. (addSocketForReadCheck): Added an argument.
  10991. (addSocketForWriteCheck): Added an argument.
  10992. * src/DownloadEngine.cc
  10993. (run): Executes only commands whose sockets are ready to read or write.
  10994. All commands are executed in every 1 second.
  10995. (waitData): Calls select() again if it returned
  10996. EINTR.
  10997. (addSocket): Saves socket and command object pair to the map.
  10998. (deleteSocket): Deletes socket and command object pair from the map.
  10999. (addSocketForReadCheck): Added an argument.
  11000. (addSocketForWriteCheck): Added an argument.
  11001. * src/DownloadCommand.cc
  11002. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11003. To send "event=stopped" to the tracker when the application finishes:
  11004. * src/PeerChokeCommand.h
  11005. (checkPoint): New variable.
  11006. * src/PeerChokeCommand.cc
  11007. (PeerChokeCommand): Added the initialization of checkPoint.
  11008. (execute): The interval check is now done by checkPoint, not
  11009. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11010. * src/TorrentMan.h
  11011. (halt): New function.
  11012. (hasMissingPiece): New function.
  11013. (isHalt): New function.
  11014. (setHalt): New function.
  11015. * src/TorrentMan.cc
  11016. (TorrentMan): Added the initialization of halt.
  11017. * src/TorrentAutoSaveCommand.h
  11018. (checkPoint): New variable.
  11019. * src/PeerListenCommand.cc
  11020. (execute): Returns true if TorrentMan::isHalt() is true.
  11021. * src/main.cc
  11022. (setSignalHander): Added flags argument.
  11023. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11024. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11025. Removed printDownloadAbortMessage() after torrent downloading loop.
  11026. * src/TorrentAutoSaveCommand.cc
  11027. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11028. (execute): Returns true if TorrentMan::isHalt() is true.
  11029. The interval check is now done by checkPoint, not SleepCommand.
  11030. * src/TrackerWatcherCommand.cc
  11031. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11032. event=stopped.
  11033. * src/TrackerUpdateCommand.cc
  11034. (prepareForRetry): Do not use SleepCommand here.
  11035. (execute): Returns true if TorrentMan::isHalt() is true.
  11036. Others:
  11037. * src/TorrentMan.cc
  11038. (getMissingPieceIndex): Updated log message.
  11039. * src/PeerInteraction.cc
  11040. (createPeerMessag): Updated log message.
  11041. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. To add the ability to download several pieces in mix in a command and
  11043. increase the number of request slots according to request-cancel
  11044. latency:
  11045. * src/PeerInteractionCommand.cc
  11046. (executeInternal): The number of messages to be received at a time
  11047. is increased from 10 to 50.
  11048. * src/LogFactory
  11049. (getInstance): Added NullLogger.
  11050. * src/NullLogger.h: New class.
  11051. * src/BitfieldMan.h
  11052. (getMissingIndex): New function.
  11053. * src/BitfieldMan.cc
  11054. (getMissingIndex): New function.
  11055. * src/TorrentMan.h
  11056. (checkOutPiece): New function.
  11057. (getMissingPieceIndex): New function.
  11058. (getMissingFastPieceIndex): New function.
  11059. (getMissingFastPiece): New function.
  11060. * src/TorrentMan.cc
  11061. (updatePiece): Rewritten using STL.
  11062. (syncPiece): Rewritten using STL.
  11063. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11064. checkOutPiece().
  11065. (getMissingPieceIndex): New function.
  11066. (getMissingFastPieceIndex): New function.
  11067. (getMissingFastPiece): New function.
  11068. (checkOutPiece): New function.
  11069. * src/PeerInteraction.h
  11070. (Pieces): New type definition.
  11071. (piece): Removed.
  11072. (pieces): New variable.
  11073. (getNewPieceAndSendInterest): Added the "piece" argument.
  11074. (abortPiece): Added the "piece" argument.
  11075. (abortAllPieces): New function.
  11076. (isInRequestSlot): New function.
  11077. (hasDownloadPiece): Added the "index" argument.
  11078. (setDownloadPiece): Removed.
  11079. (getDownloadPiece): Added the "index" argument.
  11080. (updatePiece): New function.
  11081. (createRequestMessage): Added the "index" argument.
  11082. * src/PeerInteraction.cc
  11083. (onChoked): Rewritten.
  11084. (abortPiece): Rewirtten.
  11085. (abortAllPieces): New function.
  11086. (deleteTimeoutRequestSlot): Rewritten.
  11087. Clarified code a little bit.
  11088. (deleteCompletedRequestSlot): Rewritten.
  11089. (isInRequestSlot): New function.
  11090. (syncPiece): Rewritten.
  11091. (updatePiece): New function.
  11092. (getNewPieceAndSendInterest): Rewritten.
  11093. (addRequests): Rewritten.
  11094. (getDownloadPiece): Rewritten.
  11095. (hasDownloadPiece): Rewritten.
  11096. (createRequestMessage): Added the "index" argument.
  11097. * src/common.h
  11098. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11099. (DIV_FLOOR): New definition.
  11100. * src/PieceMessage.cc
  11101. (receivedAction): Update request-piece latency here.
  11102. * src/RequestSlot.h
  11103. (getLatencyInMillis): New function.
  11104. * src/RequestSlot.cc
  11105. (isTimeout): Rewritten using getLatencyInMillis.
  11106. (getLatencyInMillis): New function.
  11107. * src/Piece.h
  11108. (operator==): New function.
  11109. (getMissingBlockIndex): New function.
  11110. * src/Piece.cc
  11111. (operator==): New function.
  11112. (getMissingBlockIndex): New function.
  11113. * src/Peer.h
  11114. (DEFAULT_LATENCY): New definition.
  11115. (latency): New variable.
  11116. (updateLatency): New function.
  11117. (getLatency): New function.
  11118. * src/Peer.cc
  11119. (resetStatus): Reset latecy.
  11120. (updateLatency): New function.
  11121. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. * src/SocketCore.cc
  11123. (isReadable): Added secure to the condition.
  11124. * src/HttpConnection.cc
  11125. (receiveResponse): Fixed a bug that causes no response header
  11126. exception.
  11127. * src/Peer.h
  11128. (getFastSet): Fixed the return value type.
  11129. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. To remove a wait from download loop:
  11131. * src/DownloadEngine.cc
  11132. (run): Comment out shortSleep.
  11133. To rewrite the message handling:
  11134. * src/SimplePeerMessage.h: New class.
  11135. * src/SimplePeerMessage.cc: New class.
  11136. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11137. (msg): New variable.
  11138. (create): New function.
  11139. (send): Removed.
  11140. (getMessage): New function.
  11141. (getMessageLength): New function.
  11142. * src/CancelMessage.cc
  11143. (create): New function.
  11144. (receivedAction): Replaced deleteRequestMessageInQueue with
  11145. rejectPieceMessageInQueue.
  11146. (send): Removed.
  11147. (getMessage): New function.
  11148. (getMessageLength): New function.
  11149. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11150. (msg): New variable.
  11151. (msgLength): New variable.
  11152. (~BitfieldMessage): Deleted msg.
  11153. (send): Removed.
  11154. (getMessage): New function.
  11155. (getMessageLength): New function.
  11156. * src/BitfieldMessage.cc
  11157. (create): New function.
  11158. (send): Removed.
  11159. (getMessage): New function.
  11160. (getMessageLength): New function.
  11161. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11162. (msg): New variable.
  11163. (sendPredicate): New function.
  11164. (onSendComplete): New function.
  11165. (send): Removed.
  11166. (getMessage): New function.
  11167. (getMessageLength): New function.
  11168. (create): New function.
  11169. * src/ChokeMessage.cc
  11170. (create): New function.
  11171. (send): Removed.
  11172. (sendPredicate): New function.
  11173. (getMessage): New function.
  11174. (getMessageLength): New function.
  11175. (onSendComplete): New function.
  11176. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11177. (msg): New variable.
  11178. (send): Removed.
  11179. (getMessage): New function.
  11180. (getMessageLength): New function.
  11181. * src/KeepAliveMessage.cc
  11182. (send): Removed.
  11183. (getMessage): New function.
  11184. (getMessageLength): New function.
  11185. * src/PortMessage.h
  11186. (create): New function.
  11187. (receivedAction): Updated log message.
  11188. * src/PortMessage.cc: New file.
  11189. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11190. (msg): New variable.
  11191. (sendPredicate): New function.
  11192. (onSendComplete): New function.
  11193. (create): New function.
  11194. (send): Removed.
  11195. (getMessage): New function.
  11196. (getMessageLength): New function.
  11197. * src/UnchokeMessage.cc
  11198. (create): New function.
  11199. (send): Removed.
  11200. (sendPredicate): New function.
  11201. (getMessage): New function.
  11202. (getMessageLength): New function.
  11203. (onSendComplete): New function.
  11204. * src/PieceMessage.h
  11205. (leftPieceDataLength): Removed.
  11206. (leftDataLength): New variable.
  11207. (headerSend): New variable.
  11208. (pendingCount): New variable.
  11209. (msgHeader): New variable.
  11210. (sendPieceData): New function.
  11211. (incrementPendingCount): New function.
  11212. (isPendingCountMax): New function.
  11213. (create): New function.
  11214. (getMessageHeader): New function.
  11215. (getMessageHeaderLength): New function.
  11216. * src/PieceMessage.cc
  11217. (create): New function.
  11218. (getMessageHeader): New function.
  11219. (getMessageHeaderLength): New function.
  11220. (send): Rewritten.
  11221. (sendPieceData): New function.
  11222. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11223. (msg): New variable.
  11224. (create): New function.
  11225. (getMessage): New function.
  11226. (getMessageLength): New function.
  11227. * src/HaveMessage.cc
  11228. (create): New function.
  11229. (send): Removed.
  11230. (sendPieceData): New function.
  11231. (getMessage): New function.
  11232. (getMessageLength): New function.
  11233. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11234. (msg): New variable.
  11235. (create): New function.
  11236. (send): Removed.
  11237. (getMessage): New function.
  11238. (getMessageLength): New function.
  11239. * src/RequestMessage.cc
  11240. (create): New function.
  11241. (receivedAction): Added the handling of fast extension.
  11242. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11243. (send): Removed.
  11244. (getMessage): New function.
  11245. (getMessageLength): New function.
  11246. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11247. (msg): New variable.
  11248. (sendPredicate): New function.
  11249. (onSendComplete): New function.
  11250. (create): New function.
  11251. (getMessage): New function.
  11252. (getMessageLength): New function.
  11253. * src/InterestedMessage.cc
  11254. (create): New function.
  11255. (send): Removed.
  11256. (sendPieceData): New function.
  11257. (getMessage): New function.
  11258. (getMessageLength): New function.
  11259. (onSendComplete): New function.
  11260. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11261. (msg): New variable.
  11262. (sendPieceData): New function.
  11263. (onSendComplete): New function.
  11264. (create): New function.
  11265. (send): Removed.
  11266. (getMessage): New function.
  11267. (getMessageLength): New function.
  11268. * src/NotInterestedMessage.cc
  11269. (create): New function.
  11270. (send): Removed.
  11271. (sendPredicate): New function.
  11272. (getMessage): New function.
  11273. (getMessageLength): New function.
  11274. (onSendComplete): New function.
  11275. * src/AllowedFastMessage.h: New class.
  11276. * src/AllowedFastMessage.cc: New class.
  11277. * src/RejectMessage.h: New class.
  11278. * src/RejectMessage.cc: New class.
  11279. * src/SuggestPieceMessage.h: New class.
  11280. * src/SuggestPieceMessage.cc: New class.
  11281. * src/HaveAllMessage.h: New class.
  11282. * src/HaveAllMessage.cc: New class.
  11283. * src/HaveNoneMessage.h: New class.
  11284. * src/HaveNoneMessage.cc: New class.
  11285. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11286. (msg): New variable.
  11287. (reserved): New variable.
  11288. (create): New function.
  11289. (getId): New function.
  11290. (receivedAction): New function.
  11291. (getMessage): New function.
  11292. (getMessageLength): New function.
  11293. (isFastExtensionSupported): New function.
  11294. * src/HandshakeMessage.cc
  11295. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11296. (create): New function.
  11297. (getMessage): New function.
  11298. (getMessageLength): New function.
  11299. (toString): Added the output of reserved field.
  11300. (check): Added const qualifier.
  11301. (isFastExtensionSupported): New function.
  11302. * src/PeerMessageUtil.h
  11303. (createChokeMessage): Removed.
  11304. (createUnchokeMessage): Removed.
  11305. (createInterestedMessage): Removed.
  11306. (createNotInterestedMessage): Removed.
  11307. (createHaveMessage): Removed.
  11308. (createBitfieldMessage): Removed.
  11309. (createRequestMessage): Removed.
  11310. (createCancelMessage): Removed.
  11311. (createPieceMessage): Removed.
  11312. (createPortMessage): Removed.
  11313. (createChokeMessage): Removed.
  11314. (createUnchokeMessage): Removed.
  11315. (createInterestedMessage): Removed.
  11316. (createNotInterestedMessage): Removed.
  11317. (createHaveMessage): Removed.
  11318. (createBitfieldMessage): Removed.
  11319. (createRequestMessage): Removed.
  11320. (createCancelMessage): Removed.
  11321. (createPieceMessage): Removed.
  11322. (createKeepAliveMessage): Removed.
  11323. (createHandshakeMessage): Removed.
  11324. (setIntParam): New function.
  11325. (createPeerMessageString): New function.
  11326. * src/PeerMessageUtil.cc
  11327. (createChokeMessage): Removed.
  11328. (createUnchokeMessage): Removed.
  11329. (createInterestedMessage): Removed.
  11330. (createNotInterestedMessage): Removed.
  11331. (createHaveMessage): Removed.
  11332. (createBitfieldMessage): Removed.
  11333. (createRequestMessage): Removed.
  11334. (createCancelMessage): Removed.
  11335. (createPieceMessage): Removed.
  11336. (createPortMessage): Removed.
  11337. (createRequestMessage): Removed.
  11338. (createCancelMessage): Removed.
  11339. (createPieceMessage): Removed.
  11340. (createHaveMessage): Removed.
  11341. (createChokeMessage): Removed.
  11342. (createUnchokeMessage): Removed.
  11343. (createInterestedMessage): Removed.
  11344. (createNotInterestedMessage): Removed.
  11345. (createBitfieldMessage): Removed.
  11346. (createKeepAliveMessage): Removed.
  11347. (createHandshakeMessage): Removed.
  11348. (setIntParam): New function.
  11349. (createPeerMessageString): New function.
  11350. * src/PeerConnection.h
  11351. (peer): Removed.
  11352. (torrentMan): Removed.
  11353. (createNLengthMessage): Removed.
  11354. (setIntParam): Removed.
  11355. (writeOutgoingMessageLog): Removed all overloaded functions.
  11356. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11357. (sendMessage): New function.
  11358. (sendHandshake): Removed.
  11359. (sendKeepAlive): Removed.
  11360. (sendChoke): Removed.
  11361. (sendUnchoke): Removed.
  11362. (sendInterested): Removed.
  11363. (sendNotInterested): Removed.
  11364. (sendHave): Removed.
  11365. (sendBitfield): Removed.
  11366. (sendRequest): Removed.
  11367. (sendPiece): Removed.
  11368. (sendPieceHeader): Removed.
  11369. (sendPieceData): Removed.
  11370. (sendCancel): Removed.
  11371. (getPeer): Removed.
  11372. * src/PeerConnection.cc
  11373. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11374. (sendHandshake): Removed.
  11375. (sendKeepAlive): Removed.
  11376. (createNLengthMessage): Removed.
  11377. (setIntParam): Removed.
  11378. (writeOutgoingMessageLog): Removed all overloaded functions.
  11379. (sendChoke): Removed.
  11380. (sendUnchoke): Removed.
  11381. (sendInterested): Removed.
  11382. (sendNotInterested): Removed.
  11383. (sendHave): Removed.
  11384. (sendBitfield): Removed.
  11385. (sendRequest): Removed.
  11386. (sendPiece): Removed.
  11387. (sendPieceHeader): Removed.
  11388. (sendPieceData): Removed.
  11389. (sendMessage): New function.
  11390. (sendCancel): Removed.
  11391. * src/PeerInteractionCommand.cc
  11392. (PeerInteractionCommand): Call setUploadLimit.
  11393. (executeInternal): Call setUploadLimit.
  11394. Added the handling of "inProgress" state of handshake message.
  11395. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11396. sendNow().
  11397. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11398. sendNow().
  11399. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11400. * src/TorrentMan.h
  11401. (PEER_ID_LENGTH): New definition.
  11402. (hasAllPieces): New function.
  11403. * src/TorrentMan.cc
  11404. (getMissingPiece): Added the handling of fast extension.
  11405. (cancelPiece): Call updatePiece().
  11406. (hasAllPieces): New function.
  11407. * src/PeerInteraction.h
  11408. (fastSet): New variable.
  11409. (getNewPieceAndSendInterest): Changed the return type to void.
  11410. (send): Renamed as sendMessages.
  11411. (deleteAllRequestSlot): Removed.
  11412. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11413. (cancelAllRequest): Removed all overloaded functions.
  11414. (deleteAllRequestSlot): Removed.
  11415. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11416. (rejectPieceMessageInQueue): New function.
  11417. (rejectAllPieceMessageInQueue): New function.
  11418. (onChoked): New function.
  11419. (isSendingMessageInProgress): New function.
  11420. (getCorrespondingRequestSlot): Changed its arguments.
  11421. (isInFastSet): New function.
  11422. (addFastSetIndex): New function.
  11423. (addRequests): New function.
  11424. (sendNow): Removed.
  11425. (trySendNow): Removed.
  11426. (sendBitfield): New function.
  11427. (sendAllowdFast): New function.
  11428. (createHaveAllMessage): New function.
  11429. (createHaveNoneMessage): New function.
  11430. (createRejectMessage): New function.
  11431. (createAllowedFastMessage): New function.
  11432. * src/PeerInteraction.cc
  11433. (send): Renamed as sendMessages.
  11434. (sendMessages): New function.
  11435. (MsgPushBack): New class.
  11436. (isSendingMessageInProgress): New function.
  11437. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11438. (rejectAllPieceMessageInQueue): New function.
  11439. Added the handling of fast extension.
  11440. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11441. (rejectPieceMessageInQueue): New function.
  11442. Added the handling of fast extension.
  11443. (deleteRequestSlot): Replaced for loop with std::find.
  11444. (onChoked): New function.
  11445. (deleteAllRequestSlot): Removed.
  11446. (abortPiece): Rewirtten.
  11447. (deleteTimeoutRequestSlot): Updated log messages.
  11448. (getCorrespondingRequestSlot): Changed its arguments.
  11449. (cancelAllRequest): Removed all overloaded functions.
  11450. (receiveHandshake): Added the check to see whether an incoming peer
  11451. supports fast extension.
  11452. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11453. PeerMessageUtil.
  11454. (createPeerMessage): Use create() of each message class instead of
  11455. PeerMessageUtil.
  11456. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11457. AllowedFastMessage were added.
  11458. (getNewPieceAndSendInterest): Changed its return value type to void.
  11459. Added the handling of fast extension.
  11460. (addRequests): New function.
  11461. (sendNow): Removed.
  11462. (sendHandshake): Rewritten.
  11463. (trySendNow): Removed.
  11464. (sendBitfield): New function.
  11465. (sendAllowdFast): New function.
  11466. (isInFastSet): New function.
  11467. (addFastSetIndex): New function.
  11468. (createRequestMessage): Use RequestMessage::create instead of
  11469. PeerMessageUtil.
  11470. (createCancelMessage): Use CancelMessage::create instead of
  11471. PeerMessageUtil.
  11472. (createPieceMessage): Use PieceMessage::create instead of
  11473. PeerMessageUtil.
  11474. (createHaveMessage): Use HaveMessage::create instead of
  11475. PeerMessageUtil.
  11476. (createChokeMessage): Use ChokeMessage::create instead of
  11477. PeerMessageUtil.
  11478. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11479. PeerMessageUtil.
  11480. (createInterestedMessage): Use InterestedMessage::create instead of
  11481. PeerMessageUtil.
  11482. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11483. of PeerMessageUtil.
  11484. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11485. PeerMessageUtil.
  11486. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11487. PeerMessageUtil.
  11488. (createHaveAllMessage): New function.
  11489. (createHaveNoneMessage): New function.
  11490. (createRejectMessage): New function.
  11491. (createAllowedFastMessage: New function.
  11492. * src/Util.h
  11493. (sha1Sum): New function.
  11494. (computeFastSet): New function.
  11495. * src/Util.cc
  11496. (sha1Sum): New function.
  11497. (computeFastSet): New function.
  11498. * src/Peer.h
  11499. (fastExtensionEnabled): New variable.
  11500. (fastSet): New variable.
  11501. (setAllBitfield): New function.
  11502. (setFastExtensionEnabled): New function.
  11503. (isFastExtensionEnabled): New function.
  11504. (addFastSetIndex): New function.
  11505. (getFastSet): New function.
  11506. (isInFastSet): New function.
  11507. (countFastSet): New function.
  11508. * src/Peer.cc
  11509. (isInFastSet): New function.
  11510. (addFastSetIndex): New function.
  11511. (setAllBitfield): New function.
  11512. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11513. sockets.
  11514. * src/PeerAbstractCommand.cc
  11515. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11516. and uploadLimit.
  11517. (execute): Changed the procedure of checking sockets. The upload speed
  11518. checking were added.
  11519. (setUploadLimit): New function.
  11520. (setUploadLimitCheck): New function.
  11521. * src/PeerAbstractCommand.h
  11522. (setUploadLimit): New function.
  11523. (setUploadLimitCheck): New function.
  11524. (uploadLimit): New variable.
  11525. (uploadLimitCheck): New variable.
  11526. To contact a tracker regularly:
  11527. * src/TrackerWatcherCommand.h (interval): New variable.
  11528. (checkPoint): New variable.
  11529. (TrackerWatcherCommand): Added interval argument.
  11530. * src/TrackerWatcherCommand.cc
  11531. (TrackerWatcherCommand): Initialized checkPoint.
  11532. (execute): Now a tracker is contacted in every specified period.
  11533. If peer list is not needed, send request with numwant=0.
  11534. * src/TrackerUpdateCommand.cc
  11535. (execute): Updated log messages.
  11536. * src/DownloadEngine.cc
  11537. (~DownloadEngine): Removed two asserts.
  11538. (waitData): Uncommented wfds. May be a bug fix.
  11539. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11540. * src/PeerInteractionCommand.h
  11541. (checkInactiveConnection): Removed.
  11542. * src/PeerInteractionCommand.cc
  11543. (executeInternal): Removed following function calls:
  11544. detectMessageFlooding(), checkLongTimePeerChoking and
  11545. checkInactiveConnection().
  11546. (checkInactiveConnection): Removed.
  11547. (detectMessageFlooding): Removed function call to
  11548. checkInactiveConnection().
  11549. * src/PeerMessageUtil.h
  11550. (createChokeMessage): New function. Overload.
  11551. (createUnchokeMessage): New function. Overload.
  11552. (createInterestedMessage): New function. Overload.
  11553. (createNotInterestedMessage): New function. Overload.
  11554. (createHaveMessage): New function. Overload.
  11555. (createBitfieldMessage): New function. Overload.
  11556. (createRequestMessage): New function. Overload.
  11557. (createCancelMessage): New function. Overload.
  11558. (createPieceMessage): New function. Overload.
  11559. (createKeepAliveMessage): New function. Overload.
  11560. * src/PeerMessageUtil.cc
  11561. (createChokeMessage): New function. Overload.
  11562. (createUnchokeMessage): New function. Overload.
  11563. (createInterestedMessage): New function. Overload.
  11564. (createNotInterestedMessage): New function. Overload.
  11565. (createHaveMessage): New function. Overload.
  11566. (createBitfieldMessage): New function. Overload.
  11567. (createRequestMessage): New function. Overload.
  11568. (createCancelMessage): New function. Overload.
  11569. (createPieceMessage): New function. Overload.
  11570. (createKeepAliveMessage): New function. Overload.
  11571. * src/SendMessageQueue.cc
  11572. (createRequestMessage): Use PeerMessageUtil.
  11573. (createCancelMessage): Use PeerMessageUtil.
  11574. (createPieceMessage): Use PeerMessageUtil.
  11575. (createHaveMessage): Use PeerMessageUtil.
  11576. (createChokeMessage): Use PeerMessageUtil.
  11577. (createUnchokeMessage): Use PeerMessageUtil.
  11578. (createInterestedMessage): Use PeerMessageUtil.
  11579. (createNotInterestedMessage): Use PeerMessageUtil.
  11580. (createBitfieldMessage): Use PeerMessageUtil.
  11581. (createKeepAliveMessage): Use PeerMessageUtil.
  11582. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11583. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11584. * src/PeerInteraction.h: New class.
  11585. * src/PeerInteraction.cc: New class.
  11586. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11587. Each peer message has its own class.
  11588. * src/PendingMessages.h: Removed.
  11589. * src/PendingMessages.cc: Removed. The sending process was moved to
  11590. each message class.
  11591. * src/RequestSlotMan.h: Removed.
  11592. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11593. SendMessageQueue.
  11594. * src/RequestMessage.h: New class.
  11595. * src/RequestMessage.cc: New class.
  11596. * src/CancelMessage.h: New class.
  11597. * src/CancelMessage.cc: New class.
  11598. * src/BitfieldMessage.h: New class.
  11599. * src/BitfieldMessage.cc: New class.
  11600. * src/ChokeMessage.h: New class.
  11601. * src/ChokeMessage.cc: New class.
  11602. * src/KeepAliveMessage.h: New class.
  11603. * src/KeepAliveMessage.cc: New class.
  11604. * src/PortMessage.h: New class.
  11605. * src/UnchokeMessage.h: New class.
  11606. * src/UnchokeMessage.cc: New class.
  11607. * src/PieceMessage.h: New class.
  11608. * src/PieceMessage.cc: New class.
  11609. * src/HaveMessage.h: New class.
  11610. * src/HaveMessage.cc: New class.
  11611. * src/BitfieldMessage.h: New class.
  11612. * src/BitfieldMessage.cc: New class.
  11613. * src/NotInterestedMessage.h: New class.
  11614. * src/NotInterestedMessage.cc: New class.
  11615. * src/InterestedMessage.h: New class.
  11616. * src/InterestedMessage.cc: New class.
  11617. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11618. (getSendMessageQueue): New function.
  11619. (setSendMessageQueue): New function.
  11620. * src/HandshakeMessage.cc: New class.
  11621. * src/PeerConnection.h (receiveMessage): Changed return value and
  11622. arguments.
  11623. (receiveHandshake): Changed return value and arguments.
  11624. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11625. here.
  11626. (receiveHandshake): Do not create handshake class here.
  11627. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11628. (piece): Removed.
  11629. (syncPiece): Removed.
  11630. (sendInterest): Removed.
  11631. (sendMessages): Removed.
  11632. (createRequestPendingMessage): Removed.
  11633. (checkPieceHash): Removed.
  11634. (erasePieceOnDisk): Removed.
  11635. (getNewPieceAndSendInterest): Removed.
  11636. (onGotNewPice): Removed.
  11637. (onGotWrongPiece): Removed.
  11638. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11639. Removed peerConnection, piece.
  11640. (~PeerInteractionCommand): Removed peerConnection.
  11641. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11642. (syncPiece): Moved to SendMessageQueue.
  11643. (decideChoking): Removed PendingMessage.
  11644. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11645. The action after receiving peer message was moved to each message
  11646. class.
  11647. (onGotNewPice): Moved to SendMessageQueue.
  11648. (onGotWrongPiece): Moved to SendMessageQueue.
  11649. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11650. (sendInterest): Moved to SendMessageQueue.
  11651. (createRequestPendingMessage): Removed.
  11652. (sendMessages): Moved to SendMessageQueue.
  11653. (onAbort): Use SendMessageQueue::abortPiece()
  11654. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11655. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11656. (checkPieceHash): Moved to SendMessageQueue.
  11657. (erasePieceOnDisk): Moved to SendMessageQueue.
  11658. * src/PeerMessageUtil.h
  11659. (createBitfieldMessage): Removed.
  11660. (createHaveMessage): Changed return value and arguments.
  11661. (createBitfieldMessage): Changed return value and arguments.
  11662. (createRequestCancelMessage): Removed.
  11663. (createPieceMessage): Changed return value and arguments.
  11664. (getShortIntParam): New function.
  11665. (checkIndex): Changed arguments.
  11666. (checkBegin): Changed arguments.
  11667. (checkLength): Changed arguments.
  11668. (checkPieceOffset): Removed.
  11669. (checkRange): New function.
  11670. (checkBitfield): Changed arguments.
  11671. (createPeerMessage): Removed.
  11672. (checkIntegrity): Removed.
  11673. (createHandshakeMessage): Changed arguments.
  11674. (createChokeMessage): New function.
  11675. (createUnchokeMessage): New function.
  11676. (createInterestedMessage): New function.
  11677. (createNotInterestedMessage): New function.
  11678. (createRequestMessage): New function.
  11679. (createCancelMessage): New function.
  11680. (createPortMessage): New function.
  11681. * src/PeerMessageUtil.cc
  11682. (createBitfieldMessage): Removed.
  11683. (createHaveMessage): Changed return value and arguments.
  11684. (createBitfieldMessage): Changed return value and arguments.
  11685. (createRequestCancelMessage): Removed.
  11686. (createPieceMessage): Changed return value and arguments.
  11687. (getShortIntParam): New function.
  11688. (checkIndex): Changed arguments.
  11689. (checkBegin): Changed arguments.
  11690. (checkLength): Changed arguments.
  11691. (checkPieceOffset): Removed.
  11692. (checkRange): New function.
  11693. (checkBitfield): Changed arguments.
  11694. (createPeerMessage): Removed.
  11695. (checkIntegrity): Removed.
  11696. (createHandshakeMessage): Changed arguments.
  11697. (createChokeMessage): New function.
  11698. (createUnchokeMessage): New function.
  11699. (createInterestedMessage): New function.
  11700. (createNotInterestedMessage): New function.
  11701. (createRequestMessage): New function.
  11702. (createCancelMessage): New function.
  11703. (createPortMessage): New function.
  11704. * src/PeerMessage.h
  11705. (id): Removed.
  11706. (index): Removed.
  11707. (begin): Removed.
  11708. (length): Removed.
  11709. (bitfield): Removed.
  11710. (bitfieldLength): Removed.
  11711. (block): Removed.
  11712. (blockLength): Removed.
  11713. (inProgress): New variable.
  11714. (cuid): New variable.
  11715. (peer): New variable.
  11716. (sendMessageQueue): New variable.
  11717. (logger): New variable.
  11718. (setBitfield): Removed.
  11719. (getBitfield): Removed.
  11720. (setBlock): Removed.
  11721. (getBlock): Removed.
  11722. (getBitfieldLength): Removed.
  11723. (getBlockLength): Removed.
  11724. (isInProgress): New function.
  11725. (toString): Made pure virtual.
  11726. (check): New function.
  11727. (send): New function.
  11728. (receivedAction): New function.
  11729. (getId): Made pure virtual.
  11730. (setId): Removed.
  11731. (getIndex): Removed.
  11732. (setIndex): Removed.
  11733. (getBegin): Removed.
  11734. (setBegin): Removed.
  11735. (getLength): Removed.
  11736. (setLength): Removed.
  11737. (getCuid): New function.
  11738. (setCuid): New function.
  11739. (getPeer): New function.
  11740. (setPeer): New function.
  11741. (getSendMessageQueue): New function.
  11742. (setSendMessageQueue): New function.
  11743. (ID): Removed.
  11744. * src/PeerMessage.cc
  11745. (setBitfield): Removed.
  11746. (setBlock): Removed.
  11747. (toString): Removed.
  11748. * src/TorrentMan.h
  11749. (getPieceLength): New function.
  11750. (getPieceLength): New function.
  11751. * src/SendMessageQueue.h
  11752. (REQUEST_TIME_OUT): New definition.
  11753. (RequestSlots): New definition.
  11754. (MessageQueue): New definition.
  11755. (requestSlotMan): Removed.
  11756. (pendingMessages): Removed.
  11757. (requestSlots): New variable.
  11758. (messageQueue): New variable.
  11759. (torrentMan): New variable.
  11760. (peerConnection): New variable.
  11761. (peer): New variable.
  11762. (piece): New variable.
  11763. (getNewPieceAndSendInterest): New function.
  11764. (createPeerMessage): New function.
  11765. (createHandshakeMessage): New function.
  11766. (send): Made private.
  11767. (setPeerMessageCommonProperty): New function.
  11768. (deleteAllRequestSlot): New function.
  11769. (deleteRequestMessageInQueue): New function.
  11770. (cancelAllRequest): Made private.
  11771. (cancelAllRequest): Made private.
  11772. (countRequestSlot): Made private.
  11773. (addPendingMessage): Removed.
  11774. (deletePendingPieceMessage): Removed.
  11775. (deletePendingRequestMessage): Removed.
  11776. (addMessage): New function.
  11777. (deletePieceMessageInQueue): New function.
  11778. (deleteTimeoutRequestSlot): Changed argument.
  11779. (deleteCompletedRequestSlot): Changed argument.
  11780. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  11781. (getCorrespondingRequestSlot): New function.
  11782. (countPendingMessage): Removed.
  11783. (countMessageInQueue): New function.
  11784. (getTorrentMan): New function.
  11785. (getPeerConnection): New function.
  11786. (hasDownloadPiece): New function.
  11787. (getDownloadPiece): New function.
  11788. (setDownloadPiece): New function.
  11789. (syncPiece): New function.
  11790. (sendMessages): New function.
  11791. (sendNow): New function.
  11792. (trySendNow): New function.
  11793. (abortPiece): New function.
  11794. (sendHandshake): New function.
  11795. (receiveMessage): New function.
  11796. (receiveHandshake): New function.
  11797. (createRequestMessage): New function.
  11798. (createCancelMessage): New function.
  11799. (createPieceMessage): New function.
  11800. (createHaveMessage): New function.
  11801. (createChokeMessage): New function.
  11802. (createUnchokeMessage): New function.
  11803. (createInterestedMessage): New function.
  11804. (createNotInterestedMessage): New function.
  11805. (createBitfieldMessage): New function.
  11806. (createKeepAliveMessage): New function.
  11807. * src/SendMessageQueue.cc
  11808. (SendMessageQueue): Removed requestSlotMan.
  11809. Instantiated peerConnection here.
  11810. (~SendMessageQueue): Removed requestSlotMan.
  11811. Added deletion of peerConnection and the contents of messageQueue.
  11812. (send): Updated according to the change of messageQueue.
  11813. (addPendingMessage): Renamed to addMessage.
  11814. (addMessage): New function.
  11815. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11816. (deletePieceMessageInQueue): New function.
  11817. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11818. (deleteRequestMessageInQueue): New function.
  11819. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11820. here.
  11821. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11822. (...) was moved here.
  11823. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11824. moved here.
  11825. (deleteCompletedRequestSlot):
  11826. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11827. (getCorrespondingRequestSlot):
  11828. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11829. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11830. (countPendingMessage): Renamed to countMessageInQueue.
  11831. (countMessageInQueue): New function.
  11832. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11833. (receiveHandshake): New function.
  11834. (createHandshakeMessage): New function.
  11835. (receiveMessage): New function.
  11836. (createPeerMessage): New function.
  11837. (syncPiece): New function.
  11838. (getNewPieceAndSendInterest): New function.
  11839. (sendMessages): New function.
  11840. (sendNow): New function.
  11841. (trySendNow): New function.
  11842. (sendHandshake): New function.
  11843. (abortPiece): New function.
  11844. (getDownloadPiece): New function.
  11845. (getPeerMessageCommonProperty): New function.
  11846. (createRequestMessage): New function.
  11847. (createCancelMessage): New function.
  11848. (createPieceMessage): New function.
  11849. (createHaveMessage): New function.
  11850. (createChokeMessage): New function.
  11851. (createUnchokeMessage): New function.
  11852. (createInterestedMessage): New function.
  11853. (createNotInterestedMessage): New function.
  11854. (createBitfieldMessage): New function.
  11855. (createKeepAliveMessage): New function.
  11856. To add simple Content-Disposition support:
  11857. * src/HttpResponseCommand.h (determinFilename): New function.
  11858. * src/HttpResponseCommand.cc (executeInternal):
  11859. Use determinFilename(headers) instead of req->getFile() when comparing
  11860. filename.
  11861. (determinFilename): New function.
  11862. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11863. req->getFile().
  11864. (handleOtherEncoding): Use determinFilename(headers) instead of
  11865. req->getFile().
  11866. * src/Util.h (getContentDispositionFilename): New function.
  11867. * src/Util.cc (getContentDispositionFilename): New function.
  11868. * src/LogFactory.h (release): New function.
  11869. * src/LogFactory.cc (release): New function.
  11870. To fix a bug that causes out-of-bound exception when HTTP status
  11871. line is wrong:
  11872. * src/HttpConnection.cc (receiveResponse): Added a check for header
  11873. size.
  11874. * src/common.h (Deleter): New class.
  11875. * src/SegmentMan.cc
  11876. (~SegmentMan): Added deletion of splitter and diskWriter.
  11877. * src/DownloadEngine.h
  11878. (Commands): Use deque.
  11879. (clearQueue): New function.
  11880. * src/DownloadEngine.cc
  11881. (~DownloadEngine): Added deletion of segmentMan.
  11882. (cleanQueue): New function.
  11883. * src/TorrentDownloadEngine.h
  11884. (TorrentDownloadEngine): The implementation was moved to
  11885. TorrentDownloadEngine.cc.
  11886. (~TorrentDownloadEngine): The implementation was moved to
  11887. TorrentDownloadEngine.cc.
  11888. * src/TorrentDownloadEngine.cc
  11889. (~TorrentDownloadEngine): Added deletion of torrentMan.
  11890. * src/main.cc
  11891. (clearRequest): Removed.
  11892. (handler): Added deletion of e.
  11893. (torrentHandler): Added deletion of te.
  11894. (main): Do not share splitter.
  11895. Use Deleter instead of clearRequest.
  11896. Deletion of classes were updated.
  11897. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11898. * src/main.cc (main): Fixed typo.
  11899. * src/message.h: Fixed typo.
  11900. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  11901. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11902. To add --select-file command-line option:
  11903. * src/Util.cc
  11904. (unfoldRange): New function.
  11905. (getNum): New function.
  11906. (unfoldSubRange): New function
  11907. * src/main.cc
  11908. (showUsage): Added help message.
  11909. (main): Added --select-file command-line option. Updated the layout of
  11910. file listing.
  11911. * src/common.h
  11912. (Integers): New definition.
  11913. * src/SocketCore.cc
  11914. (writeData): Removed timeout argument.
  11915. (readData): Removed timeout argument.
  11916. (peekData): Removed timeout argument.
  11917. * src/Socket.cc
  11918. (writeData): Removed timeout argument.
  11919. (readData): Removed timeout argument.
  11920. (peekData): Removed timeout argument.
  11921. * Release 0.4.1
  11922. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11923. To deploy upload rate based choking algorithm:
  11924. * src/PeerInteractionCommand.cc
  11925. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  11926. peer currently used.
  11927. (decideChoking): Deleted the choke/unchoke decision algorithm when
  11928. download completes. Simplified.
  11929. (receiveMessage): Updated.
  11930. * src/TorrentMan.h
  11931. (activePeers): New variable.
  11932. (addActivePeer): New function.
  11933. (getActivePeers): New function.
  11934. (deleteActivePeer): New function.
  11935. * src/TorrentMan.cc
  11936. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  11937. * src/PeerAbstractCommand.cc
  11938. (onAbort): Use peer->resetStatus().
  11939. * src/main.cc
  11940. (PeerChokeCommand.h): Included.
  11941. (main): Added the instance of ChokingCommand to the command queue.
  11942. * src/Peer.h
  11943. (amChoking): Renamed from amChocking
  11944. (chokingRequired): New variable.
  11945. (optUnchoking): New variable.
  11946. (deltaUpload): New variable.
  11947. (deltaDownload): New variable.
  11948. (addDeltaUpload): New function.
  11949. (resetDeltaUpload): New function.
  11950. (addDeltaDownload): New function.
  11951. (resetDeltaDownload): New function.
  11952. (addPeerUpload): Added a call to addDeltaUpload.
  11953. (addPeerDownload): Added a call to addDeltaDownload.
  11954. * src/Peer.cc
  11955. (shouldBeChoking): Renamed from shouldChoke.
  11956. (resetStatus): New function.
  11957. * src/PeerChokeCommand.h: New class.
  11958. * src/PeerChokeCommand.cc: New class.
  11959. To add lazy upload speed limiter:
  11960. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11961. statistics calculation to TorrentDownloadEngine.
  11962. * src/TorrentConsoleDownloadEngine.cc
  11963. (sendStatistics): Renamed from printStatistics.
  11964. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11965. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11966. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11967. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11968. calculation.
  11969. (sendStatistics): New function as pure virtual function.
  11970. (getUploadSpeed): New function.
  11971. * src/TorrentDownloadEngine.cc
  11972. (initStatistics): New function.
  11973. (calculateSpeed): New function.
  11974. (calculateStatistics): New function.
  11975. * src/SendMessageQueue.h
  11976. (uploadLength): New variable.
  11977. (send): Added an argument.
  11978. (setUploadLimit): New function.
  11979. (getUploadLimit): New function.
  11980. * src/SendMessageQueue.cc
  11981. (send): Added upload speed limiter.
  11982. * src/prefs.h
  11983. (PREF_UPLOAD_LIMIT): New definition.
  11984. * src/PeerInteractionCommand.cc
  11985. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11986. * src/main.cc
  11987. (main): Added --upload-limit option
  11988. For bug fixes:
  11989. * src/main.cc
  11990. (showUsage): Corrected --listen-port help
  11991. Other changes:
  11992. * src/TorrentMan.cc
  11993. (getPeer): Return nullPeer if connection is grather than
  11994. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11995. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11996. To add some useful information to the exception message:
  11997. * src/SocketCore.cc : Updated messages.
  11998. * src/SegmentMan.cc :
  11999. * src/TorrentMan.cc : Updated messages.
  12000. * src/MultiDiskWriter.cc : Updated messages.
  12001. * src/Util.cc : Updated messages.
  12002. * src/AbstractDiskWriter.cc : Updated messages.
  12003. * src/PreAllocationDiskWriter.cc : Updated messages.
  12004. * src/message.cc : Added new messages. Updated some messages.
  12005. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12006. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12007. Updated threshold from 30 to 15.
  12008. * src/AbstractDiskWriter.h (filename): New variable.
  12009. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12010. (createFile): Assigned filename.
  12011. * src/main.cc: Updated the help message for http-auth-scheme.
  12012. * Release 0.4.0
  12013. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12014. To add TrackerUpdateCommand with which replaces
  12015. CompactTrackerResponseProcessor:
  12016. * src/TrackerWatcherCommand.h (req): Removed.
  12017. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12018. if the number of peer connections are less than 30.
  12019. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12020. * src/SegmentMan.h (diskWriter): New function.
  12021. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12022. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12023. (main): Use TrackerUpdateCommand.
  12024. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12025. (req): New variable.
  12026. (setTrackerResponseProcessor): Removed.
  12027. (getTrackerResponseProcessor): Removed.
  12028. (processTrackerResponse): Removed.
  12029. * src/DownloadEngine.h (diskWriter): Removed.
  12030. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12031. to torrentMan->processTrackerResponse().
  12032. To add Util::expandBuffer:
  12033. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12034. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12035. * src/Util.h (expandBuffer): New function.
  12036. To fix the bug that causes segmentation fault when "-l ." is specified
  12037. in command-line option:
  12038. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12039. (openFile): New function.
  12040. (closeFile): New function.
  12041. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12042. (~SimpleLogger): Call closeFile();
  12043. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12044. * src/main.cc (main): Added a check to see logger is configured
  12045. properly.
  12046. To enable HTTP authentication without specifying "--http-auth-scheme"
  12047. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12048. * src/HttpConnection.cc (createRequest): Send Authorization header
  12049. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12050. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12051. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12052. * src/Peer.cc (shouldChoke): Updated algorithm.
  12053. * src/message.h (EX_AUTH_FAILED): New definition.
  12054. (EX_FILE_OPEN): New definition.
  12055. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12056. if status == 401.
  12057. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12058. if req->isTorrent == true.
  12059. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12060. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12061. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12062. (createFile): Updated message.
  12063. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12064. To add a readout of estimated remaining time to normal HTTP/FTP
  12065. downloads:
  12066. * src/ConsoleDownloadEngine.h (startup): New variable.
  12067. (startupLength): New variable.
  12068. (isStartupLengthSet): New variable.
  12069. (avgSpeed): New variable.
  12070. (eta): New variable.
  12071. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12072. estimated remaining time.
  12073. (initStatistics): Initialized newly added variables.
  12074. (calculateStatistics): Calculate average speed and estimated remaining
  12075. time.
  12076. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12077. * src/TrackerDownloadCommand.h: Removed.
  12078. * src/TrackerDownloadCommand.cc: Removed.
  12079. * src/TrackerInitCommand.h: Removed.
  12080. * src/TrackerInitCommand.cc: Removed.
  12081. * src/TrackerUpdateCommand.h: Removed.
  12082. * src/TrackerUpdateCommand.cc: Removed.
  12083. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12084. url written in TrackerInitCommand was moved here. Do not create
  12085. tracker request command if torrentMan->trackers != 0.
  12086. * src/CompactTrackerResponseProcessor.h: New class.
  12087. * src/CompactTrackerResponseProcessor.cc: New class.
  12088. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12089. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12090. Decoupled TorrentDownloadEngine from this.
  12091. * src/SegmentMan.h (init): New function.
  12092. * src/SegmentMan.cc (init): New function.
  12093. * src/TorrentMan.h (responseProcessor): New variable.
  12094. (trackers): New variable.
  12095. (setTrackerResponseProcessor): New function.
  12096. (getTrackerResponseProcessor): New function.
  12097. (processTrackerResponse): New function.
  12098. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12099. (processTrackerResponse): New function.
  12100. * src/main.cc (main): Use ByteArrayDiskWriter and
  12101. CompactTrackerResponseProcessor.
  12102. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12103. processTrackerResponse().
  12104. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12105. readout.
  12106. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12107. which indicates download has completed.
  12108. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12109. (closeFile): fd >= 0, not fd > 0
  12110. * src/main.cc (main): Added short cut for show-files.
  12111. Added short cut for torrent-file.
  12112. Added new command-line option listen-port.
  12113. Updated i18n messages.
  12114. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12115. To add LogFactory which creates singleton logger:
  12116. * src/LogFactory.h: New class.
  12117. * src/LogFactory.cc: New class.
  12118. * src/Command.h (logger): New variable.
  12119. (Constructor): Use LogFactory.
  12120. * src/AbstractCommand.cc: Use Command::logger
  12121. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12122. Use LogFactory.
  12123. * src/SegmentSplitter.h : Made logger protected.
  12124. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12125. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12126. * src/DownloadEngine.h : Made logger protected.
  12127. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12128. * src/PeerInteractionCommand.cc : Use Command::logger.
  12129. * src/HttpResponseCommand.cc : Use Command::logger.
  12130. * src/SegmentMan.h : Made logger private.
  12131. * src/TorrentMan.h : Made logger private.
  12132. * src/TorrentMan.cc : Use LogFactory.
  12133. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12134. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12135. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12136. Use LogFactory.
  12137. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12138. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12139. Use LogFactory.
  12140. * src/DownloadCommand.cc : Use Command::logger.
  12141. * src/PeerAbstractCommand.cc : Use Command::logger.
  12142. * src/PeerListenCommand.cc : Use Command::logger.
  12143. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12144. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12145. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12146. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12147. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12148. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12149. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12150. Use LogFactory.
  12151. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12152. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12153. Use LogFactory.
  12154. * src/main.cc (main): Use LogFactory.
  12155. * src/DiskAdaptor.h (logger): New variable.
  12156. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12157. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12158. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12159. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12160. parameter to a tracker request.
  12161. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12162. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12163. * src/main.cc (setSignalHander): New function.
  12164. (main): Added a handler for SIGTERM.
  12165. (handler): Updated message.
  12166. (torrentHandler): Updated message.
  12167. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12168. * src/TorrentConsoleDownloadEngine.cc
  12169. (onPartialDownloadingCompletes): Renamed as
  12170. onSelectiveDownloadingCompletes.
  12171. (onSelectiveDownloadingCompletes): Updated message.
  12172. To add DiskAdaptor which abstract DiskWriter family:
  12173. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12174. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12175. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12176. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12177. MultiDiskAdaptor.h.
  12178. (readFileEntry): Changed its arguments.
  12179. (setup): setupDiskWriter is merged into this function.
  12180. (setupDiskWriter): Removed.
  12181. (setFileFilter): New function.
  12182. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12183. made in readFileEntry.
  12184. (getFilePath): Removed.
  12185. (getTempFilePath): Removed.
  12186. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12187. (fixFilename): Removed.
  12188. (copySingleFile): Removed.
  12189. (splitMultiFile): Removed.
  12190. (deleteTempFile): Removed.
  12191. (setFileEntriesToDownload): Removed.
  12192. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12193. (isSelectiveDownloadingMode): New function.
  12194. (setAllMultiFileRequestedState): Removed.
  12195. (finishPartialDownloadingMode): Renamed as
  12196. finishSelectiveDownloadingMode.
  12197. (finishSelectiveDownloadingMode): New function.
  12198. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12199. (getSelectedTotalLength): New function.
  12200. (onDownloadComplete): Use diskAdaptor.
  12201. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12202. (Range): Removed.
  12203. (setMultiFileEntries): Renamed as setFileEntries.
  12204. (setFileEntries): New function.
  12205. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12206. (pieceLength): New variable.
  12207. * src/main.cc (printDownloadCompeleteMessage): New function.
  12208. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12209. (main): Renamed torrent-show-files to show-files.
  12210. Rewritten file contents listing.
  12211. * src/TorrentMan.h (FileEntry): Removed.
  12212. (multiFileTopDir): Removed.
  12213. (multiFileEntries): Removed.
  12214. (diskWriter): Removed.
  12215. (diskAdaptor): New variable.
  12216. * src/DefaultDiskWriter.h (totalLength): New variable.
  12217. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12218. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12219. diskWriter.
  12220. * src/TorrentConsoleDownloadEngine.h
  12221. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12222. (partialTotalLength): Renamed as selectedTotalLength.
  12223. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12224. openExistingFile, otherwise call initAndOpenFile.
  12225. (closeFile): fd > 0, not fd != 0.
  12226. * src/DirectDiskAdaptor.h: New class.
  12227. * src/DirectDiskAdaptor.cc: New class.
  12228. * src/MultiDiskAdaptor.h: New class.
  12229. * src/MultiDiskAdaptor.cc: New class.
  12230. * src/CopyDiskAdaptor.h: New class.
  12231. * src/CopyDiskAdaptor.cc: New class.
  12232. * src/DiskAdaptor.h: New class.
  12233. * src/DiskAdaptor.cc: New class.
  12234. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12235. (PREF_SHOW_FILES): New definition.
  12236. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12237. To add the ability to download multi torrent into respective files
  12238. directly:
  12239. * src/DiskWriter.h (openFile): New function.
  12240. (seek): Removed.
  12241. * src/MultiDiskWriter.h: New class.
  12242. * src/MultiDiskWriter.cc: New class.
  12243. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12244. protected.
  12245. (openFile): New function.
  12246. * src/AbstractDiskWriter.cc (openFile): New function.
  12247. * src/prefs.h (V_FALSE): New definition.
  12248. (PREF_DIRECT_FILE_MAPPING): New definition.
  12249. * src/TorrentMan.h (setupDiskWriter): New function.
  12250. (setAllMultiFileRequestedState): New function.
  12251. (onDownloadComplete): New function.
  12252. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12253. (setupDiskWriter): New function.
  12254. (getFilePath): Updated.
  12255. (getTempFilePath): Updated.
  12256. (getSegmentFilePath): Updated.
  12257. (fixFilename): Updated.
  12258. (deleteTempFile): Updated.
  12259. (setAllMultiFileRequestedState): New function.
  12260. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12261. (finishPartialDownloadingMode): Reset requested flags.
  12262. (onDownloadComplete): New function.
  12263. * src/main.cc: Added --direct-file-mapping option.
  12264. Use TorrentMan::setupDiskWriter().
  12265. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12266. onDownloadComplete().
  12267. To fix ETA bug:
  12268. * src/Util.h (difftvsec): New function.
  12269. * src/Util.cc (difftvsec): New function.
  12270. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12271. type of "elapsed" instead of long long int.
  12272. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12273. The updates of statistics takes place every 1 seconds.
  12274. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12275. (calculateSpeed): Changed its argument signature.
  12276. * src/PeerMessage.cc (toString): Fixed message.
  12277. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12278. To print ETA:
  12279. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12280. completion handling when dealing with
  12281. TorrentMan::isPartialDownloadingMode() == true.
  12282. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12283. New function.
  12284. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12285. (sessionDownloadLength): New variable.
  12286. (avgSpeed): New variable.
  12287. (eta): New variable.
  12288. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12289. new variables: eta, avgSpeed, startup.
  12290. (calculateSpeed): Calculate average speed and ETA.
  12291. (printStatistics): Added ETA.
  12292. * src/Util.h (secfmt): New function.
  12293. * src/Util.cc (secfmt): New function.
  12294. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12295. To detect "keep alive" flooding:
  12296. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12297. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12298. variable: keepAliveCount.
  12299. (detectMessageFlooding): Added "keep alive" flooding detection.
  12300. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12301. received.
  12302. To add the ability to download only specified files in multi-file
  12303. torrent:
  12304. * src/BitfieldMan.h (filterBitfield): New variable.
  12305. (filterEnabled): New variable.
  12306. (setFilterBit): New function.
  12307. (enableFilter): New function.
  12308. (disableFilter): New function.
  12309. (isFilterEnabled): New function.
  12310. (getFilteredTotalLength): New function.
  12311. (getCompletedLength): New function.
  12312. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12313. filterBitfield, filterEnabled.
  12314. (CopyConstructor): Added filterBitfield and filterEnabled.
  12315. (operator==): Added filterBitfield and filterEnabled.
  12316. (Destructor): Added filterBitfield.
  12317. (getMissingIndex): Use filterBitfield.
  12318. (getMissingUnusedIndex): Use filterBitfield.
  12319. (getFirstMissingUnusedIndex): Use filterBitfield.
  12320. (getFirstMissingUnusedIndex): Use filterBitfield.
  12321. (getAllMissingIndexes): Use filterBitfield.
  12322. (countMissingBlock): Use filterBitfield.
  12323. (countBlock): Use filterBitfield.
  12324. (setBitInternal): Added new argument on.
  12325. (setUseBit): Use setBitInternal.
  12326. (unsetUseBit): Use setBitInternal.
  12327. (setBit): Use setBitInternal.
  12328. (unsetBit): Use setBitInternal.
  12329. (isAllBitSet): Use filterBitfield.
  12330. (setFilterBit): New function.
  12331. (addFilter): New function.
  12332. (enableFilter): New function.
  12333. (disableFilter): New function.
  12334. (clearFilter): New function.
  12335. (isFilterEnabled): New function.
  12336. (getFilteredTotalLength): New function.
  12337. (getCompletedLength): New function.
  12338. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12339. Initalized newly added variables.
  12340. [FileEntry](offset): New variable.
  12341. [FileEntry](extracted): New variable.
  12342. [FileEntry](requested): New variable.
  12343. (readFileEntry): New function.
  12344. (option): New variable.
  12345. (splitMultiFile): Removed const qualifier.
  12346. (fixFilename): Removed const qualifier.
  12347. (readFileEntryFromMetaInfoFile): New function.
  12348. (finishPartialDownloadingMode): New function.
  12349. (isPartialDownloadingMode): New function.
  12350. (setFileEntriesToDownload): New function.
  12351. (getCompletedLength): New function.
  12352. (getPartialTotalLength): New function.
  12353. * src/TorrentMan.cc (readFileEntry): New function.
  12354. (setup): Use readFileEntry. If no-preallocation option is specified,
  12355. use DefaultDiskWriter.
  12356. (readFileEntryFromMetaInfoFile): New function.
  12357. (fixFilename): Removed const qualifier.
  12358. (splitMultiFile): Removed const qualifier.
  12359. (setFileEntriesToDownload): New function.
  12360. (isPartialDownloadingMode): New function.
  12361. (finishPartialDownloadingMode): New function.
  12362. (getCompletedLength): New function.
  12363. (getPartialTotalLength): New function.
  12364. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12365. New variable.
  12366. (partialTotalLength): New variable.
  12367. (downloadLength): New variable.
  12368. (totalLength): New variable.
  12369. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12370. Added log.
  12371. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12372. partialTotalLength, downloadLength, totalLength.
  12373. (calculate): Calculate downloadLength and totalLength.
  12374. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12375. * src/main.cc (addCommand): Changed argument signature.
  12376. (main): Added new variable: args. Added new option "torrent-show-files"
  12377. "no-preallocation". Usage is not updated yet.
  12378. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12379. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12380. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12381. Attempt to add the ability to listing file entries in a .torrent file.
  12382. This feature is not yet complete.
  12383. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12384. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12385. (getName): New function.
  12386. * src/TorrentMan.h (getMultiFileEntries): New function.
  12387. (getName): New function.
  12388. * src/main.cc (main): Use above 2 funtion.
  12389. * Release 0.3.2
  12390. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12391. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12392. (detectMessageFlooding): Updated threshold value.
  12393. (checkLongTimePeerChoking): Updated timeout value.
  12394. (getNewPieceAndSendInterest): Added debug log.
  12395. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12396. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12397. (getPeer): Updated.
  12398. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12399. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12400. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12401. is localhost.
  12402. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12403. * src/PendingMessage.cc (processMessage): Not to send piece message
  12404. if peer is not interested in the pieces localhost has.
  12405. * src/Peer.cc (shouldChoke): Updated.
  12406. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12407. * src/Util.cc (isPowerOf): New function.
  12408. * src/Util.h (isPowerOf): New function.
  12409. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12410. whether or not it is power of 2.
  12411. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12412. Added new class SendMessageQueue that includes PendingMessages and
  12413. RequestSlotMan.
  12414. * src/SendMessageQueue.h: New class.
  12415. * src/SendMessageQueue.cc: New class.
  12416. * src/PendingMessage.h: Added new member variable blockIndex and its
  12417. accessors.
  12418. (createRequestMessage): Updated.
  12419. * src/PendingMessage.cc (createRequestMessage): Updated.
  12420. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12421. SendMessageQueue.
  12422. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12423. (receiveMessage): Updated with SendMessageQueue.
  12424. (deletePendingPieceMessage): Removed.
  12425. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12426. (sendInterest): Updated with SendMessageQueue.
  12427. (createRequestPendingMessage): Updated with SendMessageQueue.
  12428. (sendMessages): Updated with SendMessageQueue.
  12429. (onAbort): Updated with SendMessageQueue.
  12430. (keepAlive): Updated with SendMessageQueue.
  12431. (beforeSocketCheck): Updated SendMessageQueue.
  12432. * src/PeerInteractionCommand (sendMessages): Shuffle
  12433. missingBLockIndexes before using it.
  12434. Added its own timeout for peer connection.
  12435. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12436. setter.
  12437. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12438. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12439. Added setTimeout() call.
  12440. (executeInternal): Added setTimeout() call.
  12441. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12442. Added timeout.
  12443. (isTimeoutDetected): Updated.
  12444. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12445. option.
  12446. Added *simple* message flooding checker.
  12447. * src/PeerInteractionCommand.cc (executeInternal):
  12448. Added detectMessageFlooding() call.
  12449. (detectMessageFlooding): New function.
  12450. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12451. (beforeSocketCheck): Added detectMessageFlooding() call.
  12452. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12453. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12454. Removed deletePendingPieceMessage(), getRequestSlot(),
  12455. deleteRequestSlot(), deleteAllRequestSlot().
  12456. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12457. Added checkLongTimePeerChoking() call.
  12458. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12459. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12460. if duplicate == false.
  12461. The parameter "uploaded" and "downloaded" in the tracker request are
  12462. the size since the client sent the "started" event to the tracker.
  12463. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12464. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12465. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12466. getSessionDownloadedSize(), getSessionUploadedSize().
  12467. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12468. getSessionUploadedSize() instead of getDownloadedSize(),
  12469. getUploadedSize().
  12470. * src/PendingMessage.cc (processMessage): Do not send request message
  12471. if the peer is choking the client.
  12472. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12473. less than interval.
  12474. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12475. * configure.in: Added gnutls support. Added several CPP macros.
  12476. * m4/openssl.m4: Added.
  12477. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12478. readData(), peekData(). Added gnutls support.
  12479. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12480. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12481. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12482. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12483. Instead, added a check for whether setup method has executed
  12484. successfully.
  12485. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12486. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12487. * src/Makefile.am: Updated.
  12488. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12489. using whether OpenSSL or gcrypt, depending on the result of configure
  12490. script.
  12491. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12492. messageDigest.h.
  12493. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12494. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12495. Fixed memory leak.
  12496. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12497. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12498. Removed instantiation of TrackerInitCommand. Instead,
  12499. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12500. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12501. ENABLE_SSL.
  12502. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12503. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12504. If a piece is already acquired by another command, delete the request
  12505. slots for the piece.
  12506. * src/TrackerUpdateCommand.cc (execute):
  12507. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12508. Added a check whether peer list is null.
  12509. Fixed the bug that causes sending completed event to the tracker
  12510. several times.
  12511. * src/TrackerInitCommand.cc (execute):
  12512. Fixed the bug that causes sending completed event to the tracker
  12513. several times.
  12514. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12515. by using messageDigest.h.
  12516. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12517. * PeerConnection.cc: Replaced log message "keep-alive" with
  12518. "keep alive".
  12519. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12520. localhost long time.
  12521. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12522. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12523. at most 100 failure entry from the list. If with duplicate = false,
  12524. MAX_PEER_LIST is not checked.
  12525. * PeerListenCommand.cc: Fixed the argument order of log message.
  12526. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12527. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12528. Added warn().
  12529. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12530. Implemented warn().
  12531. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12532. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12533. * Request.h: Added AFTER_COMPLETED event.
  12534. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12535. instead of downloaded size and progress(%) after download completes.
  12536. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12537. message to the peer if it is interested in what localhost has
  12538. downloaded.
  12539. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12540. destination instead of just renaming it.
  12541. * TorrentMan.cc: Added deleteTempFile().
  12542. * PeerAbstractCommand.cc: do not stop execution after download
  12543. completes. This makes localhost a seeder.
  12544. * Util.{h,cc}: Added fileCopy().
  12545. * PeerListenCommand.cc: do not stop execution after download completes.
  12546. This makes localhost a seeder.
  12547. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12548. Added TorrentMan::deleteTempFile() to torrentHandler.
  12549. Initialized the variable dir as ".".
  12550. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12551. Deleted renameSingleFile().
  12552. Added copySingleFile(), deleteTempFile().
  12553. * DownloadEngine.h: Added virtual function afterEachIteration().
  12554. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12555. in onEndOfRun() to afterEachIteration().
  12556. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12557. true.
  12558. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12559. In rangedFileCopy(), added try-catch block to properly close file
  12560. descriptors.
  12561. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12562. Added afterEachIteration(), isFilenameFixed().
  12563. * Peer.cc: Changed choking strategy.
  12564. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12565. * TrackerInitCommand.cc: Send completed event only once.
  12566. * DownloadEngine.cc: Added a call to afterEachIteration().
  12567. * TrackerUpdateCommand.cc: Do not stop execution after download
  12568. completes.
  12569. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12570. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12571. received from a tracker.
  12572. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12573. Decreased the number of failure peers to delete to 0(just comment out
  12574. the line).
  12575. * Release 0.3.1
  12576. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12577. * PeerInteractionCommand.cc: added a call to
  12578. TorrentMan::unadvertisePiece in Destructor.
  12579. * PeerInteractionCommand.cc: make have message sent immediately
  12580. if the size of pending message queue is zero.
  12581. * TorrentMan.cc: set the maximum size of peer list to 250.
  12582. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12583. to deque.
  12584. * Util.cc: fixed rangedFileCopy.
  12585. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12586. to Constructor. Also, moved digest cleanup to Destructor.
  12587. * MetaFileUtil.cc: fixed memory leak
  12588. * replaced std::vector with std::deque.
  12589. * AbstractCommand.cc: casted timeout value to long long int.
  12590. * ChunkedEncoding.cc: fixed memory leak.
  12591. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12592. * SleepCommand.cc: casted timeout value to long long int.
  12593. * Data.cc: fixed memory leak.
  12594. * Data.cc: fixed toLLInt().
  12595. * BitfieldMan.cc: fixed memory leak.
  12596. * TorrentMan.cc: initialized storeDir to ".".
  12597. * TorrentMan.cc: fixed memory leak.
  12598. * TorrentMan.cc: corrected file paths of splitted files.
  12599. * PeerAbstractCommand.cc: casted timeout to long long int.
  12600. * main.cc: added delete(req) and delete(te->diskWriter).
  12601. * RequestSlot.cc: casted timeout value to long long int.
  12602. * Request.cc: fixed memory leak.
  12603. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12604. have the piece.
  12605. * Peer.{h,cc}: added hasPiece(int index).
  12606. * main.cc: corrected addCommand.
  12607. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12608. * BitTorrent protocol support added.
  12609. * Release 0.3.0
  12610. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12611. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12612. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12614. decoding did not work properly.
  12615. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12616. * DownloadEngine.h: included sys/time.h
  12617. * DownloadEngine.cc: remove sys/time.h
  12618. * Makefile.am (SUBDIRS): Add intl.
  12619. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12620. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12621. * main.cc: correct help message for --http-auth-scheme.
  12622. * main.cc: changed e-mail address for bug reports.
  12623. * ja.po: added japanese translation.
  12624. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12625. * SimpleLogger.cc: flush log file instead of stdout.
  12626. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12627. * main.cc: Fixed command-line option: max-tries
  12628. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12629. does not equal to seg.sp.
  12630. * DownloadCommand.cc: If EOF is got from the server and the total size
  12631. of file is not zero, then throw DlRetryEx.
  12632. * main.cc: Set the minium value of min-segment-size to 1024.
  12633. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12634. fails because of a regression since 0.2.0 release.
  12635. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12636. * HttpConnection.cc:
  12637. * common.h: defined the user agent name as macro
  12638. * DownloadEngine.{h, cc}:
  12639. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12640. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12641. * main.cc: Download complete/abort message is now generated by main.
  12642. * Makefile.am (SUBDIRS): Add m4.
  12643. (ACLOCAL_AMFLAGS): New variable.
  12644. (EXTRA_DIST): New variable.
  12645. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12646. * gettext: added gettext functionality
  12647. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12648. * AbstractCommand.cc:
  12649. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12650. unregister its cuid from SegmentMan.
  12651. * DownloadEngine.cc: .aria2 file was written when a downloading
  12652. failed with errors.
  12653. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12654. Added "User-Agent" header to CONNECT proxy request.
  12655. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12656. properly.
  12657. * Logger.h:
  12658. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12659. * ChunkedEncoding.cc: Added #include directive for strings.h
  12660. * Release 0.2.1
  12661. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12662. * Util.{h,cc}: added startsWith().
  12663. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12664. Util::endsWith().
  12665. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12666. * common.h: added #include directive of limit.h.
  12667. * DownloadEngine.cc: added #include directive of sys/time.h and
  12668. algorithm.
  12669. * Exception.h: added #include directive of stdio.h.
  12670. * AbstractCommand.h: added #include directive of sys/time.h.
  12671. * DownloadCommand.h: added #include directive of sys/time.h.
  12672. * *.h: added #include directive of common.h to all base classes.
  12673. subclasses' one was removed.
  12674. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12675. does not define these macros.
  12676. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12677. * Release 0.2.0
  12678. * main.cc:
  12679. * HttpInitiateConnectionCommand.{h,cc}:
  12680. * prefs.h:
  12681. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12682. We can now use GET command in http proxy.
  12683. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12684. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12685. that splits slowest segment of SegmentMan::commands vector.
  12686. This is the default split algorithm of aria2.
  12687. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12688. that splits first segment of SegmentMan::commands vector.
  12689. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12690. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12691. * Segment.h:
  12692. * SegmentMan.cc: Added speed field to Segment.h
  12693. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12694. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12695. * message.h: Change file size related %d to %lld.
  12696. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12697. * FtpInitiateConnectionCommand.{h,cc}:
  12698. * FtpNegotiationCommand.{h,cc}:
  12699. * FtpDownloadCommand.{h,cc}:
  12700. * FtpConnection.{h,cc}: Added FTP support
  12701. * SimpleLogger.cc: Log message now includes time information.
  12702. * main.cc: The value of --http-auth-scheme option is chagned from
  12703. 'BASIC' to 'basic'
  12704. * main.cc: Added --timeout command-line option.
  12705. * main.cc: Added --min-segment-size command-line option.
  12706. * main.cc: Added --max-retries command-line option.
  12707. * prefs.h: option string constants are now defined in prefs.h
  12708. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12709. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12710. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12711. with version 0.1.0's one.
  12712. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12713. * configure.in: Added --enable-ssl option to configure script.
  12714. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12715. cannot permit absoluteURI as Request-URI.
  12716. * HttpConnection.cc: Added Referer support.
  12717. * main.cc: Added referer command-line option.
  12718. * main.cc: Added rety-wait command-line option.
  12719. * Exception.h: Fixed formating bug in Exception::setMsg()
  12720. * SocketCore.{h,cc}:
  12721. * Socket.{h, cc}:
  12722. * Request.cc:
  12723. * InitiateConnectionCommandFactory.cc:
  12724. * HttpRequestCommand.cc: Added HTTPS support.
  12725. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12726. for SocketCore.
  12727. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12728. size is wrong
  12729. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12730. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12731. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12732. * Release 0.1.0